Bump pambase, now it supports gnome and consolekit USE flags that allows it to enable...
authorDiego Elio Pettenò <flameeyes@gentoo.org>
Thu, 21 Feb 2008 20:35:00 +0000 (20:35 +0000)
committerDiego Elio Pettenò <flameeyes@gentoo.org>
Thu, 21 Feb 2008 20:35:00 +0000 (20:35 +0000)
Package-Manager: portage-2.1.4.4

sys-auth/pambase/ChangeLog
sys-auth/pambase/pambase-20080221.ebuild [moved from sys-auth/pambase/pambase-20080219.1.ebuild with 68% similarity]

index 1f49b06f5d2c05e56088d2960d235c618d4f2784..fcdd6ac5a550c4aedbea947723ee812b849bb0b3 100644 (file)
@@ -1,6 +1,14 @@
 # ChangeLog for sys-auth/pambase
 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-auth/pambase/ChangeLog,v 1.4 2008/02/20 00:06:08 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/pambase/ChangeLog,v 1.5 2008/02/21 20:35:00 flameeyes Exp $
+
+*pambase-20080221 (21 Feb 2008)
+
+  21 Feb 2008; Diego Pettenò <flameeyes@gentoo.org>
+  -pambase-20080219.1.ebuild, +pambase-20080221.ebuild:
+  Bump pambase, now it supports gnome and consolekit USE flags that allows it
+  to enable by default GNOME keyring (all sessions) and ConsoleKit (local
+  sessions).
 
   20 Feb 2008; Diego Pettenò <flameeyes@gentoo.org>
   pambase-20080219.1.ebuild:
similarity index 68%
rename from sys-auth/pambase/pambase-20080219.1.ebuild
rename to sys-auth/pambase/pambase-20080221.ebuild
index ec017f0ffcb8ac39553b634b3440b3089968d8b4..22d17fb1e42e72ef9010c061e0bec407c823d28e 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-auth/pambase/pambase-20080219.1.ebuild,v 1.2 2008/02/20 00:06:08 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/pambase/pambase-20080221.ebuild,v 1.1 2008/02/21 20:35:00 flameeyes Exp $
 
 inherit eutils
 
@@ -21,6 +21,8 @@ RDEPEND="
                )
        )
        cracklib? ( >=sys-libs/pam-0.99 )
+       consolekit? ( sys-auth/consolekit )
+       gnome? ( >=gnome-base/gnome-keyring-2.20 )
        selinux? ( >=sys-libs/pam-0.99 )
        !<sys-freebsd/freebsd-pam-modules-6.2-r1
        !<sys-libs/pam-0.99.9.0-r1"
@@ -42,6 +44,20 @@ pkg_setup() {
                eerror "first."
                die "Missing pam_selinux"
        fi
+
+       if use consolekit && ! built_with_use sys-auth/consolekit pam; then
+               eerror "To enable ConsoleKit support in the main PAM configuration"
+               eerror "you need to enable pam USE flag on sys-auth/consolekit"
+               eerror "first."
+               die "Missing pam_ck_connector"
+       fi
+
+       if use gnome && ! built_with_use gnome-base/gnome-keyring pam; then
+               eerror "To enable GNOME Keyring support in the main PAM configuration"
+               eerror "you need to enable pam USE flag on gnome-base/gnome-keyring"
+               eerror "first."
+               die "Missing pam_gnome_keyring"
+       fi
 }
 
 src_compile() {
@@ -51,6 +67,8 @@ src_compile() {
        emake \
                DEBUG=$(use debug && echo yes || echo no) \
                CRACKLIB=$(use cracklib && echo yes || echo no) \
+               CONSOLEKIT=$(use consolekit && echo yes || echo no) \
+               GNOME_KEYRING=$(use gnome && echo yes || echo no) \
                SELINUX=$(use selinux && echo yes || echo no) \
                IMPLEMENTATION=${implementation} \
                || die "emake failed"