Magellan Linux

Contents of /branches/magellan-next/extras/networkmanager/networkmanager-0.8.9997-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8882 - (show annotations) (download)
Thu Aug 4 23:57:52 2011 UTC (12 years, 8 months ago) by niro
File size: 3305 byte(s)
-fixed do not rebuild po files
1 # $Id$
2
3 PNAME="networkmanager"
4 PVER="0.8.4.0"
5 PBUILD="r1"
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.92
18 >= dev-libs/libnl-1.1
19 >= dev-libs/nss-3.12.10
20 >= sys-fs/e2fsprogs-1.41.14
21 >= sys-fs/udev-171
22 >= sys-apps/polkit-0.101
23 >= net-misc/modemmanager-0.4
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
36 SRCFILE="NetworkManager-${PVER}.tar.bz2"
37 SRCDIR="${BUILDDIR}/NetworkManager-${PVER}"
38
39 sminclude gnome2 mtools
40
41 SRC_URI=(
42 gnome://NetworkManager/${PVER%.*}/${SRCFILE}
43 gnome://NetworkManager/${PVER%.*.*}/${SRCFILE}
44 mirror://${PNAME}/${SRCFILE}
45 mirror://${PNAME}/nm-system-settings.conf
46 mirror://${PNAME}/${PNAME}-0.8.9997-magellan.patch
47 mirror://${PNAME}/${PNAME}-0.8.5.91-plugdev.patch
48 mirror://${PNAME}/${PNAME}-0.8.9997-hostname.patch
49 )
50
51 UP2DATE="updatecmd_gnome NetworkManager"
52
53 src_prepare()
54 {
55 munpack ${SRCFILE} || die
56 cd ${SRCDIR}
57
58 # support our distro
59 mpatch ${PNAME}-0.8.9997-magellan.patch || die
60
61 # allow plugdev group to do things
62 mpatch ${PNAME}-0.8.5.91-plugdev.patch || die
63
64 # do not change the hostname on magellan
65 mpatch ${PNAME}-0.8.9997-hostname.patch || die
66
67 # regen configure files
68 autoreconf --verbose --install --force || 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=/lib/udev \
88 --with-pppd-plugin-dir=/usr/$(mlibdir)/pppd/${PPP_PVER} \
89 --with-iptables=/sbin/iptables \
90 --with-dhcpcd=yes \
91 --with-dhclient=no \
92 --with-crypto=nss \
93 --enable-wimax=no \
94 --enable-polkit=yes \
95 --without-docs \
96 --without-resolvconf \
97 || die
98
99 mmake || die
100 }
101
102 src_install()
103 {
104 cd ${SRCDIR}
105
106 mmake DESTDIR=${BINDIR} install || die
107
108 # needed directories
109 mkeepdir /etc/NetworkManager/dispatcher.d || die
110 mkeepdir /var/run/NetworkManager || die
111
112 # add keyfile plugin support
113 mkeepdir /etc/NetworkManager/system-connections || die
114 minstallfile -s nm-system-settings.conf /etc/NetworkManager/NetworkManager.conf || die
115
116 minstalldocs AUTHORS ChangeLog NEWS README TODO || die
117 }
118
119 postinstall()
120 {
121 # reload dbus to load the nm config
122 mreloadservice dbus /usr/bin/dbus-daemon
123 mreloadunit dbus.service /usr/bin/dbus-daemon
124
125 echo
126 echo "To save system-wide settings as a user, that user needs to have the"
127 echo "right policykit privileges. You can add them by running:"
128 echo 'polkit-auth --grant org.freedesktop.network-manager-settings.system.modify --user "USERNAME"'
129 echo
130 }
131
132 postremove()
133 {
134 # reload dbus to unload the nm config
135 mreloadservice dbus /usr/bin/dbus-daemon
136 mreloadunit dbus /usr/bin/dbus-daemon
137 }