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


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

build() {
	cd $name-$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
	make
	make DESTDIR=$PKG install

	sed -i -e 's/netdev/network/g' \
		$PKG/etc/dbus-1/system.d/avahi-dbus.conf
	mkdir -v -p $PKG/usr/share/pixmaps
	install -m 644 ../network-wired.png  \
		$PKG/usr/share/pixmaps/network-wired.png
	rm -r $PKG/{etc/avahi,var,usr/share/man/man8,usr/sbin}
	
	sed -i '1c #!/usr/bin/python2' $PKG/usr/bin/avahi-{bookmarks,discover}	
}