Magellan Linux

Annotation of /branches/magellan-next/extras/networkmanager/networkmanager-0.8.1-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7014 - (hide annotations) (download)
Mon Sep 27 20:44:28 2010 UTC (13 years, 8 months ago) by niro
File size: 2906 byte(s)
-rev bump to 0.8.1-r2; rebased plugdev patch too
1 niro 7014 # $Id: networkmanager-0.8-r1.smage2 5166 2010-04-05 10:25:48Z niro $
2    
3     PNAME="networkmanager"
4     PVER="0.8.1"
5     PBUILD="r2"
6    
7     PCATEGORIE="net-misc"
8     STATE="unstable"
9    
10     DESCRIPTION="Network configuration and management in an easy way."
11     HOMEPAGE="http://projects.gnome.org/NetworkManager/"
12    
13     DEPEND=">= sys-apps/dbus-1.3
14     >= dev-libs/glib2-2.24
15     >= dev-libs/dbus-glib-0.88
16     >= dev-libs/libnl-1.1
17     >= dev-libs/nss-3.12.4
18     >= sys-fs/e2fsprogs-1.41.12
19     >= sys-fs/udev-162
20     >= sys-apps/polkit-0.96
21     >= net-misc/modemmanager-0.2
22     >= net-wlan/wireless-tools-30_pre9
23     >= net-wlan/wpa-supplicant-0.7.3
24     >= net-wlan/bluez-4.72
25     >= net-dns/avahi-0.6.27
26     >= net-misc/dhcpcd-5.2.7
27     >= net-dialup/ppp-2.4.5
28     >= sys-apps/iproute2-2.6.35
29     >= net-misc/iptables-1.4.9"
30    
31     SDEPEND=">= dev-util/pkgconfig-0.25
32     >= dev-util/intltool-0.41"
33    
34     SRCFILE="NetworkManager-${PVER}.tar.bz2"
35     SRCDIR="${BUILDDIR}/NetworkManager-${PVER}"
36    
37     sminclude gnome2 mtools
38    
39     SRC_URI=(
40     gnome://NetworkManager/${PVER%.*}/${SRCFILE}
41     mirror://${PNAME}/${SRCFILE}
42     mirror://${PNAME}/nm-system-settings.conf
43     mirror://${PNAME}/${PNAME}-${PVER}-magellan.patch
44     mirror://${PNAME}/${PNAME}-${PVER}-plugdev.patch
45     mirror://${PNAME}/${PNAME}-${PVER}-hostname.patch
46     )
47    
48     UP2DATE="updatecmd_gnome NetworkManager"
49    
50     src_prepare()
51     {
52     munpack ${SRCFILE} || die
53     cd ${SRCDIR}
54    
55     # support our distro
56     mpatch ${PNAME}-${PVER}-magellan.patch || die
57    
58     # allow plugdev group to do things
59     mpatch ${PNAME}-${PVER}-plugdev.patch || die
60    
61     # do not change the hostname on magellan
62     mpatch ${PNAME}-${PVER}-hostname.patch || die
63    
64     # regen configure files
65     autoreconf --verbose --install --force || die
66     }
67    
68     src_compile()
69     {
70     cd ${SRCDIR}
71    
72     mconfigure \
73     --libexecdir=/usr/$(mlibdir)/${PNAME} \
74     --localstatedir=/var \
75     --disable-more-warnings \
76     --disable-gtk-doc \
77     --with-distro=magellan \
78     --with-dbus-sys-dir=/etc/dbus-1/system.d \
79     --with-udev-dir=/etc/udev \
80     --with-iptables=/sbin/iptables \
81     --with-dhcp-client=dhcpcd \
82     --with-crypto=nss \
83     --without-docs \
84     --without-resolvconf \
85     || die
86    
87     mmake || die
88     }
89    
90     src_install()
91     {
92     cd ${SRCDIR}
93    
94     mmake DESTDIR=${BINDIR} install || die
95    
96     # needed directories
97     mkeepdir /etc/NetworkManager/dispatcher.d || die
98     mkeepdir /var/run/NetworkManager || die
99    
100     # add keyfile plugin support
101     mkeepdir /etc/NetworkManager/system-connections || die
102     minstallfile -s nm-system-settings.conf /etc/NetworkManager/ || die
103    
104     minstalldocs AUTHORS ChangeLog NEWS README TODO || die
105     }
106    
107     postinstall()
108     {
109     # restart dbus to load the nm config
110     mstartservice dbus /usr/bin/dbus-daemon
111    
112     echo
113     echo "To save system-wide settings as a user, that user needs to have the"
114     echo "right policykit privileges. You can add them by running:"
115     echo 'polkit-auth --grant org.freedesktop.network-manager-settings.system.modify --user "USERNAME"'
116     echo
117     }
118    
119     postremove()
120     {
121     if [ ! -f ${MROOT}/usr/bin/dbus-daemon ]
122     then
123     mstopservice dbus /usr/bin/dbus-daemon
124     fi
125     }