Contents of /trunk/extras/networkmanager/networkmanager-0.9.4.0-r3.smage2
Parent Directory | Revision Log
Revision 12142 -
(show annotations)
(download)
Tue May 8 21:20:48 2012 UTC (12 years, 1 month ago) by niro
File size: 3815 byte(s)
Tue May 8 21:20:48 2012 UTC (12 years, 1 month ago) by niro
File size: 3815 byte(s)
-added another upstream patch to fix the connection issue
1 | # $Id$ |
2 | |
3 | PNAME="networkmanager" |
4 | PVER="0.9.4.0" |
5 | PBUILD="r3" |
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 | mirror://${PNAME}/${PNAME}-0.9.4.0-fix-nmremote-setting.patch |
53 | ) |
54 | |
55 | UP2DATE="updatecmd_gnome NetworkManager" |
56 | |
57 | src_prepare() |
58 | { |
59 | munpack ${SRCFILE} || die |
60 | cd ${SRCDIR} |
61 | |
62 | # support our distro |
63 | mpatch ${PNAME}-0.9.4.0-magellan-3.patch || die |
64 | |
65 | # allow plugdev group to do things |
66 | mpatch ${PNAME}-0.9.4.0-plugdev.patch || die |
67 | |
68 | # do not change the hostname on magellan |
69 | mpatch ${PNAME}-0.8.9997-hostname.patch || die |
70 | |
71 | # fix: Error: Can't obtain connections: settings service is not running. |
72 | # see: http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=8a2267ab6b37948a70c10f0af781be4822a54c6b |
73 | mpatch ${PNAME}-0.9.4.0-fix-connections.patch || die |
74 | mpatch ${PNAME}-0.9.4.0-fix-nmremote-setting.patch || die |
75 | |
76 | # regen configure files |
77 | mautoreconf || die |
78 | |
79 | # fix broken po makefile |
80 | # config.status: error: po/Makefile.in.in was not created by intltoolize. |
81 | autopoint --force || die |
82 | intltoolize --force || die |
83 | } |
84 | |
85 | src_compile() |
86 | { |
87 | cd ${SRCDIR} |
88 | |
89 | mconfigure \ |
90 | --libexecdir=/usr/$(mlibdir)/${PNAME} \ |
91 | --localstatedir=/var \ |
92 | --enable-more-warnings=yes \ |
93 | --disable-gtk-doc \ |
94 | --with-distro=magellan \ |
95 | --with-dbus-sys-dir=/etc/dbus-1/system.d \ |
96 | --with-udev-dir=/lib/udev \ |
97 | --with-systemdsystemunitdir=/usr/lib/systemd/system \ |
98 | --with-pppd-plugin-dir=/usr/$(mlibdir)/pppd/${PPP_PVER} \ |
99 | --with-iptables=/sbin/iptables \ |
100 | --with-dhcpcd=yes \ |
101 | --with-dhclient=no \ |
102 | --with-crypto=nss \ |
103 | --enable-wimax=no \ |
104 | --enable-polkit=yes \ |
105 | --enable-introspection \ |
106 | --without-docs \ |
107 | --without-resolvconf \ |
108 | --with-session-tracking=systemd \ |
109 | || die |
110 | |
111 | mmake || die |
112 | } |
113 | |
114 | src_install() |
115 | { |
116 | cd ${SRCDIR} |
117 | |
118 | mmake DESTDIR=${BINDIR} install || die |
119 | |
120 | # needed directories |
121 | mkeepdir /etc/NetworkManager/dispatcher.d || die |
122 | mkeepdir /var/lib/NetworkManager || die |
123 | |
124 | # add keyfile plugin support |
125 | mkeepdir /etc/NetworkManager/system-connections || die |
126 | minstallfile -s nm-system-settings.conf /etc/NetworkManager/NetworkManager.conf || die |
127 | |
128 | # run directory for systemd |
129 | minstalltmp networkmanager.conf.tmpfile networkmanager.conf || die |
130 | |
131 | minstalldocs AUTHORS ChangeLog NEWS README TODO || die |
132 | } |
133 | |
134 | postinstall() |
135 | { |
136 | # reload dbus to load the nm config |
137 | mreloadunit dbus.service /usr/bin/dbus-daemon |
138 | |
139 | echo |
140 | echo "For bluetooth support you may want install 'net-wlan/bluez' and" |
141 | echo "to make use of bonjour capabilities install 'net-dns/avahi'" |
142 | echo |
143 | } |
144 | |
145 | postremove() |
146 | { |
147 | # reload dbus to unload the nm config |
148 | mreloadunit dbus.service /usr/bin/dbus-daemon |
149 | } |