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