diff options
-rw-r--r-- | net/avahi/Makefile | 8 | ||||
-rw-r--r-- | net/avahi/files/patch-initscripts_freebsd_avahi-daemon.sh.in | 17 | ||||
-rw-r--r-- | net/avahi/files/patch-initscripts_freebsd_avahi-dnsconfd.sh.in | 17 |
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` |