1998-12-24 07:31:51 +00:00
|
|
|
# New ports collection makefile for: leafnode+
|
2000-01-24 21:26:50 +00:00
|
|
|
# Version required: 2.10
|
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
|
|
|
#
|
|
|
|
|
2000-01-24 21:26:50 +00:00
|
|
|
DISTNAME= leafnode+-2.10
|
1998-12-24 07:31:51 +00:00
|
|
|
CATEGORIES= news
|
2000-01-24 21:26:50 +00:00
|
|
|
MASTER_SITES= ftp://hiroshima.isdn.uiuc.edu/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
|
2000-01-24 21:26:50 +00:00
|
|
|
.if !exists{LEAFSPOOLDIR} || !exists{{LEAFLIBDIR}
|
|
|
|
@${MKDIR} ${LEAFSPOOLDIR} ${LEAFLIBDIR}
|
|
|
|
@${MKDIR} ${LEAFSPOOLDIR}/interesting.groups
|
|
|
|
@${MKDIR} ${LEAFSPOOLDIR}/out.going
|
|
|
|
.for dir_a in 0 1 2 3 4 5 6 7 8 9
|
|
|
|
.for dir_b in 0 1 2 3 4 5 6 7 8 9
|
|
|
|
.for dir_c in 0 1 2 3 4 5 6 7 8 9
|
|
|
|
@${MKDIR} ${LEAFSPOOLDIR}/message.id/${dir_a}${dir_b}${dir_c}
|
|
|
|
.endfor
|
|
|
|
.endfor
|
|
|
|
.endfor
|
|
|
|
@${CHOWN} -R news:news ${LEAFSPOOLDIR} ${LEAFLIBDIR}
|
|
|
|
@${CHMOD} 2750 ${LEAFSPOOLDIR}
|
|
|
|
.endif
|
1998-12-28 23:19:54 +00:00
|
|
|
|
1998-12-24 07:31:51 +00:00
|
|
|
.include <bsd.port.mk>
|