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

(-)nm-applet-0.6.6.ebuild.orig (-7 / +50 lines)
Lines 13-19 Link Here
13
LICENSE="GPL-2"
13
LICENSE="GPL-2"
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="~amd64 ~x86"
15
KEYWORDS="~amd64 ~x86"
16
IUSE="debug doc libnotify"
16
IUSE="cisco debug doc gnome kde 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
	gnome? ( >=gnome-base/gnome-panel-2 )
34
	kde? ( kde-base/kicker )
35
	openvpn? ( net-misc/networkmanager-openvpn )"
36
33
DEPEND="${RDEPEND}
37
DEPEND="${RDEPEND}
34
	dev-util/pkgconfig
38
	dev-util/pkgconfig
35
	>=dev-util/intltool-0.35"
39
	>=dev-util/intltool-0.35"
Lines 44-49 Link Here
44
	$(use_with libnotify notify)"
48
	$(use_with libnotify notify)"
45
49
46
#S=${WORKDIR}/${PN}-${MY_PV}
50
#S=${WORKDIR}/${PN}-${MY_PV}
51
pkg_setup() {
52
	if use openvpn && ( ! built_with_use net-misc/networkmanager gnome || \
53
		! built_with_use net-misc/networkmanager-openvpn gnome ); then
54
		eerror ""
55
		eerror "To make use of the openvpn feature you have to compile"
56
		eerror "net-misc/networkmanager and net-misc/networkmanager-openvpn"
57
		eerror "with the \"gnome\" USE flag."
58
		eerror ""
59
		die "Fix use flag and re-emerge."
60
	fi
61
	if use cisco && ( ! built_with_use net-misc/networkmanager gnome || \
62
		! built_with_use net-misc/networkmanager-vpnc gnome ); then
63
		eerror ""
64
		eerror "To make use of the cisco feature you have to compile"
65
		eerror "net-misc/networkmanager and net-misc/networkmanager-vpnc"
66
		eerror "with the \"gnome\" USE flag."
67
		eerror ""
68
		die "Fix use flag and re-emerge."
69
	fi
70
}
47
71
48
src_unpack() {
72
src_unpack() {
49
	unpack ${A}
73
	unpack ${A}
Lines 53-61 Link Here
53
77
54
pkg_postinst() {
78
pkg_postinst() {
55
	gnome2_pkg_postinst
79
	gnome2_pkg_postinst
80
81
	if ! built_with_use sys-auth/pambase gnome-keyring; then
82
		elog ""
83
		elog "To get rid of the password prompt for the gnome keyring you need"
84
		elog "to compile sys-apps/pambase with the gnome-keyring use flag and"
85
		elog "configure your graphical login manager (eg. gdm or kdm)."
86
		elog ""
87
	fi
88
56
	elog "Your user needs to be in the plugdev group in order to use this"
89
	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"
90
	elog "package."
58
	elog 'you log back in, simply run "nm-applet --sm-disable"'
91
	elog ""
59
	elog "You also need the notification area applet on your panel for"
92
	if use gnome; then
60
	elog "this to show up."
93
		elog "If it does not start in Gnome for you automatically after you log"
94
		elog 'back in, simply run "nm-applet --sm-disable"'
95
		elog "You also need the notification area applet on your panel for"
96
		elog "this to show up."
97
		elog ""
98
	fi
99
	if use kde; then
100
		elog "You need to modify ~/.kde/Autostart or run a saved session to"
101
		elog "automatically start it in KDE."
102
		elog ""
103
	fi
61
}
104
}

Return to bug 219305