Support more PKG_OPTIONS for the net/avahi package. This enables the user to build the avahi UI with GTK3, which is required for some packages like libepc. Commented patches. Removed dependency on desktop.mk, as the file doesn't have a MimeType key. Only PKG_OPTION enabled by default is gtk2. Thus, you will notice no difference in this version and the last (unless you start enabling options). Bump PKGREVISION. Resolves PR pkg/47483diff -r1.39 -r1.40 pkgsrc/net/avahi/Makefile
(rodent)
@@ -1,17 +1,17 @@ | @@ -1,17 +1,17 @@ | |||
1 | # $NetBSD: Makefile,v 1.39 2013/02/16 11:19:00 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.40 2013/04/21 00:58:46 rodent Exp $ | |
2 | 2 | |||
3 | DISTNAME= avahi-0.6.31 | 3 | DISTNAME= avahi-0.6.31 | |
4 | PKGREVISION= 6 | 4 | PKGREVISION= 7 | |
5 | CATEGORIES= net | 5 | CATEGORIES= net | |
6 | MASTER_SITES= http://avahi.org/download/ | 6 | MASTER_SITES= http://avahi.org/download/ | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= http://avahi.org/ | 9 | HOMEPAGE= http://avahi.org/ | |
10 | COMMENT= Facilitate service discovery on a local network | 10 | COMMENT= Facilitate service discovery on a local network | |
11 | LICENSE= gnu-lgpl-v2.1 | 11 | LICENSE= gnu-lgpl-v2.1 | |
12 | 12 | |||
13 | GNU_CONFIGURE= YES | 13 | GNU_CONFIGURE= YES | |
14 | USE_LIBTOOL= YES | 14 | USE_LIBTOOL= YES | |
15 | USE_PKGINSTALL= YES | 15 | USE_PKGINSTALL= YES | |
16 | USE_PKGLOCALEDIR= YES | 16 | USE_PKGLOCALEDIR= YES | |
17 | USE_TOOLS+= pkg-config gmake intltool msgfmt xgettext | 17 | USE_TOOLS+= pkg-config gmake intltool msgfmt xgettext | |
@@ -61,51 +61,42 @@ CONF_FILES+= ${PREFIX}/share/examples/a | @@ -61,51 +61,42 @@ CONF_FILES+= ${PREFIX}/share/examples/a | |||
61 | CONF_FILES+= ${PREFIX}/share/examples/avahi/services/sftp-ssh.service \ | 61 | CONF_FILES+= ${PREFIX}/share/examples/avahi/services/sftp-ssh.service \ | |
62 | ${PKG_SYSCONFDIR}/services/sftp-ssh.service | 62 | ${PKG_SYSCONFDIR}/services/sftp-ssh.service | |
63 | CONF_FILES+= ${PREFIX}/share/examples/avahi/services/ssh.service \ | 63 | CONF_FILES+= ${PREFIX}/share/examples/avahi/services/ssh.service \ | |
64 | ${PKG_SYSCONFDIR}/services/ssh.service | 64 | ${PKG_SYSCONFDIR}/services/ssh.service | |
65 | CONF_FILES+= ${PREFIX}/share/examples/avahi/avahi-dbus.conf \ | 65 | CONF_FILES+= ${PREFIX}/share/examples/avahi/avahi-dbus.conf \ | |
66 | ${PKG_SYSCONFBASE}/dbus-1/system.d/avahi-dbus.conf | 66 | ${PKG_SYSCONFBASE}/dbus-1/system.d/avahi-dbus.conf | |
67 | 67 | |||
68 | CONFIGURE_ARGS+= --with-avahi-user=${AVAHI_USER} | 68 | CONFIGURE_ARGS+= --with-avahi-user=${AVAHI_USER} | |
69 | CONFIGURE_ARGS+= --with-avahi-group=${AVAHI_GROUP} | 69 | CONFIGURE_ARGS+= --with-avahi-group=${AVAHI_GROUP} | |
70 | CONFIGURE_ARGS+= --with-avahi_priv_access_group=${REAL_ROOT_GROUP} | 70 | CONFIGURE_ARGS+= --with-avahi_priv_access_group=${REAL_ROOT_GROUP} | |
71 | CONFIGURE_ARGS+= --localstatedir=${VARBASE} | 71 | CONFIGURE_ARGS+= --localstatedir=${VARBASE} | |
72 | CONFIGURE_ARGS+= --with-dbus-system-socket=${VARBASE}/run/dbus/system_bus_socket | 72 | CONFIGURE_ARGS+= --with-dbus-system-socket=${VARBASE}/run/dbus/system_bus_socket | |
73 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE} | 73 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE} | |
74 | CONFIGURE_ARGS+= --disable-gtk3 | |||
75 | CONFIGURE_ARGS+= --disable-qt3 | |||
76 | CONFIGURE_ARGS+= --disable-qt4 | |||
77 | CONFIGURE_ARGS+= --disable-mono | |||
78 | CONFIGURE_ARGS+= --disable-monodoc | |||
79 | CONFIGURE_ARGS+= --disable-doxygen-doc | 74 | CONFIGURE_ARGS+= --disable-doxygen-doc | |
80 | CONFIGURE_ARGS+= --disable-doxygen-dot | 75 | CONFIGURE_ARGS+= --disable-doxygen-dot | |
81 | CONFIGURE_ARGS+= --disable-doxygen-html | 76 | CONFIGURE_ARGS+= --disable-doxygen-html --disable-doxygen-xml | |
82 | CONFIGURE_ARGS+= --disable-xmltoman | 77 | CONFIGURE_ARGS+= --disable-xmltoman | |
83 | CONFIGURE_ARGS+= --disable-autoipd | 78 | CONFIGURE_ARGS+= --disable-autoipd | |
84 | CONFIGURE_ARGS+= --enable-tests | |||
85 | CONFIGURE_ARGS+= --with-distro=none | 79 | CONFIGURE_ARGS+= --with-distro=none | |
86 | 80 | |||
87 | INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples | 81 | INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples | |
88 | INSTALL_MAKE_FLAGS+= dbusservicedir=${PREFIX}/share/examples/avahi | 82 | INSTALL_MAKE_FLAGS+= dbusservicedir=${PREFIX}/share/examples/avahi | |
89 | 83 | |||
90 | INSTALLATION_DIRS+= share/doc/avahi | 84 | INSTALLATION_DIRS+= share/doc/avahi | |
91 | 85 | |||
92 | MAKE_DIRS+= ${PKG_SYSCONFDIR}/services | 86 | MAKE_DIRS+= ${PKG_SYSCONFDIR}/services | |
93 | 87 | |||
94 | post-install: | 88 | post-install: | |
95 | ${INSTALL_DATA} ${WRKSRC}/docs/HACKING ${DESTDIR}${PREFIX}/share/doc/avahi | 89 | ${INSTALL_DATA} ${WRKSRC}/docs/HACKING ${DESTDIR}${PREFIX}/share/doc/avahi | |
96 | ${INSTALL_DATA} ${WRKSRC}/docs/INSTALL ${DESTDIR}${PREFIX}/share/doc/avahi | 90 | ${INSTALL_DATA} ${WRKSRC}/docs/INSTALL ${DESTDIR}${PREFIX}/share/doc/avahi | |
97 | ${INSTALL_DATA} ${WRKSRC}/docs/NEWS ${DESTDIR}${PREFIX}/share/doc/avahi | 91 | ${INSTALL_DATA} ${WRKSRC}/docs/NEWS ${DESTDIR}${PREFIX}/share/doc/avahi | |
98 | ${INSTALL_DATA} ${WRKSRC}/docs/README ${DESTDIR}${PREFIX}/share/doc/avahi | 92 | ${INSTALL_DATA} ${WRKSRC}/docs/README ${DESTDIR}${PREFIX}/share/doc/avahi | |
99 | ${INSTALL_DATA} ${WRKSRC}/docs/TODO ${DESTDIR}${PREFIX}/share/doc/avahi | 93 | ${INSTALL_DATA} ${WRKSRC}/docs/TODO ${DESTDIR}${PREFIX}/share/doc/avahi | |
100 | 94 | |||
101 | .include "../../devel/gettext-lib/buildlink3.mk" | 95 | .include "../../devel/gettext-lib/buildlink3.mk" | |
102 | .include "../../devel/glib2/buildlink3.mk" | 96 | .include "../../devel/glib2/buildlink3.mk" | |
103 | BUILDLINK_API_DEPENDS.libdaemon+= libdaemon>=0.14 | 97 | BUILDLINK_API_DEPENDS.libdaemon+= libdaemon>=0.14 | |
104 | .include "../../devel/libdaemon/buildlink3.mk" | 98 | .include "../../devel/libdaemon/buildlink3.mk" | |
105 | .include "../../sysutils/dbus/buildlink3.mk" | 99 | .include "../../sysutils/dbus/buildlink3.mk" | |
106 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" | |||
107 | .include "../../textproc/expat/buildlink3.mk" | 100 | .include "../../textproc/expat/buildlink3.mk" | |
108 | BUILDLINK_API_DEPENDS.gtk2+= gtk2+>=2.14.0 | |||
109 | .include "../../x11/gtk2/buildlink3.mk" | |||
110 | .include "../../mk/pthread.buildlink3.mk" | 101 | .include "../../mk/pthread.buildlink3.mk" | |
111 | .include "../../mk/bsd.pkg.mk" | 102 | .include "../../mk/bsd.pkg.mk" |
@@ -1,27 +1,27 @@ | @@ -1,27 +1,27 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.6 2011/05/14 13:04:04 obache Exp $ | 1 | @comment $NetBSD: PLIST,v 1.7 2013/04/21 00:58:46 rodent Exp $ | |
2 | bin/avahi-browse | 2 | bin/avahi-browse | |
3 | bin/avahi-browse-domains | 3 | bin/avahi-browse-domains | |
4 | bin/avahi-discover-standalone | 4 | ${PLIST.ui}bin/avahi-discover-standalone | |
5 | bin/avahi-publish | 5 | bin/avahi-publish | |
6 | bin/avahi-publish-address | 6 | bin/avahi-publish-address | |
7 | bin/avahi-publish-service | 7 | bin/avahi-publish-service | |
8 | bin/avahi-resolve | 8 | bin/avahi-resolve | |
9 | bin/avahi-resolve-address | 9 | bin/avahi-resolve-address | |
10 | bin/avahi-resolve-host-name | 10 | bin/avahi-resolve-host-name | |
11 | bin/avahi-set-host-name | 11 | bin/avahi-set-host-name | |
12 | bin/bshell | 12 | ${PLIST.ui}bin/bshell | |
13 | bin/bssh | 13 | ${PLIST.ui}bin/bssh | |
14 | bin/bvnc | 14 | ${PLIST.ui}bin/bvnc | |
15 | include/avahi-client/client.h | 15 | include/avahi-client/client.h | |
16 | include/avahi-client/lookup.h | 16 | include/avahi-client/lookup.h | |
17 | include/avahi-client/publish.h | 17 | include/avahi-client/publish.h | |
18 | include/avahi-common/address.h | 18 | include/avahi-common/address.h | |
19 | include/avahi-common/alternative.h | 19 | include/avahi-common/alternative.h | |
20 | include/avahi-common/cdecl.h | 20 | include/avahi-common/cdecl.h | |
21 | include/avahi-common/defs.h | 21 | include/avahi-common/defs.h | |
22 | include/avahi-common/domain.h | 22 | include/avahi-common/domain.h | |
23 | include/avahi-common/error.h | 23 | include/avahi-common/error.h | |
24 | include/avahi-common/gccmacro.h | 24 | include/avahi-common/gccmacro.h | |
25 | include/avahi-common/llist.h | 25 | include/avahi-common/llist.h | |
26 | include/avahi-common/malloc.h | 26 | include/avahi-common/malloc.h | |
27 | include/avahi-common/rlist.h | 27 | include/avahi-common/rlist.h | |
@@ -34,83 +34,105 @@ include/avahi-core/core.h | @@ -34,83 +34,105 @@ include/avahi-core/core.h | |||
34 | include/avahi-core/log.h | 34 | include/avahi-core/log.h | |
35 | include/avahi-core/lookup.h | 35 | include/avahi-core/lookup.h | |
36 | include/avahi-core/publish.h | 36 | include/avahi-core/publish.h | |
37 | include/avahi-core/rr.h | 37 | include/avahi-core/rr.h | |
38 | include/avahi-glib/glib-malloc.h | 38 | include/avahi-glib/glib-malloc.h | |
39 | include/avahi-glib/glib-watch.h | 39 | include/avahi-glib/glib-watch.h | |
40 | include/avahi-gobject/ga-client.h | 40 | include/avahi-gobject/ga-client.h | |
41 | include/avahi-gobject/ga-entry-group.h | 41 | include/avahi-gobject/ga-entry-group.h | |
42 | include/avahi-gobject/ga-enums.h | 42 | include/avahi-gobject/ga-enums.h | |
43 | include/avahi-gobject/ga-error.h | 43 | include/avahi-gobject/ga-error.h | |
44 | include/avahi-gobject/ga-record-browser.h | 44 | include/avahi-gobject/ga-record-browser.h | |
45 | include/avahi-gobject/ga-service-browser.h | 45 | include/avahi-gobject/ga-service-browser.h | |
46 | include/avahi-gobject/ga-service-resolver.h | 46 | include/avahi-gobject/ga-service-resolver.h | |
47 | include/avahi-ui/avahi-ui.h | 47 | ${PLIST.qt3}include/avahi-qt3/qt-watch.h | |
48 | ${PLIST.qt}include/avahi-qt4/qt-watch.h | |||
49 | ${PLIST.gtk2}include/avahi-ui/avahi-ui.h | |||
50 | ${PLIST.introspection}lib/girepository-1.0/Avahi-0.6.typelib | |||
51 | ${PLIST.introspection}lib/girepository-1.0/AvahiCore-0.6.typelib | |||
48 | lib/libavahi-client.la | 52 | lib/libavahi-client.la | |
49 | lib/libavahi-common.la | 53 | lib/libavahi-common.la | |
50 | lib/libavahi-core.la | 54 | lib/libavahi-core.la | |
51 | lib/libavahi-glib.la | 55 | lib/libavahi-glib.la | |
52 | lib/libavahi-gobject.la | 56 | lib/libavahi-gobject.la | |
53 | lib/libavahi-ui.la | 57 | ${PLIST.qt3}lib/libavahi-qt3.la | |
58 | ${PLIST.qt}lib/libavahi-qt4.la | |||
59 | ${PLIST.gtk3}lib/libavahi-ui-gtk3.la | |||
60 | ${PLIST.gtk2}lib/libavahi-ui.la | |||
61 | ${PLIST.mono}lib/mono/avahi-sharp/avahi-sharp.dll | |||
62 | ${PLIST.mono}lib/mono/avahi-ui-sharp/avahi-ui-sharp.dll | |||
63 | ${PLIST.mono}lib/mono/gac/avahi-sharp/1.0.0.0__4d116c78973743f5/avahi-sharp.dll | |||
64 | ${PLIST.mono}lib/mono/gac/avahi-sharp/1.0.0.0__4d116c78973743f5/avahi-sharp.dll.config | |||
65 | ${PLIST.mono}lib/mono/gac/avahi-sharp/1.0.0.0__4d116c78973743f5/avahi-sharp.dll.mdb | |||
66 | ${PLIST.mono}lib/mono/gac/avahi-ui-sharp/0.0.0.0__4d116c78973743f5/avahi-ui-sharp.dll | |||
67 | ${PLIST.mono}lib/mono/gac/avahi-ui-sharp/0.0.0.0__4d116c78973743f5/avahi-ui-sharp.dll.config | |||
68 | ${PLIST.mono}lib/mono/gac/avahi-ui-sharp/0.0.0.0__4d116c78973743f5/avahi-ui-sharp.dll.mdb | |||
54 | lib/pkgconfig/avahi-client.pc | 69 | lib/pkgconfig/avahi-client.pc | |
55 | lib/pkgconfig/avahi-core.pc | 70 | lib/pkgconfig/avahi-core.pc | |
56 | lib/pkgconfig/avahi-glib.pc | 71 | lib/pkgconfig/avahi-glib.pc | |
57 | lib/pkgconfig/avahi-gobject.pc | 72 | lib/pkgconfig/avahi-gobject.pc | |
58 | lib/pkgconfig/avahi-ui.pc | 73 | ${PLIST.qt3}lib/pkgconfig/avahi-qt3.pc | |
74 | ${PLIST.qt}lib/pkgconfig/avahi-qt4.pc | |||
75 | ${PLIST.mono}lib/pkgconfig/avahi-sharp.pc | |||
76 | ${PLIST.gtk3}lib/pkgconfig/avahi-ui-gtk3.pc | |||
77 | ${PLIST.mono}lib/pkgconfig/avahi-ui-sharp.pc | |||
78 | ${PLIST.gtk2}lib/pkgconfig/avahi-ui.pc | |||
59 | man/man1/avahi-browse-domains.1 | 79 | man/man1/avahi-browse-domains.1 | |
60 | man/man1/avahi-browse.1 | 80 | man/man1/avahi-browse.1 | |
61 | man/man1/avahi-publish-address.1 | 81 | man/man1/avahi-publish-address.1 | |
62 | man/man1/avahi-publish-service.1 | 82 | man/man1/avahi-publish-service.1 | |
63 | man/man1/avahi-publish.1 | 83 | man/man1/avahi-publish.1 | |
64 | man/man1/avahi-resolve-address.1 | 84 | man/man1/avahi-resolve-address.1 | |
65 | man/man1/avahi-resolve-host-name.1 | 85 | man/man1/avahi-resolve-host-name.1 | |
66 | man/man1/avahi-resolve.1 | 86 | man/man1/avahi-resolve.1 | |
67 | man/man1/avahi-set-host-name.1 | 87 | man/man1/avahi-set-host-name.1 | |
68 | man/man1/bssh.1 | 88 | ${PLIST.ui}man/man1/bssh.1 | |
69 | man/man1/bvnc.1 | 89 | ${PLIST.ui}man/man1/bvnc.1 | |
70 | man/man5/avahi-daemon.conf.5 | 90 | man/man5/avahi-daemon.conf.5 | |
71 | man/man5/avahi.hosts.5 | 91 | man/man5/avahi.hosts.5 | |
72 | man/man5/avahi.service.5 | 92 | man/man5/avahi.service.5 | |
73 | man/man8/avahi-daemon.8 | 93 | man/man8/avahi-daemon.8 | |
74 | man/man8/avahi-dnsconfd.8 | 94 | man/man8/avahi-dnsconfd.8 | |
75 | man/man8/avahi-dnsconfd.action.8 | 95 | man/man8/avahi-dnsconfd.action.8 | |
76 | sbin/avahi-daemon | 96 | sbin/avahi-daemon | |
77 | sbin/avahi-dnsconfd | 97 | sbin/avahi-dnsconfd | |
78 | share/applications/bssh.desktop | 98 | ${PLIST.ui}share/applications/bssh.desktop | |
79 | share/applications/bvnc.desktop | 99 | ${PLIST.ui}share/applications/bvnc.desktop | |
80 | share/avahi/avahi-service.dtd | 100 | share/avahi/avahi-service.dtd | |
81 | share/avahi/interfaces/avahi-discover.ui | 101 | ${PLIST.ui}share/avahi/interfaces/avahi-discover.ui | |
82 | share/avahi/service-types | 102 | share/avahi/service-types | |
83 | share/dbus-1/interfaces/org.freedesktop.Avahi.AddressResolver.xml | 103 | share/dbus-1/interfaces/org.freedesktop.Avahi.AddressResolver.xml | |
84 | share/dbus-1/interfaces/org.freedesktop.Avahi.DomainBrowser.xml | 104 | share/dbus-1/interfaces/org.freedesktop.Avahi.DomainBrowser.xml | |
85 | share/dbus-1/interfaces/org.freedesktop.Avahi.EntryGroup.xml | 105 | share/dbus-1/interfaces/org.freedesktop.Avahi.EntryGroup.xml | |
86 | share/dbus-1/interfaces/org.freedesktop.Avahi.HostNameResolver.xml | 106 | share/dbus-1/interfaces/org.freedesktop.Avahi.HostNameResolver.xml | |
87 | share/dbus-1/interfaces/org.freedesktop.Avahi.RecordBrowser.xml | 107 | share/dbus-1/interfaces/org.freedesktop.Avahi.RecordBrowser.xml | |
88 | share/dbus-1/interfaces/org.freedesktop.Avahi.Server.xml | 108 | share/dbus-1/interfaces/org.freedesktop.Avahi.Server.xml | |
89 | share/dbus-1/interfaces/org.freedesktop.Avahi.ServiceBrowser.xml | 109 | share/dbus-1/interfaces/org.freedesktop.Avahi.ServiceBrowser.xml | |
90 | share/dbus-1/interfaces/org.freedesktop.Avahi.ServiceResolver.xml | 110 | share/dbus-1/interfaces/org.freedesktop.Avahi.ServiceResolver.xml | |
91 | share/dbus-1/interfaces/org.freedesktop.Avahi.ServiceTypeBrowser.xml | 111 | share/dbus-1/interfaces/org.freedesktop.Avahi.ServiceTypeBrowser.xml | |
92 | share/doc/avahi/HACKING | 112 | share/doc/avahi/HACKING | |
93 | share/doc/avahi/INSTALL | 113 | share/doc/avahi/INSTALL | |
94 | share/doc/avahi/NEWS | 114 | share/doc/avahi/NEWS | |
95 | share/doc/avahi/README | 115 | share/doc/avahi/README | |
96 | share/doc/avahi/TODO | 116 | share/doc/avahi/TODO | |
97 | share/examples/avahi/avahi-daemon.conf | 117 | share/examples/avahi/avahi-daemon.conf | |
98 | share/examples/avahi/avahi-dbus.conf | 118 | share/examples/avahi/avahi-dbus.conf | |
99 | share/examples/avahi/avahi-dnsconfd.action | 119 | share/examples/avahi/avahi-dnsconfd.action | |
100 | share/examples/avahi/hosts | 120 | share/examples/avahi/hosts | |
101 | share/examples/avahi/services/sftp-ssh.service | 121 | share/examples/avahi/services/sftp-ssh.service | |
102 | share/examples/avahi/services/ssh.service | 122 | share/examples/avahi/services/ssh.service | |
103 | share/examples/rc.d/avahidaemon | 123 | share/examples/rc.d/avahidaemon | |
124 | ${PLIST.introspection}share/gir-1.0/Avahi-0.6.gir | |||
125 | ${PLIST.introspection}share/gir-1.0/AvahiCore-0.6.gir | |||
104 | share/locale/bg/LC_MESSAGES/avahi.mo | 126 | share/locale/bg/LC_MESSAGES/avahi.mo | |
105 | share/locale/ca/LC_MESSAGES/avahi.mo | 127 | share/locale/ca/LC_MESSAGES/avahi.mo | |
106 | share/locale/cs/LC_MESSAGES/avahi.mo | 128 | share/locale/cs/LC_MESSAGES/avahi.mo | |
107 | share/locale/da/LC_MESSAGES/avahi.mo | 129 | share/locale/da/LC_MESSAGES/avahi.mo | |
108 | share/locale/de/LC_MESSAGES/avahi.mo | 130 | share/locale/de/LC_MESSAGES/avahi.mo | |
109 | share/locale/el/LC_MESSAGES/avahi.mo | 131 | share/locale/el/LC_MESSAGES/avahi.mo | |
110 | share/locale/en_AU/LC_MESSAGES/avahi.mo | 132 | share/locale/en_AU/LC_MESSAGES/avahi.mo | |
111 | share/locale/en_CA/LC_MESSAGES/avahi.mo | 133 | share/locale/en_CA/LC_MESSAGES/avahi.mo | |
112 | share/locale/en_GB/LC_MESSAGES/avahi.mo | 134 | share/locale/en_GB/LC_MESSAGES/avahi.mo | |
113 | share/locale/en_NZ/LC_MESSAGES/avahi.mo | 135 | share/locale/en_NZ/LC_MESSAGES/avahi.mo | |
114 | share/locale/es/LC_MESSAGES/avahi.mo | 136 | share/locale/es/LC_MESSAGES/avahi.mo | |
115 | share/locale/fi/LC_MESSAGES/avahi.mo | 137 | share/locale/fi/LC_MESSAGES/avahi.mo | |
116 | share/locale/fo/LC_MESSAGES/avahi.mo | 138 | share/locale/fo/LC_MESSAGES/avahi.mo |
@@ -1,23 +1,53 @@ | @@ -1,23 +1,53 @@ | |||
1 | # $NetBSD: buildlink3.mk,v 1.18 2013/02/16 11:19:00 wiz Exp $ | 1 | # $NetBSD: buildlink3.mk,v 1.19 2013/04/21 00:58:46 rodent Exp $ | |
2 | 2 | |||
3 | BUILDLINK_TREE+= avahi | 3 | BUILDLINK_TREE+= avahi | |
4 | 4 | |||
5 | .if !defined(AVAHI_BUILDLINK3_MK) | 5 | .if !defined(AVAHI_BUILDLINK3_MK) | |
6 | AVAHI_BUILDLINK3_MK:= | 6 | AVAHI_BUILDLINK3_MK:= | |
7 | 7 | |||
8 | BUILDLINK_API_DEPENDS.avahi+= avahi>=0.6.23 | 8 | BUILDLINK_API_DEPENDS.avahi+= avahi>=0.6.23 | |
9 | BUILDLINK_ABI_DEPENDS.avahi+= avahi>=0.6.31nb6 | 9 | BUILDLINK_ABI_DEPENDS.avahi+= avahi>=0.6.31nb6 | |
10 | BUILDLINK_PKGSRCDIR.avahi?= ../../net/avahi | 10 | BUILDLINK_PKGSRCDIR.avahi?= ../../net/avahi | |
11 | 11 | |||
12 | pkgbase := avahi | 12 | pkgbase := avahi | |
13 | .include "../../mk/pkg-build-options.mk" | 13 | .include "../../mk/pkg-build-options.mk" | |
14 | 14 | |||
15 | .if !empty(PKG_BUILD_OPTIONS.avahi:Mgdbm) | 15 | .if !empty(PKG_BUILD_OPTIONS.avahi:Mgdbm) | |
16 | . include "../../databases/gdbm/buildlink3.mk" | 16 | . include "../../databases/gdbm/buildlink3.mk" | |
17 | .endif | 17 | .endif | |
18 | ||||
19 | .if !empty(PKG_BUILD_OPTIONS.avahi:Mgtk2) | |||
20 | .include "../../x11/gtk2/buildlink3.mk" | |||
21 | .endif | |||
22 | ||||
23 | .if !empty(PKG_BUILD_OPTIONS.avahi:Mgtk3) | |||
24 | .include "../../x11/gtk3/buildlink3.mk" | |||
25 | .endif | |||
26 | ||||
27 | .if !empty(PKG_BUILD_OPTIONS.avahi:Mintrospection) | |||
28 | .include "../../devel/gobject-introspection/buildlink3.mk" | |||
29 | .endif | |||
30 | ||||
31 | .if !empty(PKG_BUILD_OPTIONS.avahi:Mmono) | |||
32 | .include "../../x11/gtk-sharp/buildlink3.mk" | |||
33 | .endif | |||
34 | ||||
35 | .if !empty(PKG_BUILD_OPTIONS.avahi:Mqt3) | |||
36 | .include "../../x11/qt3-libs/buildlink3.mk" | |||
37 | .endif | |||
38 | ||||
39 | .if !empty(PKG_BUILD_OPTIONS.avahi:Mqt) | |||
40 | .include "../../x11/qt4-libs/buildlink3.mk" | |||
41 | .endif | |||
42 | ||||
43 | .if !empty(PKG_BUILD_OPTIONS.avahi:Mpython) | |||
44 | .include "../../lang/python/application.mk" | |||
45 | .endif | |||
46 | ||||
47 | .include "../../devel/gettext-lib/buildlink3.mk" | |||
18 | .include "../../devel/glib2/buildlink3.mk" | 48 | .include "../../devel/glib2/buildlink3.mk" | |
19 | .include "../../sysutils/dbus/buildlink3.mk" | 49 | .include "../../sysutils/dbus/buildlink3.mk" | |
20 | .include "../../x11/gtk2/buildlink3.mk" | 50 | .include "../../mk/pthread.buildlink3.mk" | |
21 | .endif # AVAHI_BUILDLINK3_MK | 51 | .endif # AVAHI_BUILDLINK3_MK | |
22 | 52 | |||
23 | BUILDLINK_TREE+= -avahi | 53 | BUILDLINK_TREE+= -avahi |
@@ -1,9 +1,9 @@ | @@ -1,9 +1,9 @@ | |||
1 | $NetBSD: distinfo,v 1.11 2012/04/22 15:59:01 wiz Exp $ | 1 | $NetBSD: distinfo,v 1.12 2013/04/21 00:58:46 rodent Exp $ | |
2 | 2 | |||
3 | SHA1 (avahi-0.6.31.tar.gz) = 7e05bd78572c9088b03b1207a0ad5aba38490684 | 3 | SHA1 (avahi-0.6.31.tar.gz) = 7e05bd78572c9088b03b1207a0ad5aba38490684 | |
4 | RMD160 (avahi-0.6.31.tar.gz) = 122f553ee2d43cdd0185540a63a8e1f587bdb08e | 4 | RMD160 (avahi-0.6.31.tar.gz) = 122f553ee2d43cdd0185540a63a8e1f587bdb08e | |
5 | Size (avahi-0.6.31.tar.gz) = 1268686 bytes | 5 | Size (avahi-0.6.31.tar.gz) = 1268686 bytes | |
6 | SHA1 (patch-aa) = 9d48b8358ed5dac5edb379c998d1c907feaf76ed | 6 | SHA1 (patch-aa) = 95b883bf14dd1852cdf0ea8a364c57717eebb03f | |
7 | SHA1 (patch-ab) = 49110f3c5502a56448ca6ee4412130299697f255 | 7 | SHA1 (patch-ab) = e230ea9d57f40915469486faf4ffaf90ea3ebac3 | |
8 | SHA1 (patch-ah) = 4b3ffdb927daef8c939527fd5c5893f9f88b3ff3 | 8 | SHA1 (patch-ah) = 4b3ffdb927daef8c939527fd5c5893f9f88b3ff3 | |
9 | SHA1 (patch-ai) = 406b314c8105e28cffb83a92bb80f2dc1b264c3f | 9 | SHA1 (patch-ai) = 48c5fca5683323a30dc646e5eafb1834e7bedaeb |
@@ -1,47 +1,102 @@ | @@ -1,47 +1,102 @@ | |||
1 | # $NetBSD: options.mk,v 1.2 2010/07/24 13:42:12 obache Exp $ | 1 | # $NetBSD: options.mk,v 1.3 2013/04/21 00:58:46 rodent Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.avahi | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.avahi | |
4 | 4 | PKG_SUPPORTED_OPTIONS= avahi-howl gdbm introspection gtk2 gtk3 mono python qt3 | ||
5 | PKG_SUPPORTED_OPTIONS= avahi-howl gdbm python | 5 | PKG_SUPPORTED_OPTIONS+= qt tests | |
6 | PKG_SUGGESTED_OPTIONS+= gtk2 | |||
7 | PLIST_VARS+= introspection gtk2 gtk3 mono qt3 qt ui | |||
6 | 8 | |||
7 | .include "../../mk/bsd.options.mk" | 9 | .include "../../mk/bsd.options.mk" | |
8 | 10 | |||
9 | ### | 11 | ### | |
10 | ### Enable compatibility layer for HOWL | 12 | ### Enable compatibility layer for HOWL | |
11 | ### | 13 | ### | |
12 | .if !empty(PKG_OPTIONS:Mavahi-howl) | 14 | .if !empty(PKG_OPTIONS:Mavahi-howl) | |
13 | CONFIGURE_ARGS+= --enable-compat-howl | 15 | CONFIGURE_ARGS+= --enable-compat-howl | |
14 | PLIST_SRC+= ${PKGDIR}/PLIST.howl | 16 | PLIST_SRC+= ${PKGDIR}/PLIST.howl | |
15 | .endif | 17 | .endif | |
16 | 18 | |||
17 | ### | 19 | ### | |
18 | ### Enable gdbm support | 20 | ### Enable gdbm support | |
19 | ### | 21 | ### | |
20 | .if !empty(PKG_OPTIONS:Mgdbm) | 22 | .if !empty(PKG_OPTIONS:Mgdbm) | |
21 | . include "../../databases/gdbm/buildlink3.mk" | 23 | . include "../../databases/gdbm/buildlink3.mk" | |
22 | .else | 24 | .else | |
23 | CONFIGURE_ARGS+= --disable-gdbm | 25 | CONFIGURE_ARGS+= --disable-gdbm | |
24 | .endif | 26 | .endif | |
25 | 27 | |||
28 | .if !empty(PKG_OPTIONS:Mgtk2) | |||
29 | BUILDLINK_API_DEPENDS.gtk2+= gtk2+>=2.14.0 | |||
30 | .include "../../x11/gtk2/buildlink3.mk" | |||
31 | PLIST.gtk2= yes | |||
32 | PLIST.ui= yes | |||
33 | .else | |||
34 | CONFIGURE_ARGS+= --disable-gtk | |||
35 | .endif | |||
36 | ||||
37 | .if !empty(PKG_OPTIONS:Mgtk3) | |||
38 | .include "../../x11/gtk3/buildlink3.mk" | |||
39 | PLIST.gtk3= yes | |||
40 | PLIST.ui= yes | |||
41 | .else | |||
42 | CONFIGURE_ARGS+= --disable-gtk3 | |||
43 | .endif | |||
44 | ||||
45 | .if !empty(PKG_OPTIONS:Mintrospection) | |||
46 | .include "../../devel/gobject-introspection/buildlink3.mk" | |||
47 | CONFIGURE_ARGS+= --enable-introspection=yes | |||
48 | PLIST.introspection= yes | |||
49 | .else | |||
50 | CONFIGURE_ARGS+= --enable-introspection=no | |||
51 | .endif | |||
52 | ||||
53 | .if !empty(PKG_OPTIONS:Mmono) | |||
54 | .include "../../x11/gtk-sharp/buildlink3.mk" | |||
55 | .include "../../lang/mono/buildlink3.mk" | |||
56 | CONFIGURE_ARGS+= --disable-monodoc # XXX broken | |||
57 | PLIST.mono= yes | |||
58 | .else | |||
59 | CONFIGURE_ARGS+= --disable-mono --disable-monodoc | |||
60 | .endif | |||
61 | ||||
62 | .if !empty(PKG_OPTIONS:Mqt3) | |||
63 | .include "../../x11/qt3-libs/buildlink3.mk" | |||
64 | PLIST.qt3= yes | |||
65 | .else | |||
66 | CONFIGURE_ARGS+= --disable-qt3 | |||
67 | .endif | |||
68 | ||||
69 | .if !empty(PKG_OPTIONS:Mqt) | |||
70 | .include "../../x11/qt4-libs/buildlink3.mk" | |||
71 | PLIST.qt= yes | |||
72 | .else | |||
73 | CONFIGURE_ARGS+= --disable-qt4 | |||
74 | .endif | |||
75 | ||||
26 | ### | 76 | ### | |
27 | ### Enable python support | 77 | ### Enable python support | |
28 | ### | 78 | ### | |
29 | .if !empty(PKG_OPTIONS:Mpython) | 79 | .if !empty(PKG_OPTIONS:Mpython) | |
30 | . include "../../lang/python/application.mk" | 80 | . include "../../lang/python/application.mk" | |
31 | PY_PATCHPLIST= yes | 81 | PY_PATCHPLIST= yes | |
82 | REPLACE_PYTHON+= avahi-python/avahi-discover/__init__.py | |||
32 | . include "../../lang/python/extension.mk" | 83 | . include "../../lang/python/extension.mk" | |
33 | . include "../../sysutils/py-dbus/buildlink3.mk" | 84 | . include "../../sysutils/py-dbus/buildlink3.mk" | |
34 | . include "../../x11/py-gtk2/buildlink3.mk" | 85 | . include "../../x11/py-gtk2/buildlink3.mk" | |
35 | DEPENDS+= ${PYPKGPREFIX}-libxml2-[0-9]*:../../textproc/py-libxml2 | 86 | DEPENDS+= ${PYPKGPREFIX}-libxml2-[0-9]*:../../textproc/py-libxml2 | |
36 | DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat | 87 | DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat | |
37 | ### If python and gdbm are enabled we need py-gdbm as well | 88 | ### If python and gdbm are enabled we need py-gdbm as well | |
38 | . if !empty(PKG_OPTIONS:Mgdbm) | 89 | . if !empty(PKG_OPTIONS:Mgdbm) | |
39 | DEPENDS+= ${PYPKGPREFIX}-gdbm-[0-9]*:../../databases/py-gdbm | 90 | DEPENDS+= ${PYPKGPREFIX}-gdbm-[0-9]*:../../databases/py-gdbm | |
40 | PLIST_SRC+= ${PKGDIR}/PLIST.pygdbm | 91 | PLIST_SRC+= ${PKGDIR}/PLIST.pygdbm | |
41 | . endif | 92 | . endif | |
42 | PLIST_SRC+= ${PKGDIR}/PLIST.python | 93 | PLIST_SRC+= ${PKGDIR}/PLIST.python | |
43 | .else | 94 | .else | |
44 | CONFIGURE_ARGS+= --disable-python | 95 | CONFIGURE_ARGS+= --disable-python | |
45 | CONFIGURE_ARGS+= --disable-python-dbus | 96 | CONFIGURE_ARGS+= --disable-python-dbus | |
46 | CONFIGURE_ARGS+= --disable-pygtk | 97 | CONFIGURE_ARGS+= --disable-pygtk | |
47 | .endif | 98 | .endif | |
99 | ||||
100 | .if !empty(PKG_OPTIONS:Mtests) | |||
101 | CONFIGURE_ARGS+= --enable-tests | |||
102 | .endif |
@@ -1,14 +1,16 @@ | @@ -1,14 +1,16 @@ | |||
1 | $NetBSD: patch-aa,v 1.2 2010/07/24 13:42:12 obache Exp $ | 1 | $NetBSD: patch-aa,v 1.3 2013/04/21 00:58:47 rodent Exp $ | |
2 | ||||
3 | Add NetBSD support. | |||
2 | 4 | |||
3 | --- avahi-core/iface-pfroute.c.orig 2010-06-26 00:14:35.000000000 +0000 | 5 | --- avahi-core/iface-pfroute.c.orig 2010-06-26 00:14:35.000000000 +0000 | |
4 | +++ avahi-core/iface-pfroute.c | 6 | +++ avahi-core/iface-pfroute.c | |
5 | @@ -46,6 +46,13 @@ | 7 | @@ -46,6 +46,13 @@ | |
6 | #include "iface-pfroute.h" | 8 | #include "iface-pfroute.h" | |
7 | #include "util.h" | 9 | #include "util.h" | |
8 | 10 | |||
9 | +#ifdef __NetBSD__ | 11 | +#ifdef __NetBSD__ | |
10 | +#define lifreq if_laddrreq | 12 | +#define lifreq if_laddrreq | |
11 | +#define lifr_addr iflr_addr | 13 | +#define lifr_addr iflr_addr | |
12 | +#define lifr_flags iflr_flags | 14 | +#define lifr_flags iflr_flags | |
13 | +#define SIOCGLIFFLAGS SIOCGIFFLAGS | 15 | +#define SIOCGLIFFLAGS SIOCGIFFLAGS | |
14 | +#endif | 16 | +#endif |
@@ -1,14 +1,16 @@ | @@ -1,14 +1,16 @@ | |||
1 | $NetBSD: patch-ai,v 1.2 2010/07/24 13:42:12 obache Exp $ | 1 | $NetBSD: patch-ai,v 1.3 2013/04/21 00:58:47 rodent Exp $ | |
2 | ||||
3 | Check lower bounds on port. | |||
2 | 4 | |||
3 | --- avahi-core/server.c.orig 2010-06-29 18:51:53.000000000 +0000 | 5 | --- avahi-core/server.c.orig 2010-06-29 18:51:53.000000000 +0000 | |
4 | +++ avahi-core/server.c | 6 | +++ avahi-core/server.c | |
5 | @@ -903,6 +903,11 @@ static void dispatch_packet(AvahiServer | 7 | @@ -903,6 +903,11 @@ static void dispatch_packet(AvahiServer | |
6 | return; | 8 | return; | |
7 | } | 9 | } | |
8 | 10 | |||
9 | + if (port <= 0) { | 11 | + if (port <= 0) { | |
10 | + avahi_log_warn("Received packet from invalid source port."); | 12 | + avahi_log_warn("Received packet from invalid source port."); | |
11 | + return; | 13 | + return; | |
12 | + } | 14 | + } | |
13 | + | 15 | + | |
14 | if (avahi_address_is_ipv4_in_ipv6(src_address)) | 16 | if (avahi_address_is_ipv4_in_ipv6(src_address)) |
@@ -1,13 +1,15 @@ | @@ -1,13 +1,15 @@ | |||
1 | $NetBSD: patch-ab,v 1.3 2012/04/22 15:59:02 wiz Exp $ | 1 | $NetBSD: patch-ab,v 1.4 2013/04/21 00:58:47 rodent Exp $ | |
2 | ||||
3 | Build with -lintl. | |||
2 | 4 | |||
3 | --- avahi-common/Makefile.in.orig 2012-02-14 22:36:35.000000000 +0000 | 5 | --- avahi-common/Makefile.in.orig 2012-02-14 22:36:35.000000000 +0000 | |
4 | +++ avahi-common/Makefile.in | 6 | +++ avahi-common/Makefile.in | |
5 | @@ -639,7 +639,7 @@ clean-libLTLIBRARIES: | 7 | @@ -639,7 +639,7 @@ clean-libLTLIBRARIES: | |
6 | rm -f "$${dir}/so_locations"; \ | 8 | rm -f "$${dir}/so_locations"; \ | |
7 | done | 9 | done | |
8 | libavahi-common.la: $(libavahi_common_la_OBJECTS) $(libavahi_common_la_DEPENDENCIES) $(EXTRA_libavahi_common_la_DEPENDENCIES) | 10 | libavahi-common.la: $(libavahi_common_la_OBJECTS) $(libavahi_common_la_DEPENDENCIES) $(EXTRA_libavahi_common_la_DEPENDENCIES) | |
9 | - $(AM_V_CCLD)$(libavahi_common_la_LINK) -rpath $(libdir) $(libavahi_common_la_OBJECTS) $(libavahi_common_la_LIBADD) $(LIBS) | 11 | - $(AM_V_CCLD)$(libavahi_common_la_LINK) -rpath $(libdir) $(libavahi_common_la_OBJECTS) $(libavahi_common_la_LIBADD) $(LIBS) | |
10 | + $(AM_V_CCLD)$(libavahi_common_la_LINK) -rpath $(libdir) $(libavahi_common_la_OBJECTS) $(libavahi_common_la_LIBADD) $(LIBS) $(INTLLIBS) | 12 | + $(AM_V_CCLD)$(libavahi_common_la_LINK) -rpath $(libdir) $(libavahi_common_la_OBJECTS) $(libavahi_common_la_LIBADD) $(LIBS) $(INTLLIBS) | |
11 | 13 | |||
12 | clean-noinstPROGRAMS: | 14 | clean-noinstPROGRAMS: | |
13 | @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ | 15 | @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ |