summaryrefslogtreecommitdiffstats
path: root/extra/avahi-server/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'extra/avahi-server/Pkgfile')
-rw-r--r--extra/avahi-server/Pkgfile79
1 files changed, 41 insertions, 38 deletions
diff --git a/extra/avahi-server/Pkgfile b/extra/avahi-server/Pkgfile
index 137ca2eaa..f8e8262f3 100644
--- a/extra/avahi-server/Pkgfile
+++ b/extra/avahi-server/Pkgfile
@@ -2,51 +2,54 @@
# URL: http://www.avahi.org/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
-# Depends on: qt, gtk, libdaemon, pygtk, dbus-python
-# Run on:
+# Depends on: libdaemon
+# Run on: libdaemon
name=avahi-server
version=0.6.30
-release=1
-source=(http://www.avahi.org/download/avahi-$version.tar.gz\
- avahid network-wired.png)
+release=2
+source=(http://www.avahi.org/download/avahi-$version.tar.gz
+ avahid)
build() {
cd avahi-$version
PYTHON=python2 ./configure \
- --prefix=/usr \
- --sysconfdir=/etc \
- --localstatedir=/var/lib \
- --disable-gtk3 \
- --disable-qt3 \
- --disable-monodoc \
- --disable-doxygen-doc \
- --disable-xmltoman \
- --disable-mono \
- --enable-compat-libdns_sd \
- --enable-compat-howl \
- --with-distro=lfs \
- --with-avahi-priv-access-group=network \
- --with-autoipd-user=avahi \
- --with-autoipd-group=avahi \
- --with-systemdsystemunitdir=/lib/systemd/system \
- --enable-autoipd
- make
- make DESTDIR=$PKG install
- mkdir -v -p $PKG/etc/rc.d/init.d
- mkdir -v -p $PKG/etc/rc.d/rc{0,1,3,4,5,6}.d
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var/lib \
+ --enable-autoipd \
+ --disable-gtk3 \
+ --disable-gtk \
+ --disable-pygtk \
+ --disable-qt3 \
+ --disable-qt4 \
+ --disable-monodoc \
+ --disable-doxygen-doc \
+ --disable-xmltoman \
+ --disable-mono \
+ --enable-compat-libdns_sd \
+ --enable-compat-howl \
+ --with-distro=lfs \
+ --with-avahi-priv-access-group=network \
+ --with-autoipd-user=avahi \
+ --with-autoipd-group=avahi \
+ --with-systemdsystemunitdir=/lib/systemd/system
+ for i in avahi-common avahi-core; do
+ make -C $i
+ done
+ for i in avahi-autoipd avahi-daemon avahi-dnsconfd man; do
+ make -C $i
+ make -C $i DESTDIR=$PKG install
+ done
+
+ mkdir -p $PKG/etc/rc.d/{init.d,rc{0,1,2,3,4,5,6}.d}
install -D -m755 ../avahid $PKG/etc/rc.d/init.d/avahid
- ln -svf ../init.d/avahid $PKG/etc/rc.d/rc3.d/S43avahid
- ln -svf ../init.d/avahid $PKG/etc/rc.d/rc5.d/S43avahid
- ln -svf ../init.d/avahid $PKG/etc/rc.d/rc4.d/S43avahid
- ln -svf ../init.d/avahid $PKG/etc/rc.d/rc0.d/K13avahid
- ln -svf ../init.d/avahid $PKG/etc/rc.d/rc1.d/K13avahid
- ln -svf ../init.d/avahid $PKG/etc/rc.d/rc6.d/K13avahid
- rm -r $PKG/{etc/dbus-1,usr/{include,bin,lib,share/{avahi,locale,applications,man/man{1,5}}}}
- rm $PKG/lib/systemd/system/avahi-*
- rm $PKG/usr/share/dbus-1/interfaces/org.freedesktop.Avahi.*
- rm $PKG/usr/share/dbus-1/system-services/org.freedesktop.Avahi.service
- rm $PKG/usr/share/gir-1.0/Avahi*
+ for i in 3 4 5; do
+ ln -svf ../init.d/avahid $PKG/etc/rc.d/rc$i.d/S43avahid
+ done
+ for i in 0 1 2 6; do
+ ln -svf ../init.d/avahid $PKG/etc/rc.d/rc$i.d/K13avahid
+ done
+ rm -rf $PKG/{lib,etc/dbus-1,usr/share/{avahi,dbus-1,man/man{1,5}}}
}
-