Magellan Linux

Contents of /trunk/extras/networkmanager/networkmanager-0.9.4.0-r6.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12841 - (show annotations) (download)
Wed Jul 4 08:41:22 2012 UTC (11 years, 10 months ago) by niro
File size: 4037 byte(s)
-marked stable
1 # $Id$
2
3 PNAME="networkmanager"
4 PVER="0.9.4.0"
5 PBUILD="r6"
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/libnl3-3.2.11
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 mirror://${PNAME}/${PNAME}-0.9.4.0-linux-libc-headers.patch
56 )
57
58 UP2DATE="updatecmd_gnome NetworkManager"
59
60 src_prepare()
61 {
62 munpack ${SRCFILE} || die
63 cd ${SRCDIR}
64
65 # support our distro
66 mpatch ${PNAME}-0.9.4.0-magellan-3.patch || die
67
68 # allow plugdev group to do things
69 mpatch ${PNAME}-0.9.4.0-plugdev.patch || die
70
71 # do not change the hostname on magellan
72 mpatch ${PNAME}-0.8.9997-hostname.patch || die
73
74 # fix: Error: Can't obtain connections: settings service is not running.
75 # see: http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=8a2267ab6b37948a70c10f0af781be4822a54c6b
76 mpatch ${PNAME}-0.9.4.0-fix-connections.patch || die
77 mpatch ${PNAME}-0.9.4.0-fix-nmremote-setting.patch || die
78
79 # fix ftbfs with >=linux-libc-headers-3.4
80 mpatch ${PNAME}-0.9.4.0-linux-libc-headers.patch || die
81
82 # regen configure files
83 mautoreconf || die
84
85 # fix broken po makefile
86 # config.status: error: po/Makefile.in.in was not created by intltoolize.
87 autopoint --force || die
88 intltoolize --force || die
89 }
90
91 src_compile()
92 {
93 cd ${SRCDIR}
94
95 mconfigure \
96 --libexecdir=/usr/$(mlibdir)/${PNAME} \
97 --localstatedir=/var \
98 --enable-more-warnings=yes \
99 --disable-gtk-doc \
100 --with-distro=magellan \
101 --with-dbus-sys-dir=/etc/dbus-1/system.d \
102 --with-udev-dir=/usr/lib/udev \
103 --with-systemdsystemunitdir=/usr/lib/systemd/system \
104 --with-pppd-plugin-dir=/usr/$(mlibdir)/pppd/${PPP_PVER} \
105 --with-iptables=/sbin/iptables \
106 --with-dhcpcd=yes \
107 --with-dhclient=no \
108 --with-crypto=nss \
109 --enable-wimax=no \
110 --enable-polkit=yes \
111 --enable-introspection \
112 --without-docs \
113 --without-resolvconf \
114 --with-session-tracking=systemd \
115 || die
116
117 mmake || die
118 }
119
120 src_install()
121 {
122 cd ${SRCDIR}
123
124 mmake DESTDIR=${BINDIR} install || die
125
126 # needed directories
127 mkeepdir /etc/NetworkManager/dispatcher.d || die
128 mkeepdir /var/lib/NetworkManager || die
129
130 # add keyfile plugin support
131 mkeepdir /etc/NetworkManager/system-connections || die
132 minstallfile -s nm-system-settings.conf /etc/NetworkManager/NetworkManager.conf || die
133
134 # run directory for systemd
135 minstalltmp networkmanager.conf.tmpfile networkmanager.conf || die
136
137 minstalldocs AUTHORS ChangeLog NEWS README TODO || die
138 }
139
140 postinstall()
141 {
142 # reload dbus to load the nm config
143 mreloadunit dbus.service /usr/bin/dbus-daemon
144
145 echo
146 echo "For bluetooth support you may want install 'net-wlan/bluez' and"
147 echo "to make use of bonjour capabilities install 'net-dns/avahi'"
148 echo
149 }
150
151 postremove()
152 {
153 # reload dbus to unload the nm config
154 mreloadunit dbus.service /usr/bin/dbus-daemon
155 }