diff options
author | root <root@rshg047.dnsready.net> | 2011-04-08 04:18:44 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-04-08 04:18:44 +0000 |
commit | 59075f0265483f32e9ac4c67ba9e69cb019ba044 (patch) | |
tree | d0384b724b17b888dcd1cf06dce9bc25655d1ba1 /testing/avahi | |
parent | 3b216f42d91b33161572550f4556a9ba93d1cecb (diff) |
Fri Apr 8 04:18:44 UTC 2011
Diffstat (limited to 'testing/avahi')
-rw-r--r-- | testing/avahi/ChangeLog | 17 | ||||
-rw-r--r-- | testing/avahi/PKGBUILD | 80 | ||||
-rw-r--r-- | testing/avahi/avahi-daemon-dbus.patch | 11 | ||||
-rw-r--r-- | testing/avahi/avahi.install | 21 | ||||
-rw-r--r-- | testing/avahi/gnome-nettool.png | bin | 0 -> 4509 bytes |
5 files changed, 129 insertions, 0 deletions
diff --git a/testing/avahi/ChangeLog b/testing/avahi/ChangeLog new file mode 100644 index 000000000..57984a3b2 --- /dev/null +++ b/testing/avahi/ChangeLog @@ -0,0 +1,17 @@ + +2009-04-23 Douglas Soares de Andrade <douglas@archlinux.org> + + * Updated for i686: 0.6.25 + +2009-03-21 Eric Belanger <eric@archlinux.org> + + * Added optdepends for avahi-discover (close FS#11250) + +2009-01-04 Douglas Soares de Andrade <douglas@archlinux.org> + + * Updated for i686: 0.6.24 + +2008-07-22 Douglas Soares de Andrade <douglas@archlinux.org> + + * Updated for i686: 0.6.23 + diff --git a/testing/avahi/PKGBUILD b/testing/avahi/PKGBUILD new file mode 100644 index 000000000..2cd51fe07 --- /dev/null +++ b/testing/avahi/PKGBUILD @@ -0,0 +1,80 @@ +# $Id: PKGBUILD 118164 2011-04-05 16:57:59Z bisson $ +# Contributor: Douglas Soares de Andrade <douglas@archlinux.org> +# Maintainer: Gaetan Bisson <bisson@archlinux.org> + +pkgname=avahi +pkgver=0.6.30 +pkgrel=2 +pkgdesc='A multicast/unicast DNS-SD framework' +arch=('i686' 'x86_64') +url='http://www.avahi.org/' +license=('LGPL') +depends=('expat' 'libdaemon' 'glib2' 'dbus' 'libcap' 'gdbm') +optdepends=('gtk3: avahi-discover-standalone, bshell, bssh, bvnc' + 'gtk2: gtk2 bindings' + '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' 'gtk3') +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 + avahi-daemon-dbus.patch + gnome-nettool.png) +sha1sums=('5b77443537600a00770e4c77e3c443eeb5861d06' + '41e9f23efa0b5a5f7b0f14a86cfb0677ece84c61' + 'cf56387c88aed246b9f435efc182ef44de4d52f3') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + sed -i 's/netdev/network/g' avahi-daemon/avahi-dbus.conf + patch -Np0 -i "${srcdir}/avahi-daemon-dbus.patch" + + # pygtk requires python2; make it explicit in case other python are installed: FS#21865 + PYTHON=python2 \ + PKG_CONFIG_PATH=/opt/qt/lib/pkgconfig \ + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-static \ + --disable-monodoc \ + --disable-doxygen-doc \ + --disable-xmltoman \ + --enable-compat-libdns_sd \ + --enable-compat-howl \ + --with-distro=archlinux \ + --with-avahi-priv-access-group=network \ + --with-autoipd-user=avahi \ + --with-autoipd-group=avahi \ + --with-systemdsystemunitdir=/lib/systemd/system # See FS#20999 + + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + + make DESTDIR="${pkgdir}" install + + # howl and mdnsresponder compatability + 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 + ln -s avahi-compat-howl.pc howl.pc + + 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 +} diff --git a/testing/avahi/avahi-daemon-dbus.patch b/testing/avahi/avahi-daemon-dbus.patch new file mode 100644 index 000000000..a168f0387 --- /dev/null +++ b/testing/avahi/avahi-daemon-dbus.patch @@ -0,0 +1,11 @@ +--- initscript/archlinux/avahi-daemon.in 2010-08-17 22:23:46.510293144 +0200 ++++ initscript/archlinux/avahi-daemon.in 2010-08-17 22:46:58.110163026 +0200 +@@ -33,6 +35,8 @@ + + case "$1" in + start) ++ ck_daemon dbus && /etc/rc.d/dbus start ++ modprobe capability &> /dev/null + stat_busy "Starting $DESC" + $DAEMON -D > /dev/null 2>&1 + if [ $? -gt 0 ]; then diff --git a/testing/avahi/avahi.install b/testing/avahi/avahi.install new file mode 100644 index 000000000..7c75c3dd4 --- /dev/null +++ b/testing/avahi/avahi.install @@ -0,0 +1,21 @@ +post_install() { + getent group avahi &>/dev/null || groupadd -r -g 84 avahi >/dev/null + getent passwd avahi &>/dev/null || useradd -r -u 84 -g avahi -d / -s /bin/false -c avahi avahi >/dev/null + + cat <<EOF +==> The following daemons may be added to DAEMONS in /etc/rc.conf: +==> avahi-daemon: the mdns responder, you probably want this. +==> dbus needs to be running when you start it. +==> avahi-dnsconfd: daemon used for peer-to-peer automatic dns +==> configuration on dhcp-less networks. + +==> To use some of the client applications you will have to install python. +==> In addition, pygtk is required for the graphical ones and +==> twisted for avahi-bookmarks. +EOF +} + +post_remove() { + getent passwd avahi &>/dev/null && userdel avahi >/dev/null + getent group avahi &>/dev/null && groupdel avahi >/dev/null +} diff --git a/testing/avahi/gnome-nettool.png b/testing/avahi/gnome-nettool.png Binary files differnew file mode 100644 index 000000000..227d0678a --- /dev/null +++ b/testing/avahi/gnome-nettool.png |