1995-02-11 13:28:43 -05:00
# New ports collection makefile for: samba
# Date created: 11th Feb 1995
# Whom: gpalmer
#
1999-08-30 10:24:37 -04:00
# $FreeBSD$
1995-02-11 13:28:43 -05:00
#
2004-05-09 16:34:40 -04:00
PORTNAME = samba
2006-07-11 20:16:32 -04:00
PORTVERSION ?= 3.0.23
2005-09-11 15:42:34 -04:00
PORTREVISION ?= 0
2004-05-09 16:34:40 -04:00
PORTEPOCH ?= 1
CATEGORIES ?= net
MASTER_SITES = ${ MASTER_SITE_SAMBA }
2004-08-30 16:41:25 -04:00
MASTER_SITE_SUBDIR = . old-versions rc pre
2004-05-09 16:34:40 -04:00
DISTNAME = ${ PORTNAME } -${ PORTVERSION : S /.p/pre/ : S /.r/rc/ }
MAINTAINER ?= timur@gnu.org
COMMENT ?= A free SMB and CIFS client and server for UNIX
2004-11-23 12:34:51 -05:00
CONFLICTS ?= ja-samba-2.* ja-samba-3.* samba-2.* sharity-light-1.*
2004-05-09 16:34:40 -04:00
USE_ICONV = yes
2006-02-19 15:11:09 -05:00
GNU_CONFIGURE = yes
2006-01-09 11:45:33 -05:00
USE_AUTOTOOLS = autoconf:259 autoheader:259
2004-03-29 14:11:28 -05:00
2004-07-03 08:46:41 -04:00
LATEST_LINK ?= ${ PKGNAMEPREFIX } ${ PORTNAME } 3${ PKGNAMESUFFIX }
2004-05-11 16:30:02 -04:00
EXAMPLESDIR = ${ PREFIX } /share/examples/${ PKGNAMEPREFIX } ${ PORTNAME } ${ PKGNAMESUFFIX }
2004-05-09 16:34:40 -04:00
WRKSRC = ${ WRKDIR } /${ DISTNAME } /source
# directories
VARDIR = ${ DESTDIR } /var
SAMBA_SPOOL ?= ${ VARDIR } /spool/samba
SAMBA_LOGDIR = ${ VARDIR } /log/samba
SAMBA_RUNDIR = ${ VARDIR } /run
2004-05-18 10:52:48 -04:00
SAMBA_LOCKDIR ?= ${ VARDIR } /db/samba
2004-05-09 16:34:40 -04:00
SAMBA_PRIVATE ?= ${ PREFIX } /private
2004-12-21 07:24:03 -05:00
SAMBA_CONFDIR ?= ${ PREFIX } /etc
2004-05-09 16:34:40 -04:00
SAMBA_SWATDIR = ${ PREFIX } /share/swat
2006-02-19 15:11:09 -05:00
SAMBA_LIB = lib
SAMBA_LIBDIR = ${ PREFIX } /${ SAMBA_LIB }
2004-12-21 07:24:03 -05:00
RC_DIR = ${ PREFIX } /etc/rc.d
2004-05-09 16:34:40 -04:00
SAMBA_CONFIG = ${ SAMBA_CONFDIR } /smb.conf
2005-04-11 23:26:56 -04:00
CONFIGURE_TARGET = --build= ${ MACHINE_ARCH } -portbld-freebsd${ OSREL }
2004-11-09 16:34:44 -05:00
2004-05-09 16:34:40 -04:00
CONFIGURE_ARGS += --exec-prefix= ${ PREFIX } \
--localstatedir= ${ VARDIR } \
--with-configdir= ${ SAMBA_CONFDIR } \
2006-07-11 20:16:32 -04:00
--with-pammodulesdir= ${ SAMBA_LIBDIR } \
2004-05-09 16:34:40 -04:00
--with-libdir= ${ SAMBA_LIBDIR } /samba \
--with-swatdir= ${ SAMBA_SWATDIR } \
--with-piddir= ${ SAMBA_RUNDIR } \
--with-lockdir= ${ SAMBA_LOCKDIR } \
--with-privatedir= ${ SAMBA_PRIVATE } \
2005-09-11 15:42:34 -04:00
--with-logfilebase= ${ SAMBA_LOGDIR }
2004-05-09 16:34:40 -04:00
CONFIGURE_ARGS += --with-libiconv= ${ LOCALBASE }
2006-02-19 15:11:09 -05:00
. i f ! d e f i n e d ( S A M B A _ S U B P O R T )
2006-01-09 11:45:33 -05:00
# Samba server itself
2005-07-20 00:17:44 -04:00
OPTIONS = LDAP "With LDAP support" on \
ADS "With Active Directory support" off \
CUPS "With CUPS printing support" on \
2004-03-29 14:11:28 -05:00
WINBIND "With WinBIND support" on \
ACL_SUPPORT "With ACL support" off \
2005-09-11 15:42:34 -04:00
AIO_SUPPORT "With experimental AIO support" off \
2004-03-29 14:11:28 -05:00
SYSLOG "With Syslog support" off \
QUOTAS "With Quota support" off \
UTMP "With UTMP support" on \
MSDFS "With MSDFS support" off \
2006-04-04 23:14:27 -04:00
SMBSH "With SMBSH wrapper for UNIX commands" off \
2006-07-11 20:16:32 -04:00
PAM_SMBPASS "With PAM authentication against passdb backends" off \
2004-12-21 07:24:03 -05:00
EXP_MODULES "With experimental module(s)" off \
2006-04-04 23:14:27 -04:00
POPT "With system-wide POPT library" on
2004-05-09 16:34:40 -04:00
. e n d i f
2004-03-29 14:11:28 -05:00
2004-03-05 09:25:42 -05:00
. i n c l u d e < b s d . p o r t . p r e . m k >
2004-03-02 09:42:30 -05:00
2006-02-19 15:11:09 -05:00
. i f d e f i n e d ( S A M B A _ S U B P O R T )
# Switch off all extra functionality
CONFIGURE_ARGS += --disable-cups --without-winbind --without-syslog \
--without-quotas --without-utmp --without-ldapsam \
2006-04-04 23:14:27 -04:00
--without-pam --without-pam_smbpass \
--without-aio-support
2004-05-09 16:34:40 -04:00
2006-02-19 15:11:09 -05:00
# Dirty hack to work around usage of OPTIONS in slave ports
2006-02-22 03:46:36 -05:00
. i f e x i s t s ( $ { . C U R D I R } / M a k e f i l e . i n c )
. i n c l u d e "${.CURDIR}/Makefile.inc"
2006-02-19 15:11:09 -05:00
. e n d i f
. e l s e
# Samba server itself
2006-07-11 20:16:32 -04:00
USE_RC_SUBR = samba
SUB_FILES = smb.conf.sample
2004-05-09 16:34:40 -04:00
2004-04-06 07:56:20 -04:00
CONFIGURE_ARGS += --with-pam --with-readline --with-sendfile-support \
2006-01-09 11:45:33 -05:00
--without-libsmbclient --without-libmsrpc \
2006-07-11 20:16:32 -04:00
--without-libsmbsharemodes --without-python \
--with-included-iniparser
1999-02-09 10:25:01 -05:00
2005-04-17 12:10:50 -04:00
. i f ! d e f i n e d ( W I T H O U T _ C U P S )
2004-03-05 09:25:42 -05:00
LIB_DEPENDS += cups.2:${ PORTSDIR } /print/cups-base
CONFIGURE_ARGS += --enable-cups
2006-07-11 20:16:32 -04:00
CUPSD = cupsd
2004-03-05 09:25:42 -05:00
. e l s e
CONFIGURE_ARGS += --disable-cups
2006-07-11 20:16:32 -04:00
CUPSD = ""
2004-03-02 09:42:30 -05:00
. e n d i f
2004-03-05 09:25:42 -05:00
. i f d e f i n e d ( W I T H _ S Y S L O G )
CONFIGURE_ARGS += --with-syslog
2004-04-06 07:56:20 -04:00
. e l s e
CONFIGURE_ARGS += --without-syslog
2004-03-02 09:42:30 -05:00
. e n d i f
2004-03-05 09:25:42 -05:00
. i f d e f i n e d ( W I T H _ Q U O T A S )
CONFIGURE_ARGS += --with-quotas
2004-05-09 16:34:40 -04:00
. e l s e
CONFIGURE_ARGS += --without-quotas
2004-03-02 09:42:30 -05:00
. e n d i f
2004-03-05 09:25:42 -05:00
. i f d e f i n e d ( W I T H O U T _ U T M P )
CONFIGURE_ARGS += --without-utmp
2004-03-02 09:42:30 -05:00
. e n d i f
2004-03-05 09:25:42 -05:00
. i f d e f i n e d ( W I T H _ M S D F S )
CONFIGURE_ARGS += --with-msdfs
. e n d i f
. i f ! d e f i n e d ( W I T H O U T _ W I N B I N D )
CONFIGURE_ARGS += --with-winbind
PLIST_SUB += WINBIND = ""
2006-07-11 20:16:32 -04:00
SUB_LIST += WINBIND = ""
2004-03-13 05:39:59 -05:00
. i f $ { O S V E R S I O N } > = 5 0 0 1 1 2
WITH_WINBIND_NSS = yes
. e n d i f
2004-03-05 09:25:42 -05:00
. e l s e
CONFIGURE_ARGS += --without-winbind
PLIST_SUB += WINBIND = "@comment "
2006-07-11 20:16:32 -04:00
SUB_LIST += WINBIND = "@comment "
2004-03-05 09:25:42 -05:00
. e n d i f
2004-03-13 05:39:59 -05:00
. i f d e f i n e d ( W I T H _ W I N B I N D _ N S S )
PLIST_SUB += WINBIND_NSS = ""
2004-03-05 09:25:42 -05:00
. e l s e
2004-03-13 05:39:59 -05:00
PLIST_SUB += WINBIND_NSS = "@comment "
2004-03-02 09:42:30 -05:00
. e n d i f
2004-03-05 09:25:42 -05:00
2004-03-13 05:39:59 -05:00
. i f ! d e f i n e d ( W I T H O U T _ L D A P )
WANT_LDAP = yes
. e n d i f
2002-07-11 09:32:55 -04:00
2004-12-21 07:24:03 -05:00
. i f d e f i n e d ( W I T H _ E X P _ M O D U L E S )
. i f ! d e f i n e d ( W A N T _ E X P _ M O D U L E S ) | | e m p t y ( W A N T _ E X P _ M O D U L E S )
2005-09-11 15:42:34 -04:00
WANT_EXP_MODULES = rpc_echo idmap_ad idmap_rid charset_weird
2004-12-21 07:24:03 -05:00
. e n d i f
2006-02-19 15:11:09 -05:00
WANT_EXP_MODULES != ${ ECHO_CMD } ${ WANT_EXP_MODULES } | ${ SED } -E 's/ +/,/g'
2004-12-21 07:24:03 -05:00
CONFIGURE_ARGS += --with-shared-modules= ${ WANT_EXP_MODULES }
. e n d i f
2004-05-09 16:34:40 -04:00
. i f d e f i n e d ( W I T H _ P A M _ S M B P A S S )
CONFIGURE_ARGS += --with-pam_smbpass
PLIST_SUB += SMBPASS = ""
. e l s e
CONFIGURE_ARGS += --without-pam_smbpass
PLIST_SUB += SMBPASS = "@comment "
. e n d i f
. i f d e f i n e d ( W I T H _ A C L _ S U P P O R T )
. i f $ { O S V E R S I O N } < 5 0 0 0 1 8
2006-04-04 23:14:27 -04:00
BROKEN = ACL support requires FreeBSD 5.x at least after 20010326
2004-05-09 16:34:40 -04:00
. e l s e
CONFIGURE_ARGS += --with-acl-support
. e n d i f
. e n d i f
2006-04-04 23:14:27 -04:00
. i f d e f i n e d ( W I T H _ S M B S H )
IGNORE = broken IPC and code
CONFIGURE_ARGS += --with-smbwrapper
PLIST_SUB += SMBSH = ""
. e l s e
PLIST_SUB += SMBSH = "@comment "
. e n d i f
2005-09-11 15:42:34 -04:00
. i f d e f i n e d ( W I T H _ A I O _ S U P P O R T )
2006-04-04 23:14:27 -04:00
IGNORE = broken kernel API until now ( 7-CURRENT)
2006-07-11 20:16:32 -04:00
CONFIGURE_ARGS += --with-aio-support
2005-09-11 15:42:34 -04:00
. e n d i f
2004-05-09 16:34:40 -04:00
. i f ! d e f i n e d ( W I T H O U T _ P O P T )
LIB_DEPENDS += popt.0:${ PORTSDIR } /devel/popt
. e l s e
CONFIGURE_ARGS += --with-included-popt
. e n d i f
2006-02-19 15:11:09 -05:00
# !SAMBA_SUBPORT
. e n d i f
2004-11-23 12:34:51 -05:00
2006-02-19 15:11:09 -05:00
###
### Common part for port and it's subports
###
2005-07-20 00:17:44 -04:00
# For 4.8 - 4.11 combination of Kerberos and OpenLDAP is broken
# due the conflict between system and OpenSSL port libcrypto libraries
. i f $ { O S V E R S I O N } > 4 7 0 1 0 3 & & $ { O S V E R S I O N } < 5 0 0 0 0 0
. i f d e f i n e d ( W I T H _ A D S )
2006-01-09 11:45:33 -05:00
IGNORE = broken dependency between OpenSSL, OpenLDAP and Heimdal for FreeBSD 4.x. Disable ADS support
2005-07-20 00:17:44 -04:00
. e n d i f
WITHOUT_ADS = on
. e n d i f
2005-09-11 15:42:34 -04:00
. i f ! d e f i n e d ( W I T H O U T _ A D S )
2004-05-09 16:34:40 -04:00
WANT_LDAP = yes
WANT_KRB5 = yes
CONFIGURE_ARGS += --with-ads
. e l s e
CONFIGURE_ARGS += --without-ads
. e n d i f
2004-03-13 05:39:59 -05:00
# Kerberos5 is necessary for ADS
. i f d e f i n e d ( W A N T _ K R B 5 )
2004-04-12 12:45:41 -04:00
. i f d e f i n e d ( K R B 5 _ H O M E ) & & e x i s t s ( $ { K R B 5 _ H O M E } / l i b / l i b g s s a p i _ k r b 5 . a )
2004-03-13 05:39:59 -05:00
CONFIGURE_ARGS += --with-krb5= ${ KRB5_HOME }
. e l i f d e f i n e d ( H E I M D A L _ H O M E ) & & e x i s t s ( $ { H E I M D A L _ H O M E } / l i b / l i b g s s a p i . a )
CONFIGURE_ARGS += --with-krb5= ${ HEIMDAL_HOME }
2004-12-21 07:24:03 -05:00
. e l i f e x i s t s ( $ { D E S T D I R } / u s r / l i b / l i b k r b 5 . a ) & & e x i s t s ( $ { D E S T D I R } / u s r / b i n / k r b 5 - c o n f i g )
2004-03-13 05:39:59 -05:00
CONFIGURE_ARGS += --with-krb5= ${ DESTDIR } /usr
. e l s e
2004-05-11 15:23:16 -04:00
LIB_DEPENDS += krb5:${ PORTSDIR } /security/heimdal
CONFIGURE_ARGS += --with-krb5= ${ LOCALBASE }
2004-03-13 05:39:59 -05:00
. e n d i f
. e l s e
CONFIGURE_ARGS += --without-krb5
. e n d i f
2004-03-05 09:25:42 -05:00
. i f d e f i n e d ( W A N T _ L D A P )
USE_OPENLDAP = yes
2004-04-06 07:56:20 -04:00
CONFIGURE_ARGS += --with-ldap
. e l s e
CONFIGURE_ARGS += --without-ldap
2002-07-11 09:32:55 -04:00
. e n d i f
2006-02-19 15:11:09 -05:00
. i f ! d e f i n e d ( S A M B A _ S U B P O R T )
# Samba server itself
2005-09-11 15:42:34 -04:00
MAN1 = findsmb.1 log2pcap.1 nmblookup.1 ntlm_auth.1 profiles.1 \
rpcclient.1 smbcacls.1 smbclient.1 smbcontrol.1 smbcquotas.1 \
2006-04-04 23:14:27 -04:00
smbget.1 smbstatus.1 smbtar.1 smbtree.1 testparm.1 vfstest.1
2004-09-01 12:23:29 -04:00
MAN5 = lmhosts.5 smb.conf.5 smbgetrc.5 smbpasswd.5
2004-02-02 13:18:44 -05:00
MAN7 = samba.7
2006-01-09 11:45:33 -05:00
MAN8 = net.8 nmbd.8 pdbedit.8 smbd.8 smbpasswd.8 smbspool.8 \
swat.8 tdbbackup.8 tdbdump.8
2006-04-04 23:14:27 -04:00
. i f d e f i n e d ( W I T H _ S M B S H )
MAN1 += smbsh.1
. e n d i f
2004-03-05 09:25:42 -05:00
. i f ! d e f i n e d ( W I T H O U T _ W I N B I N D )
MAN1 += wbinfo.1
2006-01-09 11:45:33 -05:00
MAN7 += pam_winbind.7
MAN8 += winbindd.8
2004-03-02 09:42:30 -05:00
. e n d i f
2004-03-05 09:25:42 -05:00
PLIST_SUB += RC_DIR = ${ RC_DIR } \
2004-04-20 12:15:05 -04:00
SAMBA_LOGDIR = ${ SAMBA_LOGDIR } \
2004-12-21 07:24:03 -05:00
SAMBA_LOCKDIR = ${ SAMBA_LOCKDIR } \
SAMBA_CONFIG = ${ SAMBA_CONFIG }
2004-03-05 09:25:42 -05:00
2006-07-11 20:16:32 -04:00
SUB_LIST += CUPSD = ${ CUPSD } \
2004-04-20 12:15:05 -04:00
SAMBA_CONFDIR = ${ SAMBA_CONFDIR } \
2004-03-05 09:25:42 -05:00
SAMBA_CONFIG = ${ SAMBA_CONFIG } \
2004-04-20 12:15:05 -04:00
SAMBA_LOGDIR = ${ SAMBA_LOGDIR } \
SAMBA_RUNDIR = ${ SAMBA_RUNDIR } \
SAMBA_LOCKDIR = ${ SAMBA_LOCKDIR } \
SAMBA_SPOOL = ${ SAMBA_SPOOL }
1997-10-23 10:13:33 -04:00
2006-07-11 20:16:32 -04:00
PLIST_SUB += SMBSH = "@comment "
2004-03-13 05:39:59 -05:00
pre-fetch :
2004-04-06 07:56:20 -04:00
@${ ECHO_MSG } "===> -------------------------------------------"
@${ ECHO_MSG } "===> Run 'make config' to (re)configure the port"
@${ ECHO_MSG } "===> -------------------------------------------"
2004-03-13 05:39:59 -05:00
2004-04-20 12:15:05 -04:00
post-patch :
2005-02-07 00:15:17 -05:00
@${ RM } -rf ${ WRKDIR } /${ DISTNAME } /examples/LDAP/smbldap-tools-*
2004-05-09 16:34:40 -04:00
@${ RM } -rf ${ WRKDIR } /${ DISTNAME } /examples/libsmbclient
2006-01-09 11:45:33 -05:00
@${ RM } -rf ${ WRKDIR } /${ DISTNAME } /examples/libmsrpc
2004-12-21 07:24:03 -05:00
@${ RM } -rf ${ WRKDIR } /${ DISTNAME } /swat/lang
2006-01-09 11:45:33 -05:00
@${ RM } -f ${ WRKDIR } /${ DISTNAME } /docs/htmldocs/manpages/libsmbclient.7.html
2005-02-07 00:15:17 -05:00
@${ FIND } ${ WRKSRC } -name CVS -o -name .cvsignore | ${ XARGS } ${ RM }
2005-03-20 04:29:05 -05:00
@${ FIND } ${ WRKDIR } /${ DISTNAME } -type d | ${ XARGS } ${ CHMOD } u+w,a+rx
@${ FIND } ${ WRKDIR } /${ DISTNAME } -type f | ${ XARGS } ${ CHMOD } u+w,a+r
2004-12-21 07:24:03 -05:00
pre-install :
2006-02-19 15:11:09 -05:00
-@${ FIND } ${ SAMBA_LIBDIR } /samba -type f 2>/dev/null | ${ SORT } | ${ SED } -E 's|^${PREFIX}/?||;' >> ${ WRKDIR } /.PLIST.exclude
2004-04-20 12:15:05 -04:00
1997-10-23 10:13:33 -04:00
post-install :
2004-03-05 09:25:42 -05:00
. f o r s e c t i n 1 5 7 8
@${ MKDIR } ${ MAN ${ sect } PREFIX } /man/man${ sect }
. f o r m a n i n $ { M A N $ { s e c t } }
@${ INSTALL_MAN } ${ WRKDIR } /${ DISTNAME } /docs/manpages/${ man } ${ MAN ${ sect } PREFIX } /man/man${ sect }
. e n d f o r
. e n d f o r
@${ MKDIR } ${ EXAMPLESDIR }
@${ CP } -Rp ${ WRKDIR } /${ DISTNAME } /examples/* ${ EXAMPLESDIR }
. i f d e f i n e d ( W I T H _ P A M _ S M B P A S S )
@${ MKDIR } ${ EXAMPLESDIR } /pam_smbpass
@${ CP } -Rp ${ WRKSRC } /pam_smbpass/samples/* ${ EXAMPLESDIR } /pam_smbpass
. e n d i f
2006-07-11 20:16:32 -04:00
${ INSTALL_DATA } ${ WRKDIR } /smb.conf.sample ${ SAMBA_CONFDIR }
@if [ ! -f ${ SAMBA_CONFIG } ] ; then \
${ INSTALL_DATA } ${ WRKDIR } /smb.conf.sample ${ SAMBA_CONFIG } ; \
fi
2004-03-05 09:25:42 -05:00
${ INSTALL_SCRIPT } ${ WRKSRC } /script/mksmbpasswd.sh ${ PREFIX } /bin/make_smbpasswd
2004-12-21 07:24:03 -05:00
. i f ! d e f i n e d ( W I T H O U T _ W I N B I N D )
. i f d e f i n e d ( W I T H _ W I N B I N D _ N S S )
${ INSTALL_PROGRAM } ${ WRKSRC } /nsswitch/nss_winbind.so ${ SAMBA_LIBDIR } /nss_winbind.so.1
${ INSTALL_PROGRAM } ${ WRKSRC } /nsswitch/nss_wins.so ${ SAMBA_LIBDIR } /nss_wins.so.1
2006-07-11 20:16:32 -04:00
@${ ECHO_CMD } " ${ SAMBA_LIB } /nss_winbind.so.1 " >> ${ TMPPLIST } ;
@${ ECHO_CMD } " ${ SAMBA_LIB } /nss_wins.so.1 " >> ${ TMPPLIST } ;
2004-12-21 07:24:03 -05:00
. e n d i f
2006-07-11 20:16:32 -04:00
${ INSTALL_PROGRAM } ${ WRKSRC } /bin/pam_winbind.so ${ SAMBA_LIBDIR }
@${ ECHO_CMD } " ${ SAMBA_LIB } /pam_winbind.so " >> ${ TMPPLIST } ;
2004-12-21 07:24:03 -05:00
. e n d i f
. i f d e f i n e d ( W I T H _ P A M _ S M B P A S S )
2006-04-04 23:14:27 -04:00
${ INSTALL_PROGRAM } ${ WRKSRC } /bin/pam_smbpass.so ${ SAMBA_LIBDIR }
2006-07-11 20:16:32 -04:00
@${ ECHO_CMD } " ${ SAMBA_LIB } /pam_smbpass.so " >> ${ TMPPLIST } ;
2004-12-21 07:24:03 -05:00
. e n d i f
2006-04-04 23:14:27 -04:00
# smbwrapper.so
. i f d e f i n e d ( W I T H _ S M B S H )
${ INSTALL_PROGRAM } ${ WRKSRC } /bin/smbsh ${ PREFIX } /bin
${ INSTALL_PROGRAM } ${ WRKSRC } /bin/smbwrapper.so ${ SAMBA_LIBDIR } /samba
. e n d i f
2004-12-21 07:24:03 -05:00
# Lib
2006-02-19 15:11:09 -05:00
@${ FIND } ${ SAMBA_LIBDIR } /samba -type f | ${ SED } -E 's|^${PREFIX}/?||;' | ${ EGREP } -F -v -f ${ WRKDIR } /.PLIST.exclude | ${ SORT } >> ${ TMPPLIST }
2004-12-21 07:24:03 -05:00
@for d in ` ${ FIND } ${ SAMBA_LIBDIR } /samba -type d | ${ SORT } -r` ; do \
${ ECHO_CMD } " @unexec ${ RMDIR } $$ d 2>/dev/null || true " >> ${ TMPPLIST } ; \
done
2004-05-09 16:34:40 -04:00
# Spool
2004-04-20 12:15:05 -04:00
@test -d ${ SAMBA_SPOOL } || ${ MKDIR } ${ SAMBA_SPOOL } && \
${ CHMOD } 1777 ${ SAMBA_SPOOL } && ${ CHOWN } root:wheel ${ SAMBA_SPOOL }
@${ ECHO_CMD } " @exec ${ MKDIR } ${ SAMBA_SPOOL } 2>/dev/null || true " >> ${ TMPPLIST }
@${ ECHO_CMD } " @exec ${ CHMOD } 1777 ${ SAMBA_SPOOL } " >> ${ TMPPLIST }
@${ ECHO_CMD } " @exec ${ CHOWN } root:wheel ${ SAMBA_SPOOL } " >> ${ TMPPLIST }
@${ ECHO_CMD } " @unexec ${ RM } -rf ${ SAMBA_SPOOL } " >> ${ TMPPLIST }
2004-05-09 16:34:40 -04:00
# Logdir
2004-04-20 12:15:05 -04:00
@test -d ${ SAMBA_LOGDIR } || ${ MKDIR } ${ SAMBA_LOGDIR } && \
${ CHMOD } 0755 ${ SAMBA_LOGDIR } && ${ CHOWN } root:wheel ${ SAMBA_LOGDIR }
@${ ECHO_CMD } " @exec ${ MKDIR } ${ SAMBA_LOGDIR } 2>/dev/null || true " >> ${ TMPPLIST }
@${ ECHO_CMD } " @exec ${ CHMOD } 0755 ${ SAMBA_LOGDIR } " >> ${ TMPPLIST }
@${ ECHO_CMD } " @exec ${ CHOWN } root:wheel ${ SAMBA_LOGDIR } " >> ${ TMPPLIST }
@${ ECHO_CMD } " @unexec ${ RMDIR } ${ SAMBA_LOGDIR } 2>/dev/null || true " >> ${ TMPPLIST }
@${ ECHO_CMD } " @unexec ${ ECHO_CMD } \"Warning: If you will *NOT* use this package anymore, please remove ${ SAMBA_LOGDIR } /* manually.\" " >> ${ TMPPLIST }
2004-05-09 16:34:40 -04:00
# Lockdir
2004-04-20 12:15:05 -04:00
@test -d ${ SAMBA_LOCKDIR } || ${ MKDIR } ${ SAMBA_LOCKDIR } && \
${ CHMOD } 0755 ${ SAMBA_LOCKDIR } && ${ CHOWN } root:wheel ${ SAMBA_LOCKDIR }
@${ ECHO_CMD } " @exec ${ MKDIR } ${ SAMBA_LOCKDIR } 2>/dev/null || true " >> ${ TMPPLIST }
@${ ECHO_CMD } " @exec ${ CHMOD } 0755 ${ SAMBA_LOCKDIR } " >> ${ TMPPLIST }
@${ ECHO_CMD } " @exec ${ CHOWN } root:wheel ${ SAMBA_LOCKDIR } " >> ${ TMPPLIST }
2005-04-17 12:10:50 -04:00
@${ ECHO_CMD } " @unexec for f in connections.tdb locking.tdb messages.tdb sessionid.tdb unexpected.tdb brlock.tdb namelist.debug; do ${ RM } -f ${ SAMBA_LOCKDIR } /\$ ${ f } ; done " >> ${ TMPPLIST }
2004-04-20 12:15:05 -04:00
@${ ECHO_CMD } " @unexec ${ RMDIR } ${ SAMBA_LOCKDIR } 2>/dev/null || true " >> ${ TMPPLIST }
@${ ECHO_CMD } " @unexec ${ ECHO_CMD } \"Warning: If you will *NOT* use this package anymore, please remove ${ SAMBA_LOCKDIR } /* manually.\" " >> ${ TMPPLIST }
2004-05-09 16:34:40 -04:00
# Private
2004-04-20 12:15:05 -04:00
@test -d ${ SAMBA_PRIVATE } || ${ MKDIR } ${ SAMBA_PRIVATE } && \
${ CHMOD } 700 ${ SAMBA_PRIVATE } && ${ CHOWN } root:wheel ${ SAMBA_PRIVATE }
2004-03-05 09:25:42 -05:00
@${ ECHO_CMD } " @exec ${ MKDIR } ${ SAMBA_PRIVATE } 2>/dev/null || true " >> ${ TMPPLIST }
2004-04-06 07:56:20 -04:00
@${ ECHO_CMD } " @exec ${ CHMOD } 700 ${ SAMBA_PRIVATE } " >> ${ TMPPLIST }
2004-04-20 12:15:05 -04:00
@${ ECHO_CMD } " @exec ${ CHOWN } root:wheel ${ SAMBA_PRIVATE } " >> ${ TMPPLIST }
@${ ECHO_CMD } " @unexec ${ RMDIR } ${ SAMBA_PRIVATE } 2>/dev/null || true " >> ${ TMPPLIST }
@${ ECHO_CMD } " @unexec ${ ECHO_CMD } \"Warning: If you will *NOT* use this package anymore, please remove ${ SAMBA_PRIVATE } /* manually.\" " >> ${ TMPPLIST }
1999-01-17 21:34:06 -05:00
. i f ! d e f i n e d ( N O P O R T D O C S )
2001-07-09 23:29:57 -04:00
@${ MKDIR } ${ DOCSDIR }
2004-05-11 16:30:02 -04:00
@${ CP } -Rp ${ WRKDIR } /${ DISTNAME } /docs/registry ${ DOCSDIR }
2005-09-11 15:42:34 -04:00
. f o r f i n S a m b a 3 - B y E x a m p l e . p d f S a m b a 3 - H O W T O . p d f S a m b a 3 - D e v e l o p e r s - G u i d e . p d f
2004-09-01 12:23:29 -04:00
@${ INSTALL_DATA } ${ WRKDIR } /${ DISTNAME } /docs/${ f } ${ DOCSDIR }
2004-05-11 16:30:02 -04:00
. e n d f o r
2001-07-09 23:29:57 -04:00
@${ INSTALL_DATA } ${ FILESDIR } /README.FreeBSD ${ DOCSDIR }
2004-05-11 16:30:02 -04:00
. f o r f i n R E A D M E C O P Y I N G M a n i f e s t R e a d - M a n i f e s t - N o w R o a d m a p \
WHATSNEW.txt docs/THANKS docs/history
@${ INSTALL_DATA } ${ WRKDIR } /${ DISTNAME } /${ f } ${ DOCSDIR }
. e n d f o r
2006-01-09 11:45:33 -05:00
# !NOPORTDOCS
1999-01-17 21:34:06 -05:00
. e n d i f
2004-04-06 07:56:20 -04:00
@${ CAT } ${ PKGMESSAGE }
2004-05-09 16:34:40 -04:00
# !SAMBA_SUBPORT
2004-03-29 14:11:28 -05:00
. e n d i f
2004-05-09 16:34:40 -04:00
. i n c l u d e < b s d . p o r t . p o s t . m k >