1 |
flameeyes 10/08/31 12:32:45 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pam-1.1.2.ebuild |
5 |
Log: |
6 |
Version bump; back to two patches rather than six as upstream merged them. |
7 |
|
8 |
(Portage version: 2.2_rc72/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.266 sys-libs/pam/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/pam/ChangeLog?rev=1.266&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/pam/ChangeLog?rev=1.266&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/pam/ChangeLog?r1=1.265&r2=1.266 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v |
20 |
retrieving revision 1.265 |
21 |
retrieving revision 1.266 |
22 |
diff -u -r1.265 -r1.266 |
23 |
--- ChangeLog 21 Aug 2010 18:58:03 -0000 1.265 |
24 |
+++ ChangeLog 31 Aug 2010 12:32:45 -0000 1.266 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for sys-libs/pam |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v 1.265 2010/08/21 18:58:03 maekke Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v 1.266 2010/08/31 12:32:45 flameeyes Exp $ |
30 |
+ |
31 |
+*pam-1.1.2 (31 Aug 2010) |
32 |
+ |
33 |
+ 31 Aug 2010; Diego E. Pettenò <flameeyes@g.o> +pam-1.1.2.ebuild: |
34 |
+ Version bump; back to two patches rather than six as upstream merged them. |
35 |
|
36 |
21 Aug 2010; Markus Meier <maekke@g.o> pam-1.1.1-r2.ebuild: |
37 |
arm stable, bug #329931 |
38 |
|
39 |
|
40 |
|
41 |
1.1 sys-libs/pam/pam-1.1.2.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/pam/pam-1.1.2.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/pam/pam-1.1.2.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: pam-1.1.2.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-1.1.2.ebuild,v 1.1 2010/08/31 12:32:45 flameeyes Exp $ |
51 |
|
52 |
EAPI="3" |
53 |
|
54 |
inherit libtool multilib eutils autotools pam toolchain-funcs flag-o-matic db-use |
55 |
|
56 |
MY_PN="Linux-PAM" |
57 |
MY_P="${MY_PN}-${PV}" |
58 |
|
59 |
HOMEPAGE="http://www.kernel.org/pub/linux/libs/pam/" |
60 |
DESCRIPTION="Linux-PAM (Pluggable Authentication Modules)" |
61 |
|
62 |
SRC_URI="mirror://kernel/linux/libs/pam/library/${MY_P}.tar.bz2 |
63 |
mirror://kernel/linux/libs/pam/documentation/${MY_P}-docs.tar.bz2" |
64 |
|
65 |
LICENSE="|| ( BSD GPL-2 )" |
66 |
SLOT="0" |
67 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux" |
68 |
IUSE="cracklib nls elibc_FreeBSD selinux vim-syntax audit test elibc_glibc debug berkdb" |
69 |
|
70 |
RDEPEND="nls? ( virtual/libintl ) |
71 |
cracklib? ( >=sys-libs/cracklib-2.8.3 ) |
72 |
audit? ( sys-process/audit ) |
73 |
selinux? ( >=sys-libs/libselinux-1.28 ) |
74 |
berkdb? ( sys-libs/db ) |
75 |
elibc_glibc? ( >=sys-libs/glibc-2.7 )" |
76 |
DEPEND="${RDEPEND} |
77 |
sys-devel/flex |
78 |
nls? ( sys-devel/gettext )" |
79 |
PDEPEND="sys-auth/pambase |
80 |
vim-syntax? ( app-vim/pam-syntax )" |
81 |
RDEPEND="${RDEPEND} |
82 |
!sys-auth/pam_userdb" |
83 |
|
84 |
S="${WORKDIR}/${MY_P}" |
85 |
|
86 |
PROVIDE="virtual/pam" |
87 |
|
88 |
check_old_modules() { |
89 |
local retval="0" |
90 |
|
91 |
if sed -e 's:#.*::' "${EROOT}"/etc/pam.d/* 2>/dev/null | fgrep -q pam_stack.so; then |
92 |
eerror "" |
93 |
eerror "Your current setup is using the pam_stack module." |
94 |
eerror "This module is deprecated and no longer supported, and since version" |
95 |
eerror "0.99 is no longer installed, nor provided by any other package." |
96 |
eerror "The package will be built (to allow binary package builds), but will" |
97 |
eerror "not be installed." |
98 |
eerror "Please replace pam_stack usage with proper include directive usage," |
99 |
eerror "following the PAM Upgrade guide at the following URL" |
100 |
eerror " http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml" |
101 |
eerror "" |
102 |
|
103 |
retval=1 |
104 |
fi |
105 |
|
106 |
if sed -e 's:#.*::' "${EROOT}"/etc/pam.d/* 2>/dev/null | egrep -q 'pam_(pwdb|console)'; then |
107 |
eerror "" |
108 |
eerror "Your current setup is using one or more of the following modules," |
109 |
eerror "that are not built or supported anymore:" |
110 |
eerror "pam_pwdb, pam_console" |
111 |
eerror "If you are in real need for these modules, please contact the maintainers" |
112 |
eerror "of PAM through http://bugs.gentoo.org/ providing information about its" |
113 |
eerror "use cases." |
114 |
eerror "Please also make sure to read the PAM Upgrade guide at the following URL:" |
115 |
eerror " http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml" |
116 |
eerror "" |
117 |
|
118 |
retval=1 |
119 |
fi |
120 |
|
121 |
return $retval |
122 |
} |
123 |
|
124 |
pkg_setup() { |
125 |
check_old_modules |
126 |
} |
127 |
|
128 |
src_prepare() { |
129 |
# Avoid building xtests during "make all"; note that for what |
130 |
# we're concerned xtests are not even executed, so we should |
131 |
# probably use EXTRA_PROGRAMS. |
132 |
epatch "${FILESDIR}/${MY_PN}-0.99.8.1-xtests.patch" |
133 |
|
134 |
# Fix tests to find Berkeley DB as installed by Gentoo (with a |
135 |
# library suffix but no suffix on the ELF symbols). |
136 |
epatch "${FILESDIR}/${MY_PN}-1.1.1-gentoodb.patch" |
137 |
|
138 |
# Remove libtool-2 libtool macros, see bug 261167 |
139 |
rm m4/libtool.m4 m4/lt*.m4 || die "rm libtool macros failed." |
140 |
|
141 |
eautoreconf |
142 |
|
143 |
elibtoolize |
144 |
} |
145 |
|
146 |
src_configure() { |
147 |
local myconf |
148 |
|
149 |
if use hppa || use elibc_FreeBSD; then |
150 |
myconf="${myconf} --disable-pie" |
151 |
fi |
152 |
|
153 |
# Disable automatic detection of libxcrypt; we _don't_ want the |
154 |
# user to link libxcrypt in by default, since we won't track the |
155 |
# dependency and allow to break PAM this way. |
156 |
export ac_cv_header_xcrypt_h=no |
157 |
|
158 |
econf \ |
159 |
--disable-dependency-tracking \ |
160 |
--enable-fast-install \ |
161 |
--libdir="${EPREFIX}"/usr/$(get_libdir) \ |
162 |
--docdir="${EPREFIX}"/usr/share/doc/${PF} \ |
163 |
--htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \ |
164 |
--enable-securedir="${EPREFIX}"/$(get_libdir)/security \ |
165 |
--enable-isadir="${EPREFIX}"/$(get_libdir)/security \ |
166 |
$(use_enable nls) \ |
167 |
$(use_enable selinux) \ |
168 |
$(use_enable cracklib) \ |
169 |
$(use_enable audit) \ |
170 |
$(use_enable debug) \ |
171 |
$(use_enable berkdb db) \ |
172 |
--with-db-uniquename=-$(db_findver sys-libs/db) \ |
173 |
--disable-prelude \ |
174 |
${myconf} |
175 |
} |
176 |
|
177 |
src_compile() { |
178 |
emake sepermitlockdir="${EPREFIX}/var/run/sepermit" || die "emake failed" |
179 |
} |
180 |
|
181 |
src_test() { |
182 |
# explicitly allow parallel-build during testing |
183 |
emake sepermitlockdir="${EPREFIX}/var/run/sepermit" check || die "emake check failed" |
184 |
} |
185 |
|
186 |
src_install() { |
187 |
local lib |
188 |
|
189 |
emake DESTDIR="${D}" install \ |
190 |
sepermitlockdir="${EPREFIX}/var/run/sepermit" || die "make install failed" |
191 |
|
192 |
# Need to be suid |
193 |
fperms u+s /sbin/unix_chkpwd |
194 |
|
195 |
gen_usr_ldscript -a pam pamc pam_misc |
196 |
|
197 |
# create extra symlinks just in case something depends on them... |
198 |
for lib in pam pamc pam_misc; do |
199 |
if ! [[ -f "${ED}"/$(get_libdir)/lib${lib}$(get_libname) ]]; then |
200 |
dosym lib${lib}$(get_libname 0) /$(get_libdir)/lib${lib}$(get_libname) |
201 |
fi |
202 |
done |
203 |
|
204 |
dodoc CHANGELOG ChangeLog README AUTHORS Copyright NEWS || die |
205 |
|
206 |
docinto modules |
207 |
for dir in modules/pam_*; do |
208 |
newdoc "${dir}"/README README."$(basename "${dir}")" |
209 |
done |
210 |
|
211 |
# Get rid of the .la files. We certainly don't need them for PAM |
212 |
# modules, and libpam is installed as a shared object only, so we |
213 |
# don't ned them for static linking either. |
214 |
find "${D}" -name '*.la' -delete |
215 |
} |
216 |
|
217 |
pkg_preinst() { |
218 |
check_old_modules || die "deprecated PAM modules still used" |
219 |
} |
220 |
|
221 |
pkg_postinst() { |
222 |
ewarn "Some software with pre-loaded PAM libraries might experience" |
223 |
ewarn "warnings or failures related to missing symbols and/or versions" |
224 |
ewarn "after any update. While unfortunate this is a limit of the" |
225 |
ewarn "implementation of PAM and the software, and it requires you to" |
226 |
ewarn "restart the software manually after the update." |
227 |
ewarn "" |
228 |
ewarn "You can get a list of such software running a command like" |
229 |
ewarn " lsof / | egrep 'DEL.*libpam\\.so'" |
230 |
elog "" |
231 |
elog "Because of a bug present up to version 1.1.1-r2, you might have" |
232 |
elog "an executable /var/log/tallylog file. If it is so, you can safely" |
233 |
elog "correct it by running the command" |
234 |
elog " chmod -x /var/log/tallylog" |
235 |
elog "" |
236 |
} |