New version of pambase with a passwdqc USE flag to enable use of pam_passwdqc.
authorDiego Elio Pettenò <flameeyes@gentoo.org>
Wed, 5 Mar 2008 23:02:28 +0000 (23:02 +0000)
committerDiego Elio Pettenò <flameeyes@gentoo.org>
Wed, 5 Mar 2008 23:02:28 +0000 (23:02 +0000)
Package-Manager: portage-2.1.4.4

sys-auth/pambase/ChangeLog
sys-auth/pambase/Manifest
sys-auth/pambase/metadata.xml
sys-auth/pambase/pambase-20080306.ebuild [new file with mode: 0644]

index 19f2b858f2aa2e1946a84a9c54a7af7b5a725f36..482f48ce72475e548a6075bc0f5ebf448668beb5 100644 (file)
@@ -1,6 +1,12 @@
 # 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.16 2008/03/05 17:53:43 fmccor Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/pambase/ChangeLog,v 1.17 2008/03/05 23:02:28 flameeyes Exp $
+
+*pambase-20080306 (05 Mar 2008)
+
+  05 Mar 2008; Diego Pettenò <flameeyes@gentoo.org> metadata.xml,
+  +pambase-20080306.ebuild:
+  New version of pambase with a passwdqc USE flag to enable use of pam_passwdqc.
 
   05 Mar 2008; Ferris McCormick <fmccor@gentoo.org> pambase-20080305.ebuild:
   Add ~sparc for testing, part of Bug #210770 --- pam still works for me.
index 16736e5b627a292d554ff7db95caa3dc8ae818e5..95167e07e889f72ecc211961ea4db281d476ec4c 100644 (file)
@@ -1,4 +1,16 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
 DIST pambase-20080305.tar.bz2 2263 RMD160 767d091d28f6edcb923f9e1f9a86c098f41987f0 SHA1 553b2278b412131c82c73c497288d9c39a7f5fd6 SHA256 00f0102d97ccedfffed404dd2735f50bcee2c552da3ad84498f848cd5ec48036
+DIST pambase-20080306.tar.bz2 2344 RMD160 0249b0d1c4d1c07dca47b738b696c0305b500533 SHA1 e90d584601a3ca15b2f3eca5e560284aaf2720a4 SHA256 06be87bd5ec6c6aec8ab7c086b916bae32d97a7ad6f758d84ff7d0b6fc58f686
 EBUILD pambase-20080305.ebuild 2509 RMD160 41b01eedfb3e623f674c23fe55ee923ee2b4db61 SHA1 8a59eacdfabe529d69368bc0961fdf36a9300607 SHA256 924672c657687fa646c04b5f69ce6ff418cb28af438cdbffca850cbcee8f02a2
-MISC ChangeLog 2798 RMD160 1bf9e13578c783b6f7937145af5d36804ed6c5b6 SHA1 dcfd29c0410be20e445bf83bd2b8aa7d2d58f582 SHA256 d95c2df4b1355ff69debbf5ac107cd06f5d9688e3485cbd5946270c13b33a006
-MISC metadata.xml 1196 RMD160 a16b1b916f946e23e97518e90146c757834d1684 SHA1 d909fadaf8c44c5849f1bfb232a625b81836902a SHA256 b396f0c3d0f921d37ee1753f72291d2ad4e7419609728f8b6d9b23a80c36a830
+EBUILD pambase-20080306.ebuild 2602 RMD160 6084733b601ca044ff5c70910227b8e4385afd58 SHA1 68b988f1e8c1d7bfab217c84cb79e5afbb675b9e SHA256 e595d5697f1876adc428bec64e8e020f9febc6f2f488a5446ea8275db0e277c6
+MISC ChangeLog 3011 RMD160 22bd32ea136a7abd6f2874a0e98a7ffb7dfb4f95 SHA1 c492a453b1ef16db734e4ef4d1f9f8f9be07a948 SHA256 2a99a37a6ff4be79ed195058e836de387382c49c6ac7b8e052ae47b350d09d4e
+MISC metadata.xml 1544 RMD160 9c9eac4096313a1f77f6ed90408ea4b98276b5d4 SHA1 cbfa7e85076945ce453ece762505633b4483fbf8 SHA256 827b20c84f6c3e2fba38a4d8162f7a68aaf222e7f5349dbca5a7e0f2fcc9e419
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.7 (GNU/Linux)
+
+iD8DBQFHzyaJAiZjviIA2XgRAg31AJ9ct4Q+wOA8PLNVfgSQSO1lusdHCQCg5SOK
+ZTYY/VOj3xdaJRaEI/Lz49Y=
+=j96c
+-----END PGP SIGNATURE-----
index 70f1e9b006259c0f7c24dc99e96988590574f9f7..f223bfac8c8fb875b20a83e744cb9c77bff40e5f 100644 (file)
       modules supporting this in the system authentication and system
       login stacks.
     </flag>
+    <flag name="passwdqc">
+      Enable pam_passwdqc module on system auth stack for password
+      quality validation. This is an alternative to pam_cracklib
+      producing warnings, rejecting or providing example passwords
+      when changing your system password. It is used by default by
+      OpenWall GNU/*/Linux and by FreeBSD.
+    </flag>
   </use>
 </pkgmetadata>
diff --git a/sys-auth/pambase/pambase-20080306.ebuild b/sys-auth/pambase/pambase-20080306.ebuild
new file mode 100644 (file)
index 0000000..12ca91c
--- /dev/null
@@ -0,0 +1,82 @@
+# 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-20080306.ebuild,v 1.1 2008/03/05 23:02:28 flameeyes Exp $
+
+inherit eutils
+
+DESCRIPTION="PAM base configuration files"
+SRC_URI="http://www.flameeyes.eu/gentoo-distfiles/${P}.tar.bz2"
+HOMEPAGE="http://www.gentoo.org/proj/en/base/pam/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~hppa ~sparc ~x86"
+IUSE="debug cracklib consolekit gnome selinux"
+
+RDEPEND="
+       || (
+               >=sys-libs/pam-0.99.9.0-r1
+               ( sys-auth/openpam
+                 || ( sys-freebsd/freebsd-pam-modules sys-netbsd/netbsd-pam-modules )
+               )
+       )
+       cracklib? ( >=sys-libs/pam-0.99 )
+       consolekit? ( sys-auth/consolekit )
+       gnome? ( >=gnome-base/gnome-keyring-2.20 )
+       selinux? ( >=sys-libs/pam-0.99 )
+       passwdqc? ( >=sys-auth/pam_passwdqc-1.0.4 )
+       !<sys-freebsd/freebsd-pam-modules-6.2-r1
+       !<sys-libs/pam-0.99.9.0-r1"
+DEPEND=""
+
+RESTRICT="binchecks"
+
+pkg_setup() {
+       if use cracklib && ! built_with_use sys-libs/pam cracklib; then
+               eerror "To enable cracklib support in the main PAM configuration"
+               eerror "you need to enable cracklib USE flag on sys-libs/pam"
+               eerror "first."
+               die "Missing pam_cracklib"
+       fi
+
+       if use selinux && ! built_with_use sys-libs/pam selinux; then
+               eerror "To enable selinux support in the main PAM configuration"
+               eerror "you need to enable selinux USE flag on sys-libs/pam"
+               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() {
+       has_version sys-libs/pam && implementation="linux-pam"
+       has_version sys-auth/openpam && implementation="openpam"
+
+       emake \
+               GIT=true \
+               DEBUG=$(use debug && echo yes || echo no) \
+               CRACKLIB=$(use cracklib && echo yes || echo no) \
+               PASSWDQC=$(use passwdqc && 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"
+}
+
+src_install() {
+       emake GIT=true DESTDIR="${D}" install || die "emake install failed"
+}