Magellan Linux

Contents of /branches/magellan-next/extras/networkmanager/networkmanager-0.8.4.0-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, 9 months ago) by niro
File size: 3231 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
71 src_compile()
72 {
73 cd ${SRCDIR}
74
75 mconfigure \
76 --libexecdir=/usr/$(mlibdir)/${PNAME} \
77 --localstatedir=/var \
78 --enable-more-warnings=yes \
79 --disable-gtk-doc \
80 --with-distro=magellan \
81 --with-dbus-sys-dir=/etc/dbus-1/system.d \
82 --with-udev-dir=/lib/udev \
83 --with-pppd-plugin-dir=/usr/$(mlibdir)/pppd/${PPP_PVER} \
84 --with-iptables=/sbin/iptables \
85 --with-dhcpcd=yes \
86 --with-dhclient=no \
87 --with-crypto=nss \
88 --enable-wimax=no \
89 --enable-polkit=yes \
90 --without-docs \
91 --without-resolvconf \
92 || die
93
94 mmake || die
95 }
96
97 src_install()
98 {
99 cd ${SRCDIR}
100
101 mmake DESTDIR=${BINDIR} install || die
102
103 # needed directories
104 mkeepdir /etc/NetworkManager/dispatcher.d || die
105 mkeepdir /etc/NetworkManager/VPN || die
106 mkeepdir /var/run/NetworkManager || die
107 mkeepdir /var/lib/NetworkManager || die
108
109 # add keyfile plugin support
110 mkeepdir /etc/NetworkManager/system-connections || die
111 minstallfile -s nm-system-settings.conf /etc/NetworkManager/NetworkManager.conf || die
112
113 minstalldocs AUTHORS ChangeLog NEWS README TODO || die
114 }
115
116 postinstall()
117 {
118 # reload dbus to load the nm config
119 mreloadservice dbus /usr/bin/dbus-daemon
120 mreloadunit dbus.service /usr/bin/dbus-daemon
121
122 echo
123 echo "To save system-wide settings as a user, that user needs to have the"
124 echo "right policykit privileges. You can add them by running:"
125 echo 'polkit-auth --grant org.freedesktop.network-manager-settings.system.modify --user "USERNAME"'
126 echo
127 }
128
129 postremove()
130 {
131 # reload dbus to unload the nm config
132 mreloadservice dbus /usr/bin/dbus-daemon
133 mreloadunit dbus /usr/bin/dbus-daemon
134 }