Index: head/net/beacon/Makefile =================================================================== --- head/net/beacon/Makefile (revision 239596) +++ head/net/beacon/Makefile (revision 239597) @@ -1,55 +1,51 @@ # New ports collection makefile for: beacon # Date created: 26 February 2004 # Whom: Janos.Mohacsi@bsd.hu # # $FreeBSD$ # PORTNAME= beacon PORTVERSION= 1.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net perl5 mbone ipv6 MASTER_SITES= http://dast.nlanr.net/Projects/Beacon/releases/ DISTNAME= ${PORTNAME}-${PORTVERSION} MAINTAINER= janos.mohacsi@bsd.hu COMMENT= Beacon active measurement tool to monitor multicast BUILD_DEPENDS= ${SITE_PERL}/Net/Domain.pm:${PORTSDIR}/net/p5-Net RUN_DEPENDS= ${BUILD_DEPENDS} WWW_DIR?= ${PREFIX}/www/ PLIST_SUB+= VERSION=${PORTVERSION} USE_PERL5= yes USE_AUTOTOOLS= autoconf:262 +USE_RC_SUBR= beacon .ifdef(WITHOUT_IPV6) CONFIGURE_ARGS= .else #enable IPv6 name lookup, and sending IPv6 multicast BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Socket6.pm:${PORTSDIR}/net/p5-Socket6 EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src_beacon.in CONFIGURE_ARGS+= --enable-ipv6 .endif .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" @${ECHO} "Copy the customised version to ${PREFIX}/etc/beacon.conf" .ifndef(NOPORTDOCS) @${MKDIR} ${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} .endif .include Property changes on: head/net/beacon/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.17 \ No newline at end of property +1.18 \ No newline at end of property Index: head/net/beacon/files/beacon.in =================================================================== --- head/net/beacon/files/beacon.in (nonexistent) +++ head/net/beacon/files/beacon.in (revision 239597) @@ -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" Property changes on: head/net/beacon/files/beacon.in ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Index: head/net/beacon/pkg-plist =================================================================== --- head/net/beacon/pkg-plist (revision 239596) +++ head/net/beacon/pkg-plist (revision 239597) @@ -1,13 +1,14 @@ %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Multicast/Beacon/Beacon.so %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Multicast/Beacon/Beacon.bs %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Multicast/Beacon/.packlist %%SITE_PERL%%/%%PERL_ARCH%%/Net/Multicast/Beacon.pm +lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/perllocal.pod @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Multicast/Beacon @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Multicast/ @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/Net/Multicast/ @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Net bin/beacon etc/beacon.conf.sample %%PORTDOCS%%%%DOCSDIR%%/README %%PORTDOCS%%@dirrm %%DOCSDIR%% Property changes on: head/net/beacon/pkg-plist ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.6 \ No newline at end of property +1.7 \ No newline at end of property