aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2006-11-06 01:45:49 +0800
committermarcus <marcus@FreeBSD.org>2006-11-06 01:45:49 +0800
commit73701145292c2dac5884503741a177d435ab9dbf (patch)
treeea5804355eaefb8c1f1bf5780986ac3322c72214
parent7f22c64b2364299a489728c8893348e56ef95037 (diff)
downloadfreebsd-ports-gnome-73701145292c2dac5884503741a177d435ab9dbf.tar.gz
freebsd-ports-gnome-73701145292c2dac5884503741a177d435ab9dbf.tar.zst
freebsd-ports-gnome-73701145292c2dac5884503741a177d435ab9dbf.zip
Add GNOME_SUBR support to avahi so it can be enabled with gnome_enable="YES".
-rw-r--r--net/avahi/Makefile8
-rw-r--r--net/avahi/files/patch-initscripts_freebsd_avahi-daemon.sh.in17
-rw-r--r--net/avahi/files/patch-initscripts_freebsd_avahi-dnsconfd.sh.in17
3 files changed, 41 insertions, 1 deletions
diff --git a/net/avahi/Makefile b/net/avahi/Makefile
index fc71986dc938..3801c66879bf 100644
--- a/net/avahi/Makefile
+++ b/net/avahi/Makefile
@@ -7,7 +7,7 @@
PORTNAME= avahi
PORTVERSION= 0.6.14
-PORTREVISION?= 0
+PORTREVISION?= 1
CATEGORIES?= net dns
MASTER_SITES= http://www.avahi.org/download/
@@ -20,6 +20,8 @@ LIB_DEPENDS?= expat.6:${PORTSDIR}/textproc/expat2 \
gdbm.3:${PORTSDIR}/databases/gdbm
USE_GNOME?= gnomehack ltverhack glib20
+USE_GNOME_SUBR=yes
+USE_RC_SUBR= yes
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:15
USE_LDCONFIG= yes
@@ -81,6 +83,10 @@ post-patch:
${WRKSRC}/configure \
${WRKSRC}/avahi-client/Makefile.in \
${WRKSRC}/avahi-daemon/Makefile.in
+ @${REINPLACE_CMD} -e 's|%%RC_SUBR%%|${RC_SUBR}| ; \
+ s|%%GNOME_SUBR%%|${GNOME_SUBR}|' \
+ ${WRKSRC}/initscripts/freebsd/avahi-dnsconfd.sh.in \
+ ${WRKSRC}/initscripts/freebsd/avahi-daemon.sh.in
post-install:
.if !defined(PACKAGE_BUILDING)
diff --git a/net/avahi/files/patch-initscripts_freebsd_avahi-daemon.sh.in b/net/avahi/files/patch-initscripts_freebsd_avahi-daemon.sh.in
new file mode 100644
index 000000000000..98faab4f36ee
--- /dev/null
+++ b/net/avahi/files/patch-initscripts_freebsd_avahi-daemon.sh.in
@@ -0,0 +1,17 @@
+--- initscripts/freebsd/avahi-daemon.sh.in.orig Sun Nov 5 12:35:16 2006
++++ initscripts/freebsd/avahi-daemon.sh.in Sun Nov 5 12:36:51 2006
+@@ -9,10 +9,12 @@
+ # 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
++. %%RC_SUBR%%
++. %%GNOME_SUBR%%
++
++avahi_daemon_enable=${avahi_daemon_enable-${gnome_enable}}
+
+ name=avahi_daemon
+ rcvar=`set_rcvar`
diff --git a/net/avahi/files/patch-initscripts_freebsd_avahi-dnsconfd.sh.in b/net/avahi/files/patch-initscripts_freebsd_avahi-dnsconfd.sh.in
new file mode 100644
index 000000000000..416da1f2b8b3
--- /dev/null
+++ b/net/avahi/files/patch-initscripts_freebsd_avahi-dnsconfd.sh.in
@@ -0,0 +1,17 @@
+--- initscripts/freebsd/avahi-dnsconfd.sh.in.orig Sun Nov 5 12:35:20 2006
++++ initscripts/freebsd/avahi-dnsconfd.sh.in Sun Nov 5 12:36:24 2006
+@@ -12,10 +12,12 @@
+ # 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
++. %%RC_SUBR%%
++. %%GNOME_SUBR%%
++
++avahi_dnsconfd_enable=${avahi_dnsconfd_enable-${gone_enable}}
+
+ name=avahi_dnsconfd
+ rcvar=`set_rcvar`