freebsd-ports/security/sfs/Makefile
Alexey Dokuchaev 62872b88bd Fix code so it is favored by both GCCs (2.x and 3.x), and unbreak the build.
Approved by:	fjoe (mentor, implicit)
		maintainer timeout
2004-10-20 12:33:37 +00:00

96 lines
2.4 KiB
Makefile

# Ports collection makefile for: sfs
# Date created: 2002-07-11
# Whom: Michael Handler <handler@grendel.net>
# Matthew Dodd <winter@jurai.net>
#
# $FreeBSD$
#
PORTNAME= sfs
PORTVERSION= 0.7.2
PORTREVISION= 2
CATEGORIES= security net
MASTER_SITES= http://www.fs.net/sfswww/dist/
MAINTAINER= handler@grendel.net
COMMENT= Self-Certifying File System: A secure global network file system
PLIST_SUB= SFS_VERSION=${PORTVERSION}
INFO= sfs
USE_GMAKE= yes
USE_REINPLACE= yes
USE_INC_LIBTOOL_VER=13
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-sfsuser=sfs \
--with-sfsgroup=sfs \
--with-sfsdir=/var/spool/sfs \
--with-etcdir=${PREFIX}/etc/sfs \
--disable-uvfs
.include <bsd.port.pre.mk>
.if ${ARCH} != "i386"
BROKEN= "Does not compile on !i386"
.endif
.if ${OSVERSION} > 500000
LIB_DEPENDS+= gmp.6:${PORTSDIR}/math/libgmp4
CONFIGURE_ARGS+=--with-gmp=${LOCALBASE}
.else
CONFIGURE_ARGS+=--with-gmp=/usr
.endif
MAN1= \
dirsearch.1 \
newaid.1 \
rex.1 \
sfsagent.1 \
sfskey.1 \
ssu.1
MAN5= \
sfs_config.5 \
sfs_srp_params.5 \
sfs_users.5 \
sfsauthd_config.5 \
sfscd_config.5 \
sfsrwsd_config.5 \
sfssd_config.5
MAN7= \
sfs.7
MAN8= \
funmount.8 \
sfsauthd.8 \
sfscd.8 \
sfsrwsd.8 \
sfssd.8 \
vidb.8
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
@${FIND} -E ${WRKDIR} -type f -iregex ".*\.(C|h)" -print0 | \
${XARGS} -0 ${REINPLACE_CMD} -e 's/template get/get/'
pre-install:
PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} PRE-INSTALL
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/sfsauthd/upgradedb.pl ${PREFIX}/lib/sfs-${PORTVERSION}/upgradedb.pl
${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
${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
${INSTALL_DATA} ${WRKSRC}/README.0.7-upgrade ${PREFIX}/share/doc/sfs/README.0.7-upgrade
PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>