Menu

[r9052]: / trunk / patches / ports-avahi-app.patch  Maximize  Restore  History

Download this file

168 lines (161 with data), 5.6 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
diff --exclude '*CVS*' -ur net/avahi-app/Makefile net/avahi-app/Makefile
--- net/avahi-app/Makefile 2011-11-21 23:33:18.038691915 -0800
+++ net/avahi-app/Makefile 2011-11-21 23:58:36.487693255 -0800
@@ -8,7 +8,7 @@
PORTNAME= avahi
PORTVERSION= 0.6.29
-PORTREVISION?= 1
+PORTREVISION?= 2
CATEGORIES?= net dns
MASTER_SITES= http://www.avahi.org/download/
PKGNAMESUFFIX?= -app
diff --exclude '*CVS*' -ur net/avahi-app/files/patch-avahi-daemon_main.c net/avahi-app/files/patch-avahi-daemon_main.c
--- net/avahi-app/files/patch-avahi-daemon_main.c 2007-10-24 16:37:22.000000000 -0700
+++ net/avahi-app/files/patch-avahi-daemon_main.c 2011-11-22 00:28:26.597718901 -0800
@@ -1,8 +1,8 @@
---- avahi-daemon/main.c.orig 2007-08-26 00:48:40.000000000 -0400
-+++ avahi-daemon/main.c 2007-08-26 00:49:04.000000000 -0400
-@@ -317,6 +317,11 @@ static void update_browse_domains(void)
- int n;
- char **p;
+--- avahi-daemon/main.c.orig 2011-02-23 05:10:07.000000000 -0800
++++ avahi-daemon/main.c 2011-11-22 00:25:52.035691394 -0800
+@@ -320,6 +320,11 @@
+ return;
+ }
+ if (!resolv_conf_search_domains) {
+ avahi_server_set_browse_domains(avahi_server, NULL);
@@ -10,5 +10,16 @@
+ }
+
l = avahi_string_list_copy(config.server_config.browse_domains);
-
+
for (p = resolv_conf_search_domains, n = 0; *p && n < BROWSE_DOMAINS_MAX; p++, n++) {
+@@ -1101,8 +1106,10 @@
+
+ ignore_signal(SIGPIPE);
+
++#if 0
+ if (!(nss_support = avahi_nss_support()))
+ avahi_log_warn("WARNING: No NSS support for mDNS detected, consider installing nss-mdns!");
++#endif
+
+ if (!(simple_poll_api = avahi_simple_poll_new())) {
+ avahi_log_error("Failed to create main loop object.");
diff --exclude '*CVS*' -ur net/avahi-app/files/patch-initscript_freebsd_avahi-daemon.sh.in net/avahi-app/files/patch-initscript_freebsd_avahi-daemon.sh.in
--- net/avahi-app/files/patch-initscript_freebsd_avahi-daemon.sh.in 2011-11-21 23:39:41.429690911 -0800
+++ net/avahi-app/files/patch-initscript_freebsd_avahi-daemon.sh.in 2011-11-21 23:42:47.054705193 -0800
@@ -1,17 +1,49 @@
---- initscript/freebsd/avahi-daemon.sh.in.orig Sun Nov 5 12:35:16 2006
-+++ initscript/freebsd/avahi-daemon.sh.in Sun Nov 5 12:36:51 2006
-@@ -9,10 +9,12 @@
+--- initscript/freebsd/avahi-daemon.sh.in 2011-11-21 23:21:53.516716427 -0800
++++ initscript/freebsd/avahi-daemon.sh.in 2011-11-21 23:23:30.408691175 -0800
+@@ -9,27 +9,34 @@
# Avahi's mDNSResponder, a Zeroconf (Bonjour) service advertisement daemon.
#
-avahi_daemon_enable=${avahi_daemon_enable-"NO"}
- avahi_daemon_flags=${avahi_daemon_flags-"-D"}
-
--. /etc/rc.subr
-+. /etc/rc.subr
+-avahi_daemon_flags=${avahi_daemon_flags-"-D"}
+-
+ . /etc/rc.subr
+. %%GNOME_SUBR%%
+
+avahi_daemon_enable=${avahi_daemon_enable-${gnome_enable}}
name=avahi_daemon
rcvar=`set_rcvar`
++command="/usr/local/sbin/avahi-daemon"
++pidfile="/var/run/avahi-daemon/pid"
+
+-start_cmd=avahi_daemon_start
++start_precmd=avahi_daemon_prestart
+ stop_cmd=avahi_daemon_stop
+
+-avahi_daemon_bin=@sbindir@/avahi-daemon
+-
+-avahi_daemon_start() {
+- checkyesno avahi_daemon_enable && echo "Starting avahi-daemon." && \
+- ${avahi_daemon_bin} ${avahi_daemon_flags}
++avahi_daemon_prestart()
++{
++ rc_flags="-D $rc_flags"
++ return 0
+ }
+
+-avahi_daemon_stop() {
+- checkyesno avahi_daemon_enable && echo "Stopping avahi-daemon." && \
+- ${avahi_daemon_bin} -k
++avahi_daemon_stop()
++{
++ if [ ! -f "$pidfile" ]; then
++ [ -n "$rc_fast" ] && return 0
++ _run_rc_notrunning
++ return 1
++ fi
++ echo 'Stopping avahi-daemon.'
++ ${command} -k
+ }
+
+ load_rc_config ${name}
diff --exclude '*CVS*' -ur net/avahi-app/files/patch-initscript_freebsd_avahi-dnsconfd.sh.in net/avahi-app/files/patch-initscript_freebsd_avahi-dnsconfd.sh.in
--- net/avahi-app/files/patch-initscript_freebsd_avahi-dnsconfd.sh.in 2011-11-21 23:39:41.439690855 -0800
+++ net/avahi-app/files/patch-initscript_freebsd_avahi-dnsconfd.sh.in 2011-11-21 23:42:20.242719313 -0800
@@ -1,17 +1,49 @@
---- initscript/freebsd/avahi-dnsconfd.sh.in.orig Sun Nov 5 12:35:20 2006
-+++ initscript/freebsd/avahi-dnsconfd.sh.in Sun Nov 5 12:36:24 2006
-@@ -12,10 +12,12 @@
+--- initscript/freebsd/avahi-dnsconfd.sh.in 2011-11-21 23:21:53.526747031 -0800
++++ initscript/freebsd/avahi-dnsconfd.sh.in 2011-11-21 23:24:13.279691051 -0800
+@@ -12,27 +12,34 @@
# DNS servers in a DHCP-like fashion with mDNS.
#
-avahi_dnsconfd_enable=${avahi_dnsconfd_enable-"NO"}
- avahi_dnsconfd_flags=${avahi_dnsconfd_flags-"-D"}
-
--. /etc/rc.subr
-+. /etc/rc.subr
+-avahi_dnsconfd_flags=${avahi_dnsconfd_flags-"-D"}
+-
+ . /etc/rc.subr
+. %%GNOME_SUBR%%
+
+avahi_dnsconfd_enable=${avahi_dnsconfd_enable-${gnome_enable}}
name=avahi_dnsconfd
rcvar=`set_rcvar`
++command=/usr/local/sbin/avahi-dnsconfd
++pidfile="/var/run/avahi-dnsconfd.pid"
+
+-start_cmd=avahi_dnsconfd_start
++start_precmd=avahi_dnsconfd_prestart
+ stop_cmd=avahi_dnsconfd_stop
+
+-avahi_dnsconfd_bin=@sbindir@/avahi-dnsconfd
+-
+-avahi_dnsconfd_start() {
+- checkyesno avahi_dnsconfd_enable && echo "Starting avahi-dnsconfd." && \
+- ${avahi_dnsconfd_bin} ${avahi_dnsconfd_flags}
++avahi_dnsconfd_prestart()
++{
++ rc_flags="-D $rc_flags"
++ return 0
+ }
+
+-avahi_dnsconfd_stop() {
+- checkyesno avahi_dnsconfd_enable && echo "Stopping avahi-dnsconfd." && \
+- ${avahi_dnsconfd_bin} -k
++avahi_dnsconfd_stop()
++{
++ if [ ! -f "$pidfile" ]; then
++ [ -n "$rc_fast" ] && return 0
++ _run_rc_notrunning
++ return 1
++ fi
++ echo 'Stopping avahi-dnsconfd.'
++ ${command} -k
+ }
+
+ load_rc_config ${name}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.