From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jul 24 15:10:03 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 8231A1065680 for ; Fri, 24 Jul 2009 15:10: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 6FF6B8FC21 for ; Fri, 24 Jul 2009 15:10: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 n6OFA3Io053648 for ; Fri, 24 Jul 2009 15:10:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n6OFA3vE053647; Fri, 24 Jul 2009 15:10:03 GMT (envelope-from gnats) Date: Fri, 24 Jul 2009 15:10:03 GMT Message-Id: <200907241510.n6OFA3vE053647@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Antonio Querubin Cc: Subject: Re: ports/136903: port net/beacon does not start X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Antonio Querubin List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jul 2009 15:10:03 -0000 The following reply was made to PR ports/136903; it has been noted by GNATS. From: Antonio Querubin To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org Cc: Subject: Re: ports/136903: port net/beacon does not start Date: Fri, 24 Jul 2009 05:03:24 -1000 (HST) The diff below is the necessary patch to Makefile and incorporates a startup script mentioned in an earlier followup. beacon.in should be placed in the files directory. Tony tony@lava.net diff -ruN /usr/ports/net/beacon/Makefile ./Makefile --- /usr/ports/net/beacon/Makefile 2008-08-20 20:17:48.000000000 -1000 +++ ./Makefile 2009-07-24 04:53:06.000000000 -1000 @@ -32,17 +32,14 @@ CONFIGURE_ARGS+= --enable-ipv6 .endif +USE_RC_SUBR= beacon + .include .if ${ARCH} != "i386" BROKEN= Does not compile on !i386 .endif -pre-build: - cd ${WRKSRC}/Net-Multicast-Beacon && \ - make Makefile.perl && \ - ${REINPLACE_CMD} -E 's,doc_\$$\(INSTALLDIRS\)_install$$,,g' Makefile.perl - post-install: @${ECHO} "Sample config installed at \ ${PREFIX}/etc/beacon.conf.sample" diff -ruN /usr/ports/net/beacon/files/beacon.in ./files/beacon.in --- /usr/ports/net/beacon/files/beacon.in 1969-12-31 14:00:00.000000000 -1000 +++ ./files/beacon.in 2009-07-24 04:46:17.000000000 -1000 @@ -0,0 +1,30 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: beacon +# REQUIRE: DAEMON +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf to enable beacon. +# +# beacon_enable="YES" + +beacon_enable=${beacon_enable-"NO"} + +. %%RC_SUBR%% + +name="beacon" +rcvar=`set_rcvar` + +command="%%PREFIX%%/bin/${name}" + +conffile=%%PREFIX%%/etc/beacon.conf +if [ -f $conffile ]; then + piddir=`grep OUTPUTDIR $conffile | awk '{print $3}'` +fi +pidfile=${piddir}/multicastbeacon.PID + +load_rc_config $name + +run_rc_command "$1"