Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5166 - (show annotations) (download)
Mon Apr 5 10:25:48 2010 UTC (14 years ago) by niro
File size: 2796 byte(s)
auto added: ver bump to 0.8-r1
1 # $Id$
2
3 PNAME="networkmanager"
4 PVER="0.8"
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-wlan/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/iptables-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}-0.7.999-magellan.patch
44 mirror://${PNAME}/${PNAME}-0.7.999-plugdev.patch
45 mirror://${PNAME}/${PNAME}-0.7.999-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}-0.7.999-magellan.patch || die
57
58 # allow plugdev group to do things
59 mpatch ${PNAME}-0.7.999-plugdev.patch || die
60
61 # do not change the hostname on magellan
62 mpatch ${PNAME}-0.7.999-hostname.patch || die
63
64 # regen configure files
65 autoreconf --verbose --install --force || die
66 }
67
68 src_compile()
69 {
70 cd ${SRCDIR}
71
72 mconfigure \
73 --localstatedir=/var \
74 --disable-more-warnings \
75 --disable-gtk-doc \
76 --with-distro=magellan \
77 --with-dbus-sys-dir=/etc/dbus-1/system.d \
78 --with-udev-dir=/etc/udev \
79 --with-iptables=/sbin/iptables \
80 --with-dhcp-client=dhcpcd \
81 --with-crypto=nss \
82 --without-docs \
83 --without-resolvconf \
84 || die
85
86 mmake || die
87 }
88
89 src_install()
90 {
91 cd ${SRCDIR}
92
93 mmake DESTDIR=${BINDIR} install || die
94
95 # needed directories
96 mkeepdir /etc/NetworkManager/dispatcher.d || die
97 mkeepdir /var/run/NetworkManager || die
98
99 # add keyfile plugin support
100 mkeepdir /etc/NetworkManager/system-connections || die
101 minstallfile -s nm-system-settings.conf /etc/NetworkManager/ || die
102
103 minstalldocs AUTHORS ChangeLog NEWS README TODO || die
104 }
105
106 postinstall()
107 {
108 # restart dbus to load the nm config
109 mstartservice dbus /usr/bin/dbus-daemon
110
111 echo
112 echo "To save system-wide settings as a user, that user needs to have the"
113 echo "right policykit privileges. You can add them by running:"
114 echo 'polkit-auth --grant org.freedesktop.network-manager-settings.system.modify --user "USERNAME"'
115 echo
116 }
117
118 postremove()
119 {
120 if [ ! -f ${MROOT}/usr/bin/dbus-daemon ]
121 then
122 mstopservice dbus /usr/bin/dbus-daemon
123 fi
124 }

Properties

Name Value
svn:keywords Id