Magellan Linux

Contents of /trunk/extras/networkmanager/networkmanager-0.9.6.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14249 - (show annotations) (download)
Tue Dec 4 12:57:36 2012 UTC (11 years, 6 months ago) by niro
File size: 3348 byte(s)
auto added: ver bump to 0.9.6.4-r1
1 # $Id$
2
3 PNAME="networkmanager"
4 PVER="0.9.6.4"
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.5
14
15 DEPEND=">= sys-apps/dbus-1.6
16 >= dev-libs/glib2-2.34
17 >= dev-libs/dbus-glib-0.100
18 >= dev-libs/libnl3-3.2.13
19 >= dev-libs/nss-3.13
20 >= sys-fs/udev-188
21 >= sys-apps/polkit-0.107
22 >= net-libs/libsoup-2.40
23 >= net-libs/libproxy-networkmanager-0.4
24 >= net-misc/modemmanager-0.6
25 >= net-wlan/wireless-tools-30_pre9
26 >= net-wlan/wpa-supplicant-0.7.3
27 >= net-misc/dhcpcd-5.5
28 == net-dialup/ppp-${PPP_PVER}
29 >= sys-apps/iproute2-3.2
30 >= net-misc/iptables-1.4.12
31 >= sys-libs/libelf-0.155
32 >= sys-libs/libuuid-2.22"
33
34 SDEPEND=">= dev-util/pkgconfig-0.25
35 >= dev-util/intltool-0.50
36 >= dev-libs/gobject-introspection-1.34
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.6.0-magellan.patch
52 mirror://${PNAME}/${PNAME}-0.9.6.0-hostname.patch
53 )
54
55 UP2DATE="updatecmd_gnome NetworkManager"
56
57 src_prepare()
58 {
59 munpack ${SRCFILE} || die
60 cd ${SRCDIR}
61
62 # support our distro
63 mpatch ${PNAME}-0.9.6.0-magellan.patch || die
64
65 # do not change the hostname on magellan
66 mpatch ${PNAME}-0.9.6.0-hostname.patch || die
67
68 # regen configure files
69 mautoreconf || die
70
71 # fix broken po makefile
72 # config.status: error: po/Makefile.in.in was not created by intltoolize.
73 autopoint --force || die
74 intltoolize --force || die
75 }
76
77 src_compile()
78 {
79 cd ${SRCDIR}
80
81 mconfigure \
82 --libexecdir=/usr/$(mlibdir)/${PNAME} \
83 --localstatedir=/var \
84 --enable-more-warnings=yes \
85 --disable-gtk-doc \
86 --with-distro=magellan \
87 --with-dbus-sys-dir=/etc/dbus-1/system.d \
88 --with-udev-dir=/usr/lib/udev \
89 --with-systemdsystemunitdir=/usr/lib/systemd/system \
90 --with-pppd-plugin-dir=/usr/$(mlibdir)/pppd/${PPP_PVER} \
91 --with-iptables=/sbin/iptables \
92 --with-dhcpcd=yes \
93 --with-dhclient=no \
94 --with-crypto=nss \
95 --enable-wimax=no \
96 --enable-polkit=yes \
97 --enable-introspection \
98 --without-docs \
99 --without-resolvconf \
100 --with-session-tracking=systemd \
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 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 }