Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jul 2009 15:10:03 GMT
From:      Antonio Querubin <tony@lava.net>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/136903: port net/beacon does not start
Message-ID:  <200907241510.n6OFA3vE053647@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/136903; it has been noted by GNATS.

From: Antonio Querubin <tony@lava.net>
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 <bsd.port.pre.mk>
 
   .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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907241510.n6OFA3vE053647>