1998-12-24 02:31:51 -05:00
|
|
|
# New ports collection makefile for: leafnode+
|
|
|
|
# Date created: 19 November 1998
|
1999-07-04 15:40:37 -04:00
|
|
|
# Whom: Tom Hukins <tom@FreeBSD.org>
|
1998-12-24 02:31:51 -05:00
|
|
|
#
|
1999-08-30 10:33:04 -04:00
|
|
|
# $FreeBSD$
|
1998-12-24 02:31:51 -05:00
|
|
|
#
|
|
|
|
|
2000-04-09 13:33:32 -04:00
|
|
|
PORTNAME= leafnode+
|
2001-07-07 11:12:46 -04:00
|
|
|
PORTVERSION= 2.14
|
1998-12-24 02:31:51 -05:00
|
|
|
CATEGORIES= news
|
2001-07-07 11:12:46 -04:00
|
|
|
MASTER_SITES= http://www.io.com/~kazushi/leafnode+/ \
|
|
|
|
ftp://ftp.io.com/pub/usr/kazushi/leafnode+/
|
1998-12-24 02:31:51 -05:00
|
|
|
|
1999-07-04 15:40:37 -04:00
|
|
|
MAINTAINER= tom@FreeBSD.org
|
1998-12-24 02:31:51 -05:00
|
|
|
|
1998-12-28 18:19:54 -05:00
|
|
|
MAN8= checkgroups.8 fetchnews.8 leafnode.8 texpire.8
|
1999-07-04 15:40:37 -04:00
|
|
|
PKGINSTALL= ${WRKDIR}/INSTALL
|
1998-12-24 02:31:51 -05:00
|
|
|
|
|
|
|
.if defined(NOPORTDOCS)
|
2000-10-07 23:49:23 -04:00
|
|
|
PLIST= ${PKGDIR}/pkg-plist.nodocs
|
1998-12-24 02:31:51 -05:00
|
|
|
.endif
|
|
|
|
|
1999-07-04 15:40:37 -04:00
|
|
|
LEAFLIBDIR?= ${PREFIX}/lib/leafnode
|
2001-07-07 15:42:25 -04:00
|
|
|
LEAFSPOOLDIR?= /var/spool/leafnode
|
1999-07-04 15:40:37 -04:00
|
|
|
REWRITE= ${SED} -e "s:@LIBDIR@:${LEAFLIBDIR}:g" \
|
2001-07-07 15:42:25 -04:00
|
|
|
-e "s:@SPOOLDIR@:${LEAFSPOOLDIR}:g" \
|
1999-07-04 15:40:37 -04:00
|
|
|
-e "s:@PREFIX@:${PREFIX}:g"
|
|
|
|
|
1998-12-24 02:31:51 -05:00
|
|
|
post-patch:
|
1999-07-04 15:40:37 -04:00
|
|
|
.for file in Makefile FAQ INSTALL README leafnode.8
|
1998-12-24 02:31:51 -05:00
|
|
|
@${MV} ${WRKSRC}/${file} ${WRKSRC}/${file}.bak
|
1999-07-04 15:40:37 -04:00
|
|
|
@${REWRITE} ${WRKSRC}/${file}.bak > ${WRKSRC}/${file}
|
1998-12-24 02:31:51 -05:00
|
|
|
.endfor
|
1999-07-04 15:40:37 -04:00
|
|
|
@${REWRITE} ${FILESDIR}/INSTALL.in > ${PKGINSTALL}
|
1999-08-22 15:01:07 -04:00
|
|
|
@${CHMOD} 755 ${PKGINSTALL}
|
1998-12-24 02:31:51 -05:00
|
|
|
|
|
|
|
do-install:
|
1998-12-28 18:19:54 -05:00
|
|
|
.for file in leafnode fetchnews texpire checkgroups leaftool
|
1998-12-24 02:31:51 -05:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/sbin
|
|
|
|
.endfor
|
1999-04-02 20:01:15 -05:00
|
|
|
.for file in ${MAN8}
|
1998-12-24 02:31:51 -05: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 16:24:01 -05:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
1998-12-28 18:19:54 -05:00
|
|
|
|
1998-12-24 02:31:51 -05:00
|
|
|
.include <bsd.port.mk>
|