From owner-svn-ports-head@freebsd.org Wed Nov 11 12:59:50 2015 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A730EA2BF69; Wed, 11 Nov 2015 12:59:50 +0000 (UTC) (envelope-from mich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6A5DE1033; Wed, 11 Nov 2015 12:59:50 +0000 (UTC) (envelope-from mich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tABCxnam097631; Wed, 11 Nov 2015 12:59:49 GMT (envelope-from mich@FreeBSD.org) Received: (from mich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tABCxne9097624; Wed, 11 Nov 2015 12:59:49 GMT (envelope-from mich@FreeBSD.org) Message-Id: <201511111259.tABCxne9097624@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mich set sender to mich@FreeBSD.org using -f From: Michael Landin Hostbaek Date: Wed, 11 Nov 2015 12:59:49 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r401241 - in head/net/apinger: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Nov 2015 12:59:50 -0000 Author: mich Date: Wed Nov 11 12:59:48 2015 New Revision: 401241 URL: https://svnweb.freebsd.org/changeset/ports/401241 Log: apinger cleanup - Add DOCS option, enabled by default - Move docs from pkg-plist to PORTDOCS - Use IPV6_CONFIGURE_ENABLE knob - Make rclint happy - Regenerate patches with make makepatch - Add @sample to apinger.conf - Bump PORTREVISION due to rc script changei PR: ports/204465 Submitted by: garga Sponsored by: Rubicon Communications (Netgate) Modified: head/net/apinger/Makefile head/net/apinger/files/apinger.in head/net/apinger/files/patch-src_apinger.h head/net/apinger/files/patch-src_icmp.c head/net/apinger/files/patch-src_main.c head/net/apinger/pkg-plist Modified: head/net/apinger/Makefile ============================================================================== --- head/net/apinger/Makefile Wed Nov 11 12:24:01 2015 (r401240) +++ head/net/apinger/Makefile Wed Nov 11 12:59:48 2015 (r401241) @@ -3,7 +3,7 @@ PORTNAME= apinger PORTVERSION= 0.6.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net ipv6 MASTER_SITES= http://freebsdcluster.org/~mich/software/ \ http://www.bnet.pl/~jajcus/apinger/ @@ -16,16 +16,13 @@ LICENSE= GPLv2 GNU_CONFIGURE= yes USE_RC_SUBR= apinger SUB_FILES= pkg-message +PORTDOCS= AUTHORS NEWS README -OPTIONS_DEFINE= IPV6 +OPTIONS_DEFINE= IPV6 DOCS USES= bison -.include - -.if !${PORT_OPTIONS:MIPV6} -CONFIGURE_ARGS+= --disable-ipv6 -.endif +IPV6_CONFIGURE_ENABLE= ipv6 post-install: ${INSTALL_DATA} ${WRKSRC}/src/apinger.conf ${STAGEDIR}${PREFIX}/etc/apinger.conf.sample Modified: head/net/apinger/files/apinger.in ============================================================================== --- head/net/apinger/files/apinger.in Wed Nov 11 12:24:01 2015 (r401240) +++ head/net/apinger/files/apinger.in Wed Nov 11 12:59:48 2015 (r401241) @@ -9,20 +9,20 @@ # Add the following lines to /etc/rc.conf.local or /etc/rc.conf # to enable this service: # -# apinger_enable (bool): Set to NO by default. -# Set it to YES to enable apinger. +# apinger_enable (bool): Set to NO by default. +# Set it to YES to enable apinger. # . /etc/rc.subr -name="apinger" +name=apinger rcvar=apinger_enable -command=%%PREFIX%%/sbin/${name} -pidfile=/var/run/${name}.pid - load_rc_config $name -: ${apinger_enable="NO"} +: ${apinger_enable:=NO} + +command=%%PREFIX%%/sbin/${name} +pidfile=/var/run/${name}.pid run_rc_command "$1" Modified: head/net/apinger/files/patch-src_apinger.h ============================================================================== --- head/net/apinger/files/patch-src_apinger.h Wed Nov 11 12:24:01 2015 (r401240) +++ head/net/apinger/files/patch-src_apinger.h Wed Nov 11 12:59:48 2015 (r401241) @@ -1,6 +1,6 @@ ---- src/apinger.h.old 2008-07-10 22:38:08.000000000 +0200 -+++ src/apinger.h 2008-07-10 22:38:29.000000000 +0200 -@@ -119,7 +119,7 @@ +--- src/apinger.h.orig 2002-12-20 09:19:57 UTC ++++ src/apinger.h +@@ -119,7 +119,7 @@ extern char *config_file; extern int icmp_sock; extern int icmp6_sock; Modified: head/net/apinger/files/patch-src_icmp.c ============================================================================== --- head/net/apinger/files/patch-src_icmp.c Wed Nov 11 12:24:01 2015 (r401240) +++ head/net/apinger/files/patch-src_icmp.c Wed Nov 11 12:59:48 2015 (r401241) @@ -1,6 +1,6 @@ ---- src/icmp.c.orig +--- src/icmp.c.orig 2002-12-19 08:24:33 UTC +++ src/icmp.c -@@ -197,7 +197,7 @@ +@@ -197,7 +197,7 @@ socklen_t sl; debug("checking CMSG..."); for (c = CMSG_FIRSTHDR(&msg); c; c = CMSG_NXTHDR(&msg, c)) { debug("CMSG level: %i type: %i",c->cmsg_level,c->cmsg_type); Modified: head/net/apinger/files/patch-src_main.c ============================================================================== --- head/net/apinger/files/patch-src_main.c Wed Nov 11 12:24:01 2015 (r401240) +++ head/net/apinger/files/patch-src_main.c Wed Nov 11 12:59:48 2015 (r401241) @@ -1,6 +1,6 @@ ---- src/main.c.old 2008-07-10 22:36:21.000000000 +0200 -+++ src/main.c 2008-07-10 22:36:53.000000000 +0200 -@@ -96,7 +96,7 @@ +--- src/main.c.orig 2003-03-26 11:27:47 UTC ++++ src/main.c +@@ -96,7 +96,7 @@ char *config_file=CONFIG; int icmp_sock; int icmp6_sock; @@ -9,7 +9,7 @@ struct timeval next_probe={0,0}; -@@ -277,7 +277,7 @@ +@@ -277,7 +277,7 @@ char *graph_location="/apinger/"; return 1; } Modified: head/net/apinger/pkg-plist ============================================================================== --- head/net/apinger/pkg-plist Wed Nov 11 12:24:01 2015 (r401240) +++ head/net/apinger/pkg-plist Wed Nov 11 12:59:48 2015 (r401241) @@ -1,5 +1,2 @@ sbin/apinger -etc/apinger.conf.sample -%%DOCSDIR%%/README -%%DOCSDIR%%/NEWS -%%DOCSDIR%%/AUTHORS +@sample etc/apinger.conf.sample