aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/fprobe
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2017-12-18 11:53:44 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2017-12-18 11:53:44 +0000
commit0fb96929c3e1b36e6a807f28fd85b14ab675517e (patch)
tree91c6912674325945917570124f49ae5783667d32 /net-mgmt/fprobe
parentf4c7169b8bacd3164cd6c74d35169d6f96b27385 (diff)
downloadports-0fb96929c3e1b36e6a807f28fd85b14ab675517e.tar.gz
ports-0fb96929c3e1b36e6a807f28fd85b14ab675517e.zip
- Add LICENSE
- Switch to options helpers - Simplify port
Notes
Notes: svn path=/head/; revision=456625
Diffstat (limited to 'net-mgmt/fprobe')
-rw-r--r--net-mgmt/fprobe/Makefile9
-rw-r--r--net-mgmt/fprobe/files/fprobe.in10
2 files changed, 11 insertions, 8 deletions
diff --git a/net-mgmt/fprobe/Makefile b/net-mgmt/fprobe/Makefile
index b8c5dc20f78d..5ba4aeb92971 100644
--- a/net-mgmt/fprobe/Makefile
+++ b/net-mgmt/fprobe/Makefile
@@ -10,16 +10,19 @@ MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Tool that collects network traffic data
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
+
USES= tar:bzip2
-USE_RC_SUBR= fprobe
GNU_CONFIGURE= yes
-SUB_LIST= NAME=${PORTNAME}
+USE_RC_SUBR= fprobe
+
PLIST_FILES= man/man8/${PORTNAME}.8.gz sbin/fprobe
PORTDOCS= ChangeLog README
OPTIONS_DEFINE= DOCS
-post-install:
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ChangeLog README
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
diff --git a/net-mgmt/fprobe/files/fprobe.in b/net-mgmt/fprobe/files/fprobe.in
index f791fd19639f..dbe64db71379 100644
--- a/net-mgmt/fprobe/files/fprobe.in
+++ b/net-mgmt/fprobe/files/fprobe.in
@@ -6,17 +6,17 @@
# REQUIRE: NETWORKING
# KEYWORD: shutdown
-# Add the following lines to /etc/rc.conf to enable %%NAME%%:
+# Add the following lines to /etc/rc.conf to enable fprobe:
#
-#%%NAME%%_enable="YES"
+# fprobe_enable="YES"
#
-# See fprobe(8) for %%NAME%%_flags
+# See fprobe(8) for fprobe_flags
#
. /etc/rc.subr
-name="%%NAME%%"
-rcvar=%%NAME%%_enable
+name="fprobe"
+rcvar=fprobe_enable
load_rc_config "$name"