Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-auth/pambase: pambase-20120417-r3.ebuild ChangeLog
Date: Sun, 27 Oct 2013 15:10:27
Message-Id: 20131027151021.731B82004E@flycatcher.gentoo.org
1 pacho 13/10/27 15:10:21
2
3 Modified: ChangeLog
4 Added: pambase-20120417-r3.ebuild
5 Log:
6 Load pam_systemd from system-auth instead of system-login, bug #485470 by Benjamin Franzke
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
9
10 Revision Changes Path
11 1.126 sys-auth/pambase/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/pambase/ChangeLog?rev=1.126&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/pambase/ChangeLog?rev=1.126&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/pambase/ChangeLog?r1=1.125&r2=1.126
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-auth/pambase/ChangeLog,v
20 retrieving revision 1.125
21 retrieving revision 1.126
22 diff -u -r1.125 -r1.126
23 --- ChangeLog 5 Sep 2013 05:36:21 -0000 1.125
24 +++ ChangeLog 27 Oct 2013 15:10:21 -0000 1.126
25 @@ -1,6 +1,13 @@
26 # ChangeLog for sys-auth/pambase
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-auth/pambase/ChangeLog,v 1.125 2013/09/05 05:36:21 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/pambase/ChangeLog,v 1.126 2013/10/27 15:10:21 pacho Exp $
30 +
31 +*pambase-20120417-r3 (27 Oct 2013)
32 +
33 + 27 Oct 2013; Pacho Ramos <pacho@g.o>
34 + +files/pambase-20120417-systemd-auth.patch, +pambase-20120417-r3.ebuild:
35 + Load pam_systemd from system-auth instead of system-login, bug #485470 by
36 + Benjamin Franzke
37
38 05 Sep 2013; Mike Frysinger <vapier@g.o> pambase-20120417-r2.ebuild:
39 Mark m68k/s390/sh stable #454388.
40
41
42
43 1.1 sys-auth/pambase/pambase-20120417-r3.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/pambase/pambase-20120417-r3.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/pambase/pambase-20120417-r3.ebuild?rev=1.1&content-type=text/plain
47
48 Index: pambase-20120417-r3.ebuild
49 ===================================================================
50 # Copyright 1999-2013 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sys-auth/pambase/pambase-20120417-r3.ebuild,v 1.1 2013/10/27 15:10:21 pacho Exp $
53
54 EAPI=5
55 inherit eutils
56
57 DESCRIPTION="PAM base configuration files"
58 HOMEPAGE="http://www.gentoo.org/proj/en/base/pam/"
59 SRC_URI="http://dev.gentoo.org/~flameeyes/${PN}/${P}.tar.bz2
60 http://dev.gentoo.org/~phajdan.jr/${PN}/${P}.tar.bz2"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 -sparc-fbsd -x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux"
65 IUSE="consolekit cracklib debug gnome-keyring minimal mktemp pam_krb5 pam_ssh passwdqc selinux +sha512 systemd"
66
67 RESTRICT=binchecks
68
69 MIN_PAM_REQ=1.1.3
70
71 RDEPEND="
72 || (
73 >=sys-libs/pam-${MIN_PAM_REQ}
74 ( sys-auth/openpam || ( sys-freebsd/freebsd-pam-modules sys-netbsd/netbsd-pam-modules ) )
75 )
76 consolekit? ( >=sys-auth/consolekit-0.4.5_p2012[pam] )
77 cracklib? ( >=sys-libs/pam-${MIN_PAM_REQ}[cracklib] )
78 gnome-keyring? ( >=gnome-base/gnome-keyring-2.32[pam] )
79 mktemp? ( sys-auth/pam_mktemp )
80 pam_krb5? (
81 || ( >=sys-libs/pam-${MIN_PAM_REQ} sys-auth/openpam )
82 >=sys-auth/pam_krb5-4.3
83 )
84 pam_ssh? ( sys-auth/pam_ssh )
85 passwdqc? ( >=sys-auth/pam_passwdqc-1.0.4 )
86 selinux? ( >=sys-libs/pam-${MIN_PAM_REQ}[selinux] )
87 sha512? ( >=sys-libs/pam-${MIN_PAM_REQ} )
88 systemd? ( >=sys-apps/systemd-44-r1[pam] )
89 !<sys-apps/shadow-4.1.5-r1
90 !<sys-freebsd/freebsd-pam-modules-6.2-r1
91 !<sys-libs/pam-0.99.9.0-r1"
92 DEPEND="app-portage/portage-utils"
93
94 src_prepare() {
95 epatch "${FILESDIR}"/${P}-systemd.patch
96 epatch "${FILESDIR}"/${P}-lastlog-silent.patch
97 epatch "${FILESDIR}"/${P}-systemd-auth.patch # 485470
98 }
99
100 src_compile() {
101 local implementation=
102 local linux_pam_version=
103 if has_version sys-libs/pam; then
104 implementation=linux-pam
105 local ver_str=$(qatom `best_version sys-libs/pam` | cut -d ' ' -f 3)
106 linux_pam_version=$(printf "0x%02x%02x%02x" ${ver_str//\./ })
107 elif has_version sys-auth/openpam; then
108 implementation=openpam
109 else
110 die "PAM implementation not identified"
111 fi
112
113 use_var() {
114 local varname=$(echo $1 | tr [a-z] [A-Z])
115 local usename=${2-$(echo $1 | tr [A-Z] [a-z])}
116 local varvalue=$(usex $usename)
117 echo "${varname}=${varvalue}"
118 }
119
120 emake \
121 GIT=true \
122 $(use_var debug) \
123 $(use_var cracklib) \
124 $(use_var passwdqc) \
125 $(use_var consolekit) \
126 $(use_var systemd) \
127 $(use_var GNOME_KEYRING gnome-keyring) \
128 $(use_var selinux) \
129 $(use_var mktemp) \
130 $(use_var PAM_SSH pam_ssh) \
131 $(use_var sha512) \
132 $(use_var KRB5 pam_krb5) \
133 $(use_var minimal) \
134 IMPLEMENTATION=${implementation} \
135 LINUX_PAM_VERSION=${linux_pam_version}
136 }
137
138 src_test() { :; }
139
140 src_install() {
141 emake GIT=true DESTDIR="${ED}" install
142 }
143
144 pkg_postinst() {
145 if use sha512; then
146 elog "Starting from version 20080801, pambase optionally enables"
147 elog "SHA512-hashed passwords. For this to work, you need sys-libs/pam-1.0.1"
148 elog "built against sys-libs/glibc-2.7 or later."
149 elog "If you don't have support for this, it will automatically fallback"
150 elog "to MD5-hashed passwords, just like before."
151 elog
152 elog "Please note that the change only affects the newly-changed passwords"
153 elog "and that SHA512-hashed passwords will not work on earlier versions"
154 elog "of glibc or Linux-PAM."
155 fi
156
157 if use systemd && use consolekit; then
158 ewarn "You are enabling 2 session trackers, ConsoleKit and systemd-logind"
159 ewarn "at the same time. This is not recommended setup to have, please"
160 ewarn "consider disabling either USE=\"consolekit\" or USE=\"systemd\."
161 fi
162 }