summaryrefslogtreecommitdiffstats
path: root/extra/avahi-server/Pkgfile
blob: 2e5216ed10256dfeb68e912b11fd156366a24400 (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
# Description: Service de DNS
# URL: http://www.avahi.org/
# Maintainer: NuTyX core team 
# Packager: thierryn1 at hispeed dot ch
# Depends on: avahi, qt, gtk
# Run on: avahi

name=avahi-server
version=0.6.28
release=1
source=(http://www.avahi.org/download/avahi-$version.tar.gz\
	avahid network-wired.png)

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
        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*
}