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