Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 16028 - (show annotations) (download)
Mon Jan 21 12:20:32 2013 UTC (11 years, 4 months ago) by niro
File size: 3396 byte(s)
-rebuild, libnl3 soname change and added a missing directory
1 # $Id$
2
3 PNAME="networkmanager"
4 PVER="0.9.6.4"
5 PBUILD="r2"
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.18
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 mkeepdir /usr/$(mlibdir)/NetworkManager || die
116
117 # add keyfile plugin support
118 mkeepdir /etc/NetworkManager/system-connections || die
119 minstallfile -s nm-system-settings.conf /etc/NetworkManager/NetworkManager.conf || die
120
121 # run directory for systemd
122 minstalltmp networkmanager.conf.tmpfile networkmanager.conf || die
123
124 minstalldocs AUTHORS ChangeLog NEWS README TODO || die
125 }
126
127 postinstall()
128 {
129 # reload dbus to load the nm config
130 mreloadunit dbus.service /usr/bin/dbus-daemon
131
132 echo
133 echo "For bluetooth support you may want install 'net-wlan/bluez' and"
134 echo "to make use of bonjour capabilities install 'net-dns/avahi'"
135 echo
136 }
137
138 postremove()
139 {
140 # reload dbus to unload the nm config
141 mreloadunit dbus.service /usr/bin/dbus-daemon
142 }