Annotation of /trunk/core/avahi/avahi-0.6.25-r1.smage2
Parent Directory | Revision Log
Revision 1293 -
(hide annotations)
(download)
Tue Apr 28 16:58:44 2009 UTC (15 years, 5 months ago) by niro
File size: 2560 byte(s)
Tue Apr 28 16:58:44 2009 UTC (15 years, 5 months ago) by niro
File size: 2560 byte(s)
-ver bump to 0.6.25-r1; initial release
1 | niro | 1293 | # $ID$ |
2 | |||
3 | PNAME="avahi" | ||
4 | PVER="0.6.25" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCATEGORIE="net-dns" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="Avahi is a system which facilitates service discovery on a local network." | ||
11 | HOMEPAGE="http://avahi.org/" | ||
12 | |||
13 | DEPEND=">= dev-libs/libdaemon-0.13 | ||
14 | >= dev-libs/expat-2 | ||
15 | >= dev-libs/glib-2.20 | ||
16 | >= sys-apps/dbus-1.2 | ||
17 | >= sys-libs/libcap-2.16" | ||
18 | #>= x11-libs/qt | ||
19 | #>= x11-libs/qt4 | ||
20 | #>= x11-libs/gtk+-2.4.0 | ||
21 | #>= gnome-base/libglade-2.4.0 | ||
22 | |||
23 | SDEPEND=">= dev-util/intltool-0.40 | ||
24 | >= dev-util/pkgconfig-0.23" | ||
25 | |||
26 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
27 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
28 | |||
29 | sminclude mtools mbuild | ||
30 | |||
31 | SRC_URI=( | ||
32 | http://avahi.org/download/${SRCFILE} | ||
33 | mirror://${PNAME}/${SRCFILE} | ||
34 | mirror://${PNAME}/avahi-daemon.rc | ||
35 | mirror://${PNAME}/avahi-dnsconfd.rc | ||
36 | mirror://${PNAME}/autoipd.sh | ||
37 | mirror://${PNAME}/autoipd-openrc.sh | ||
38 | ) | ||
39 | |||
40 | UP2DATE="updatecmd ${HOMEPAGE}/download | grep ${PNAME}- | lasttarball gz" | ||
41 | |||
42 | src_compile() | ||
43 | { | ||
44 | cd ${SRCDIR} | ||
45 | |||
46 | mconfigure \ | ||
47 | --localstatedir=/var \ | ||
48 | --with-distro=none \ | ||
49 | --enable-compat-libdns_sd \ | ||
50 | --enable-compat-howl \ | ||
51 | --enable-autoipd \ | ||
52 | --with-autoipd-user=avahi \ | ||
53 | --with-autoipd-group=avahi \ | ||
54 | --disable-python-dbus \ | ||
55 | --disable-pygtk \ | ||
56 | --disable-monodoc \ | ||
57 | --disable-doxygen-doc \ | ||
58 | --disable-xmltoman \ | ||
59 | --disable-gdbm \ | ||
60 | --disable-mono \ | ||
61 | --disable-python \ | ||
62 | --enable-dbus \ | ||
63 | --enable-glib \ | ||
64 | --disable-gtk \ | ||
65 | --disable-qt3 \ | ||
66 | --disable-qt4 \ | ||
67 | || die | ||
68 | |||
69 | mmake || die | ||
70 | } | ||
71 | |||
72 | src_install() | ||
73 | { | ||
74 | cd ${SRCDIR} | ||
75 | mmake DESTDIR=${BINDIR} install || die | ||
76 | |||
77 | # for howl and mdnsresponder compat | ||
78 | mlink avahi-compat-howl.pc /usr/$(mlibdir)/pkgconfig/howl.pc || die | ||
79 | mlink avahi-compat-libdns_sd.pc /usr/$(mlibdir)/pkgconfig/libdns_sd.pc || die | ||
80 | mlink avahi-compat-libdns_sd/dns_sd.h /usr/include/dns_sd.h || die | ||
81 | |||
82 | # autoipd scripts | ||
83 | minstalldir /$(mlibdir)/rcscripts/net || die | ||
84 | minstalldir /$(mlibdir)/rc/net || die | ||
85 | minstallfile -s autoipd.sh /$(mlibdir)/rcscripts/net || die | ||
86 | minstallfile -s autoipd-openrc.sh /$(mlibdir)/rc/net/autoipd.sh || die | ||
87 | |||
88 | # init scripts | ||
89 | minstallrc avahi-daemon.rc avahi-daemon || die | ||
90 | minstallrc avahi-dnsconfd.rc avahi-dnsconfd || die | ||
91 | |||
92 | minstalldocs ChangeLog LICENSE README | ||
93 | } | ||
94 | |||
95 | preinstall() | ||
96 | { | ||
97 | # adding avahi user | ||
98 | ${MLIBDIR}/mgroupadd -o "-g 303" netdev | ||
99 | ${MLIBDIR}/mgroupadd -o "-g 304" avahi | ||
100 | ${MLIBDIR}/museradd -o "-u 304 -g avahi -d /dev/null -s /bin/false" avahi | ||
101 | } | ||
102 | |||
103 | postinstall() | ||
104 | { | ||
105 | # reload dbus config here | ||
106 | [[ -n $(pidof dbus-daemon) ]] && /etc/init.d/dbus reload | ||
107 | |||
108 | mstartservice avahi-daemon | ||
109 | mstartservice avahi-dnsconfd | ||
110 | } | ||
111 | |||
112 | postremove() | ||
113 | { | ||
114 | mstopservice avahi-daemon | ||
115 | mstopservice avahi-dnsconfd | ||
116 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |