2002-07-12 02:52:31 +00:00
|
|
|
# Ports collection makefile for: sfs
|
2002-07-12 05:31:41 +00:00
|
|
|
# Date created: 2002-07-11
|
2002-07-12 02:52:31 +00:00
|
|
|
# Whom: Michael Handler <handler@grendel.net>
|
|
|
|
# Matthew Dodd <winter@jurai.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= sfs
|
2003-01-02 05:23:45 +00:00
|
|
|
PORTVERSION= 0.7.2
|
2006-05-10 14:46:47 +00:00
|
|
|
PORTREVISION= 4
|
2002-07-12 02:52:31 +00:00
|
|
|
CATEGORIES= security net
|
2003-09-19 01:55:19 +00:00
|
|
|
MASTER_SITES= http://www.fs.net/sfswww/dist/
|
2002-07-12 02:52:31 +00:00
|
|
|
|
2007-03-07 05:43:18 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 13:28:59 +00:00
|
|
|
COMMENT= Self-Certifying File System: A secure global network file system
|
2002-07-12 02:52:31 +00:00
|
|
|
|
2003-01-02 05:23:45 +00:00
|
|
|
PLIST_SUB= SFS_VERSION=${PORTVERSION}
|
2002-07-12 02:52:31 +00:00
|
|
|
|
2003-10-05 01:47:10 +00:00
|
|
|
INFO= sfs
|
|
|
|
|
2002-07-12 02:52:31 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+=--with-sfsuser=sfs \
|
|
|
|
--with-sfsgroup=sfs \
|
|
|
|
--with-sfsdir=/var/spool/sfs \
|
|
|
|
--with-etcdir=${PREFIX}/etc/sfs \
|
2007-04-20 15:12:29 +00:00
|
|
|
--disable-uvfs \
|
|
|
|
--with-gmp=${LOCALBASE}
|
|
|
|
|
|
|
|
LIB_DEPENDS+= gmp.7:${PORTSDIR}/math/libgmp4
|
2002-07-12 02:52:31 +00:00
|
|
|
|
2003-01-02 05:23:45 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-06-19 09:33:57 +00:00
|
|
|
.if ${ARCH} != "i386"
|
2006-07-27 23:10:45 +00:00
|
|
|
IGNORE= nfsmounter component fails to execute correctly on ${ARCH} systems
|
2004-06-19 09:33:57 +00:00
|
|
|
.endif
|
|
|
|
|
2002-07-12 02:52:31 +00:00
|
|
|
MAN1= \
|
2003-01-02 05:23:45 +00:00
|
|
|
dirsearch.1 \
|
|
|
|
newaid.1 \
|
2002-07-12 02:52:31 +00:00
|
|
|
rex.1 \
|
|
|
|
sfsagent.1 \
|
|
|
|
sfskey.1 \
|
|
|
|
ssu.1
|
|
|
|
|
|
|
|
MAN5= \
|
|
|
|
sfs_config.5 \
|
|
|
|
sfs_srp_params.5 \
|
2003-01-02 05:23:45 +00:00
|
|
|
sfs_users.5 \
|
2002-07-12 02:52:31 +00:00
|
|
|
sfsauthd_config.5 \
|
2003-01-02 05:23:45 +00:00
|
|
|
sfscd_config.5 \
|
|
|
|
sfsrwsd_config.5 \
|
|
|
|
sfssd_config.5
|
|
|
|
|
|
|
|
MAN7= \
|
|
|
|
sfs.7
|
2002-07-12 02:52:31 +00:00
|
|
|
|
|
|
|
MAN8= \
|
2003-01-02 05:23:45 +00:00
|
|
|
funmount.8 \
|
2002-07-12 02:52:31 +00:00
|
|
|
sfsauthd.8 \
|
|
|
|
sfscd.8 \
|
|
|
|
sfsrwsd.8 \
|
2003-01-02 05:23:45 +00:00
|
|
|
sfssd.8 \
|
|
|
|
vidb.8
|
2002-07-12 02:52:31 +00:00
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${FILESDIR}/sfscd.sh > ${WRKSRC}/sfscd.sh
|
|
|
|
@${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${FILESDIR}/sfssd.sh > ${WRKSRC}/sfssd.sh
|
2004-10-20 12:33:37 +00:00
|
|
|
@${FIND} -E ${WRKDIR} -type f -iregex ".*\.(C|h)" -print0 | \
|
|
|
|
${XARGS} -0 ${REINPLACE_CMD} -e 's/template get/get/'
|
2002-07-12 02:52:31 +00:00
|
|
|
|
2003-01-02 05:23:45 +00:00
|
|
|
pre-install:
|
|
|
|
PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} PRE-INSTALL
|
|
|
|
|
2002-07-12 02:52:31 +00:00
|
|
|
post-install:
|
2003-01-02 05:23:45 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/sfsauthd/upgradedb.pl ${PREFIX}/lib/sfs-${PORTVERSION}/upgradedb.pl
|
2002-07-12 02:52:31 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/sfscd.sh ${PREFIX}/etc/rc.d/sfscd.sh.sample
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/sfssd.sh ${PREFIX}/etc/rc.d/sfssd.sh.sample
|
|
|
|
${MKDIR} ${PREFIX}/etc/sfs
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/etc-sfsrwsd_config.sample ${PREFIX}/etc/sfs/sfsrwsd_config.sample
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/sfs
|
2002-07-12 05:31:41 +00:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/share-doc-WELCOME ${PREFIX}/share/doc/sfs/WELCOME
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/share-doc-README ${PREFIX}/share/doc/sfs/README
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/sfs/README.packageblurb
|
2003-01-02 05:23:45 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.0.7-upgrade ${PREFIX}/share/doc/sfs/README.0.7-upgrade
|
2002-07-12 02:52:31 +00:00
|
|
|
PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} POST-INSTALL
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|