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
|
2004-07-22 10:38:05 -04:00
|
|
|
PORTVERSION= 3.0.5
|
|
|
|
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
|
|
|
|
|
|
|
|
CONFLICTS?= ja-samba-2.* samba-2.* sharity-light-1.*
|
|
|
|
|
|
|
|
USE_ICONV= yes
|
2004-05-18 10:52:48 -04:00
|
|
|
USE_AUTOCONF_VER= 253
|
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-07-03 08:46:41 -04:00
|
|
|
SAMBA_CONFDIR= ${PREFIX}/etc
|
2004-05-09 16:34:40 -04:00
|
|
|
SAMBA_SWATDIR= ${PREFIX}/share/swat
|
|
|
|
SAMBA_LIBDIR= ${PREFIX}/lib
|
2004-07-03 08:46:41 -04:00
|
|
|
RC_DIR= ${SAMBA_CONFDIR}/rc.d
|
2004-05-09 16:34:40 -04:00
|
|
|
SAMBA_CONFIG= ${SAMBA_CONFDIR}/smb.conf
|
|
|
|
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \
|
|
|
|
LDFLAGS=-L${LOCALBASE}/lib
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --exec-prefix=${PREFIX} \
|
|
|
|
--localstatedir=${VARDIR} \
|
|
|
|
--with-configdir=${SAMBA_CONFDIR} \
|
|
|
|
--with-libdir=${SAMBA_LIBDIR}/samba \
|
|
|
|
--with-swatdir=${SAMBA_SWATDIR} \
|
|
|
|
--with-piddir=${SAMBA_RUNDIR} \
|
|
|
|
--with-lockdir=${SAMBA_LOCKDIR} \
|
|
|
|
--with-privatedir=${SAMBA_PRIVATE} \
|
|
|
|
--with-logfilebase=${SAMBA_LOGDIR} \
|
|
|
|
--with-manpages-langs=en
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --with-libiconv=${LOCALBASE}
|
|
|
|
|
|
|
|
.if !defined(SAMBA_SUBPORT)
|
2004-05-18 10:52:48 -04:00
|
|
|
OPTIONS= LDAP "With LDAP support" on \
|
|
|
|
ADS "With Active Directory support" on \
|
|
|
|
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 \
|
|
|
|
SYSLOG "With Syslog support" off \
|
|
|
|
QUOTAS "With Quota support" off \
|
|
|
|
UTMP "With UTMP support" on \
|
|
|
|
MSDFS "With MSDFS support" off \
|
|
|
|
SAM_XML "With XML smbpasswd backend" off \
|
|
|
|
SAM_MYSQL "With MYSQL smbpasswd backend" off \
|
|
|
|
SAM_PGSQL "With PostgreSQL smbpasswd backend" off \
|
|
|
|
SAM_OLD_LDAP "With Samba2.x LDAP smbpasswd backend" off \
|
|
|
|
PAM_SMBPASS "With SMB PAM module" off \
|
2004-06-03 03:57:07 -04:00
|
|
|
POPT "With installed POPT library" on \
|
|
|
|
I18N "With i18n patch" off
|
2004-05-09 16:34:40 -04:00
|
|
|
.endif
|
2004-03-29 14:11:28 -05:00
|
|
|
|
2004-03-05 09:25:42 -05:00
|
|
|
.include <bsd.port.pre.mk>
|
2004-03-02 09:42:30 -05:00
|
|
|
|
2004-05-09 16:34:40 -04:00
|
|
|
.if !defined(SAMBA_SUBPORT)
|
|
|
|
|
|
|
|
USE_RC_SUBR= yes
|
|
|
|
|
2004-04-06 07:56:20 -04:00
|
|
|
CONFIGURE_ARGS+= --with-pam --with-readline --with-sendfile-support \
|
2004-05-09 16:34:40 -04:00
|
|
|
--without-libsmbclient --without-python
|
1999-02-09 10:25:01 -05:00
|
|
|
|
2004-03-05 09:25:42 -05:00
|
|
|
.if defined(WITH_CUPS)
|
|
|
|
LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base
|
|
|
|
CONFIGURE_ARGS+= --enable-cups
|
|
|
|
CUPS= cups
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-cups
|
|
|
|
CUPS= ""
|
2004-03-02 09:42:30 -05:00
|
|
|
.endif
|
2004-03-05 09:25:42 -05:00
|
|
|
|
|
|
|
.if defined(WITH_SYSLOG)
|
|
|
|
CONFIGURE_ARGS+= --with-syslog
|
2004-04-06 07:56:20 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-syslog
|
2004-03-02 09:42:30 -05:00
|
|
|
.endif
|
|
|
|
|
2004-03-05 09:25:42 -05:00
|
|
|
.if defined(WITH_QUOTAS)
|
|
|
|
CONFIGURE_ARGS+= --with-quotas
|
2004-05-09 16:34:40 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-quotas
|
2004-03-02 09:42:30 -05:00
|
|
|
.endif
|
2004-03-05 09:25:42 -05:00
|
|
|
|
|
|
|
.if defined(WITHOUT_UTMP)
|
|
|
|
CONFIGURE_ARGS+= --without-utmp
|
2004-03-02 09:42:30 -05:00
|
|
|
.endif
|
|
|
|
|
2004-03-05 09:25:42 -05:00
|
|
|
.if defined(WITH_MSDFS)
|
|
|
|
CONFIGURE_ARGS+= --with-msdfs
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_WINBIND)
|
|
|
|
CONFIGURE_ARGS+= --with-winbind
|
|
|
|
PLIST_SUB+= WINBIND=""
|
2004-03-13 05:39:59 -05:00
|
|
|
.if ${OSVERSION} >= 500112
|
|
|
|
WITH_WINBIND_NSS= yes
|
|
|
|
.endif
|
2004-03-05 09:25:42 -05:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-winbind
|
|
|
|
PLIST_SUB+= WINBIND="@comment "
|
|
|
|
.endif
|
|
|
|
|
2004-03-13 05:39:59 -05:00
|
|
|
.if defined(WITH_WINBIND_NSS)
|
|
|
|
PLIST_SUB+= WINBIND_NSS=""
|
2004-03-05 09:25:42 -05:00
|
|
|
.else
|
2004-03-13 05:39:59 -05:00
|
|
|
PLIST_SUB+= WINBIND_NSS="@comment "
|
2004-03-02 09:42:30 -05:00
|
|
|
.endif
|
2004-03-05 09:25:42 -05:00
|
|
|
|
2004-03-13 05:39:59 -05:00
|
|
|
.if !defined(WITHOUT_LDAP)
|
|
|
|
WANT_LDAP= yes
|
|
|
|
.endif
|
2004-03-05 09:25:42 -05:00
|
|
|
# SAM
|
|
|
|
.if defined(WITH_SAM_XML)
|
|
|
|
LIB_DEPENDS+= xml2.5:${PORTSDIR}/textproc/libxml2
|
|
|
|
CONFIGURE_ARGS+= --with-xml-prefix=${LOCALBASE}
|
|
|
|
WANT_EXPSAM_MODULES+= xml
|
|
|
|
PLIST_SUB+= SAMXML=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SAMXML="@comment "
|
2004-03-02 09:42:30 -05:00
|
|
|
.endif
|
|
|
|
|
2004-03-05 09:25:42 -05:00
|
|
|
.if defined(WITH_SAM_MYSQL)
|
|
|
|
USE_MYSQL= yes
|
|
|
|
CONFIGURE_ARGS+= --with-mysql-prefix=${LOCALBASE}
|
|
|
|
WANT_EXPSAM_MODULES+= mysql
|
|
|
|
PLIST_SUB+= SAMMYSQL=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SAMMYSQL="@comment "
|
2002-07-11 09:32:55 -04:00
|
|
|
.endif
|
|
|
|
|
2004-03-05 09:25:42 -05:00
|
|
|
.if defined(WITH_SAM_PGSQL)
|
2004-05-25 05:19:42 -04:00
|
|
|
LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql7
|
2004-03-05 09:25:42 -05:00
|
|
|
CONFIGURE_ARGS+= --with-pgsql-prefix=${LOCALBASE}
|
|
|
|
WANT_EXPSAM_MODULES+= pgsql
|
|
|
|
PLIST_SUB+= SAMPGSQL=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SAMPGSQL="@comment "
|
2004-03-02 09:42:30 -05:00
|
|
|
.endif
|
|
|
|
|
2004-03-05 09:25:42 -05:00
|
|
|
.if defined(WITH_SAM_OLD_LDAP)
|
|
|
|
WANT_LDAP= yes
|
|
|
|
CONFIGURE_ARGS+= --with-ldapsam
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-ldapsam
|
2002-07-11 09:32:55 -04:00
|
|
|
.endif
|
|
|
|
|
2004-03-05 09:25:42 -05:00
|
|
|
.if defined(WANT_EXPSAM_MODULES) && !empty(WANT_EXPSAM_MODULES)
|
|
|
|
WANT_EXPSAM_MODULES!= ${ECHO_CMD} ${WANT_EXPSAM_MODULES} | ${SED} -e 's/ /,/g'
|
|
|
|
CONFIGURE_ARGS+= --with-expsam=${WANT_EXPSAM_MODULES}
|
2002-07-11 09:32:55 -04:00
|
|
|
.endif
|
2004-03-05 09:25:42 -05:00
|
|
|
# SAM
|
2004-05-09 16:34:40 -04:00
|
|
|
.if defined(WITH_PAM_SMBPASS)
|
|
|
|
CONFIGURE_ARGS+= --with-pam_smbpass
|
|
|
|
PLIST_SUB+= SMBPASS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-pam_smbpass
|
|
|
|
PLIST_SUB+= SMBPASS="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_ACL_SUPPORT)
|
|
|
|
.if ${OSVERSION} < 500018
|
|
|
|
BROKEN= "Requires FreeBSD 5.x at least after 20010326"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-acl-support
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_POPT)
|
|
|
|
LIB_DEPENDS+= popt.0:${PORTSDIR}/devel/popt
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-included-popt
|
|
|
|
.endif
|
|
|
|
# !SAMBA_SUBPORT
|
|
|
|
.endif
|
2002-07-11 09:32:55 -04:00
|
|
|
|
2004-05-09 16:34:40 -04:00
|
|
|
# Common part
|
2004-05-18 10:52:48 -04:00
|
|
|
.if defined(WITH_ADS)
|
2004-05-09 16:34:40 -04:00
|
|
|
WANT_LDAP= yes
|
|
|
|
WANT_KRB5= yes
|
|
|
|
CONFIGURE_ARGS+= --with-ads
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-ads
|
|
|
|
.endif
|
2004-03-13 05:39:59 -05:00
|
|
|
# Kerberos5 is necessary for ADS
|
|
|
|
.if defined(WANT_KRB5)
|
2004-04-12 12:45:41 -04:00
|
|
|
.if defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libgssapi_krb5.a)
|
2004-03-13 05:39:59 -05:00
|
|
|
CONFIGURE_ARGS+= --with-krb5=${KRB5_HOME}
|
|
|
|
.elif defined(HEIMDAL_HOME) && exists(${HEIMDAL_HOME}/lib/libgssapi.a)
|
|
|
|
CONFIGURE_ARGS+= --with-krb5=${HEIMDAL_HOME}
|
2004-05-18 10:52:48 -04:00
|
|
|
.elif ( defined(MAKE_KERBEROS5) || ${OSVERSION} > 500105 ) && exists(${DESTDIR}/usr/lib/libkrb5.a)
|
2004-03-13 05:39:59 -05:00
|
|
|
CONFIGURE_ARGS+= --with-krb5=${DESTDIR}/usr
|
|
|
|
.else
|
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
|
|
|
.endif
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-krb5
|
|
|
|
.endif
|
|
|
|
|
2004-03-05 09:25:42 -05:00
|
|
|
.if defined(WANT_LDAP)
|
|
|
|
USE_OPENLDAP= yes
|
2004-04-06 07:56:20 -04:00
|
|
|
CONFIGURE_ARGS+= --with-ldap
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-ldap
|
2002-07-11 09:32:55 -04:00
|
|
|
.endif
|
|
|
|
|
2004-05-09 16:34:40 -04:00
|
|
|
.if !defined(SAMBA_SUBPORT)
|
2004-01-10 06:12:50 -05:00
|
|
|
|
2004-03-05 09:25:42 -05:00
|
|
|
MAN1= findsmb.1 nmblookup.1 log2pcap.1 rpcclient.1 \
|
|
|
|
smbget.1 smbcacls.1 smbclient.1 smbcontrol.1 smbsh.1 \
|
|
|
|
smbstatus.1 smbtar.1 testparm.1 testprns.1 vfstest.1 \
|
|
|
|
ntlm_auth.1 profiles.1 smbcquotas.1 smbtree.1
|
2001-02-12 06:02:48 -05:00
|
|
|
MAN5= lmhosts.5 smb.conf.5 smbpasswd.5
|
2004-02-02 13:18:44 -05:00
|
|
|
MAN7= samba.7
|
2004-03-05 09:25:42 -05:00
|
|
|
MAN8= nmbd.8 smbd.8 net.8 pdbedit.8 smbpasswd.8 smbspool.8 \
|
|
|
|
swat.8 tdbdump.8 tdbbackup.8
|
|
|
|
.if !defined(WITHOUT_WINBIND)
|
|
|
|
MAN1+= wbinfo.1
|
|
|
|
MAN8+= winbindd.8
|
2004-03-02 09:42:30 -05:00
|
|
|
.endif
|
2004-03-05 09:25:42 -05:00
|
|
|
|
|
|
|
.if !defined(WITHOUT_WINBIND)
|
|
|
|
WINBIND_FILTER= ${SED} -e 's|%%WINBIND%%||g'
|
|
|
|
.else
|
|
|
|
WINBIND_FILTER= ${GREP} -v '^%%WINBIND%%'
|
2004-03-02 09:42:30 -05:00
|
|
|
.endif
|
2004-03-05 09:25:42 -05:00
|
|
|
|
2004-06-03 03:57:07 -04:00
|
|
|
.if defined(WITH_I18N)
|
|
|
|
# Based on patch from miraclelinux.com.
|
|
|
|
# http://www.miraclelinux.com/english/technet/samba30/index.html
|
|
|
|
PATCH_SITES= http://dist.bsdlab.org/
|
2004-07-22 10:38:05 -04:00
|
|
|
PATCHFILES= samba-3.0.4-i18n-20040521.bz2
|
2004-06-03 03:57:07 -04:00
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
PLIST_SUB+= I18N=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= I18N="@comment "
|
|
|
|
.endif
|
|
|
|
|
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} \
|
|
|
|
SAMBA_LOCKDIR=${SAMBA_LOCKDIR}
|
2004-03-05 09:25:42 -05:00
|
|
|
|
|
|
|
RC_SCRIPTS_SUB= PREFIX=${PREFIX} \
|
|
|
|
CUPS=${CUPS} \
|
2004-04-20 12:15:05 -04:00
|
|
|
RC_SUBR=${RC_SUBR} \
|
|
|
|
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
|
|
|
|
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:
|
|
|
|
@${FIND} ${WRKSRC} -name CVS -o -name .cvsignore | ${XARGS} ${RM}
|
2004-05-09 16:34:40 -04:00
|
|
|
@${RM} -rf ${WRKDIR}/${DISTNAME}/examples/libsmbclient
|
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
|
|
|
.for sect in 1 5 7 8
|
|
|
|
@${MKDIR} ${MAN${sect}PREFIX}/man/man${sect}
|
|
|
|
.for man in ${MAN${sect}}
|
|
|
|
@${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/docs/manpages/${man} ${MAN${sect}PREFIX}/man/man${sect}
|
|
|
|
.endfor
|
|
|
|
.endfor
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
@${CP} -Rp ${WRKDIR}/${DISTNAME}/examples/* ${EXAMPLESDIR}
|
|
|
|
.if defined(WITH_PAM_SMBPASS)
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}/pam_smbpass
|
|
|
|
@${CP} -Rp ${WRKSRC}/pam_smbpass/samples/* ${EXAMPLESDIR}/pam_smbpass
|
|
|
|
.endif
|
2004-04-20 12:15:05 -04:00
|
|
|
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
2004-03-05 09:25:42 -05:00
|
|
|
${FILESDIR}/samba.sh.sample | ${WINBIND_FILTER} > ${WRKDIR}/samba.sh
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/samba.sh ${RC_DIR}/samba.sh
|
2004-04-20 12:15:05 -04:00
|
|
|
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
|
|
${FILESDIR}/smb.conf.default > ${WRKDIR}/smb.conf.default
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/smb.conf.default ${SAMBA_CONFIG}.default
|
2004-03-05 09:25:42 -05:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/script/mksmbpasswd.sh ${PREFIX}/bin/make_smbpasswd
|
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}
|
|
|
|
@${ECHO_CMD} "@unexec ${RM} -rf ${SAMBA_LOCKDIR}/printing" >> ${TMPPLIST}
|
2004-05-09 16:34:40 -04:00
|
|
|
@${ECHO_CMD} "@unexec for f in \`${LS} ${SAMBA_LOCKDIR} | ${GREP} -v '^winbindd_'\`; do ${RM} -rf ${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}
|
2004-03-05 09:25:42 -05:00
|
|
|
.if !defined(WITHOUT_WINBIND)
|
2004-03-13 05:39:59 -05:00
|
|
|
.if defined(WITH_WINBIND_NSS)
|
2004-03-05 09:25:42 -05:00
|
|
|
${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
|
2004-03-13 05:39:59 -05:00
|
|
|
.endif
|
2004-03-05 09:25:42 -05:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/nsswitch/pam_winbind.so ${SAMBA_LIBDIR}
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_PAM_SMBPASS)
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/bin/pam_smbpass.so ${SAMBA_LIBDIR}
|
2000-08-29 15:54:35 -04:00
|
|
|
.endif
|
1999-01-17 21:34:06 -05:00
|
|
|
.if !defined(NOPORTDOCS)
|
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}
|
|
|
|
.for d in devel guide howto
|
|
|
|
@${CP} -Rp ${WRKDIR}/${DISTNAME}/docs/htmldocs/${d} ${DOCSDIR}
|
|
|
|
.endfor
|
2001-07-09 23:29:57 -04:00
|
|
|
@${INSTALL_DATA} ${FILESDIR}/README.FreeBSD ${DOCSDIR}
|
2004-05-11 16:30:02 -04:00
|
|
|
.for f in README COPYING Manifest Read-Manifest-Now Roadmap \
|
|
|
|
WHATSNEW.txt docs/THANKS docs/history
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/${f} ${DOCSDIR}
|
|
|
|
.endfor
|
1999-01-17 21:34:06 -05:00
|
|
|
.endif
|
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
|
|
|
.endif
|
2004-05-09 16:34:40 -04:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|