diff options
author | Vanilla I. Shu <vanilla@FreeBSD.org> | 2014-06-09 04:07:14 +0000 |
---|---|---|
committer | Vanilla I. Shu <vanilla@FreeBSD.org> | 2014-06-09 04:07:14 +0000 |
commit | 0db153ec12c8a8652a7f7b46de501daaae942641 (patch) | |
tree | cb6ebf76e1be496679d465067ba9f4976d6e67e0 /net-mgmt/netleak | |
parent | 727bd2396910a2e8191c41371482aa784e1040df (diff) |
1: Stagify.
2: use @sample on pkg-plist.
3: bump version.
Notes
Notes:
svn path=/head/; revision=357101
Diffstat (limited to 'net-mgmt/netleak')
-rw-r--r-- | net-mgmt/netleak/Makefile | 12 | ||||
-rw-r--r-- | net-mgmt/netleak/files/patch-Makefile | 28 | ||||
-rw-r--r-- | net-mgmt/netleak/pkg-plist | 6 |
3 files changed, 27 insertions, 19 deletions
diff --git a/net-mgmt/netleak/Makefile b/net-mgmt/netleak/Makefile index 3fba5c9b3fa6..598318b92d2c 100644 --- a/net-mgmt/netleak/Makefile +++ b/net-mgmt/netleak/Makefile @@ -3,7 +3,7 @@ PORTNAME= netleak PORTVERSION= 0.1a -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net-mgmt MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-devel/${PORTNAME}-${PORTVERSION} EXTRACT_SUFX= .tgz @@ -21,18 +21,16 @@ RUN_DEPENDS= p5-Net-PcapUtils>=0:${PORTSDIR}/net/p5-Net-PcapUtils \ NO_BUILD= yes WRKSRC= ${WRKDIR}/${PORTNAME} -USES= perl5 +USES= perl5 shebangfix USE_PERL5= run -MAN8= netleak.8 netleakd.8 +SHEBANG_FILES= netleak netleakd -PLIST_FILES= etc/netleak.conf etc/netleakd.conf sbin/netleak sbin/netleakd PORTDOCS= BUGS README TODO -NO_STAGE= yes post-install: .if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .endif .include <bsd.port.mk> diff --git a/net-mgmt/netleak/files/patch-Makefile b/net-mgmt/netleak/files/patch-Makefile index 1faa87eefe62..693d7e4e30b5 100644 --- a/net-mgmt/netleak/files/patch-Makefile +++ b/net-mgmt/netleak/files/patch-Makefile @@ -1,5 +1,5 @@ ---- Makefile.orig 2005-01-16 16:42:22.000000000 -0500 -+++ Makefile 2009-06-26 14:57:03.000000000 -0400 +--- Makefile.orig 2005-01-17 05:42:22.000000000 +0800 ++++ Makefile 2014-06-09 12:04:06.347905833 +0800 @@ -1,5 +1,5 @@ # change this to use another location -PREFIX=/usr/local @@ -7,24 +7,28 @@ BINFILES = netleak netleakd CFILES= netleak.conf netleakd.conf -@@ -10,15 +10,15 @@ +@@ -10,15 +10,15 @@ main: @echo "type 'make uninstall' to uninstall" install: - @mkdir -p $(PREFIX)/sbin - @mkdir -p $(PREFIX)/etc - @mkdir -p $(PREFIX)/share/man/man8 -+# @mkdir -p $(PREFIX)/sbin -+# @mkdir -p $(PREFIX)/etc -+# @mkdir -p $(PREFIX)/man/man8 - install netleak $(PREFIX)/sbin - install netleakd $(PREFIX)/sbin - install netleak.conf $(PREFIX)/etc - install netleakd.conf $(PREFIX)/etc +- install netleak $(PREFIX)/sbin +- install netleakd $(PREFIX)/sbin +- install netleak.conf $(PREFIX)/etc +- install netleakd.conf $(PREFIX)/etc - install netleak.8 $(PREFIX)/share/man/man8 - install netleakd.8 $(PREFIX)/share/man/man8 -+ install netleak.8 $(PREFIX)/man/man8 -+ install netleakd.8 $(PREFIX)/man/man8 ++ @mkdir -p $(DESTDIR)$(PREFIX)/sbin ++ @mkdir -p $(DESTDIR)$(PREFIX)/etc ++ @mkdir -p $(DESTDIR)$(PREFIX)/man/man8 ++ install netleak $(DESTDIR)$(PREFIX)/sbin ++ install netleakd $(DESTDIR)$(PREFIX)/sbin ++ install netleak.conf $(DESTDIR)$(PREFIX)/etc/netleak.conf.sample ++ install netleakd.conf $(DESTDIR)$(PREFIX)/etc/netleakd.conf.sample ++ install netleak.8 $(DESTDIR)$(PREFIX)/man/man8 ++ install netleakd.8 $(DESTDIR)$(PREFIX)/man/man8 uninstall: rm -f $(PREFIX)/sbin/netleak diff --git a/net-mgmt/netleak/pkg-plist b/net-mgmt/netleak/pkg-plist new file mode 100644 index 000000000000..48bd00870564 --- /dev/null +++ b/net-mgmt/netleak/pkg-plist @@ -0,0 +1,6 @@ +@sample etc/netleak.conf.sample +@sample etc/netleakd.conf.sample +man/man8/netleak.8.gz +man/man8/netleakd.8.gz +sbin/netleak +sbin/netleakd |