summaryrefslogtreecommitdiff
path: root/package/avahi
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-05-12 12:33:14 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-05-12 12:33:14 +0200
commitc42a81bc2faa3bf300ced02a4567f7e47ae15722 (patch)
tree8429e716674420a9268c404e3b6ca63babe53dc2 /package/avahi
parentdcdecf4c6e5ec67ee07ae1d2f6cb5586ee961759 (diff)
update to latest upstream version, enable dbus
Diffstat (limited to 'package/avahi')
-rw-r--r--package/avahi/Makefile23
-rw-r--r--package/avahi/files/avahi-daemon.postinst6
-rw-r--r--package/avahi/patches/patch-ltmain_sh14
3 files changed, 28 insertions, 15 deletions
diff --git a/package/avahi/Makefile b/package/avahi/Makefile
index 5ae252281..6dae612ba 100644
--- a/package/avahi/Makefile
+++ b/package/avahi/Makefile
@@ -4,18 +4,18 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= avahi
-PKG_VERSION:= 0.6.28
+PKG_VERSION:= 0.6.30
PKG_RELEASE:= 1
-PKG_MD5SUM:= d0143a5aa3265019072e53ab497818d0
+PKG_MD5SUM:= e4db89a2a403ff4c47d66ac66fad1f43
PKG_DESCR:= mDNS daemon
PKG_SECTION:= dhcp
-PKG_DEPENDS:= libavahi libdaemon libexpat libintl libgtk
-PKG_BUILDDEP:= libdaemon expat gdbm glib gettext gtk+
+PKG_BUILDDEP:= libdaemon expat gdbm glib gettext gtk+ dbus
PKG_URL:= http://avahi.org/
PKG_SITES:= http://avahi.org/download/
PKG_NEED_CXX:= 1
PKG_SUBPKGS:= AVAHI_DAEMON AVAHI_DNSCONFD LIBAVAHI
+PKGSS_AVAHI_DAEMON:= libavahi libdaemon libexpat libintl libgtk dbus
PKGSS_AVAHI_DNSCONFD:= libavahi libdaemon avahi-daemon
PKGSD_AVAHI_DNSCONFD:= DNS server from mDNS configuration daemon
PKGSD_LIBAVAHI:= DNS-SD over mDNS library
@@ -23,7 +23,7 @@ PKGSC_LIBAVAHI:= libs
include ${TOPDIR}/mk/package.mk
-$(eval $(call PKG_template,AVAHI_DAEMON,avahi-daemon,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,AVAHI_DAEMON,avahi-daemon,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_AVAHI_DAEMON},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,AVAHI_DNSCONFD,avahi-dnsconfd,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_AVAHI_DNSCONFD},${PKGSD_AVAHI_DNSCONFD},${PKG_SECTION}))
$(eval $(call PKG_template,LIBAVAHI,libavahi,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBAVAHI},${PKGSC_LIBAVAHI}))
@@ -31,10 +31,10 @@ TARGET_LDFLAGS+= -lintl
CONFIGURE_ARGS+= --enable-glib \
--enable-gtk2 \
--enable-libdaemon \
+ --enable-dbus \
--disable-qt3 \
--disable-qt4 \
--disable-gtk3 \
- --disable-dbus \
--disable-python \
--disable-pygtk \
--disable-python-dbus \
@@ -55,7 +55,16 @@ CONFIGURE_ARGS+= --enable-glib \
--with-avahi-user=avahi \
--with-avahi-group=avahi
+ifeq ($(ADK_TOOLCHAIN_GCC_USE_SSP),y)
+CONFIGURE_ARGS+= --enable-stack-protector
+else
+CONFIGURE_ARGS+= --disable-stack-protector
+endif
+
avahi-daemon-install:
+ ${INSTALL_DIR} ${IDIR_AVAHI_DAEMON}/etc/dbus-1/system.d
+ $(INSTALL_DATA) $(WRKINST)/etc/dbus-1/system.d/avahi-dbus.conf \
+ ${IDIR_AVAHI_DAEMON}/etc/dbus-1/system.d
${INSTALL_DIR} ${IDIR_AVAHI_DAEMON}/etc/avahi
${INSTALL_DATA} ./files/avahi-daemon.conf \
${IDIR_AVAHI_DAEMON}/etc/avahi
@@ -80,6 +89,8 @@ libavahi-install:
${INSTALL_DIR} ${IDIR_LIBAVAHI}/usr/lib
${CP} ${WRKINST}/usr/lib/libavahi-common.so* \
${IDIR_LIBAVAHI}/usr/lib
+ ${CP} ${WRKINST}/usr/lib/libavahi-client.so* \
+ ${IDIR_LIBAVAHI}/usr/lib
${CP} ${WRKINST}/usr/lib/libavahi-core.so* \
${IDIR_LIBAVAHI}/usr/lib
diff --git a/package/avahi/files/avahi-daemon.postinst b/package/avahi/files/avahi-daemon.postinst
index 0e3e13912..815c2579c 100644
--- a/package/avahi/files/avahi-daemon.postinst
+++ b/package/avahi/files/avahi-daemon.postinst
@@ -1,6 +1,8 @@
#!/bin/sh
. $IPKG_INSTROOT/etc/functions.sh
gid=$(get_next_gid)
-add_group avahi $gid
-add_user avahi $(get_next_uid) $gid /tmp
+add_group netdev $gid
+gid2=$(get_next_gid)
+add_group avahi $gid2
+add_user avahi $(get_next_uid) $gid2 /tmp
add_rcconf avahi avahi NO
diff --git a/package/avahi/patches/patch-ltmain_sh b/package/avahi/patches/patch-ltmain_sh
index ce05ad8f1..c83acd926 100644
--- a/package/avahi/patches/patch-ltmain_sh
+++ b/package/avahi/patches/patch-ltmain_sh
@@ -1,11 +1,11 @@
---- avahi-0.6.28.orig/ltmain.sh 2010-10-05 02:05:01.069018301 +0200
-+++ avahi-0.6.28/ltmain.sh 2011-03-25 18:53:20.684620818 +0100
-@@ -5091,7 +5091,7 @@ func_mode_link ()
- # @file GCC response files
- # -tp=* Portland pgcc target processor selection
+--- avahi-0.6.30.orig/ltmain.sh 2011-04-04 00:10:35.000000000 +0200
++++ avahi-0.6.30/ltmain.sh 2011-05-12 12:30:44.000000000 +0200
+@@ -5840,7 +5840,7 @@ func_mode_link ()
+ # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
-64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
-- -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*)
-+ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|-fstack-protector*|-flto)
+ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
+- -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
++ -O*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*)
func_quote_for_eval "$arg"
arg="$func_quote_for_eval_result"
func_append compile_command " $arg"