Date: Mon, 6 Apr 2015 14:13:32 +0000 (UTC) From: Emanuel Haupt <ehaupt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r383426 - in head/net/mdns-repeater: . files Message-ID: <201504061413.t36EDW2Q053992@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ehaupt Date: Mon Apr 6 14:13:31 2015 New Revision: 383426 URL: https://svnweb.freebsd.org/changeset/ports/383426 Log: Provide rc.d script Added: head/net/mdns-repeater/files/ head/net/mdns-repeater/files/mdns-repeater.in (contents, props changed) Modified: head/net/mdns-repeater/Makefile Modified: head/net/mdns-repeater/Makefile ============================================================================== --- head/net/mdns-repeater/Makefile Mon Apr 6 14:07:53 2015 (r383425) +++ head/net/mdns-repeater/Makefile Mon Apr 6 14:13:31 2015 (r383426) @@ -3,6 +3,7 @@ PORTNAME= mdns-repeater PORTVERSION= 1.10 +PORTREVISION= 1 CATEGORIES= net dns MASTER_SITES= LOCAL/ehaupt @@ -11,6 +12,8 @@ COMMENT= Multicast DNS repeater to re-br LICENSE= GPLv2 +USE_RC_SUBR= mdns-repeater + CFLAGS+= -DHGVERSION="\"${PORTVERSION}\"" PLIST_FILES= bin/mdns-repeater Added: head/net/mdns-repeater/files/mdns-repeater.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/mdns-repeater/files/mdns-repeater.in Mon Apr 6 14:13:31 2015 (r383426) @@ -0,0 +1,26 @@ +#!/bin/sh +# +# PROVIDE: mdns_repeater +# REQUIRE: DAEMON +# KEYWORD: shutdown + +# Add the following lines to /etc/rc.conf to enable mdns-repeater +# mdns_repeater_enable="YES" +# mdns_repeater_interfaces="vr0 vr1" + +. /etc/rc.subr + +name=mdns_repeater +rcvar=mdns_repeater_enable + +load_rc_config ${name} + +: ${mdns_repeater_enable:=NO} +: ${mdns_repeater_interfaces:="vr0 vr1"} + +pidfile="/var/run/mdns-repeater.pid" +command="%%PREFIX%%/bin/mdns-repeater" +command_args=" -p ${pidfile} ${mdns_repeater_interfaces}" + +# run service +run_rc_command "$1"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504061413.t36EDW2Q053992>