Magellan Linux

Contents of /branches/R11-stable/extras/networkmanager/networkmanager-0.9.8.10-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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