aboutsummaryrefslogtreecommitdiffstats
path: root/net/samba/Makefile
diff options
context:
space:
mode:
authordwcjr <dwcjr@FreeBSD.org>2002-05-29 05:03:12 +0800
committerdwcjr <dwcjr@FreeBSD.org>2002-05-29 05:03:12 +0800
commitc0a8166e8f7b0e01081c2f2f878d1992d04b7cbd (patch)
tree53f758eb8c349f43a5674e2968b0f498fb72460d /net/samba/Makefile
parent0ca77572e59d997a36df0e4d06df0475ee10fc8b (diff)
downloadfreebsd-ports-gnome-c0a8166e8f7b0e01081c2f2f878d1992d04b7cbd.tar.gz
freebsd-ports-gnome-c0a8166e8f7b0e01081c2f2f878d1992d04b7cbd.tar.zst
freebsd-ports-gnome-c0a8166e8f7b0e01081c2f2f878d1992d04b7cbd.zip
Add menu support to samba
Submitted by: weisswange@liwing.de, rehsack@liwing.de
Diffstat (limited to 'net/samba/Makefile')
-rw-r--r--net/samba/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/net/samba/Makefile b/net/samba/Makefile
index c16de4e3ef41..39178e3aca92 100644
--- a/net/samba/Makefile
+++ b/net/samba/Makefile
@@ -19,6 +19,7 @@ MASTER_SITE_SUBDIR= . old-versions old
MAINTAINER= dwcjr@FreeBSD.org
USE_BZIP2= YES
+USE_SUBMAKE= YES
.if defined(WITH_AUDIT) || defined(WITH_RECYCLE)
USE_GMAKE= YES
@@ -39,8 +40,23 @@ LIBSAMBA= ""
.endif
# directories
+.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
+IS_INTERACTIVE= yes
+.endif
+
+.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
+.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
+.endif
+
VARDIR= /var
SAMBA_SPOOL= ${VARDIR}/spool/samba
+SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
+ TOUCH="${TOUCH}" \
+ MKDIR="${MKDIR}" \
+ CAT="${CAT}" \
+ SAMBA_OPTIONS="${SAMBA_OPTIONS}" \
+ REALCURDIR="${.CURDIR}"
+
SAMBA_LOGDIR= ${VARDIR}/log
SAMBA_PRIVATE= ${PREFIX}/private
SAMBA_CONFDIR= ${PREFIX}/etc
@@ -91,6 +107,12 @@ CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \
WITH_CUPS= yes
.endif
+pre-fetch:
+ @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.samba
+
+post-clean:
+ @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
+
.if defined(WITH_CUPS)
LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base
CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \