Annotation of /branches/magellan-next/extras/networkmanager/networkmanager-0.8.9997-r1.smage2
Parent Directory | Revision Log
Revision 8874 -
(hide annotations)
(download)
Thu Aug 4 21:48:21 2011 UTC (12 years, 9 months ago) by niro
File size: 3077 byte(s)
Thu Aug 4 21:48:21 2011 UTC (12 years, 9 months ago) by niro
File size: 3077 byte(s)
auto added: ver bump to 0.8.9997-r1
1 | niro | 8874 | # $Id$ |
2 | |||
3 | PNAME="networkmanager" | ||
4 | PVER="0.8.9997" | ||
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.5.91-magellan.patch | ||
46 | mirror://${PNAME}/${PNAME}-0.8.5.91-plugdev.patch | ||
47 | mirror://${PNAME}/${PNAME}-0.8.1-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.5.91-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.1-hostname.patch || die | ||
65 | |||
66 | # regen configure files | ||
67 | autoreconf --verbose --install --force || die | ||
68 | } | ||
69 | |||
70 | src_compile() | ||
71 | { | ||
72 | cd ${SRCDIR} | ||
73 | |||
74 | mconfigure \ | ||
75 | --libexecdir=/usr/$(mlibdir)/${PNAME} \ | ||
76 | --localstatedir=/var \ | ||
77 | --disable-more-warnings \ | ||
78 | --disable-gtk-doc \ | ||
79 | --with-distro=magellan \ | ||
80 | --with-dbus-sys-dir=/etc/dbus-1/system.d \ | ||
81 | --with-udev-dir=/lib/udev \ | ||
82 | --with-pppd-plugin-dir=/usr/$(mlibdir)/pppd/${PPP_PVER} \ | ||
83 | --with-iptables=/sbin/iptables \ | ||
84 | --with-dhcpcd=yes \ | ||
85 | --with-dhclient=no \ | ||
86 | --with-crypto=nss \ | ||
87 | --enable-wimax=no \ | ||
88 | --enable-polkit=yes \ | ||
89 | --without-docs \ | ||
90 | --without-resolvconf \ | ||
91 | || die | ||
92 | |||
93 | mmake || die | ||
94 | } | ||
95 | |||
96 | src_install() | ||
97 | { | ||
98 | cd ${SRCDIR} | ||
99 | |||
100 | mmake DESTDIR=${BINDIR} install || die | ||
101 | |||
102 | # needed directories | ||
103 | mkeepdir /etc/NetworkManager/dispatcher.d || die | ||
104 | mkeepdir /var/run/NetworkManager || die | ||
105 | |||
106 | # add keyfile plugin support | ||
107 | mkeepdir /etc/NetworkManager/system-connections || die | ||
108 | minstallfile -s nm-system-settings.conf /etc/NetworkManager/ || die | ||
109 | |||
110 | minstalldocs AUTHORS ChangeLog NEWS README TODO || die | ||
111 | } | ||
112 | |||
113 | postinstall() | ||
114 | { | ||
115 | # reload dbus to load the nm config | ||
116 | mreloadservice dbus /usr/bin/dbus-daemon | ||
117 | mreloadunit dbus.service /usr/bin/dbus-daemon | ||
118 | |||
119 | echo | ||
120 | echo "To save system-wide settings as a user, that user needs to have the" | ||
121 | echo "right policykit privileges. You can add them by running:" | ||
122 | echo 'polkit-auth --grant org.freedesktop.network-manager-settings.system.modify --user "USERNAME"' | ||
123 | echo | ||
124 | } | ||
125 | |||
126 | postremove() | ||
127 | { | ||
128 | # reload dbus to unload the nm config | ||
129 | mreloadservice dbus /usr/bin/dbus-daemon | ||
130 | mreloadunit dbus /usr/bin/dbus-daemon | ||
131 | } |