1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Enable stage support

This commit is contained in:
Johan van Selst 2014-02-08 13:10:58 +00:00
parent 29b3b5995f
commit 093200b051
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=343326
3 changed files with 21 additions and 16 deletions

View File

@ -14,21 +14,14 @@ COMMENT= Newsreader
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -Iconf" LDFLAGS="${LDFLAGS} -s"
MAN1= nn.1 nncheck.1 nngoback.1 nngrab.1 nngrep.1 nnpost.1 \
nntidy.1 nnview.1 nnacct.1m nnadmin.1m nnstats.1m nnusage.1m
MAN8= nnmaster.8 nnspew.8
NO_STAGE= yes
.include <bsd.port.pre.mk>
pre-patch:
@${CP} ${WRKSRC}/config.h-dist ${WRKSRC}/config.h.unparsed
pre-build:
@${CAT} ${WRKSRC}/config.h.unparsed | ${SED} -e "s#SUB_PREFIX#${PREFIX}#" \
| ${SED} -e "s#SUB_MANPREFIX#${MANPREFIX}#" > ${WRKSRC}/config.h
@${SED} 's#SUB_PREFIX#${PREFIX}#; s#SUB_MANPREFIX#${MANPREFIX}#' \
${WRKSRC}/config.h.unparsed > ${WRKSRC}/config.h
post-install:
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${DISTNAME} POST-INSTALL
post-build:
@${REINPLACE_CMD} 's#${PREFIX}#$${DESTDIR}&#' ${WRKSRC}/inst
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -5,6 +5,7 @@ if [ "x$2" != "xPOST-INSTALL" ]; then
fi
cat << xxENDxx
*******************************************************************
You have just installed the $1 package

View File

@ -11,11 +11,8 @@ bin/nnpost
bin/nnbatch
bin/nnview
@unexec if cmp -s %D/etc/nntp_domain %D/etc/nntp_domain.dist; then rm -f %D/etc/nntp_domain; fi
etc/nntp_domain.dist
@exec [ -f %B/nntp_domain ] || cp %B/%f %B/nntp_domain
@unexec if cmp -s %D/etc/nntp_server %D/etc/nntp_server.dist; then rm -f %D/etc/nntp_server; fi
etc/nntp_server.dist
@exec [ -f %B/nntp_server ] || cp %B/%f %B/nntp_server
@unexec rm -f %D/etc/nntp_domain.dist %D/etc/nntp_server.dist
lib/nn/aux
lib/nn/upgrade_rc
lib/nn/conf
@ -37,5 +34,19 @@ lib/nn/help/help.show
lib/nn/help/help.sort
lib/nn/help/help.variables
lib/nn/help/Manual
man/man1/nn.1.gz
man/man1/nnacct.1m.gz
man/man1/nnadmin.1m.gz
man/man1/nncheck.1.gz
man/man1/nngoback.1.gz
man/man1/nngrab.1.gz
man/man1/nngrep.1.gz
man/man1/nnpost.1.gz
man/man1/nnstats.1m.gz
man/man1/nntidy.1.gz
man/man1/nnusage.1m.gz
man/man1/nnview.1.gz
man/man8/nnmaster.8.gz
man/man8/nnspew.8.gz
@dirrm lib/nn/help
@dirrm lib/nn