blob: 9d826e81f5150e0c207e683a80921670a86d553f (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/system-tools-backends/system-tools-backends-2.10.2.ebuild,v 1.10 2014/06/22 18:46:20 maekke Exp $
EAPI="3"
GCONF_DEBUG="no"
inherit eutils gnome2 user
DESCRIPTION="Tools aimed to make easy the administration of UNIX systems"
HOMEPAGE="http://projects.gnome.org/gst/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 ~arm ia64 ppc sparc x86"
IUSE=""
RDEPEND="!<app-admin/gnome-system-tools-1.1.91
>=sys-apps/dbus-1.1.2
>=dev-libs/dbus-glib-0.74
>=dev-libs/glib-2.15.2:2
>=dev-perl/Net-DBus-0.33.4
dev-lang/perl
>=sys-auth/polkit-0.94
userland_GNU? ( virtual/shadow )"
DEPEND="${RDEPEND}
virtual/pkgconfig
>=dev-util/intltool-0.40"
pkg_setup() {
DOCS="AUTHORS ChangeLog NEWS README TODO"
G2CONF="${G2CONF}
--localstatedir=/var"
enewgroup stb-admin
}
src_prepare() {
gnome2_src_prepare
# Change default permission, only people in stb-admin is allowed
# to speak to the dispatcher.
epatch "${FILESDIR}/${PN}-2.8.2-default-permissions.patch"
# Apply fix from ubuntu for CVE 2008 4311
epatch "${FILESDIR}/${PN}-2.8.2-cve-2008-4311.patch"
}
src_install() {
gnome2_src_install
newinitd "${FILESDIR}"/stb.rc system-tools-backends
}
pkg_postinst() {
echo
elog "You need to add yourself to the group stb-admin and"
elog "add system-tools-backends to the default runlevel."
elog "You can do this as root like so:"
elog " # rc-update add system-tools-backends default"
echo
}
|