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