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
53
54
55
|
# Description: Service de DNS
# URL: http://www.avahi.org/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: libdaemon,intltool,dbus,dbus-python
# Run on: libdaemon,dbus,dbus-python
name=avahi-server
version=0.6.30
release=3
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 \
--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
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}}}
}
|