blob: 580a6d170e897697e6a53a4cdfe8a4116299f3e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/NetworkManager/NetworkManager-0.6.4_pre20061028.ebuild,v 1.2 2006/10/31 09:18:53 metalgod Exp $
inherit gnome2 debug eutils
DESCRIPTION="Network configuration and management in an easy way. Desktop env independent"
HOMEPAGE="http://www.gnome.org/projects/NetworkManager/"
SRC_URI="http://dev.gentoo.org/~metalgod/files/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="crypt debug doc gnome"
RDEPEND=">=sys-apps/dbus-0.60
>=sys-apps/hal-0.5
sys-apps/iproute2
>=dev-libs/libnl-1.0_pre6
net-misc/dhcdbd
>=sys-auth/pam_console-0.99.6
>=net-wireless/wireless-tools-28_pre9
>=net-wireless/wpa_supplicant-0.4.8
>=dev-libs/glib-2.8
>=x11-libs/libnotify-0.3.2
gnome? ( >=x11-libs/gtk+-2.8
>=gnome-base/libglade-2
>=gnome-base/gnome-keyring-0.4
>=gnome-base/gnome-panel-2
>=gnome-base/gconf-2
>=gnome-base/libgnomeui-2 )
crypt? ( dev-libs/libgcrypt )"
DEPEND="${RDEPEND}
dev-util/pkgconfig
dev-util/intltool"
S=${WORKDIR}/${PN}
DOCS="AUTHORS COPYING ChangeLog INSTALL NEWS README"
USE_DESTDIR="1"
G2CONF="${G2CONF} \
`use_with crypt gcrypt` \
--disable-more-warnings \
--localstatedir=/var \
--with-distro=gentoo \
--with-dbus-sys=/etc/dbus-1/system.d \
--enable-notification-icon"
src_unpack () {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/NetworkManager-0.6.4-Gentoo-checklo.patch
epatch ${FILESDIR}/NetworkManager-use-kernel-headers.patch
epatch ${FILESDIR}/NetworkManager-resolvconf-perms.patch
epatch ${FILESDIR}/NetworkManager-0.6.4-gentooinitscript.patch
epatch ${FILESDIR}/NetworkManager-0.6.4-confchanges.patch
}
src_install() {
gnome2_src_install
keepdir /var/run/NetworkManager
}
pkg_postinst() {
gnome2_icon_cache_update
einfo
einfo "NetworkManager doesn't work with all wifi devices"
einfo "to see if your card is supported please visit"
einfo "http://live.gnome.org/NetworkManagerHardware"
einfo
einfo "You can use NetworkManager instead of baselayout"
einfo "to manage your networks but you are advised to use"
einfo "baselayout because NetworkManager is beta software"
einfo "and don't work fully as expected."
einfo
einfo "If it's the first time you run NetworkManager please"
einfo "restart dbus doing /etc/init.d/dbus restart"
einfo
einfo "To use NetworkManager disable all entries on runlevels"
einfo "net.***X and run /etc/init.d/NetworkManager"
einfo "you can add to runlevels writing on your terminal"
einfo "rc-update add NetworkManager default"
einfo
ebeep
}
|