aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authortimur <timur@FreeBSD.org>2010-02-07 11:02:36 +0800
committertimur <timur@FreeBSD.org>2010-02-07 11:02:36 +0800
commiteed411185324dcec43ac3a67bbf57283e61da292 (patch)
tree26cfc68a1aa4ff82167a6177f1c4cf5e897cd9e9 /net
parent2ff443d3ee79bbfe303bf94998cc6bf6629de6fe (diff)
downloadfreebsd-ports-gnome-eed411185324dcec43ac3a67bbf57283e61da292.tar.gz
freebsd-ports-gnome-eed411185324dcec43ac3a67bbf57283e61da292.tar.zst
freebsd-ports-gnome-eed411185324dcec43ac3a67bbf57283e61da292.zip
Added creation of the rundir for pid files - thanks to spil.oss@gmail.com
for pointing it out.
Diffstat (limited to 'net')
-rw-r--r--net/samba34/Makefile31
-rw-r--r--net/samba34/files/pkg-deinstall.in2
-rw-r--r--net/samba34/files/pkg-install.in3
3 files changed, 19 insertions, 17 deletions
diff --git a/net/samba34/Makefile b/net/samba34/Makefile
index d2ab2ed21015..c464b45a2eda 100644
--- a/net/samba34/Makefile
+++ b/net/samba34/Makefile
@@ -7,6 +7,7 @@
PORTNAME= samba34
PORTVERSION= 3.4.5
+PORTREVISION?= 1
CATEGORIES?= net
MASTER_SITES= ${MASTER_SITE_SAMBA}
MASTER_SITE_SUBDIR= . old-versions rc pre
@@ -58,7 +59,10 @@ CONFIGURE_ARGS+= --exec-prefix="${PREFIX}" \
--with-pammodulesdir="${SAMBA_LIBDIR}" \
--localstatedir="${VARDIR}" \
--with-piddir="${SAMBA_RUNDIR}" \
+ --with-ncalrpcdir="${SAMBA_RUNDIR}/ncalrpc" \
--with-lockdir="${SAMBA_LOCKDIR}" \
+ --with-statedir="${SAMBA_LOCKDIR}" \
+ --with-cachedir="${SAMBA_LOCKDIR}" \
--with-privatedir="${SAMBA_PRIVATEDIR}" \
--with-logfilebase="${SAMBA_LOGDIR}"
@@ -93,7 +97,7 @@ OPTIONS= LDAP "With LDAP support" on \
UTMP "With UTMP accounting support" off \
PAM_SMBPASS "With PAM authentication vs passdb backends" off \
DNSUPDATE "With dynamic DNS update(require ADS)" off \
- DNSSD "With DNS service discovery support" off \
+ AVAHI "With Bonjour service discovery support" off \
EXP_MODULES "With experimental modules" off \
POPT "With system-wide POPT library" on \
MAX_DEBUG "With maximum debugging" off \
@@ -253,14 +257,13 @@ CONFIGURE_ARGS+= --with-dnsupdate
CONFIGURE_ARGS+= --without-dnsupdate
.endif
-.if defined(WITH_DNSSD)
-CPPFLAGS+= `${PKG_CONFIG} --cflags avahi-compat-libdns_sd`
-DNSSD_LIBS= `${PKG_CONFIG} --libs avahi-compat-libdns_sd`
-LIB_DEPENDS+= dns_sd.1:${PORTSDIR}/net/avahi-libdns
-CONFIGURE_ENV+= DNSSD_LIBS="${DNSSD_LIBS}"
-CONFIGURE_ARGS+= --enable-dnssd
+.if defined(WITH_AVAHI)
+CPPFLAGS+= `${PKG_CONFIG} --cflags avahi-client`
+DNSSD_LIBS= `${PKG_CONFIG} --libs avahi-client`
+LIB_DEPENDS+= avahi-client.3:${PORTSDIR}/net/avahi-app
+CONFIGURE_ARGS+= --enable-avahi
.else
-CONFIGURE_ARGS+= --disable-dnssd
+CONFIGURE_ARGS+= --disable-avahi
.endif
.if !defined(WITHOUT_POPT)
@@ -400,7 +403,7 @@ MAN8+= vfs_dirsort.8
MAN8+= vfs_streams_depot.8
.endif
-PLIST_SUB+= SAMBA_LOGDIR="${SAMBA_LOGDIR}" \
+SAMBA_SUB= SAMBA_LOGDIR="${SAMBA_LOGDIR}" \
SAMBA_LOCKDIR="${SAMBA_LOCKDIR}" \
SAMBA_CONFDIR="${SAMBA_CONFDIR}" \
SAMBA_CONFIG="${SAMBA_CONFIG}" \
@@ -410,14 +413,8 @@ PLIST_SUB+= SAMBA_LOGDIR="${SAMBA_LOGDIR}" \
SAMBA_PRIVATEDIR="${SAMBA_PRIVATEDIR}" \
PKGCONFIGDIR="${PKGCONFIGDIR_REL}"
-SUB_LIST+= SAMBA_LOGDIR="${SAMBA_LOGDIR}" \
- SAMBA_LOCKDIR="${SAMBA_LOCKDIR}" \
- SAMBA_CONFDIR="${SAMBA_CONFDIR}" \
- SAMBA_CONFIG="${SAMBA_CONFIG}" \
- SAMBA_RUNDIR="${SAMBA_RUNDIR}" \
- SAMBA_SWATDIR="${SAMBA_SWATDIR}" \
- SAMBA_SPOOL="${SAMBA_SPOOL}" \
- SAMBA_PRIVATEDIR="${SAMBA_PRIVATEDIR}"
+PLIST_SUB+= ${SAMBA_SUB}
+SUB_LIST+= ${SAMBA_SUB}
ALL_TARGET= all
.if defined(WITH_SMBTORTURE)
diff --git a/net/samba34/files/pkg-deinstall.in b/net/samba34/files/pkg-deinstall.in
index e881cdc438d2..29ecc2cc31b5 100644
--- a/net/samba34/files/pkg-deinstall.in
+++ b/net/samba34/files/pkg-deinstall.in
@@ -6,6 +6,7 @@ SAMBA_CONFIG="%%SAMBA_CONFIG%%"
SAMBA_CONFDIR="%%SAMBA_CONFDIR%%"
SAMBA_SPOOL="%%SAMBA_SPOOL%%"
SAMBA_LOGDIR="%%SAMBA_LOGDIR%%"
+SAMBA_RUNDIR="%%SAMBA_RUNDIR%%"
SAMBA_LOCKDIR="%%SAMBA_LOCKDIR%%"
SAMBA_PRIVATEDIR="%%SAMBA_PRIVATEDIR%%"
SAMBA_OWNER=root
@@ -27,6 +28,7 @@ post-deinstall() {
do
${RM} -f "${SAMBA_LOCKDIR}/${f}"
done
+ ${RMDIR} ${SAMBA_RUNDIR} 2>/dev/null || true
${RMDIR} ${SAMBA_LOCKDIR} 2>/dev/null || true
${RMDIR} ${SAMBA_PRIVATEDIR} 2>/dev/null || true
${ECHO_CMD} "WARNING: If you will *NOT* use this package anymore, please remove the"
diff --git a/net/samba34/files/pkg-install.in b/net/samba34/files/pkg-install.in
index 4272647e0b45..d9d9279e7da0 100644
--- a/net/samba34/files/pkg-install.in
+++ b/net/samba34/files/pkg-install.in
@@ -7,6 +7,7 @@ SAMBA_CONFIG="%%SAMBA_CONFIG%%"
SAMBA_CONFDIR="%%SAMBA_CONFDIR%%"
SAMBA_SPOOL="%%SAMBA_SPOOL%%"
SAMBA_LOGDIR="%%SAMBA_LOGDIR%%"
+SAMBA_RUNDIR="%%SAMBA_RUNDIR%%"
SAMBA_LOCKDIR="%%SAMBA_LOCKDIR%%"
SAMBA_PRIVATEDIR="%%SAMBA_PRIVATEDIR%%"
SAMBA_OWNER=root
@@ -19,12 +20,14 @@ CHOWN="chown"
post-install() {
${MKDIR} ${SAMBA_SPOOL} && ${CHMOD} 1777 ${SAMBA_SPOOL}
${MKDIR} ${SAMBA_LOGDIR} && ${CHMOD} 0755 ${SAMBA_LOGDIR}
+ ${MKDIR} ${SAMBA_RUNDIR} && ${CHMOD} 0755 ${SAMBA_RUNDIR}
${MKDIR} ${SAMBA_LOCKDIR} && ${CHMOD} 0755 ${SAMBA_LOCKDIR}
${MKDIR} ${SAMBA_PRIVATEDIR} && ${CHMOD} 0700 ${SAMBA_PRIVATEDIR}
if [ $(id -u) -eq 0 ]; then
INSTALL_DATA="${INSTALL_DATA} -o ${SAMBA_OWNER} -g ${SAMBA_GROUP}"
${CHOWN} ${SAMBA_OWNER}:${SAMBA_GROUP} ${SAMBA_SPOOL}
${CHOWN} ${SAMBA_OWNER}:${SAMBA_GROUP} ${SAMBA_LOGDIR}
+ ${CHOWN} ${SAMBA_OWNER}:${SAMBA_GROUP} ${SAMBA_RUNDIR}
${CHOWN} ${SAMBA_OWNER}:${SAMBA_GROUP} ${SAMBA_LOCKDIR}
${CHOWN} ${SAMBA_OWNER}:${SAMBA_GROUP} ${SAMBA_PRIVATEDIR}
fi