diff options
-rw-r--r-- | sys-auth/pambase/ChangeLog | 8 | ||||
-rw-r--r-- | sys-auth/pambase/Manifest | 10 | ||||
-rw-r--r-- | sys-auth/pambase/pambase-20090620.ebuild | 90 |
3 files changed, 103 insertions, 5 deletions
diff --git a/sys-auth/pambase/ChangeLog b/sys-auth/pambase/ChangeLog index 73f5ca10ee69..b6acf1ad49a9 100644 --- a/sys-auth/pambase/ChangeLog +++ b/sys-auth/pambase/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-auth/pambase # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-auth/pambase/ChangeLog,v 1.67 2009/05/15 18:54:15 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-auth/pambase/ChangeLog,v 1.68 2009/06/20 20:50:21 flameeyes Exp $ + +*pambase-20090620 (20 Jun 2009) + + 20 Jun 2009; Diego E. Pettenò <flameeyes@gentoo.org> + +pambase-20090620.ebuild: + Bump so to enable pam_tall2 properly when building with Linux-PAM-1.1.0. *pambase-20090515 (15 May 2009) diff --git a/sys-auth/pambase/Manifest b/sys-auth/pambase/Manifest index 4400e86d5405..3c987fa06c23 100644 --- a/sys-auth/pambase/Manifest +++ b/sys-auth/pambase/Manifest @@ -3,14 +3,16 @@ Hash: SHA1 DIST pambase-20081028.tar.bz2 2556 RMD160 c7ea746c7a9ab841b6438d125033f161043689a2 SHA1 0786d4c2325424d27a293adb9b787bb8467adcd3 SHA256 3ccfbc9aa70b1e1b248e21636f40625dfdb87952088e6fbebba7fce3ee8aa5cd DIST pambase-20090515.tar.bz2 2552 RMD160 747b555a5c7961cf01dcb1a468e355d5bc35293d SHA1 2c6ef2bcb4dfe2117bd28049b7230001637ff25c SHA256 bff12d07b893950c4fa811f52996da8a83317a0767e7bc87ac193be2bb6c7d4d +DIST pambase-20090620.tar.bz2 2612 RMD160 8fa21c966679e02bd5ca52a24a306d741c33cc29 SHA1 564985156f6b6f963c5c5af3d435ddebfd45fada SHA256 d3bee325ecd2a08ca1c79a0371632f72b9c46610804e0dda7e6ddb5e2e6eb98f EBUILD pambase-20081028.ebuild 3534 RMD160 8053f52a9fb86ea0e22382e4e9ee3fba1c4e81bb SHA1 298dd0997035430513209dc07849eafab54ac177 SHA256 55b7713fd6e4db66a798194296d923584a748714b70e86d2dc009c1faeba0848 EBUILD pambase-20090515.ebuild 2539 RMD160 53a761301522d8a424339f7a1a522641b518e398 SHA1 c414ddba8a781bb9c97329bf705a8905ea151573 SHA256 8d95e9d11c8d47d4c307edb310f4374ee475cb280e8267205f9a7b35ed416c3d -MISC ChangeLog 9939 RMD160 6a9a5462bd733b10501e441f33025d644256274c SHA1 6ef3d4790e59c4d97b74d7fe2792730eb5e7adb9 SHA256 886f5f0d22e162b6004da631ec7a1c2263fe1d24a81d6b36aaedfdbcb78ed2ae +EBUILD pambase-20090620.ebuild 2806 RMD160 49b331f14b2c1d9d4060d805ad5573be6faa93f6 SHA1 75163c5a17a09f48280d74454231bae3275529a4 SHA256 4a19ff72418a22f614591a6238390ba08770c7ad419b4427478226e9c7ba263b +MISC ChangeLog 10132 RMD160 00619842b215ff834b57d6d09b6facb2b89c103e SHA1 7f23e50c291d0ba4a116d865f055f9072c5f00bd SHA256 de010d51a0b6d27e0297b97980544ff203b11ed9899b719593bc5f23b9e6d5c7 MISC metadata.xml 2874 RMD160 74035c58791c92882c1e3e7c0f9f12f93481759a SHA1 c386b00664c9fa6a816a45af75d9805a850c4031 SHA256 ebb8c90cd39aca27e3cd03bf6432dc40a3af886248fd816f7c69b6e096784e9f -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) -iEYEARECAAYFAkoNul0ACgkQAiZjviIA2Xg+7gCfaWxx0dljGZAwL6S2jomO/2M/ -EAgAoPJe+4ZzqXAERWcIr+Iu7fCk8GCG -=LcIH +iEYEARECAAYFAko9S5MACgkQAiZjviIA2XiqFACfePyVyqFEqZUhG1m032IemYzJ +9MkAnjlU/4OUMMQME+KUn2Vf1G/z13kE +=8UT1 -----END PGP SIGNATURE----- diff --git a/sys-auth/pambase/pambase-20090620.ebuild b/sys-auth/pambase/pambase-20090620.ebuild new file mode 100644 index 000000000000..3def2cba97ff --- /dev/null +++ b/sys-auth/pambase/pambase-20090620.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/pambase/pambase-20090620.ebuild,v 1.1 2009/06/20 20:50:21 flameeyes Exp $ + +EAPI=2 + +inherit eutils + +DESCRIPTION="PAM base configuration files" +HOMEPAGE="http://www.gentoo.org/proj/en/base/pam/" +SRC_URI="http://www.flameeyes.eu/gentoo-distfiles/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" +IUSE="debug cracklib passwdqc consolekit gnome-keyring selinux mktemp ssh +sha512" +RESTRICT="binchecks" + +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[cracklib] ) + consolekit? ( >=sys-auth/consolekit-0.3[pam] ) + gnome-keyring? ( >=gnome-base/gnome-keyring-2.20[pam] ) + selinux? ( >=sys-libs/pam-0.99[selinux] ) + passwdqc? ( >=sys-auth/pam_passwdqc-1.0.4 ) + mktemp? ( sys-auth/pam_mktemp ) + ssh? ( sys-auth/pam_ssh ) + sha512? ( >=sys-libs/pam-1.0.1 ) + !<sys-freebsd/freebsd-pam-modules-6.2-r1 + !<sys-libs/pam-0.99.9.0-r1" +DEPEND="" + +src_compile() { + local implementation= + local linux_pam_version= + if has_version sys-libs/pam; then + implementation="linux-pam" + local ver_str=$(qatom `best_version sys-libs/pam` | cut -d ' ' -f 3) + linux_pam_version=$(printf "0x%02x%02x%02x" ${ver_str//\./ }) + elif has_version sys-auth/openpam; then + implementation="openpam" + else + die "PAM implementation not identified" + fi + + use_var() { + local varname=$(echo $1 | tr [a-z] [A-Z]) + local usename=${2-$(echo $1 | tr [A-Z] [a-z])} + local varvalue=$(use $usename && echo yes || echo no) + echo "${varname}=${varvalue}" + } + + emake \ + GIT=true \ + $(use_var debug) \ + $(use_var cracklib) \ + $(use_var passwdqc) \ + $(use_var consolekit) \ + $(use_var GNOME_KEYRING gnome-keyring) \ + $(use_var selinux) \ + $(use_var mktemp) \ + $(use_var PAM_SSH ssh) \ + $(use_var sha512) \ + IMPLEMENTATION=${implementation} \ + LINUX_PAM_VERSION=${linux_pam_version} \ + || die "emake failed" +} + +src_install() { + emake GIT=true DESTDIR="${D}" install || die "emake install failed" +} + +pkg_postinst() { + if use sha512; then + elog "Starting from version 20080801, pambase optionally enables" + elog "SHA512-hashed passwords. For this to work, you need sys-libs/pam-1.0.1" + elog "built against sys-libs/glibc-2.7 or later." + elog "If you don't have support for this, it will automatically fallback" + elog "to MD5-hashed passwords, just like before." + elog + elog "Please note that the change only affects the newly-changed passwords" + elog "and that SHA512-hashed passwords will not work on earlier versions" + elog "of glibc or Linux-PAM." + fi +} |