diff options
author | hrs <hrs@FreeBSD.org> | 2007-09-30 13:59:59 +0800 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2007-09-30 13:59:59 +0800 |
commit | 3954a8637ddd73d0f127407ae33c386187fa5c34 (patch) | |
tree | e5d48d5c8ac26bc10dd8328eeebd2177be8a15c0 /net/pbnc | |
parent | d6b0339d853d8e332a85cb2bf6647b22922370a7 (diff) | |
download | freebsd-ports-graphics-3954a8637ddd73d0f127407ae33c386187fa5c34.tar.gz freebsd-ports-graphics-3954a8637ddd73d0f127407ae33c386187fa5c34.tar.zst freebsd-ports-graphics-3954a8637ddd73d0f127407ae33c386187fa5c34.zip |
- Fix perl dependency.
- Clean up complicated target definitions.
Diffstat (limited to 'net/pbnc')
-rw-r--r-- | net/pbnc/Makefile | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/net/pbnc/Makefile b/net/pbnc/Makefile index 6db78f2b98e..fc6a4c7ad92 100644 --- a/net/pbnc/Makefile +++ b/net/pbnc/Makefile @@ -6,6 +6,7 @@ PORTNAME= pbnc PORTVERSION= 1.0 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://duncanthrax.net/pbnc/ DISTNAME= pbnc @@ -16,30 +17,19 @@ COMMENT= Simple userspace TCP port bouncer RUN_DEPENDS= ${SITE_PERL}/Net/Netmask.pm:${PORTSDIR}/net-mgmt/p5-Net-Netmask NO_BUILD= yes -PLIST= ${WRKSRC}/pkg-plist - -CONFIGDIR= etc -CONFIG_FILES= pbnc.cfg -SCRIPTDIR= bin -SCRIPT_FILES= pbnc.pl -DOC_FILES= pbnc.readme +USE_PERL5_RUN= yes +PLIST_FILES= etc/pbnc.cfg bin/pbnc.pl +PORTDOCS= pbnc.readme pre-install: - (${ECHO_CMD} "${CONFIGDIR}/${CONFIG_FILES}"; \ - ${ECHO_CMD} "${SCRIPTDIR}/${SCRIPT_FILES}"; ) > ${PLIST} -.if !defined(NOPORTDOCS) - (for F in ${DOC_FILES}; do \ - ${ECHO_CMD} "${DOCSDIR:S,^${PREFIX}/,,}/$${F}"; \ - done;\ - ${ECHO_CMD} "@dirrm ${DOCSDIR:S,^${PREFIX}/,,}" ) >> ${PLIST} -.endif + ${REINPLACE_CMD} 's,^#!/usr/bin/perl,#!${PERL},' ${WRKSRC}/pbnc.pl do-install: - ${INSTALL_SCRIPT} ${SCRIPT_FILES:S,^,${WRKSRC}/,} ${PREFIX}/${SCRIPTDIR} - ${INSTALL_DATA} ${CONFIG_FILES:S,^,${WRKSRC}/,} ${PREFIX}/${CONFIGDIR} + ${INSTALL_DATA} ${WRKSRC}/pbnc.cfg ${PREFIX}/etc/pbnc.cfg + ${INSTALL_SCRIPT} ${WRKSRC}/pbnc.pl ${PREFIX}/bin/pbnc.pl .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${DOC_FILES:S,^,${WRKSRC}/,} ${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} .endif .include <bsd.port.mk> |