Contents of /trunk/extras/networkmanager/networkmanager-0.9.9.98-r1.smage2
Parent Directory
|
Revision Log
Revision 21569 -
(show annotations)
(download)
Tue Jul 1 12:07:56 2014 UTC (9 years, 11 months ago) by niro
File size: 3233 byte(s)
Tue Jul 1 12:07:56 2014 UTC (9 years, 11 months ago) by niro
File size: 3233 byte(s)
-fixed hardcoded ppp version
1 | # $Id$ |
2 | |
3 | PNAME="networkmanager" |
4 | PVER="0.9.9.98" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="net-misc" |
8 | STATE="disabled" |
9 | |
10 | DESCRIPTION="Network configuration and management in an easy way." |
11 | HOMEPAGE="http://projects.gnome.org/NetworkManager/" |
12 | |
13 | # hardcoded ppp version |
14 | PPP_PVER=2.4.6 |
15 | |
16 | DEPEND=">= sys-apps/dbus-1.8 |
17 | >= dev-libs/glib2-2.40 |
18 | >= dev-libs/dbus-glib-0.102 |
19 | >= dev-libs/libnl3-3.2.24 |
20 | >= dev-libs/nss-3.16 |
21 | >= sys-fs/udev-211 |
22 | >= sys-apps/polkit-0.112 |
23 | >= net-libs/libsoup-2.46 |
24 | >= net-libs/libproxy-networkmanager-0.4 |
25 | >= net-misc/modemmanager-1.0 |
26 | >= net-wlan/wireless-tools-30_pre9 |
27 | >= net-wlan/wpa-supplicant-2.2 |
28 | >= net-misc/dhcpcd-6.4 |
29 | == net-dialup/ppp-${PPP_PVER} |
30 | >= sys-apps/iproute2-3.12 |
31 | >= net-misc/iptables-1.4.21 |
32 | >= sys-libs/libelf-0.159 |
33 | >= sys-libs/libuuid-2.24" |
34 | |
35 | SDEPEND=">= dev-util/pkgconfig-0.25 |
36 | >= dev-util/intltool-0.50 |
37 | >= dev-libs/gobject-introspection-1.40 |
38 | >= net-wlan/bluez-5.20 |
39 | >= net-dns/avahi-0.6.31" |
40 | |
41 | SRCFILE="NetworkManager-${PVER}.tar.xz" |
42 | SRCDIR="${BUILDDIR}/NetworkManager-${PVER}" |
43 | |
44 | sminclude gnome2 mtools dbus udev systemd |
45 | |
46 | SRC_URI=( |
47 | gnome://NetworkManager/${PVER%.*}/${SRCFILE} |
48 | gnome://NetworkManager/${PVER%.*.*}/${SRCFILE} |
49 | mirror://${PNAME}/${SRCFILE} |
50 | mirror://${PNAME}/nm-system-settings.conf |
51 | mirror://${PNAME}/networkmanager.conf.tmpfile |
52 | mirror://${PNAME}/${PNAME}-0.9.6.0-hostname.patch |
53 | ) |
54 | |
55 | # use devel mode uneven numbers are stable versions too |
56 | UP2DATE="updatecmd_gnome NetworkManager --devel" |
57 | |
58 | src_prepare() |
59 | { |
60 | munpack ${SRCFILE} || die |
61 | cd ${SRCDIR} |
62 | |
63 | # do not change the hostname on magellan |
64 | mpatch ${PNAME}-0.9.6.0-hostname.patch || die |
65 | } |
66 | |
67 | src_compile() |
68 | { |
69 | cd ${SRCDIR} |
70 | |
71 | mconfigure \ |
72 | --libexecdir=/usr/$(mlibdir)/${PNAME} \ |
73 | --localstatedir=/var \ |
74 | --enable-more-warnings=yes \ |
75 | --disable-gtk-doc \ |
76 | --with-distro=magellan \ |
77 | --with-dbus-sys-dir=$(mget-dbus-config-dir) \ |
78 | --with-udev-dir=$(mget-udev-dir) \ |
79 | --with-systemdsystemunitdir=$(mget-systemd-unit-dir) \ |
80 | --with-pppd-plugin-dir=/usr/$(mlibdir)/pppd/${PPP_PVER} \ |
81 | --with-iptables=/sbin/iptables \ |
82 | --with-dhcpcd=yes \ |
83 | --with-dhclient=no \ |
84 | --with-crypto=nss \ |
85 | --enable-wimax=no \ |
86 | --enable-polkit=yes \ |
87 | --enable-introspection \ |
88 | --without-docs \ |
89 | --without-resolvconf \ |
90 | --with-session-tracking=systemd \ |
91 | --enable-modify-system \ |
92 | --with-modem-manager-1 \ |
93 | || die |
94 | |
95 | mmake || die |
96 | } |
97 | |
98 | src_install() |
99 | { |
100 | cd ${SRCDIR} |
101 | |
102 | mmake DESTDIR=${BINDIR} install || die |
103 | |
104 | # needed directories |
105 | mkeepdir /etc/NetworkManager/dispatcher.d || die |
106 | mkeepdir /var/lib/NetworkManager || die |
107 | mkeepdir /usr/$(mlibdir)/NetworkManager || die |
108 | |
109 | # add keyfile plugin support |
110 | mkeepdir /etc/NetworkManager/system-connections || die |
111 | minstallfile -s nm-system-settings.conf /etc/NetworkManager/NetworkManager.conf || die |
112 | |
113 | # run directory for systemd |
114 | minstalltmp networkmanager.conf.tmpfile networkmanager.conf || die |
115 | |
116 | minstalldocs AUTHORS ChangeLog NEWS README TODO || die |
117 | } |
118 | |
119 | postinstall() |
120 | { |
121 | # reload dbus to load the nm config |
122 | mreloadunit dbus.service /usr/bin/dbus-daemon |
123 | |
124 | echo |
125 | echo "For bluetooth support you may want install 'net-wlan/bluez' and" |
126 | echo "to make use of bonjour capabilities install 'net-dns/avahi'" |
127 | echo |
128 | } |
129 | |
130 | postremove() |
131 | { |
132 | # reload dbus to unload the nm config |
133 | mreloadunit dbus.service /usr/bin/dbus-daemon |
134 | } |