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