From b9d63c0f958a3c9fb54bb80599e5cda600c68f91 Mon Sep 17 00:00:00 2001 From: James Meyer Date: Mon, 20 Oct 2008 15:14:55 -0500 Subject: adding avahi and missing required packages. -dbus-python -libdeamon --- abs/core-testing/avahi/ChangeLog | 5 +++ abs/core-testing/avahi/PKGBUILD | 65 +++++++++++++++++++++++++++++++ abs/core-testing/avahi/avahi.install | 42 ++++++++++++++++++++ abs/core-testing/avahi/gnome-nettool.png | Bin 0 -> 4509 bytes abs/core-testing/dbus-python/PKGBUILD | 22 +++++++++++ abs/core-testing/libdaemon/PKGBUILD | 23 +++++++++++ 6 files changed, 157 insertions(+) create mode 100644 abs/core-testing/avahi/ChangeLog create mode 100644 abs/core-testing/avahi/PKGBUILD create mode 100644 abs/core-testing/avahi/avahi.install create mode 100644 abs/core-testing/avahi/gnome-nettool.png create mode 100644 abs/core-testing/dbus-python/PKGBUILD create mode 100644 abs/core-testing/libdaemon/PKGBUILD diff --git a/abs/core-testing/avahi/ChangeLog b/abs/core-testing/avahi/ChangeLog new file mode 100644 index 0000000..e4d3f7a --- /dev/null +++ b/abs/core-testing/avahi/ChangeLog @@ -0,0 +1,5 @@ + +2008-07-22 Douglas Soares de Andrade + + * Updated for i686: 0.6.23 + diff --git a/abs/core-testing/avahi/PKGBUILD b/abs/core-testing/avahi/PKGBUILD new file mode 100644 index 0000000..f98180b --- /dev/null +++ b/abs/core-testing/avahi/PKGBUILD @@ -0,0 +1,65 @@ +# $Id: PKGBUILD 6066 2008-07-23 03:45:52Z douglas $ +# Maintainer: Travis Willard + +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') + diff --git a/abs/core-testing/avahi/avahi.install b/abs/core-testing/avahi/avahi.install new file mode 100644 index 0000000..f0beca8 --- /dev/null +++ b/abs/core-testing/avahi/avahi.install @@ -0,0 +1,42 @@ +post_install() { + echo -n "adding avahi system group... " + groupadd -g 84 avahi && echo "done." + echo -n "adding avahi system user... " + useradd -c "Avahi daemon" -u 84 -d / -g avahi -s /bin/false avahi \ + && echo "done." + passwd -l avahi &>/dev/null + + post_upgrade + cat << 'EOM' +==> 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-web for avahi-bookmarks. + +EOM +} + +post_upgrade() { + true +} + +pre_remove() { + # pre_remove gets called whenever post_remove is defined. + true +} + +post_remove() { + # post_remove doesn't start at a newline like the other post_* functions, + # so we'll have to make one for ourselves. + echo -n -e "\nremoving avahi system user... " + userdel avahi && echo "done." +} + +op=$1 +shift +$op $* diff --git a/abs/core-testing/avahi/gnome-nettool.png b/abs/core-testing/avahi/gnome-nettool.png new file mode 100644 index 0000000..227d067 Binary files /dev/null and b/abs/core-testing/avahi/gnome-nettool.png differ diff --git a/abs/core-testing/dbus-python/PKGBUILD b/abs/core-testing/dbus-python/PKGBUILD new file mode 100644 index 0000000..e3e845f --- /dev/null +++ b/abs/core-testing/dbus-python/PKGBUILD @@ -0,0 +1,22 @@ +# $Id: PKGBUILD 9903 2008-08-20 20:08:55Z jgc $ +# Maintainer: Jan de Groot + +pkgname=dbus-python +pkgver=0.83.0 +pkgrel=1 +pkgdesc="Python bindings for DBUS" +arch=(i686 x86_64) +license=('GPL' 'LGPL') +url="http://www.freedesktop.org/wiki/Software/DBusBindings" +depends=('dbus-glib>=0.76' 'python>=2.5') +makedepends=('pkgconfig') +options=('!libtool') +source=(http://dbus.freedesktop.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.gz) +md5sums=('562c78876219bf458d79a041af18293d') + +build() { + cd ${startdir}/src/${pkgname}-${pkgver} + ./configure --prefix=/usr || return 1 + make || return 1 + make DESTDIR=${startdir}/pkg install || return 1 +} diff --git a/abs/core-testing/libdaemon/PKGBUILD b/abs/core-testing/libdaemon/PKGBUILD new file mode 100644 index 0000000..8750faf --- /dev/null +++ b/abs/core-testing/libdaemon/PKGBUILD @@ -0,0 +1,23 @@ +# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $ +# Maintainer: Mark Rosenstand +# Contributor: Manolis Tzanidakis +pkgname=libdaemon +pkgver=0.12 +pkgrel=1 +pkgdesc="A lightweight C library which eases the writing of UNIX daemons." +arch=('i686' 'x86_64') +license=('LGPL') +url="http://0pointer.de/lennart/projects/libdaemon/" +depends=('glibc') +source=(http://0pointer.de/lennart/projects/libdaemon/$pkgname-$pkgver.tar.gz) +md5sums=('76596823cc1a6d1cdf7779b782ff0ee6') +sha1sums=('2b45ab37df853afd25f7985ed699b799e0464413') +options=('!libtool') + +build() { + cd $startdir/src/$pkgname-$pkgver + ./configure --prefix=/usr --disable-doxygen --disable-lynx + make || return 1 + make DESTDIR=$startdir/pkg install +} + -- cgit v0.12