net/avahi-app: fix rc scripts for a working 'service avahi-daemon status'

PR:		206325
Submitted by:	Yuichiro NAITO <naito.yuichiro@gmail.com>
Reviewed by:	w.schwarzenfeld@utanet.at
This commit is contained in:
Kurt Jaeger 2018-02-07 19:06:39 +00:00
parent 6d622a825a
commit 0462a35b77
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=461170
3 changed files with 21 additions and 7 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= avahi
PORTVERSION= 0.6.31
PORTREVISION?= 5
PORTREVISION?= 6
CATEGORIES?= net dns
MASTER_SITES= http://www.avahi.org/download/
PKGNAMESUFFIX?= -app

View File

@ -1,6 +1,6 @@
--- initscript/freebsd/avahi-daemon.sh.in.orig 2010-08-26 00:51:39 UTC
+++ initscript/freebsd/avahi-daemon.sh.in
@@ -9,13 +9,15 @@
--- initscript/freebsd/avahi-daemon.sh.in.orig 2010-08-26 09:51:39.036153000 +0900
+++ initscript/freebsd/avahi-daemon.sh.in 2016-01-17 11:59:38.578756000 +0900
@@ -9,18 +9,22 @@
# Avahi's mDNSResponder, a Zeroconf (Bonjour) service advertisement daemon.
#
@ -18,3 +18,10 @@
start_cmd=avahi_daemon_start
stop_cmd=avahi_daemon_stop
avahi_daemon_bin=@sbindir@/avahi-daemon
+command=${avahi_daemon_bin}
+pidfile="/var/run/avahi-daemon/pid"
avahi_daemon_start() {
checkyesno avahi_daemon_enable && echo "Starting avahi-daemon." && \

View File

@ -1,6 +1,6 @@
--- initscript/freebsd/avahi-dnsconfd.sh.in.orig 2010-08-26 00:51:39 UTC
+++ initscript/freebsd/avahi-dnsconfd.sh.in
@@ -12,13 +12,15 @@
--- initscript/freebsd/avahi-dnsconfd.sh.in.orig 2010-08-26 09:51:39.037153000 +0900
+++ initscript/freebsd/avahi-dnsconfd.sh.in 2016-01-17 11:59:50.394307000 +0900
@@ -12,18 +12,22 @@
# DNS servers in a DHCP-like fashion with mDNS.
#
@ -18,3 +18,10 @@
start_cmd=avahi_dnsconfd_start
stop_cmd=avahi_dnsconfd_stop
avahi_dnsconfd_bin=@sbindir@/avahi-dnsconfd
+command=${avahi_dnsconfd_bin}
+pidfile="/var/run/avahi-dnsconfd.pid"
avahi_dnsconfd_start() {
checkyesno avahi_dnsconfd_enable && echo "Starting avahi-dnsconfd." && \