Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12753 - (show annotations) (download)
Mon Jul 2 14:37:15 2012 UTC (11 years, 11 months ago) by niro
File size: 4054 byte(s)
-marked unstable
1 # $Id$
2
3 PNAME="networkmanager"
4 PVER="0.9.4.0"
5 PBUILD="r6"
6
7 PCAT="net-misc"
8 STATE="unstable"
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.5
15
16 DEPEND=">= sys-apps/dbus-1.5
17 >= dev-libs/glib2-2.32
18 >= dev-libs/dbus-glib-0.98
19 >= dev-libs/libnl3-3.2.11
20 >= dev-libs/nss-3.13
21 >= sys-fs/e2fsprogs-1.42
22 >= sys-fs/udev-181
23 >= sys-apps/polkit-0.104
24 >= net-libs/libsoup-2.38
25 >= net-misc/modemmanager-0.5
26 >= net-wlan/wireless-tools-30_pre9
27 >= net-wlan/wpa-supplicant-0.7.3
28 >= net-misc/dhcpcd-5.2.12
29 == net-dialup/ppp-${PPP_PVER}
30 >= sys-apps/iproute2-3.2
31 >= net-misc/iptables-1.4.12
32 >= sys-libs/libelf-0.152"
33
34 SDEPEND=">= dev-util/pkgconfig-0.25
35 >= dev-util/intltool-0.50
36 >= dev-libs/gobject-introspection-1.32
37 >= net-wlan/bluez-4.99
38 >= net-dns/avahi-0.6.31"
39
40 SRCFILE="NetworkManager-${PVER}.tar.xz"
41 SRCDIR="${BUILDDIR}/NetworkManager-${PVER}"
42
43 sminclude gnome2 mtools
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.4.0-magellan-3.patch
52 mirror://${PNAME}/${PNAME}-0.9.4.0-plugdev.patch
53 mirror://${PNAME}/${PNAME}-0.8.9997-hostname.patch
54 mirror://${PNAME}/${PNAME}-0.9.4.0-fix-connections.patch
55 mirror://${PNAME}/${PNAME}-0.9.4.0-fix-nmremote-setting.patch
56 mirror://${PNAME}/${PNAME}-0.9.4.0-linux-libc-headers.patch
57 )
58
59 UP2DATE="updatecmd_gnome NetworkManager"
60
61 src_prepare()
62 {
63 munpack ${SRCFILE} || die
64 cd ${SRCDIR}
65
66 # support our distro
67 mpatch ${PNAME}-0.9.4.0-magellan-3.patch || die
68
69 # allow plugdev group to do things
70 mpatch ${PNAME}-0.9.4.0-plugdev.patch || die
71
72 # do not change the hostname on magellan
73 mpatch ${PNAME}-0.8.9997-hostname.patch || die
74
75 # fix: Error: Can't obtain connections: settings service is not running.
76 # see: http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=8a2267ab6b37948a70c10f0af781be4822a54c6b
77 mpatch ${PNAME}-0.9.4.0-fix-connections.patch || die
78 mpatch ${PNAME}-0.9.4.0-fix-nmremote-setting.patch || die
79
80 # fix ftbfs with >=linux-libc-headers-3.4
81 mpatch ${PNAME}-0.9.4.0-linux-libc-headers.patch || die
82
83 # regen configure files
84 mautoreconf || die
85
86 # fix broken po makefile
87 # config.status: error: po/Makefile.in.in was not created by intltoolize.
88 autopoint --force || die
89 intltoolize --force || die
90 }
91
92 src_compile()
93 {
94 cd ${SRCDIR}
95
96 mconfigure \
97 --libexecdir=/usr/$(mlibdir)/${PNAME} \
98 --localstatedir=/var \
99 --enable-more-warnings=yes \
100 --disable-gtk-doc \
101 --with-distro=magellan \
102 --with-dbus-sys-dir=/etc/dbus-1/system.d \
103 --with-udev-dir=/usr/lib/udev \
104 --with-systemdsystemunitdir=/usr/lib/systemd/system \
105 --with-pppd-plugin-dir=/usr/$(mlibdir)/pppd/${PPP_PVER} \
106 --with-iptables=/sbin/iptables \
107 --with-dhcpcd=yes \
108 --with-dhclient=no \
109 --with-crypto=nss \
110 --enable-wimax=no \
111 --enable-polkit=yes \
112 --enable-introspection \
113 --without-docs \
114 --without-resolvconf \
115 --with-session-tracking=systemd \
116 || die
117
118 mmake || die
119 }
120
121 src_install()
122 {
123 cd ${SRCDIR}
124
125 mmake DESTDIR=${BINDIR} install || die
126
127 # needed directories
128 mkeepdir /etc/NetworkManager/dispatcher.d || die
129 mkeepdir /var/lib/NetworkManager || die
130
131 # add keyfile plugin support
132 mkeepdir /etc/NetworkManager/system-connections || die
133 minstallfile -s nm-system-settings.conf /etc/NetworkManager/NetworkManager.conf || die
134
135 # run directory for systemd
136 minstalltmp networkmanager.conf.tmpfile networkmanager.conf || die
137
138 minstalldocs AUTHORS ChangeLog NEWS README TODO || die
139 }
140
141 postinstall()
142 {
143 # reload dbus to load the nm config
144 mreloadunit dbus.service /usr/bin/dbus-daemon
145
146 echo
147 echo "For bluetooth support you may want install 'net-wlan/bluez' and"
148 echo "to make use of bonjour capabilities install 'net-dns/avahi'"
149 echo
150 }
151
152 postremove()
153 {
154 # reload dbus to unload the nm config
155 mreloadunit dbus.service /usr/bin/dbus-daemon
156 }