From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jul 17 07:20:09 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 99E881065696 for ; Fri, 17 Jul 2009 07:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6EBCF8FC2E for ; Fri, 17 Jul 2009 07:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n6H7K3MI045892 for ; Fri, 17 Jul 2009 07:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n6H7K36Z045891; Fri, 17 Jul 2009 07:20:03 GMT (envelope-from gnats) Resent-Date: Fri, 17 Jul 2009 07:20:03 GMT Resent-Message-Id: <200907170720.n6H7K36Z045891@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Philip M. Gollucci" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD4281065672 for ; Fri, 17 Jul 2009 07:13:03 +0000 (UTC) (envelope-from pgollucci@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 901788FC2D; Fri, 17 Jul 2009 07:13:03 +0000 (UTC) (envelope-from pgollucci@FreeBSD.org) Received: from freefall.freebsd.org (pgollucci@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n6H7D3o4040936; Fri, 17 Jul 2009 07:13:03 GMT (envelope-from pgollucci@freefall.freebsd.org) Received: (from pgollucci@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n6H7D2pD040935; Fri, 17 Jul 2009 07:13:02 GMT (envelope-from pgollucci) Message-Id: <200907170713.n6H7D2pD040935@freefall.freebsd.org> Date: Fri, 17 Jul 2009 07:13:02 GMT From: "Philip M. Gollucci" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: alex@hugo.bmg.gv.at Subject: ports/136845: [PATCH] net/ifdepd: USE_RC_SUBR != yes X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2009 07:20:10 -0000 >Number: 136845 >Category: ports >Synopsis: [PATCH] net/ifdepd: USE_RC_SUBR != yes >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jul 17 07:20:03 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Philip M. Gollucci >Release: FreeBSD 7.2-STABLE i386 >Organization: RideCharge Inc. >Environment: System: FreeBSD freefall.freebsd.org 7.2-STABLE FreeBSD 7.2-STABLE #38 r194101: Sat Jun 13 11:12:24 UTC >Description: Added file(s): - files/ifdepd.in Port maintainer (alex@hugo.bmg.gv.at) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- ifdepd-20050420_1.patch begins here --- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/net/ifdepd/Makefile,v retrieving revision 1.4 diff -u -u -r1.4 Makefile --- Makefile 5 Jan 2009 21:36:39 -0000 1.4 +++ Makefile 17 Jul 2009 07:12:50 -0000 @@ -5,6 +5,7 @@ PORTNAME= ifdepd PORTVERSION= 20050420 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://alex.bmg.gv.at/programs/ @@ -13,15 +14,9 @@ MAN8= ifdepd.8 -PLIST_FILES= bin/ifdepd \ - etc/rc.d/ifdepd.sh +PLIST_FILES= bin/ifdepd -USE_RC_SUBR= yes - -post-patch: - @${REINPLACE_CMD} -e \ - 's|/etc/rc\.subr|${RC_SUBR}|; s|/usr/local|${PREFIX}|' \ - ${WRKSRC}/ifdepd.sh +USE_RC_SUBR= ${PORTNAME} post-install: @${CAT} ${PKGMESSAGE} Index: files/ifdepd.in =================================================================== RCS file: files/ifdepd.in diff -N files/ifdepd.in --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/ifdepd.in 17 Jul 2009 07:12:50 -0000 @@ -0,0 +1,45 @@ +#!/bin/sh +# + +# PROVIDE: ifdepd +# REQUIRE: netif routing +# KEYWORD: FreeBSD shutdown + +# +# Add the following lines to /etc/rc.conf to enable ifdepd: +# +#ifdepd_enable="YES" +#ifdepd_src_ifaces="em0:em1" +#ifdepd_dst_ifaces="carp1" + +. /etc/rc.subr + +name="ifdepd" +rcvar=`set_rcvar` +command="/usr/local/bin/ifdepd" +start_cmd="ifdepd_start" +stop_cmd="ifdepd_stop" + +ifdepd_enable=${ifdepd_enable:-"NO"} +load_rc_config $name + +ifdepd_start() +{ + echo 'Starting ifdepd.' + ifdepd_src_ifaces=`echo $ifdepd_src_ifaces | sed -E 's/[ \t]+/:/g'` + ifdepd_dst_ifaces=`echo $ifdepd_dst_ifaces | sed -E 's/[ \t]+/:/g'` + if checkyesno ${rcvar} && [ "x${ifdepd_src_ifaces}" != "x" ] && + [ "x${ifdepd_dst_ifaces}" != "x" ]; then + $command -d -S ${ifdepd_src_ifaces} -D ${ifdepd_dst_ifaces} + else + warn '$ifdepd_ifaces is not set.' + fi +} + +ifdepd_stop() +{ + echo 'Stopping ifdepd.' + killall ifdepd +} + +run_rc_command "$1" --- ifdepd-20050420_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: