1 |
robbat2 07/09/18 23:59:25 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pam-0.99.8.1-r1.ebuild |
5 |
Log: |
6 |
Bug #189669, fix non-deterministic inclusion of libaudit. USE=audit is masked on alpha, arm, hppa, ppc64, s390, sh until they have keyworded it per bug #184563. |
7 |
(Portage version: 2.1.3.7) |
8 |
|
9 |
Revision Changes Path |
10 |
1.168 sys-libs/pam/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/pam/ChangeLog?rev=1.168&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/pam/ChangeLog?rev=1.168&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/pam/ChangeLog?r1=1.167&r2=1.168 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v |
19 |
retrieving revision 1.167 |
20 |
retrieving revision 1.168 |
21 |
diff -u -r1.167 -r1.168 |
22 |
--- ChangeLog 26 Jul 2007 16:59:42 -0000 1.167 |
23 |
+++ ChangeLog 18 Sep 2007 23:59:24 -0000 1.168 |
24 |
@@ -1,6 +1,14 @@ |
25 |
# ChangeLog for sys-libs/pam |
26 |
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v 1.167 2007/07/26 16:59:42 flameeyes Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v 1.168 2007/09/18 23:59:24 robbat2 Exp $ |
29 |
+ |
30 |
+*pam-0.99.8.1-r1 (18 Sep 2007) |
31 |
+ |
32 |
+ 18 Sep 2007; Robin H. Johnson <robbat2@g.o> |
33 |
+ +pam-0.99.8.1-r1.ebuild: |
34 |
+ Bug #189669, fix non-deterministic inclusion of libaudit. USE=audit is |
35 |
+ masked on alpha, arm, hppa, ppc64, s390, sh until they have keyworded it per |
36 |
+ bug #184563. |
37 |
|
38 |
*pam-0.99.8.1 (26 Jul 2007) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 sys-libs/pam/pam-0.99.8.1-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/pam/pam-0.99.8.1-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/pam/pam-0.99.8.1-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: pam-0.99.8.1-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2007 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-0.99.8.1-r1.ebuild,v 1.1 2007/09/18 23:59:24 robbat2 Exp $ |
53 |
|
54 |
WANT_AUTOCONF="latest" |
55 |
WANT_AUTOMAKE="latest" |
56 |
|
57 |
inherit libtool multilib eutils autotools pam toolchain-funcs |
58 |
|
59 |
MY_PN="Linux-PAM" |
60 |
MY_P="${MY_PN}-${PV}" |
61 |
|
62 |
HOMEPAGE="http://www.kernel.org/pub/linux/libs/pam/" |
63 |
DESCRIPTION="Linux-PAM (Pluggable Authentication Modules)" |
64 |
|
65 |
SRC_URI="mirror://kernel/linux/libs/pam/pre/library/${MY_P}.tar.bz2 |
66 |
mirror://gentoo/${MY_P}-ldflags-to-libadd.patch.bz2" |
67 |
|
68 |
LICENSE="PAM" |
69 |
SLOT="0" |
70 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
71 |
IUSE="cracklib nls elibc_FreeBSD selinux vim-syntax audit" |
72 |
|
73 |
RDEPEND="nls? ( virtual/libintl ) |
74 |
cracklib? ( >=sys-libs/cracklib-2.8.3 ) |
75 |
audit? ( sys-process/audit ) |
76 |
sys-libs/pwdb |
77 |
selinux? ( >=sys-libs/libselinux-1.28 )" |
78 |
DEPEND="${RDEPEND} |
79 |
nls? ( sys-devel/gettext )" |
80 |
PDEPEND="vim-syntax? ( app-vim/pam-syntax )" |
81 |
|
82 |
S="${WORKDIR}/${MY_P}" |
83 |
|
84 |
PROVIDE="virtual/pam" |
85 |
|
86 |
check_old_modules() { |
87 |
local retval="0" |
88 |
|
89 |
if sed -e 's:#.*::' /etc/pam.d/* | fgrep -q pam_stack.so; then |
90 |
eerror "" |
91 |
eerror "Your current setup is using the pam_stack module." |
92 |
eerror "This module is deprecated and no more supported, and since version" |
93 |
eerror "0.99 is no more installed, nor provided by any other package." |
94 |
eerror "The package will be built (to allow binary package builds), but will" |
95 |
eerror "not be installed." |
96 |
eerror "Please replace pam_stack usage with proper include directive usage," |
97 |
eerror "following the PAM Upgrade guide at the following URL" |
98 |
eerror " http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml" |
99 |
eerror "" |
100 |
ebeep 15 |
101 |
|
102 |
retval=1 |
103 |
fi |
104 |
|
105 |
if sed -e 's:#.*::' /etc/pam.d/* | egrep -q 'pam_(pwdb|radius|timestamp)'; then |
106 |
eerror "" |
107 |
eerror "Your current setup is using one or more of the following modules," |
108 |
eerror "that are not built or supported anymore:" |
109 |
eerror "pam_pwdb, pam_radius, pam_timestamp" |
110 |
eerror "If you are in real need for these modules, please contact the maintainers" |
111 |
eerror "of PAM through http://bugs.gentoo.org/ providing information about its" |
112 |
eerror "use cases." |
113 |
ebeep 10 |
114 |
|
115 |
retval=1 |
116 |
fi |
117 |
|
118 |
# Produce the warnings only during upgrade, for the following two |
119 |
has_version '<sys-libs/pam-0.99' || return $retval |
120 |
|
121 |
# This works only for those modules that are moved to sys-auth/$module, or the |
122 |
# message will be wrong. |
123 |
for module in pam_chroot pam_console pam_userdb; do |
124 |
if sed -e 's:#.*::' /etc/pam.d/* | fgrep -q ${module}.so; then |
125 |
ewarn "" |
126 |
ewarn "Your current setup is using the ${module} module." |
127 |
ewarn "Since version 0.99, ${CATEGORY}/${PN} does not provide this module" |
128 |
ewarn "anymore; if you want to continue using this module, you should install" |
129 |
ewarn "sys-auth/${module}." |
130 |
ewarn "" |
131 |
ebeep 5 |
132 |
fi |
133 |
done |
134 |
|
135 |
return $retval |
136 |
} |
137 |
|
138 |
pkg_setup() { |
139 |
check_old_modules |
140 |
} |
141 |
|
142 |
src_unpack() { |
143 |
unpack ${A} |
144 |
cd "${S}" |
145 |
|
146 |
mkdir -p doc/txts |
147 |
for readme in modules/pam_*/README; do |
148 |
cp -f "${readme}" doc/txts/README.$(dirname "${readme}" | \ |
149 |
sed -e 's|^modules/||') |
150 |
done |
151 |
|
152 |
epatch "${DISTDIR}/${MY_P}-ldflags-to-libadd.patch.bz2" |
153 |
epatch "${FILESDIR}/${MY_PN}-0.99.7.0-disable-regenerate-man.patch" |
154 |
|
155 |
AT_M4DIR="m4" eautoreconf |
156 |
|
157 |
elibtoolize |
158 |
} |
159 |
|
160 |
src_compile() { |
161 |
local myconf |
162 |
|
163 |
if use hppa || use elibc_FreeBSD; then |
164 |
myconf="${myconf} --disable-pie" |
165 |
fi |
166 |
|
167 |
econf \ |
168 |
$(use_enable nls) \ |
169 |
$(use_enable selinux) \ |
170 |
$(use_enable cracklib) \ |
171 |
$(use_enable audit) \ |
172 |
--libdir=/usr/$(get_libdir) \ |
173 |
--disable-db \ |
174 |
--enable-securedir=/$(get_libdir)/security \ |
175 |
--enable-isadir=/$(get_libdir)/security \ |
176 |
--disable-dependency-tracking \ |
177 |
--disable-prelude \ |
178 |
--enable-docdir=/usr/share/doc/${PF} \ |
179 |
--disable-regenerate-man \ |
180 |
${myconf} || die "econf failed" |
181 |
emake || die "emake failed" |
182 |
} |
183 |
|
184 |
src_install() { |
185 |
emake DESTDIR="${D}" install || die "make install failed" |
186 |
|
187 |
# Need to be suid |
188 |
fperms u+s /sbin/unix_chkpwd |
189 |
|
190 |
dodir /$(get_libdir) |
191 |
mv "${D}/usr/$(get_libdir)/libpam.so"* "${D}/$(get_libdir)/" |
192 |
mv "${D}/usr/$(get_libdir)/libpamc.so"* "${D}/$(get_libdir)/" |
193 |
mv "${D}/usr/$(get_libdir)/libpam_misc.so"* "${D}/$(get_libdir)/" |
194 |
gen_usr_ldscript libpam.so libpamc.so libpam_misc.so |
195 |
|
196 |
# No, we don't really need .la files for PAM modules. |
197 |
rm -f "${D}/$(get_libdir)/security/"*.la |
198 |
|
199 |
dodoc CHANGELOG ChangeLog README AUTHORS Copyright |
200 |
docinto modules ; dodoc doc/txts/README.* |
201 |
|
202 |
newpamd "${FILESDIR}/system-auth.pamd.epam" system-auth |
203 |
newpamd "${FILESDIR}/other.pamd" other |
204 |
|
205 |
# Remove the wrongly installed manpages |
206 |
rm "${D}"/usr/share/man/man8/pam_userdb.8* |
207 |
use cracklib || rm "${D}"/usr/share/man/man8/pam_cracklib.8* |
208 |
} |
209 |
|
210 |
pkg_preinst() { |
211 |
check_old_modules || die "deprecated PAM modules still used" |
212 |
|
213 |
pam_epam_expand "${D}"/etc/pam.d/* |
214 |
} |
215 |
|
216 |
pkg_postinst() { |
217 |
if ! use cracklib; then |
218 |
ewarn "You chosen not to enable cracklib. Make sure you run etc-update or" |
219 |
ewarn "you won't be able to change users' passwords." |
220 |
fi |
221 |
} |
222 |
|
223 |
|
224 |
|
225 |
-- |
226 |
gentoo-commits@g.o mailing list |