Contents of /trunk/extras/networkmanager/networkmanager-0.9.4.0-r2.smage2
Parent Directory | Revision Log
Revision 12141 -
(show annotations)
(download)
Tue May 8 20:29:41 2012 UTC (12 years, 1 month ago) by niro
File size: 3693 byte(s)
Tue May 8 20:29:41 2012 UTC (12 years, 1 month ago) by niro
File size: 3693 byte(s)
-added patch to fix 'Error: Can't obtain connections: settings service is not running.'
1 | # $Id$ |
2 | |
3 | PNAME="networkmanager" |
4 | PVER="0.9.4.0" |
5 | PBUILD="r2" |
6 | |
7 | PCAT="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.5 |
16 | >= dev-libs/glib2-2.32 |
17 | >= dev-libs/dbus-glib-0.98 |
18 | >= dev-libs/libnl-1.1 |
19 | >= dev-libs/nss-3.13 |
20 | >= sys-fs/e2fsprogs-1.42 |
21 | >= sys-fs/udev-181 |
22 | >= sys-apps/polkit-0.104 |
23 | >= net-misc/modemmanager-0.5 |
24 | >= net-wlan/wireless-tools-30_pre9 |
25 | >= net-wlan/wpa-supplicant-0.7.3 |
26 | >= net-misc/dhcpcd-5.2.12 |
27 | == net-dialup/ppp-${PPP_PVER} |
28 | >= sys-apps/iproute2-3.2 |
29 | >= net-misc/iptables-1.4.12" |
30 | |
31 | SDEPEND=">= dev-util/pkgconfig-0.25 |
32 | >= dev-util/intltool-0.50 |
33 | >= dev-libs/gobject-introspection-1.32 |
34 | >= net-wlan/bluez-4.99 |
35 | >= net-dns/avahi-0.6.31" |
36 | |
37 | SRCFILE="NetworkManager-${PVER}.tar.xz" |
38 | SRCDIR="${BUILDDIR}/NetworkManager-${PVER}" |
39 | |
40 | sminclude gnome2 mtools |
41 | |
42 | SRC_URI=( |
43 | gnome://NetworkManager/${PVER%.*}/${SRCFILE} |
44 | gnome://NetworkManager/${PVER%.*.*}/${SRCFILE} |
45 | mirror://${PNAME}/${SRCFILE} |
46 | mirror://${PNAME}/nm-system-settings.conf |
47 | mirror://${PNAME}/networkmanager.conf.tmpfile |
48 | mirror://${PNAME}/${PNAME}-0.9.4.0-magellan-3.patch |
49 | mirror://${PNAME}/${PNAME}-0.9.4.0-plugdev.patch |
50 | mirror://${PNAME}/${PNAME}-0.8.9997-hostname.patch |
51 | mirror://${PNAME}/${PNAME}-0.9.4.0-fix-connections.patch |
52 | ) |
53 | |
54 | UP2DATE="updatecmd_gnome NetworkManager" |
55 | |
56 | src_prepare() |
57 | { |
58 | munpack ${SRCFILE} || die |
59 | cd ${SRCDIR} |
60 | |
61 | # support our distro |
62 | mpatch ${PNAME}-0.9.4.0-magellan-3.patch || die |
63 | |
64 | # allow plugdev group to do things |
65 | mpatch ${PNAME}-0.9.4.0-plugdev.patch || die |
66 | |
67 | # do not change the hostname on magellan |
68 | mpatch ${PNAME}-0.8.9997-hostname.patch || die |
69 | |
70 | # fix: Error: Can't obtain connections: settings service is not running. |
71 | # see: http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=8a2267ab6b37948a70c10f0af781be4822a54c6b |
72 | mpatch ${PNAME}-0.9.4.0-fix-connections.patch || die |
73 | |
74 | # regen configure files |
75 | mautoreconf || die |
76 | |
77 | # fix broken po makefile |
78 | # config.status: error: po/Makefile.in.in was not created by intltoolize. |
79 | autopoint --force || die |
80 | intltoolize --force || die |
81 | } |
82 | |
83 | src_compile() |
84 | { |
85 | cd ${SRCDIR} |
86 | |
87 | mconfigure \ |
88 | --libexecdir=/usr/$(mlibdir)/${PNAME} \ |
89 | --localstatedir=/var \ |
90 | --enable-more-warnings=yes \ |
91 | --disable-gtk-doc \ |
92 | --with-distro=magellan \ |
93 | --with-dbus-sys-dir=/etc/dbus-1/system.d \ |
94 | --with-udev-dir=/lib/udev \ |
95 | --with-systemdsystemunitdir=/usr/lib/systemd/system \ |
96 | --with-pppd-plugin-dir=/usr/$(mlibdir)/pppd/${PPP_PVER} \ |
97 | --with-iptables=/sbin/iptables \ |
98 | --with-dhcpcd=yes \ |
99 | --with-dhclient=no \ |
100 | --with-crypto=nss \ |
101 | --enable-wimax=no \ |
102 | --enable-polkit=yes \ |
103 | --enable-introspection \ |
104 | --without-docs \ |
105 | --without-resolvconf \ |
106 | --with-session-tracking=systemd \ |
107 | || die |
108 | |
109 | mmake || die |
110 | } |
111 | |
112 | src_install() |
113 | { |
114 | cd ${SRCDIR} |
115 | |
116 | mmake DESTDIR=${BINDIR} install || die |
117 | |
118 | # needed directories |
119 | mkeepdir /etc/NetworkManager/dispatcher.d || die |
120 | mkeepdir /var/lib/NetworkManager || die |
121 | |
122 | # add keyfile plugin support |
123 | mkeepdir /etc/NetworkManager/system-connections || die |
124 | minstallfile -s nm-system-settings.conf /etc/NetworkManager/NetworkManager.conf || die |
125 | |
126 | # run directory for systemd |
127 | minstalltmp networkmanager.conf.tmpfile networkmanager.conf || die |
128 | |
129 | minstalldocs AUTHORS ChangeLog NEWS README TODO || die |
130 | } |
131 | |
132 | postinstall() |
133 | { |
134 | # reload dbus to load the nm config |
135 | mreloadunit dbus.service /usr/bin/dbus-daemon |
136 | |
137 | echo |
138 | echo "For bluetooth support you may want install 'net-wlan/bluez' and" |
139 | echo "to make use of bonjour capabilities install 'net-dns/avahi'" |
140 | echo |
141 | } |
142 | |
143 | postremove() |
144 | { |
145 | # reload dbus to unload the nm config |
146 | mreloadunit dbus.service /usr/bin/dbus-daemon |
147 | } |