1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/news/leafnode+/Makefile

55 lines
1.4 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: leafnode+
# Date created: 19 November 1998
# Whom: Tom Hukins <tom@FreeBSD.org>
#
1999-08-30 14:33:04 +00:00
# $FreeBSD$
#
PORTNAME= leafnode+
2001-02-26 14:09:42 +00:00
PORTVERSION= 2.12
CATEGORIES= news
2000-09-14 23:42:48 +00:00
MASTER_SITES= http://www.io.com/~kazushi/leafnode+/
MAINTAINER= tom@FreeBSD.org
MAN8= checkgroups.8 fetchnews.8 leafnode.8 texpire.8
PKGINSTALL= ${WRKDIR}/INSTALL
.if defined(NOPORTDOCS)
PLIST= ${PKGDIR}/pkg-plist.nodocs
.endif
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"
post-patch:
.for file in Makefile FAQ INSTALL README leafnode.8
@${MV} ${WRKSRC}/${file} ${WRKSRC}/${file}.bak
@${REWRITE} ${WRKSRC}/${file}.bak > ${WRKSRC}/${file}
.endfor
@${REWRITE} ${FILESDIR}/INSTALL.in > ${PKGINSTALL}
1999-08-22 19:01:07 +00:00
@${CHMOD} 755 ${PKGINSTALL}
do-install:
.for file in leafnode fetchnews texpire checkgroups leaftool
@${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/sbin
.endfor
.for file in ${MAN8}
@${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
post-install:
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>