Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 219305 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/gnome-extra/nm-applet/nm-applet-0.6.6.ebuild (-4 / +35 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2008 Gentoo Foundation
1
# Copyright 1999-2008 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/nm-applet/nm-applet-0.6.6.ebuild,v 1.4 2008/08/17 16:15:22 maekke Exp $
3
# $Header: 
4
4
5
inherit gnome2 eutils
5
inherit gnome2 eutils
6
6
Lines 13-19 Link Here
13
LICENSE="GPL-2"
13
LICENSE="GPL-2"
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="amd64 ~ppc x86"
15
KEYWORDS="amd64 ~ppc x86"
16
IUSE="debug doc libnotify"
16
IUSE="cisco debug doc libnotify openvpn"
17
17
18
RDEPEND=">=sys-apps/dbus-0.60
18
RDEPEND=">=sys-apps/dbus-0.60
19
	>=sys-apps/hal-0.5
19
	>=sys-apps/hal-0.5
Lines 27-35 Link Here
27
	>=x11-libs/gtk+-2.10
27
	>=x11-libs/gtk+-2.10
28
	>=gnome-base/libglade-2
28
	>=gnome-base/libglade-2
29
	>=gnome-base/gnome-keyring-0.4
29
	>=gnome-base/gnome-keyring-0.4
30
	>=gnome-base/gnome-panel-2
31
	>=gnome-base/gconf-2
30
	>=gnome-base/gconf-2
32
	>=gnome-base/libgnomeui-2"
31
	>=gnome-base/libgnomeui-2
32
	cisco? ( net-misc/networkmanager-vpnc )
33
	openvpn? ( net-misc/networkmanager-openvpn )"
34
33
DEPEND="${RDEPEND}
35
DEPEND="${RDEPEND}
34
	dev-util/pkgconfig
36
	dev-util/pkgconfig
35
	>=dev-util/intltool-0.35"
37
	>=dev-util/intltool-0.35"
Lines 44-49 Link Here
44
	$(use_with libnotify notify)"
46
	$(use_with libnotify notify)"
45
47
46
#S=${WORKDIR}/${PN}-${MY_PV}
48
#S=${WORKDIR}/${PN}-${MY_PV}
49
pkg_setup() {
50
	if use openvpn && ( ! built_with_use net-misc/networkmanager gnome || \
51
		! built_with_use net-misc/networkmanager-openvpn gnome ); then
52
		eerror ""
53
		eerror "To make use of the openvpn feature you have to compile"
54
		eerror "net-misc/networkmanager and net-misc/networkmanager-openvpn"
55
		eerror "with the \"gnome\" USE flag."
56
		eerror ""
57
		die "Fix use flag and re-emerge."
58
	fi
59
	if use cisco && ( ! built_with_use net-misc/networkmanager gnome || \
60
		! built_with_use net-misc/networkmanager-vpnc gnome ); then
61
		eerror ""
62
		eerror "To make use of the cisco feature you have to compile"
63
		eerror "net-misc/networkmanager and net-misc/networkmanager-vpnc"
64
		eerror "with the \"gnome\" USE flag."
65
		eerror ""
66
		die "Fix use flag and re-emerge."
67
	fi
68
}
47
69
48
src_unpack() {
70
src_unpack() {
49
	unpack ${A}
71
	unpack ${A}
Lines 53-58 Link Here
53
75
54
pkg_postinst() {
76
pkg_postinst() {
55
	gnome2_pkg_postinst
77
	gnome2_pkg_postinst
78
79
	if ! built_with_use sys-auth/pambase gnome-keyring; then
80
		elog ""
81
		elog "To get rid of the password prompt for the gnome keyring you need"
82
		elog "to compile sys-apps/pambase with the gnome-keyring use flag and"
83
		elog "configure the pam settings of your login manager."
84
		elog ""
85
	fi
86
56
	elog "Your user needs to be in the plugdev group in order to use this"
87
	elog "Your user needs to be in the plugdev group in order to use this"
57
	elog "package.  If it doesn't start in Gnome for you automatically after"
88
	elog "package.  If it doesn't start in Gnome for you automatically after"
58
	elog 'you log back in, simply run "nm-applet --sm-disable"'
89
	elog 'you log back in, simply run "nm-applet --sm-disable"'

Return to bug 219305