1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00

Added creation of the rundir for pid files - thanks to spil.oss@gmail.com

for pointing it out.
This commit is contained in:
Timur I. Bakeyev 2010-02-07 03:02:36 +00:00
parent ec5d34031b
commit d81fffe69d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=249350
3 changed files with 19 additions and 17 deletions

View File

@ -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)

View File

@ -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"

View File

@ -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