Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

Name Value
svn:keywords Id