From 49f1d721552c765d6899b5b8be5289f1cb7c999a Mon Sep 17 00:00:00 2001 From: amdmi3 Date: Mon, 18 Dec 2017 11:53:44 +0000 Subject: - Add LICENSE - Switch to options helpers - Simplify port --- net-mgmt/fprobe/Makefile | 9 ++++++--- net-mgmt/fprobe/files/fprobe.in | 10 +++++----- 2 files changed, 11 insertions(+), 8 deletions(-) (limited to 'net-mgmt') 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" -- cgit