Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4888 - (show annotations) (download)
Sat Feb 13 11:30:25 2010 UTC (14 years, 4 months ago) by niro
File size: 2735 byte(s)
-fixed dependencies and SRCDIR
1 # $Id$
2
3 PNAME="networkmanager"
4 PVER="0.7.999"
5 PBUILD="r1"
6
7 PCATEGORIE="net-misc"
8 STATE="unstable"
9
10 DESCRIPTION="Network configuration and management in an easy way."
11 HOMEPAGE="http://projects.gnome.org/NetworkManager/"
12
13 DEPEND=">= sys-apps/dbus-1.3
14 >= dev-libs/glib2-2.22
15 >= dev-libs/dbus-glib-0.82
16 >= dev-libs/libnl-1.1
17 >= dev-libs/nss-3.12.4
18 >= sys-fs/e2fsprogs-1.41.9
19 >= sys-fs/udev-146
20 >= sys-apps/polkit-0.96
21 >= net-misc/modemmanager-0.2
22 >= net-wlan/wireless-tools-30_pre8
23 >= net-wlan/wpa_supplicant-0.6.9
24 >= net-wireless/bluez-4.56
25 >= net-dns/avahi-0.6.25
26 >= net-misc/dhcpcd-5.1.1
27 >= net-dialup/ppp-2.4.4
28 >= sys-apps/iproute2-2.6.29
29 >= net-misc/iptables1-1.4.5"
30
31 SDEPEND=">= dev-util/pkgconfig-0.23
32 >= dev-util/intltool-0.40"
33
34 SRCFILE="NetworkManager-${PVER}.tar.bz2"
35 SRCDIR="${BUILDDIR}/NetworkManager-${PVER}"
36
37 sminclude gnome2 mtools
38
39 SRC_URI=(
40 gnome://NetworkManager/${PVER%.*}/${SRCFILE}
41 mirror://${PNAME}/${SRCFILE}
42 mirror://${PNAME}/nm-system-settings.conf
43 mirror://${PNAME}/${PNAME}-${PVER}-magellan.patch
44 mirror://${PNAME}/${PNAME}-${PVER}-plugdev.patch
45 mirror://${PNAME}/${PNAME}-${PVER}-hostname.patch
46 )
47
48 UP2DATE="updatecmd_gnome NetworkManager"
49
50 src_prepare()
51 {
52 munpack ${SRCFILE} || die
53 cd ${SRCDIR}
54
55 # support our distro
56 mpatch ${PNAME}-${PVER}-magellan.patch || die
57
58 # allow plugdev group to do things
59 mpatch ${PNAME}-${PVER}-plugdev.patch || die
60
61 # do not change the hostname on magellan
62 mpatch ${PNAME}-${PVER}-hostname.patch || die
63 }
64
65 src_compile()
66 {
67 cd ${SRCDIR}
68
69 mconfigure \
70 --localstatedir=/var \
71 --disable-more-warnings \
72 --disable-gtk-doc \
73 --with-distro=magellan \
74 --with-dbus-sys-dir=/etc/dbus-1/system.d \
75 --with-udev-dir=/etc/udev \
76 --with-iptables=/sbin/iptables \
77 --with-dhcp-client=dhcpcd \
78 --with-crypto=nss \
79 --without-docs \
80 --without-resolvconf \
81 || die
82
83 mmake || die
84 }
85
86 src_install()
87 {
88 cd ${SRCDIR}
89
90 mmake DESTDIR=${BINDIR} install || die
91
92 # needed directories
93 mkeepdir /etc/NetworkManager/dispatcher.d || die
94 mkeepdir /var/run/NetworkManager || die
95
96 # add keyfile plugin support
97 mkeepdir /etc/NetworkManager/system-connections || die
98 minstallfile -s nm-system-settings.conf /etc/NetworkManager/ || die
99
100 minstalldocs AUTHORS ChangeLog NEWS README TODO || die
101 }
102
103 postinstall()
104 {
105 # restart dbus to load the nm config
106 mstartservice dbus /usr/bin/dbus-daemon
107
108 echo
109 echo "To save system-wide settings as a user, that user needs to have the"
110 echo "right policykit privileges. You can add them by running:"
111 echo 'polkit-auth --grant org.freedesktop.network-manager-settings.system.modify --user "USERNAME"'
112 echo
113 }
114
115 postremove()
116 {
117 if [ ! -f ${MROOT}/usr/bin/dbus-daemon ]
118 then
119 mstopservice dbus /usr/bin/dbus-daemon
120 fi
121 }

Properties

Name Value
svn:keywords Id