Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 13422 - (show annotations) (download)
Sat Oct 6 20:06:11 2012 UTC (11 years, 8 months ago) by niro
File size: 3307 byte(s)
-rebuild
1 # $Id$
2
3 PNAME="networkmanager"
4 PVER="0.9.6.0"
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.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-misc/modemmanager-0.6
24 >= net-wlan/wireless-tools-30_pre9
25 >= net-wlan/wpa-supplicant-0.7.3
26 >= net-misc/dhcpcd-5.5
27 == net-dialup/ppp-${PPP_PVER}
28 >= sys-apps/iproute2-3.2
29 >= net-misc/iptables-1.4.12
30 >= sys-libs/libelf-0.155
31 >= sys-libs/libuuid-2.22"
32
33 SDEPEND=">= dev-util/pkgconfig-0.25
34 >= dev-util/intltool-0.50
35 >= dev-libs/gobject-introspection-1.34
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.6.0-magellan.patch
51 mirror://${PNAME}/${PNAME}-0.9.6.0-hostname.patch
52 )
53
54 UP2DATE="updatecmd_gnome NetworkManager"
55
56 src_prepare()
57 {
58 munpack ${SRCFILE} || die
59 cd ${SRCDIR}
60
61 # support our distro
62 mpatch ${PNAME}-0.9.6.0-magellan.patch || die
63
64 # do not change the hostname on magellan
65 mpatch ${PNAME}-0.9.6.0-hostname.patch || die
66
67 # regen configure files
68 mautoreconf || die
69
70 # fix broken po makefile
71 # config.status: error: po/Makefile.in.in was not created by intltoolize.
72 autopoint --force || die
73 intltoolize --force || die
74 }
75
76 src_compile()
77 {
78 cd ${SRCDIR}
79
80 mconfigure \
81 --libexecdir=/usr/$(mlibdir)/${PNAME} \
82 --localstatedir=/var \
83 --enable-more-warnings=yes \
84 --disable-gtk-doc \
85 --with-distro=magellan \
86 --with-dbus-sys-dir=/etc/dbus-1/system.d \
87 --with-udev-dir=/usr/lib/udev \
88 --with-systemdsystemunitdir=/usr/lib/systemd/system \
89 --with-pppd-plugin-dir=/usr/$(mlibdir)/pppd/${PPP_PVER} \
90 --with-iptables=/sbin/iptables \
91 --with-dhcpcd=yes \
92 --with-dhclient=no \
93 --with-crypto=nss \
94 --enable-wimax=no \
95 --enable-polkit=yes \
96 --enable-introspection \
97 --without-docs \
98 --without-resolvconf \
99 --with-session-tracking=systemd \
100 || die
101
102 mmake || die
103 }
104
105 src_install()
106 {
107 cd ${SRCDIR}
108
109 mmake DESTDIR=${BINDIR} install || die
110
111 # needed directories
112 mkeepdir /etc/NetworkManager/dispatcher.d || die
113 mkeepdir /var/lib/NetworkManager || die
114
115 # add keyfile plugin support
116 mkeepdir /etc/NetworkManager/system-connections || die
117 minstallfile -s nm-system-settings.conf /etc/NetworkManager/NetworkManager.conf || die
118
119 # run directory for systemd
120 minstalltmp networkmanager.conf.tmpfile networkmanager.conf || die
121
122 minstalldocs AUTHORS ChangeLog NEWS README TODO || die
123 }
124
125 postinstall()
126 {
127 # reload dbus to load the nm config
128 mreloadunit dbus.service /usr/bin/dbus-daemon
129
130 echo
131 echo "For bluetooth support you may want install 'net-wlan/bluez' and"
132 echo "to make use of bonjour capabilities install 'net-dns/avahi'"
133 echo
134 }
135
136 postremove()
137 {
138 # reload dbus to unload the nm config
139 mreloadunit dbus.service /usr/bin/dbus-daemon
140 }