ports/136903: port net/beacon does not start

Antonio Querubin tony at lava.net
Fri Jul 24 15:10:03 UTC 2009


The following reply was made to PR ports/136903; it has been noted by GNATS.

From: Antonio Querubin <tony at lava.net>
To: FreeBSD-gnats-submit at FreeBSD.org, freebsd-ports-bugs at 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 at 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"



More information about the freebsd-ports-bugs mailing list