summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2008-02-21 21:03:51 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2008-02-21 21:03:51 +0000
commite60ac3d9522810104dec1a69ed0345f720e5b175 (patch)
treea195980345d04e04ff77a4e59d352a5c1d448f02 /sys-apps/usermode
parentAdd consolekit USE flag for pambase. (diff)
downloadgentoo-2-e60ac3d9522810104dec1a69ed0345f720e5b175.tar.gz
gentoo-2-e60ac3d9522810104dec1a69ed0345f720e5b175.tar.bz2
gentoo-2-e60ac3d9522810104dec1a69ed0345f720e5b175.zip
Add dependency over sys-apps/shadow and check if it was built with pam USE flag enabled. Closes bug #210859.
(Portage version: 2.1.4.4)
Diffstat (limited to 'sys-apps/usermode')
-rw-r--r--sys-apps/usermode/ChangeLog6
-rw-r--r--sys-apps/usermode/usermode-1.93.ebuild18
2 files changed, 20 insertions, 4 deletions
diff --git a/sys-apps/usermode/ChangeLog b/sys-apps/usermode/ChangeLog
index 261d04b1d67f..58f855354c34 100644
--- a/sys-apps/usermode/ChangeLog
+++ b/sys-apps/usermode/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-apps/usermode
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/usermode/ChangeLog,v 1.6 2008/01/31 06:30:33 dberkholz Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/usermode/ChangeLog,v 1.7 2008/02/21 21:03:51 flameeyes Exp $
+
+ 21 Feb 2008; Diego Pettenò <flameeyes@gentoo.org> usermode-1.93.ebuild:
+ Add dependency over sys-apps/shadow and check if it was built with pam USE
+ flag enabled. Closes bug #210859.
31 Jan 2008; Donnie Berkholz <dberkholz@gentoo.org>;
-usermode-1.86.ebuild, -usermode-1.87.ebuild, -usermode-1.92.ebuild:
diff --git a/sys-apps/usermode/usermode-1.93.ebuild b/sys-apps/usermode/usermode-1.93.ebuild
index 998a4c472cc8..73f349fba109 100644
--- a/sys-apps/usermode/usermode-1.93.ebuild
+++ b/sys-apps/usermode/usermode-1.93.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/usermode/usermode-1.93.ebuild,v 1.1 2007/10/15 10:38:44 dberkholz Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/usermode/usermode-1.93.ebuild,v 1.2 2008/02/21 21:03:51 flameeyes Exp $
-inherit flag-o-matic rpm autotools
+inherit flag-o-matic rpm autotools eutils
# Tag for which Fedora Core version it's from
FCVER="8"
@@ -25,11 +25,23 @@ RDEPEND="=dev-libs/glib-2*
dev-util/desktop-file-utils
sys-libs/system-config-base
>=sys-libs/pam-0.75
+ sys-apps/shadow
dev-perl/XML-Parser
sys-libs/libuser"
DEPEND="${RDEPEND}
sys-devel/gettext"
+pkg_setup() {
+ if ! built_with_use sys-apps/shadow pam; then
+ eerror "${CATEGORY}/${PN} depends on the chfn and passwd PAM service"
+ eerror "configuration files installed by sys-apps/shadow with PAM"
+ eerror "enabled."
+ eerror "Please re-install sys-apps/shadow with the pam USE flag"
+ eerror "enabled."
+ die "sys-apps/shadow was built without PAM support."
+ fi
+}
+
src_unpack() {
rpm_src_unpack
cd "${S}"