2012-09-11 16:44:15 +00:00
|
|
|
# $Id: PKGBUILD 166539 2012-09-10 04:37:24Z bisson $
|
|
|
|
# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
|
|
|
|
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - drop qt3 bindings
|
|
|
|
|
|
|
|
pkgname=avahi
|
|
|
|
pkgver=0.6.31
|
2013-03-01 21:22:07 +00:00
|
|
|
pkgrel=6
|
2012-09-11 16:44:15 +00:00
|
|
|
pkgdesc='Multicast/unicast DNS-SD framework'
|
|
|
|
url='http://www.avahi.org/'
|
|
|
|
license=('LGPL')
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
options=('!libtool' '!emptydirs')
|
2012-11-30 09:30:48 +00:00
|
|
|
depends=('expat' 'libdaemon' 'glib2' 'libcap' 'gdbm')
|
|
|
|
optdepends=('dbus: communicating with client applications'
|
|
|
|
'gtk3: avahi-discover-standalone, bshell, bssh, bvnc'
|
2012-09-11 16:44:15 +00:00
|
|
|
'gtk2: gtk2 bindings'
|
|
|
|
'qt: qt bindings'
|
|
|
|
'pygtk: avahi-bookmarks, avahi-discover'
|
|
|
|
'twisted: avahi-bookmarks'
|
|
|
|
'mono: mono bindings'
|
2012-11-30 09:30:48 +00:00
|
|
|
'python2-dbus: avahi-discover'
|
2012-09-11 16:44:15 +00:00
|
|
|
'nss-mdns: NSS support for mDNS')
|
2013-03-01 21:22:07 +00:00
|
|
|
makedepends=('qt3' 'qt4' 'pygtk' 'mono' 'intltool' 'python2-dbus'
|
2012-09-11 16:44:15 +00:00
|
|
|
'gtk-sharp-2' 'gobject-introspection' 'gtk3' 'xmltoman')
|
|
|
|
backup=('etc/avahi/hosts'
|
|
|
|
'etc/avahi/avahi-daemon.conf'
|
|
|
|
'etc/avahi/services/ssh.service'
|
2013-03-01 21:22:07 +00:00
|
|
|
'etc/avahi/services/sftp-ssh.service'
|
|
|
|
'usr/lib/avahi/service-types.db'
|
|
|
|
'usr/share/avahi/service-types')
|
2012-09-11 16:44:15 +00:00
|
|
|
source=("http://www.avahi.org/download/avahi-${pkgver}.tar.gz"
|
|
|
|
'rc.d.patch')
|
|
|
|
sha1sums=('7e05bd78572c9088b03b1207a0ad5aba38490684'
|
|
|
|
'625ad7c131c0c1c383caeddef18fc7a32d8f3ab9')
|
|
|
|
|
|
|
|
conflicts=('howl' 'mdnsresponder')
|
|
|
|
provides=('howl' 'mdnsresponder')
|
|
|
|
|
|
|
|
install=install
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
|
|
|
|
sed -i 's/netdev/network/g' avahi-daemon/avahi-dbus.conf
|
|
|
|
patch -p1 -i ../rc.d.patch
|
2013-03-01 21:22:07 +00:00
|
|
|
|
|
|
|
export MOC_QT3=/opt/qt/bin/moc
|
|
|
|
export MOC_QT4=/usr/lib/qt4/bin/moc
|
|
|
|
source /etc/profile.d/qt3.sh
|
|
|
|
source /etc/profile.d/qt4.sh
|
|
|
|
|
2012-09-11 16:44:15 +00:00
|
|
|
# pygtk requires python2; make it explicit in case other python are installed: FS#21865
|
|
|
|
PYTHON=python2 \
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--disable-static \
|
|
|
|
--disable-monodoc \
|
|
|
|
--disable-qt3 \
|
|
|
|
--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=/usr/lib/systemd/system \
|
|
|
|
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
|
|
|
cd "${pkgdir}"
|
|
|
|
sed -i '1c #!/usr/bin/python2' usr/bin/avahi-{bookmarks,discover}
|
2013-03-01 21:22:07 +00:00
|
|
|
sed -i 's:/sbin/resolvconf:/usr/sbin/resolvconf:g' etc/avahi/avahi-dnsconfd.action
|
2012-09-11 16:44:15 +00:00
|
|
|
|
|
|
|
# howl and mdnsresponder compatability
|
|
|
|
(cd usr/include; ln -s avahi-compat-libdns_sd/dns_sd.h dns_sd.h; ln -s avahi-compat-howl howl)
|
|
|
|
(cd usr/lib/pkgconfig; ln -s avahi-compat-howl.pc howl.pc)
|
|
|
|
}
|