#Maintainer: Dimitris Tzemos pkgname=avahi pkgver=0.6.31 pkgrel=1dj source=("http://avahi.org/download/avahi-$pkgver.tar.gz" "README.Slackware") sourcetemplate=http://people.salixos.org/djemos/salix/$pkgname/$pkgver-\$arch-$pkgrel/ docs=("LICENSE" "README.Slackware") url=http://avahi.org options=('noautodotnew') dotnew=('/etc/avahi/avahi-dnsconfd.action' '/etc/avahi/avahi-daemon.conf' '/etc/avahi/hosts' '/etc/avahi/services/sftp-ssh.service' '/etc/avahi/services/ssh.service') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "avahi (service discovery aka zeroconf)" "Avahi is an Implementation the DNS Service Discovery and Multicast " "DNS specifications for Zeroconf Computing. It uses D-BUS for " "communication between user applications and a system daemon. The " "daemon is used to coordinate application efforts in caching replies," "necessary to minimize the traffic imposed on networks." "You must have an avahi user and group to run avahi." "Something like this should suffice for most systems: " "# groupadd -g 214 avahi" "# useradd -u 214 -g 214 -c 'Avahi' -d /dev/null -s /bin/false avahi" ) build() { cd $startdir/src/$pkgname-$pkgver ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --disable-static \ --disable-monodoc \ --disable-autoipd \ --enable-python-dbus \ --enable-pygtk\ --enable-glib \ --enable-dbus \ --enable-python \ --enable-gtk \ --disable-gtk3 \ --enable-qt4 \ --disable-qt3 \ --enable-core-docs \ --enable-compat-howl \ --enable-compat-libdns_sd \ --with-dbus-sys=/etc/dbus-1/system.d \ --with-avahi-user=avahi \ --with-avahi-group=avahi \ --with-avahi-priv-access-group=netdev \ --with-distro=slackware \ --program-prefix= \ --program-suffix= \ --build=$arch-slackware-linux \ --disable-mono make -j $numjobs || return 1 make install DESTDIR=$startdir/pkg mkdir -p $startdir/pkg/etc/rc.d/ || return 1 mkdir -p $startdir/pkg/etc/avahi/ || return 1 mkdir -p $startdir/pkg/etc/dbus-1/system.d/ || return 1 cp $startdir/src/$pkgname-$pkgver/initscript/slackware/rc.avahidaemon $startdir/pkg/etc/rc.d/rc.avahidaemon || return 1 cp $startdir/src/$pkgname-$pkgver/initscript/slackware/rc.avahidnsconfd $startdir/pkg/etc/rc.d/rc.avahidnsconfd || return 1 cp $startdir/src/$pkgname-$pkgver/avahi-daemon/avahi-daemon.conf $startdir/pkg/etc/avahi/avahi-daemon.conf || return 1 cp $startdir/src/$pkgname-$pkgver/avahi-daemon/avahi-dbus.conf $startdir/pkg/etc/dbus-1/system.d/avahi-dbus.conf || return 1 chown -R root:root $startdir/pkg }