2011-11-28 11:03:05 +08:00
|
|
|
#
|
|
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
|
|
|
|
# include global config
|
|
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
2010-03-14 23:48:48 +08:00
|
|
|
|
|
|
|
pkgname=avahi
|
2011-05-20 00:09:43 +08:00
|
|
|
pkgver=0.6.30
|
2012-02-21 14:45:38 +08:00
|
|
|
pkgrel=6
|
2010-03-14 23:48:48 +08:00
|
|
|
pkgdesc="A multicast/unicast DNS-SD framework"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://www.avahi.org/"
|
|
|
|
license=('LGPL')
|
|
|
|
depends=('dbus>=1.1.20-1' 'libcap>=2.16' 'libdaemon>=0.11' 'gdbm' 'glib2' 'expat')
|
2011-05-20 00:09:43 +08:00
|
|
|
optdepends=('qt: qt bindings'
|
2010-03-14 23:48:48 +08:00
|
|
|
'nss-mdns: NSS support for mDNS'
|
2011-05-20 00:09:43 +08:00
|
|
|
'dbus-python: avahi-discover'
|
|
|
|
'twisted: avahi-bookmarks')
|
2011-06-10 00:12:55 +08:00
|
|
|
makedepends=('qt' 'dbus-python' 'gobject-introspection' 'pygtk' 'intltool')
|
2010-03-14 23:48:48 +08:00
|
|
|
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)
|
2011-06-10 00:12:55 +08:00
|
|
|
sha1sums=('5b77443537600a00770e4c77e3c443eeb5861d06'
|
|
|
|
'cf56387c88aed246b9f435efc182ef44de4d52f3'
|
2012-02-21 14:45:38 +08:00
|
|
|
'd81f472ebb5b6635f5b2621933e7eae45878ca14')
|
2010-03-14 23:48:48 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
|
|
|
2011-05-20 00:09:43 +08:00
|
|
|
sed -i 's/netdev/network/g' avahi-daemon/avahi-dbus.conf
|
dbus update, next section, avahi, bluez, consolekit, cups, eggdbus, pyqt, qt, rkit, telepathy packages
2011-09-02 13:01:07 +08:00
|
|
|
patch -p1 -i "${srcdir}/avahi-daemon-dbus.patch"
|
2011-05-20 00:09:43 +08:00
|
|
|
|
2011-06-10 00:12:55 +08:00
|
|
|
PYTHON=python2 \
|
|
|
|
PKG_CONFIG_PATH=/opt/qt/lib/pkgconfig \
|
|
|
|
./configure --prefix=/usr \
|
2010-03-14 23:48:48 +08:00
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
2011-06-10 00:12:55 +08:00
|
|
|
--disable-static \
|
2010-05-18 22:39:29 +08:00
|
|
|
--disable-qt3 \
|
2011-05-20 00:09:43 +08:00
|
|
|
--enable-qt4 \
|
2010-05-18 22:39:29 +08:00
|
|
|
--disable-mono \
|
2010-03-14 23:48:48 +08:00
|
|
|
--disable-monodoc \
|
|
|
|
--disable-doxygen-doc \
|
|
|
|
--disable-xmltoman \
|
2011-05-20 00:09:43 +08:00
|
|
|
--disable-gtk \
|
|
|
|
--disable-gtk3 \
|
2010-03-14 23:48:48 +08:00
|
|
|
--enable-compat-libdns_sd \
|
|
|
|
--enable-compat-howl \
|
2011-06-10 00:12:55 +08:00
|
|
|
--with-distro=archlinux \
|
2010-03-14 23:48:48 +08:00
|
|
|
--with-avahi-priv-access-group=network \
|
|
|
|
--with-autoipd-user=avahi \
|
2011-06-10 00:12:55 +08:00
|
|
|
--with-autoipd-group=avahi \
|
|
|
|
--with-systemdsystemunitdir=/lib/systemd/system
|
2010-03-14 23:48:48 +08:00
|
|
|
|
2011-06-10 00:12:55 +08:00
|
|
|
make
|
|
|
|
}
|
2010-03-14 23:48:48 +08:00
|
|
|
|
2011-06-10 00:12:55 +08:00
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
install -D -m 644 ../gnome-nettool.png "${pkgdir}"/usr/share/pixmaps/gnome-nettool.png
|
2010-03-14 23:48:48 +08:00
|
|
|
|
2011-06-10 00:12:55 +08:00
|
|
|
cd "${pkgdir}"
|
|
|
|
sed -i '1c #!/usr/bin/python2' usr/bin/avahi-{bookmarks,discover}
|
|
|
|
# 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)
|
2010-03-14 23:48:48 +08:00
|
|
|
}
|
2011-06-10 00:12:55 +08:00
|
|
|
|