Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-auth/pambase: ChangeLog pambase-20090620.1.ebuild pambase-20090620.ebuild
Date: Sat, 20 Jun 2009 21:01:40
Message-Id: E1MI7gw-0000A5-20@stork.gentoo.org
1 flameeyes 09/06/20 21:01:38
2
3 Modified: ChangeLog
4 Added: pambase-20090620.1.ebuild
5 Removed: pambase-20090620.ebuild
6 Log:
7 Further pam_tally2 fixes.
8 (Portage version: 2.2_rc33/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.69 sys-auth/pambase/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/pambase/ChangeLog?rev=1.69&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/pambase/ChangeLog?rev=1.69&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/pambase/ChangeLog?r1=1.68&r2=1.69
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-auth/pambase/ChangeLog,v
20 retrieving revision 1.68
21 retrieving revision 1.69
22 diff -u -r1.68 -r1.69
23 --- ChangeLog 20 Jun 2009 20:50:21 -0000 1.68
24 +++ ChangeLog 20 Jun 2009 21:01:37 -0000 1.69
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sys-auth/pambase
27 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-auth/pambase/ChangeLog,v 1.68 2009/06/20 20:50:21 flameeyes Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/pambase/ChangeLog,v 1.69 2009/06/20 21:01:37 flameeyes Exp $
30 +
31 +*pambase-20090620.1 (20 Jun 2009)
32 +
33 + 20 Jun 2009; Diego E. Pettenò <flameeyes@g.o>
34 + -pambase-20090620.ebuild, +pambase-20090620.1.ebuild:
35 + Further pam_tally2 fixes.
36
37 *pambase-20090620 (20 Jun 2009)
38
39
40
41
42 1.1 sys-auth/pambase/pambase-20090620.1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/pambase/pambase-20090620.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-auth/pambase/pambase-20090620.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: pambase-20090620.1.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-auth/pambase/pambase-20090620.1.ebuild,v 1.1 2009/06/20 21:01:37 flameeyes Exp $
52
53 EAPI=2
54
55 inherit eutils
56
57 DESCRIPTION="PAM base configuration files"
58 HOMEPAGE="http://www.gentoo.org/proj/en/base/pam/"
59 SRC_URI="http://www.flameeyes.eu/gentoo-distfiles/${P}.tar.bz2"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
64 IUSE="debug cracklib passwdqc consolekit gnome-keyring selinux mktemp ssh +sha512"
65 RESTRICT="binchecks"
66
67 RDEPEND="
68 || (
69 >=sys-libs/pam-0.99.9.0-r1
70 ( sys-auth/openpam
71 || ( sys-freebsd/freebsd-pam-modules sys-netbsd/netbsd-pam-modules )
72 )
73 )
74 cracklib? ( >=sys-libs/pam-0.99[cracklib] )
75 consolekit? ( >=sys-auth/consolekit-0.3[pam] )
76 gnome-keyring? ( >=gnome-base/gnome-keyring-2.20[pam] )
77 selinux? ( >=sys-libs/pam-0.99[selinux] )
78 passwdqc? ( >=sys-auth/pam_passwdqc-1.0.4 )
79 mktemp? ( sys-auth/pam_mktemp )
80 ssh? ( sys-auth/pam_ssh )
81 sha512? ( >=sys-libs/pam-1.0.1 )
82 !<sys-freebsd/freebsd-pam-modules-6.2-r1
83 !<sys-libs/pam-0.99.9.0-r1"
84 DEPEND=""
85
86 src_compile() {
87 local implementation=
88 local linux_pam_version=
89 if has_version sys-libs/pam; then
90 implementation="linux-pam"
91 local ver_str=$(qatom `best_version sys-libs/pam` | cut -d ' ' -f 3)
92 linux_pam_version=$(printf "0x%02x%02x%02x" ${ver_str//\./ })
93 elif has_version sys-auth/openpam; then
94 implementation="openpam"
95 else
96 die "PAM implementation not identified"
97 fi
98
99 use_var() {
100 local varname=$(echo $1 | tr [a-z] [A-Z])
101 local usename=${2-$(echo $1 | tr [A-Z] [a-z])}
102 local varvalue=$(use $usename && echo yes || echo no)
103 echo "${varname}=${varvalue}"
104 }
105
106 emake \
107 GIT=true \
108 $(use_var debug) \
109 $(use_var cracklib) \
110 $(use_var passwdqc) \
111 $(use_var consolekit) \
112 $(use_var GNOME_KEYRING gnome-keyring) \
113 $(use_var selinux) \
114 $(use_var mktemp) \
115 $(use_var PAM_SSH ssh) \
116 $(use_var sha512) \
117 IMPLEMENTATION=${implementation} \
118 LINUX_PAM_VERSION=${linux_pam_version} \
119 || die "emake failed"
120 }
121
122 src_install() {
123 emake GIT=true DESTDIR="${D}" install || die "emake install failed"
124 }
125
126 pkg_postinst() {
127 if use sha512; then
128 elog "Starting from version 20080801, pambase optionally enables"
129 elog "SHA512-hashed passwords. For this to work, you need sys-libs/pam-1.0.1"
130 elog "built against sys-libs/glibc-2.7 or later."
131 elog "If you don't have support for this, it will automatically fallback"
132 elog "to MD5-hashed passwords, just like before."
133 elog
134 elog "Please note that the change only affects the newly-changed passwords"
135 elog "and that SHA512-hashed passwords will not work on earlier versions"
136 elog "of glibc or Linux-PAM."
137 fi
138 }