# Copyright 1999-2009 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.8.3.ebuild,v 1.1 2009/12/17 23:17:01 eva Exp $ EAPI="2" GCONF_DEBUG="no" inherit autotools eutils gnome2 DESCRIPTION="Tools aimed to make easy the administration of UNIX systems" HOMEPAGE="http://www.gnome.org/projects/gst/" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="policykit" RDEPEND="!=sys-apps/dbus-1.1.2 >=dev-libs/dbus-glib-0.74 >=dev-libs/glib-2.15.2 >=dev-perl/Net-DBus-0.33.4 dev-lang/perl policykit? ( >=sys-auth/polkit-0.92 ) userland_GNU? ( sys-apps/shadow )" DEPEND="${RDEPEND} dev-util/pkgconfig >=dev-util/intltool-0.40" DOCS="AUTHORS ChangeLog NEWS README TODO" pkg_setup() { G2CONF="${G2CONF} $(use_enable policykit polkit)" enewgroup stb-admin || die "Failed to create stb-admin group" } src_prepare() { gnome2_src_prepare # Fix automagic polkit dependency epatch "${FILESDIR}/${PN}-2.8.2-automagic-polkit.patch" # 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" # Apply fix from ubuntu for CVE 2008 6792, bug #270326 epatch "${FILESDIR}/${PN}-2.8.2-1ubuntu1.1.patch" intltoolize --force --copy --automake || die "intltoolize failed" eautoreconf } src_compile() { # Autotools insanity, localstatedir gets set to /usr/local/var by default gnome2_src_compile --localstatedir="${ROOT}"/var } 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 }