Magellan Linux

Annotation of /branches/magellan-next/extras/networkmanager/networkmanager-0.8.5.91-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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