aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authortimur <timur@FreeBSD.org>2008-08-06 01:23:36 +0800
committertimur <timur@FreeBSD.org>2008-08-06 01:23:36 +0800
commitb12e690e524cc8853e919f54a6d42df54ef9883c (patch)
tree1eec4012ebc1ab052bc2a977be3ea4369c44daa2 /net
parent2ca5e43a784c55ce5c3b6a22b23d66e3fe3f8e04 (diff)
downloadfreebsd-ports-gnome-b12e690e524cc8853e919f54a6d42df54ef9883c.tar.gz
freebsd-ports-gnome-b12e690e524cc8853e919f54a6d42df54ef9883c.tar.zst
freebsd-ports-gnome-b12e690e524cc8853e919f54a6d42df54ef9883c.zip
Rearranged Makefile to work better with new slave ports.
Diffstat (limited to 'net')
-rw-r--r--net/samba3/Makefile40
-rw-r--r--net/samba3/files/patch-Makefile.in13
2 files changed, 34 insertions, 19 deletions
diff --git a/net/samba3/Makefile b/net/samba3/Makefile
index b2318f760b10..fbfbe2485777 100644
--- a/net/samba3/Makefile
+++ b/net/samba3/Makefile
@@ -39,7 +39,7 @@ SAMBA_SWATDIR= ${PREFIX}/share/swat
SAMBA_PRIVATE?= ${PREFIX}/private
SAMBA_CONFDIR?= ${PREFIX}/etc
SAMBA_PRIVATEDIR?= ${SAMBA_CONFDIR}/samba
-SAMBA_CONFIG= smb.conf
+SAMBA_CONFIG?= smb.conf
SAMBA_LIB= lib
SAMBA_LIBDIR= ${PREFIX}/${SAMBA_LIB}
SAMBA_MODULEDIR= ${SAMBA_LIBDIR}/samba
@@ -216,7 +216,7 @@ CONFIGURE_ARGS+= --disable-fam
.if defined(WITH_ACL_SUPPORT)
.if ${OSVERSION} < 500018
-IGNORE= ACL support requires 5.1-RELEASE or later. Disable ACL support
+IGNORE= an ACL support requires 5.1-RELEASE or later. Disable ACL support
.endif
CONFIGURE_ARGS+= --with-acl-support
.else
@@ -225,7 +225,7 @@ CONFIGURE_ARGS+= --without-acl-support
.if defined(WITH_AIO_SUPPORT)
.if ${OSVERSION} < 700055
-IGNORE= AIO support requires 7.0-RELEASE or later. Disable AIO support
+IGNORE= an AIO support requires 7.0-RELEASE or later. Disable AIO support
.endif
CONFIGURE_ARGS+= --with-aio-support
.else
@@ -263,6 +263,16 @@ CONFIGURE_ARGS+= --without-included-popt
.else
CONFIGURE_ARGS+= --with-included-popt
.endif
+
+.if defined(WITH_SMBTORTURE)
+PLIST_SUB+= SMBTORTURE=""
+.else
+PLIST_SUB+= SMBTORTURE="@comment "
+.endif
+
+.if defined(WITH_SMBTORTURE4_PATH) && exists(${WITH_SMBTORTURE4_PATH})
+CONFIGURE_ARGS+= --with-smbtorture4-path=${WITH_SMBTORTURE4_PATH}
+.endif
# !SAMBA_SUBPORT
.endif
@@ -300,18 +310,12 @@ CONFIGURE_ARGS+= --with-ldap
CONFIGURE_ARGS+= --without-ldap
.endif
-.if defined(WITH_SMBTORTURE)
-PLIST_SUB+= SMBTORTURE=""
-.else
-PLIST_SUB+= SMBTORTURE="@comment "
-.endif
-
-.if defined(WITH_SMBTORTURE4_PATH) && exists(${WITH_SMBTORTURE4_PATH})
-CONFIGURE_ARGS+= --with-smbtorture4-path=${WITH_SMBTORTURE4_PATH}
-.endif
+post-patch:
+ @${REINPLACE_CMD} -e 's/%%SAMBA_CONFIG%%/${SAMBA_CONFIG}/' \
+ ${WRKSRC}/Makefile.in
+# Samba server only
.if !defined(SAMBA_SUBPORT)
-# Samba server itself
MAN1= findsmb.1 log2pcap.1 nmblookup.1 ntlm_auth.1 profiles.1 \
rpcclient.1 smbcacls.1 smbclient.1 smbcontrol.1 smbcquotas.1 \
smbget.1 smbstatus.1 smbtar.1 smbtree.1 testparm.1 vfstest.1
@@ -395,12 +399,14 @@ pre-everything::
${ECHO_CMD} ""; \
fi
+.if defined(OPTIONS)
pre-fetch:
@${ECHO_MSG} "===> -------------------------------------------"
@${ECHO_MSG} "===> Run 'make config' to (re)configure the port"
@${ECHO_MSG} "===> -------------------------------------------"
+.endif
-post-patch:
+pre-configure:
@${RM} -rf ${WRKDIR}/${DISTNAME}/examples/LDAP/smbldap-tools-*
@${RM} -rf ${WRKDIR}/${DISTNAME}/examples/libsmbclient
@${RM} -rf ${WRKDIR}/${DISTNAME}/examples/libmsrpc
@@ -440,7 +446,7 @@ post-install:
@${MKDIR} ${EXAMPLESDIR}/pam_smbpass
@${CP} -Rp ${WRKSRC}/pam_smbpass/samples/* "${EXAMPLESDIR}/pam_smbpass"
.endif
- ${CP} -p "${WRKDIR}/${SAMBA_CONFIG}.sample" "${EXAMPLESDIR}"
+ ${INSTALL_DATA} "${WRKDIR}/smb.conf.sample" "${EXAMPLESDIR}/${SAMBA_CONFIG}.sample"
${INSTALL_SCRIPT} "${WRKSRC}/script/mksmbpasswd.sh" "${PREFIX}/bin/make_smbpasswd"
# Winbind
.if !defined(WITHOUT_WINBIND)
@@ -487,10 +493,10 @@ post-install:
.endif
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${CAT} ${PKGMESSAGE}
-# !SAMBA_SUBPORT
-.endif
test:
cd ${WRKSRC} && ${MAKE} test
+# !SAMBA_SUBPORT
+.endif
.include <bsd.port.post.mk>
diff --git a/net/samba3/files/patch-Makefile.in b/net/samba3/files/patch-Makefile.in
index eb3c4672833e..dad1f994b8ce 100644
--- a/net/samba3/files/patch-Makefile.in
+++ b/net/samba3/files/patch-Makefile.in
@@ -1,5 +1,14 @@
---- Makefile.in.orig Tue Jun 19 19:11:39 2007
-+++ Makefile.in Mon Oct 15 03:26:15 2007
+--- Makefile.in.orig 2008-07-10 21:17:14.000000000 +0200
++++ Makefile.in 2008-08-05 02:06:03.000000000 +0200
+@@ -91,7 +91,7 @@
+ # These can be overridden by command line switches (see smbd(8))
+ # or in smb.conf (see smb.conf(5))
+ LOGFILEBASE = @logfilebase@
+-CONFIGFILE = $(CONFIGDIR)/smb.conf
++CONFIGFILE = $(CONFIGDIR)/%%SAMBA_CONFIG%%
+ LMHOSTSFILE = $(CONFIGDIR)/lmhosts
+
+ # This is where smbpasswd et al go
@@ -424,6 +424,7 @@
VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
VFS_IRIXACL_OBJ = modules/vfs_irixacl.o