aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2017-12-18 19:53:44 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2017-12-18 19:53:44 +0800
commit49f1d721552c765d6899b5b8be5289f1cb7c999a (patch)
tree91c6912674325945917570124f49ae5783667d32 /net-mgmt
parent958a77b4dd3ad06a6fd2cae9e41f3b2df676f1c9 (diff)
downloadfreebsd-ports-gnome-49f1d721552c765d6899b5b8be5289f1cb7c999a.tar.gz
freebsd-ports-gnome-49f1d721552c765d6899b5b8be5289f1cb7c999a.tar.zst
freebsd-ports-gnome-49f1d721552c765d6899b5b8be5289f1cb7c999a.zip
- Add LICENSE
- Switch to options helpers - Simplify port
Diffstat (limited to 'net-mgmt')
-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"