Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


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