Magellan Linux

Contents of /branches/magellan-next/extras/networkmanager/networkmanager-0.9.0-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9216 - (show annotations) (download)
Tue Nov 8 22:58:35 2011 UTC (12 years, 6 months ago) by niro
File size: 3235 byte(s)
-do not rely on sysV init, systemd only now possible
1 # $Id$
2
3 PNAME="networkmanager"
4 PVER="0.9.0"
5 PBUILD="r2"
6
7 PCATEGORIE="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.4
16 >= dev-libs/glib2-2.28
17 >= dev-libs/dbus-glib-0.94
18 >= dev-libs/libnl-1.1
19 >= dev-libs/nss-3.12.10
20 >= sys-fs/e2fsprogs-1.41.14
21 >= sys-fs/udev-172
22 >= sys-apps/polkit-0.101
23 >= net-misc/modemmanager-0.5
24 >= net-wlan/wireless-tools-30_pre9
25 >= net-wlan/wpa-supplicant-0.7.3
26 >= net-wlan/bluez-4.95
27 >= net-dns/avahi-0.6.30
28 >= net-misc/dhcpcd-5.2.12
29 == net-dialup/ppp-${PPP_PVER}
30 >= sys-apps/iproute2-2.6.38
31 >= net-misc/iptables-1.4.11"
32
33 SDEPEND=">= dev-util/pkgconfig-0.25
34 >= dev-util/intltool-0.41
35 >= dev-libs/gobject-introspection-0.10"
36
37 SRCFILE="NetworkManager-${PVER}.tar.bz2"
38 SRCDIR="${BUILDDIR}/NetworkManager-${PVER}"
39
40 sminclude gnome2 mtools
41
42 SRC_URI=(
43 gnome://NetworkManager/${PVER%.*}/${SRCFILE}
44 gnome://NetworkManager/${PVER%.*.*}/${SRCFILE}
45 mirror://${PNAME}/${SRCFILE}
46 mirror://${PNAME}/nm-system-settings.conf
47 mirror://${PNAME}/networkmanager.conf.tmpfile
48 mirror://${PNAME}/${PNAME}-0.9.0-magellan-2.patch
49 mirror://${PNAME}/${PNAME}-0.8.5.91-plugdev.patch
50 mirror://${PNAME}/${PNAME}-0.8.9997-hostname.patch
51 )
52
53 UP2DATE="updatecmd_gnome NetworkManager"
54
55 src_prepare()
56 {
57 munpack ${SRCFILE} || die
58 cd ${SRCDIR}
59
60 # support our distro
61 mpatch ${PNAME}-0.9.0-magellan-2.patch || die
62
63 # allow plugdev group to do things
64 mpatch ${PNAME}-0.8.5.91-plugdev.patch || die
65
66 # do not change the hostname on magellan
67 mpatch ${PNAME}-0.8.9997-hostname.patch || die
68
69 # regen configure files
70 autoreconf --verbose --install --force || die
71
72 # fix broken po makefile
73 # config.status: error: po/Makefile.in.in was not created by intltoolize.
74 autopoint --force || die
75 intltoolize --force || die
76 }
77
78 src_compile()
79 {
80 cd ${SRCDIR}
81
82 mconfigure \
83 --libexecdir=/usr/$(mlibdir)/${PNAME} \
84 --localstatedir=/var \
85 --enable-more-warnings=yes \
86 --disable-gtk-doc \
87 --with-distro=magellan \
88 --with-dbus-sys-dir=/etc/dbus-1/system.d \
89 --with-udev-dir=/lib/udev \
90 --with-systemdsystemunitdir=/lib/systemd/system \
91 --with-pppd-plugin-dir=/usr/$(mlibdir)/pppd/${PPP_PVER} \
92 --with-iptables=/sbin/iptables \
93 --with-dhcpcd=yes \
94 --with-dhclient=no \
95 --with-crypto=nss \
96 --enable-wimax=no \
97 --enable-polkit=yes \
98 --enable-introspection \
99 --without-docs \
100 --without-resolvconf \
101 || die
102
103 mmake || die
104 }
105
106 src_install()
107 {
108 cd ${SRCDIR}
109
110 mmake DESTDIR=${BINDIR} install || die
111
112 # needed directories
113 mkeepdir /etc/NetworkManager/dispatcher.d || die
114 mkeepdir /var/lib/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
132 postremove()
133 {
134 # reload dbus to unload the nm config
135 mreloadunit dbus.service /usr/bin/dbus-daemon
136 }