diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2008-02-21 21:03:51 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2008-02-21 21:03:51 +0000 |
commit | e60ac3d9522810104dec1a69ed0345f720e5b175 (patch) | |
tree | a195980345d04e04ff77a4e59d352a5c1d448f02 /sys-apps/usermode/usermode-1.93.ebuild | |
parent | Add consolekit USE flag for pambase. (diff) | |
download | gentoo-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/usermode-1.93.ebuild')
-rw-r--r-- | sys-apps/usermode/usermode-1.93.ebuild | 18 |
1 files changed, 15 insertions, 3 deletions
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}" |