diff options
author | gahr <gahr@FreeBSD.org> | 2014-02-14 19:06:47 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2014-02-14 19:06:47 +0800 |
commit | edf2fe840512040233c5bed4798095740859fc21 (patch) | |
tree | ba1eb18419895203a603415f001592c212686f8a | |
parent | ec163bf883ecebf5c95f330db222ab12c43d49bb (diff) | |
download | freebsd-ports-gnome-edf2fe840512040233c5bed4798095740859fc21.tar.gz freebsd-ports-gnome-edf2fe840512040233c5bed4798095740859fc21.tar.zst freebsd-ports-gnome-edf2fe840512040233c5bed4798095740859fc21.zip |
- STAGE-clean
-rw-r--r-- | net/trickle/Makefile | 25 | ||||
-rw-r--r-- | net/trickle/pkg-plist | 7 |
2 files changed, 10 insertions, 22 deletions
diff --git a/net/trickle/Makefile b/net/trickle/Makefile index 19dcb88e91d1..d0209334ec56 100644 --- a/net/trickle/Makefile +++ b/net/trickle/Makefile @@ -10,7 +10,9 @@ MASTER_SITES= http://monkey.org/~marius/trickle/ MAINTAINER= gahr@FreeBSD.org COMMENT= Lightweight, portable bandwidth shaper -LIB_DEPENDS= event-1.4:${PORTSDIR}/devel/libevent +LIB_DEPENDS= libevent-1.4.so:${PORTSDIR}/devel/libevent + +OPTIONS_DEFINE= DOCS USE_AUTOTOOLS= libtool GNU_CONFIGURE= yes @@ -23,23 +25,10 @@ CONFIGURE_ARGS+=--with-libevent=${LOCALBASE} \ CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib" CPPFLAGS+= -I${LOCALBASE}/include -MAN1= trickle.1 -MAN5= trickled.conf.5 -MAN8= trickled.8 - -NO_STAGE= yes +PORTDOCS= * post-install: - if [ ! -f ${PREFIX}/etc/trickled.conf ]; then \ - ${INSTALL_DATA} ${FILESDIR}/trickled.conf ${PREFIX}/etc/trickled.conf; \ - ${INSTALL_DATA} ${FILESDIR}/trickled.conf ${PREFIX}/etc/trickled.conf.default; \ - else \ - ${INSTALL_DATA} ${FILESDIR}/trickled.conf ${PREFIX}/etc/trickled.conf.default; \ - fi -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} -.for i in README - ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} -.endfor -.endif + ${INSTALL_DATA} ${FILESDIR}/trickled.conf ${STAGEDIR}${PREFIX}/etc/trickled.conf.default + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> diff --git a/net/trickle/pkg-plist b/net/trickle/pkg-plist index 2769f0b24c12..8418c207d954 100644 --- a/net/trickle/pkg-plist +++ b/net/trickle/pkg-plist @@ -1,10 +1,9 @@ bin/trickle bin/tricklectl bin/trickled -@unexec if cmp -s %D/etc/trickled.conf %D/etc/trickled.conf.default; then rm -f %D/etc/trickled.conf; fi etc/trickled.conf.default -@exec [ -f %B/trickled.conf ] || cp %B/%f %B/trickled.conf +man/man1/trickle.1.gz +man/man5/trickled.conf.5.gz +man/man8/trickled.8.gz lib/trickle/trickle-overload.so -%%PORTDOCS%%%%DOCSDIR%%/README @dirrm lib/trickle -%%PORTDOCS%%@dirrm %%DOCSDIR%% |