summaryrefslogtreecommitdiffstats
path: root/abs/core/avahi/PKGBUILD
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-09-26 01:57:08 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-09-26 01:57:08 (GMT)
commit7b29169fff9e7c624890c5edffe85def8a293136 (patch)
tree47753889faa3a2063b66d1c7e7681e703eb1b39a /abs/core/avahi/PKGBUILD
parentc491dea779dac29afff3578bf8245943817c2339 (diff)
downloadlinhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.zip
linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.gz
linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.bz2
LinHES 6.01.00
Diffstat (limited to 'abs/core/avahi/PKGBUILD')
-rw-r--r--abs/core/avahi/PKGBUILD64
1 files changed, 64 insertions, 0 deletions
diff --git a/abs/core/avahi/PKGBUILD b/abs/core/avahi/PKGBUILD
new file mode 100644
index 0000000..c448d16
--- /dev/null
+++ b/abs/core/avahi/PKGBUILD
@@ -0,0 +1,64 @@
+# $Id: PKGBUILD 23159 2009-01-04 04:58:11Z douglas $
+# Maintainer: Douglas Soares de Andrade <douglas@archlinux.org>
+
+pkgname=avahi
+pkgver=0.6.24
+pkgrel=2
+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')
+optdepends=('qt3:Qt3 UI support' 'libglade:Avahi-discover-standalone'
+ 'nss-mdns:NSS support for mDNS')
+makedepends=('mono' 'pygtk' 'gtk-sharp-2' 'dbus-python' '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 gnome-nettool.png)
+
+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 \
+ --enable-autoipd \
+ --with-autoipd-user=avahi \
+ --with-autoipd-group=avahi
+
+ 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=('068c1d220b07037e64caf87d4a7a0504'
+ '42c2905307c7a5dc6ac4b75f4c3d65a3')