Magellan Linux

Annotation of /trunk/core/avahi/avahi-0.6.25-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3465 - (hide annotations) (download)
Wed Oct 21 20:54:13 2009 UTC (14 years, 6 months ago) by niro
File size: 2906 byte(s)
auto added: ver bump to 0.6.25-r2
1 niro 3465 # $Id$
2    
3     PNAME="avahi"
4     PVER="0.6.25"
5     PBUILD="r2"
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.14
14     >= dev-libs/expat-2
15     >= dev-libs/glib2-2.22
16     >= sys-apps/dbus-1.3
17     >= sys-libs/libcap-2.17"
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     if [[ ! -z $(magequery -n mdnsresponder) ]]
98     then
99     echo -e ${COLRED}
100     echo -e "Error: net-misc/mdnsresponder is installed!!"
101     echo -e "mdnsresponder is now superseeded by avahi and deprecated in this distribution."
102     echo -e "Please uninstall net-misc/mdnsresponder first!"
103     echo -e ${COLDEFAULT}
104     die "net-misc/mdnsresponder found!"
105     fi
106    
107     # adding avahi user
108     ${MLIBDIR}/mgroupadd -o "-g 303" netdev
109     ${MLIBDIR}/mgroupadd -o "-g 304" avahi
110     ${MLIBDIR}/museradd -o "-u 304 -g avahi -d /dev/null -s /bin/false" avahi
111     }
112    
113     postinstall()
114     {
115     # reload dbus config here
116     [[ -n $(pidof dbus-daemon) ]] && /etc/init.d/dbus reload
117    
118     mstartservice avahi-daemon
119     mstartservice avahi-dnsconfd
120     }
121    
122     postremove()
123     {
124     mstopservice avahi-daemon
125     mstopservice avahi-dnsconfd
126     }

Properties

Name Value
svn:keywords Id