1998-12-24 07:31:51 +00:00
|
|
|
# New ports collection makefile for: leafnode+
|
|
|
|
# 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
|
|
|
#
|
|
|
|
|
2000-04-09 17:33:32 +00:00
|
|
|
PORTNAME= leafnode+
|
2000-10-20 13:48:37 +00:00
|
|
|
PORTVERSION= 2.11
|
1998-12-24 07:31:51 +00:00
|
|
|
CATEGORIES= news
|
2000-09-14 23:42:48 +00:00
|
|
|
MASTER_SITES= http://www.io.com/~kazushi/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)
|
2000-10-08 03:49:23 +00:00
|
|
|
PLIST= ${PKGDIR}/pkg-plist.nodocs
|
1998-12-24 07:31:51 +00:00
|
|
|
.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
|
2000-03-08 21:24:01 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
1998-12-28 23:19:54 +00:00
|
|
|
|
1998-12-24 07:31:51 +00:00
|
|
|
.include <bsd.port.mk>
|