summaryrefslogtreecommitdiffstats
path: root/abs/core/avahi/PKGBUILD
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2010-11-20 03:52:05 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2010-11-20 03:52:05 (GMT)
commitff5993f9531cd8a92743f36cf88a2c90f0b0b553 (patch)
tree8e8243c6f784ce09e16f3ac8404e6172e0c3e132 /abs/core/avahi/PKGBUILD
parent4cf461353e50a84f985b6204dc891e12072a2698 (diff)
downloadlinhes_pkgbuild-ff5993f9531cd8a92743f36cf88a2c90f0b0b553.zip
linhes_pkgbuild-ff5993f9531cd8a92743f36cf88a2c90f0b0b553.tar.gz
linhes_pkgbuild-ff5993f9531cd8a92743f36cf88a2c90f0b0b553.tar.bz2
avahi: upgrade
Diffstat (limited to 'abs/core/avahi/PKGBUILD')
-rw-r--r--abs/core/avahi/PKGBUILD82
1 files changed, 44 insertions, 38 deletions
diff --git a/abs/core/avahi/PKGBUILD b/abs/core/avahi/PKGBUILD
index f3d15bf..690762e 100644
--- a/abs/core/avahi/PKGBUILD
+++ b/abs/core/avahi/PKGBUILD
@@ -1,41 +1,50 @@
-# $Id: PKGBUILD 70504 2010-02-27 03:24:54Z dgriffiths $
+# $Id: PKGBUILD 94183 2010-10-05 07:08:54Z bisson $
# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
pkgname=avahi
-pkgver=0.6.25
-pkgrel=3
-pkgdesc="A multicast/unicast DNS-SD framework"
+pkgver=0.6.27
+pkgrel=7
+pkgdesc='A multicast/unicast DNS-SD framework'
arch=('i686' 'x86_64')
-url="http://www.avahi.org/"
+url='http://www.avahi.org/'
license=('LGPL')
-depends=('dbus>=1.1.20-1' 'libcap>=2.16' 'libdaemon>=0.11' 'gdbm' 'glib2' 'expat')
-optdepends=('qt3: Qt3 UI support'
- 'libglade: avahi-discover-standalone'
- 'nss-mdns: NSS support for mDNS'
- 'pygtk: avahi-discover'
- 'dbus-python: avahi-discover')
-makedepends=('mono' 'pygtk' 'gtk-sharp-2' 'dbus-python' 'qt3' 'libglade' 'intltool')
+depends=('expat' 'libdaemon' 'glib2' 'dbus' 'libcap' 'gdbm')
+optdepends=('gtk2: avahi-discover-standalone'
+ 'qt3: qt3 bindings'
+ 'qt: qt bindings'
+ 'pygtk: avahi-bookmarks, avahi-discover'
+ 'twisted: avahi-bookmarks'
+ 'mono: mono bindings'
+ 'dbus-python: avahi-discover'
+ 'nss-mdns: NSS support for mDNS')
+makedepends=('qt' 'qt3' 'pygtk' 'mono' 'intltool' 'dbus-python' 'gtk-sharp-2' 'gobject-introspection>=0.9.10')
backup=(etc/avahi/avahi-daemon.conf etc/avahi/services/{sftp-,}ssh.service)
install=avahi.install
conflicts=('howl' 'mdnsresponder')
provides=('howl' 'mdnsresponder')
replaces=('howl' 'mdnsresponder')
options=('!libtool')
-source=(http://www.avahi.org/download/avahi-${pkgver}.tar.gz gnome-nettool.png avahi-daemon-dbus.patch)
+source=(http://www.avahi.org/download/avahi-${pkgver}.tar.gz
+ avahi-daemon-dbus.patch
+ gnome-nettool.png
+ introspection.patch)
+sha1sums=('e763bbeba92fd5b3ba3e2af5fc85aaf99b406c8b'
+ '41e9f23efa0b5a5f7b0f14a86cfb0677ece84c61'
+ 'cf56387c88aed246b9f435efc182ef44de4d52f3'
+ '999d71add829ab9bb55262855dfe04126ac7975c')
build() {
- [ -z "${QTDIR}" ] && . /etc/profile.d/qt3.sh
- export MONO_SHARED_DIR=${srcdir}/.wabi
- mkdir -p ${MONO_SHARED_DIR}
+ cd "${srcdir}/${pkgname}-${pkgver}"
- cd ${srcdir}/${pkgname}-${pkgver}
+ sed -i 's/netdev/network/g' avahi-daemon/avahi-dbus.conf
+ patch -Np0 -i "${srcdir}/avahi-daemon-dbus.patch"
+ patch -Np1 -i "${srcdir}/introspection.patch"
- sed -i 's|Requires.private|Requires|' avahi-qt3.pc.in
-
- ./configure --prefix=/usr \
+ ./configure \
+ --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
- --disable-qt4 \
+ --disable-gtk3 \
--disable-monodoc \
--disable-doxygen-doc \
--disable-xmltoman \
@@ -43,29 +52,26 @@ build() {
--enable-compat-howl \
--with-distro=archlinux \
--with-avahi-priv-access-group=network \
- --enable-autoipd \
--with-autoipd-user=avahi \
- --with-autoipd-group=avahi
+ --with-autoipd-group=avahi \
+ --with-systemdsystemunitdir=/lib/systemd/system # See FS#20999
+
+ make
+}
- make || return 1
- make DESTDIR=${pkgdir} install
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ make DESTDIR="${pkgdir}" install
- rm -rf ${MONO_SHARED_DIR}
-
- sed -i -e 's/netdev/network/g' ${pkgdir}/etc/dbus-1/system.d/avahi-dbus.conf
-
# howl and mdnsresponder compatability
- cd ${pkgdir}/usr/include
+ cd "${pkgdir}"/usr/include
ln -s avahi-compat-libdns_sd/dns_sd.h dns_sd.h
ln -s avahi-compat-howl howl
- cd ${pkgdir}/usr/lib/pkgconfig
+ cd "${pkgdir}"/usr/lib/pkgconfig
ln -s avahi-compat-howl.pc howl.pc
- mkdir -p ${pkgdir}/usr/share/pixmaps
- install -m 644 ${srcdir}/gnome-nettool.png ${pkgdir}/usr/share/pixmaps/gnome-nettool.png
- cd ${pkgdir}
- patch -p0 < ${srcdir}/avahi-daemon-dbus.patch || return 1
+ sed -i '1c #!/usr/bin/python2' "$pkgdir"/usr/bin/avahi-{bookmarks,discover}
+
+ install -D -m 644 "${srcdir}"/gnome-nettool.png "${pkgdir}"/usr/share/pixmaps/gnome-nettool.png
}
-md5sums=('a83155a6e29e3988f07e5eea3287b21e'
- '42c2905307c7a5dc6ac4b75f4c3d65a3'
- '0e1f5900b56fcfa1bffddb4f233f539f')