1998-12-24 07:31:51 +00:00
|
|
|
# New ports collection makefile for: leafnode+
|
1999-09-26 18:44:15 +00:00
|
|
|
# Version required: 2.8
|
1998-12-24 07:31:51 +00:00
|
|
|
# Date created: 19 November 1998
|
1999-07-04 19:40:37 +00:00
|
|
|
# Whom: Tom Hukins <tom@FreeBSD.org>
|
1998-12-24 07:31:51 +00:00
|
|
|
#
|
1999-08-30 14:33:04 +00:00
|
|
|
# $FreeBSD$
|
1998-12-24 07:31:51 +00:00
|
|
|
#
|
|
|
|
|
1999-09-26 18:44:15 +00:00
|
|
|
DISTNAME= leafnode+-2.8
|
1998-12-24 07:31:51 +00:00
|
|
|
CATEGORIES= news
|
1999-04-03 01:01:15 +00:00
|
|
|
MASTER_SITES= ftp://ftp.big.or.jp/pub/usr2/jam/leafnode/
|
1998-12-24 07:31:51 +00:00
|
|
|
|
1999-07-04 19:40:37 +00:00
|
|
|
MAINTAINER= tom@FreeBSD.org
|
1998-12-24 07:31:51 +00:00
|
|
|
|
1998-12-28 23:19:54 +00:00
|
|
|
MAN8= checkgroups.8 fetchnews.8 leafnode.8 texpire.8
|
1999-07-04 19:40:37 +00:00
|
|
|
PKGINSTALL= ${WRKDIR}/INSTALL
|
1998-12-24 07:31:51 +00:00
|
|
|
|
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
PLIST= ${PKGDIR}/PLIST.nodocs
|
|
|
|
.endif
|
|
|
|
|
1999-07-04 19:40:37 +00:00
|
|
|
LEAFLIBDIR?= ${PREFIX}/lib/leafnode
|
|
|
|
LEAFSPOOLDIR?= /var/spool/leafnode
|
|
|
|
REWRITE= ${SED} -e "s:@LIBDIR@:${LEAFLIBDIR}:g" \
|
|
|
|
-e "s:@SPOOLDIR@:${LEAFSPOOLDIR}:g" \
|
|
|
|
-e "s:@PREFIX@:${PREFIX}:g"
|
|
|
|
|
1998-12-24 07:31:51 +00:00
|
|
|
post-patch:
|
1999-07-04 19:40:37 +00:00
|
|
|
.for file in Makefile FAQ INSTALL README leafnode.8
|
1998-12-24 07:31:51 +00:00
|
|
|
@${MV} ${WRKSRC}/${file} ${WRKSRC}/${file}.bak
|
1999-07-04 19:40:37 +00:00
|
|
|
@${REWRITE} ${WRKSRC}/${file}.bak > ${WRKSRC}/${file}
|
1998-12-24 07:31:51 +00:00
|
|
|
.endfor
|
1999-07-04 19:40:37 +00:00
|
|
|
@${REWRITE} ${FILESDIR}/INSTALL.in > ${PKGINSTALL}
|
1999-08-22 19:01:07 +00:00
|
|
|
@${CHMOD} 755 ${PKGINSTALL}
|
1998-12-24 07:31:51 +00:00
|
|
|
|
|
|
|
do-install:
|
1998-12-28 23:19:54 +00:00
|
|
|
.for file in leafnode fetchnews texpire checkgroups leaftool
|
1998-12-24 07:31:51 +00:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/sbin
|
|
|
|
.endfor
|
1999-04-03 01:01:15 +00:00
|
|
|
.for file in ${MAN8}
|
1998-12-24 07:31:51 +00:00
|
|
|
@${INSTALL_MAN} ${WRKSRC}/${file} ${PREFIX}/man/man8
|
|
|
|
.endfor
|
|
|
|
.if !defined{NOPORTDOCS}
|
|
|
|
@${ECHO} "===> Copying documents to ${PREFIX}/share/doc/leafnode+"
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/leafnode+
|
|
|
|
.for file in Changes FAQ INSTALL README config.example
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/leafnode+
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
1998-12-28 23:19:54 +00:00
|
|
|
post-install:
|
1999-07-05 18:59:58 +00:00
|
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
@if test \( ! -d ${LEAFSPOOLDIR} \) -o \( ! -d ${LEAFLIBDIR} \) ; then \
|
|
|
|
${CAT} ${PKGDIR}/MESSAGE; \
|
|
|
|
fi
|
1998-12-28 23:19:54 +00:00
|
|
|
|
1998-12-24 07:31:51 +00:00
|
|
|
.include <bsd.port.mk>
|