blob: f98180b3cf680a35ae768f8e7eddb4f34dc8f318 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# $Id: PKGBUILD 6066 2008-07-23 03:45:52Z douglas $
# Maintainer: Travis Willard <travis@archlinux.org>
pkgname=avahi
pkgver=0.6.23
pkgrel=1
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' 'libdaemon>=0.11' 'gdbm' 'glib2' 'expat')
depends=('libcap' 'libdaemon>=0.11' 'gdbm' 'glib2' 'expat' 'dbus-python')
optdepends=('qt3:Qt3 UI support' 'libglade:Avahi-discover-standalone'
'nss-mdns:NSS support for mDNS')
makedepends=('qt3' 'libglade' 'intltool')
backup=(etc/avahi/avahi-daemon.conf)
install=avahi.install
conflicts=('howl' 'mdnsresponder')
provides=('howl' 'mdnsresponder')
replaces=('howl' 'mdnsresponder')
options=('!libtool')
source=(http://www.avahi.org/download/avahi-${pkgver}.tar.gz)
build() {
[ -z "${QTDIR}" ] && . /etc/profile.d/qt3.sh
export MONO_SHARED_DIR=${startdir}/src/.wabi
mkdir -p ${MONO_SHARED_DIR}
cd ${startdir}/src/${pkgname}-${pkgver}
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-qt4 \
--disable-monodoc \
--disable-doxygen-doc \
--disable-xmltoman \
--enable-compat-libdns_sd \
--enable-compat-howl \
--with-distro=archlinux \
--with-avahi-priv-access-group=network \
--disable-autoipd --disable-glib --disable-pygtk --disable-mono --disable-xmltoman
make || return 1
make DESTDIR=${startdir}/pkg install
rm -rf ${MONO_SHARED_DIR}
#fix capability
sed -i -e 's|$DAEMON -D |modprobe capability > /dev/null 2>\&1 ; $DAEMON -D |' ${startdir}/pkg/etc/rc.d/avahi-daemon
sed -i -e 's/netdev/network/g' ${startdir}/pkg/etc/dbus-1/system.d/avahi-dbus.conf
# howl and mdnsresponder compatability
cd ${startdir}/pkg/usr/include
ln -s avahi-compat-libdns_sd/dns_sd.h dns_sd.h
ln -s avahi-compat-howl howl
cd ${startdir}/pkg/usr/lib/pkgconfig
ln -s avahi-compat-howl.pc howl.pc
mkdir -p ${startdir}/pkg/usr/share/pixmaps
# install -m 644 ${startdir}/src/gnome-nettool.png ${startdir}/pkg/usr/share/pixmaps/gnome-nettool.png
}
md5sums=('aab1a304851d8145ea5f6a85c10af9e9'
'42c2905307c7a5dc6ac4b75f4c3d65a3')
|