diff --git a/net/mdns-bridge/Makefile b/net/mdns-bridge/Makefile index 50d6afc1a608..2736eaa02726 100644 --- a/net/mdns-bridge/Makefile +++ b/net/mdns-bridge/Makefile @@ -1,21 +1,22 @@ PORTNAME= mdns-bridge PORTVERSION= 1.0.1 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= net MAINTAINER= dennypage@me.com COMMENT= Multicast DNS Bridge WWW= https://github.com/dennypage/mdns-bridge LICENSE= BSD2CLAUSE USE_GITHUB= yes GH_ACCOUNT= dennypage USE_RC_SUBR= mdns_bridge do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.example ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample .include diff --git a/net/mdns-bridge/files/mdns_bridge.in b/net/mdns-bridge/files/mdns_bridge.in index 746865d123c6..8cdc61a495e4 100644 --- a/net/mdns-bridge/files/mdns_bridge.in +++ b/net/mdns-bridge/files/mdns_bridge.in @@ -1,30 +1,30 @@ #!/bin/sh # PROVIDE: mdns_bridge # REQUIRE: DAEMON # KEYWORD: shutdown # # Add these lines to /etc/rc.conf.local or /etc/rc.conf # to enable this service: # # mdns_bridge_enable (bool): Set to NO by default. # Set it to YES to enable mdns-bridge. # mdns_bridge_config (path): Set to %%PREFIX%%/etc/mdns-bridge.conf # by default. . /etc/rc.subr name=mdns_bridge rcvar=mdns_bridge_enable load_rc_config $name : ${mdns_bridge_enable:=NO} : ${mdns_bridge_config=%%PREFIX%%/etc/mdns-bridge.conf} -command=%%PREFIX%%/sbin/${name} +command=%%PREFIX%%/bin/mdns-bridge pidfile=/var/run/${name}.pid command_args="-s -p $pidfile -c $mdns_bridge_config" run_rc_command "$1"