1 |
flameeyes 08/08/30 00:52:15 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pam-1.0.2.ebuild |
5 |
Log: |
6 |
Version bump, minor fixes. |
7 |
(Portage version: 2.2_rc8/cvs/Linux 2.6.26-gentoo-r1 x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.224 sys-libs/pam/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/pam/ChangeLog?rev=1.224&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/pam/ChangeLog?rev=1.224&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/pam/ChangeLog?r1=1.223&r2=1.224 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v |
19 |
retrieving revision 1.223 |
20 |
retrieving revision 1.224 |
21 |
diff -u -r1.223 -r1.224 |
22 |
--- ChangeLog 23 Aug 2008 03:30:10 -0000 1.223 |
23 |
+++ ChangeLog 30 Aug 2008 00:52:15 -0000 1.224 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for sys-libs/pam |
26 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v 1.223 2008/08/23 03:30:10 cardoe Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v 1.224 2008/08/30 00:52:15 flameeyes Exp $ |
29 |
+ |
30 |
+*pam-1.0.2 (30 Aug 2008) |
31 |
+ |
32 |
+ 30 Aug 2008; Diego Pettenò <flameeyes@g.o> +pam-1.0.2.ebuild: |
33 |
+ Version bump, minor fixes. |
34 |
|
35 |
23 Aug 2008; Doug Goldstein <cardoe@g.o> metadata.xml: |
36 |
add GLEP 56 USE flag desc from use.local.desc |
37 |
|
38 |
|
39 |
|
40 |
1.1 sys-libs/pam/pam-1.0.2.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/pam/pam-1.0.2.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/pam/pam-1.0.2.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: pam-1.0.2.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2008 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-1.0.2.ebuild,v 1.1 2008/08/30 00:52:15 flameeyes Exp $ |
50 |
|
51 |
WANT_AUTOCONF="latest" |
52 |
WANT_AUTOMAKE="latest" |
53 |
|
54 |
inherit libtool multilib eutils autotools pam toolchain-funcs flag-o-matic |
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 |
|
64 |
LICENSE="PAM" |
65 |
SLOT="0" |
66 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
67 |
IUSE="cracklib nls elibc_FreeBSD selinux vim-syntax audit test elibc_glibc" |
68 |
|
69 |
RDEPEND="nls? ( virtual/libintl ) |
70 |
cracklib? ( >=sys-libs/cracklib-2.8.3 ) |
71 |
audit? ( sys-process/audit ) |
72 |
selinux? ( >=sys-libs/libselinux-1.28 )" |
73 |
DEPEND="${RDEPEND} |
74 |
sys-devel/flex |
75 |
test? ( elibc_glibc? ( >=sys-libs/glibc-2.4 ) ) |
76 |
nls? ( sys-devel/gettext )" |
77 |
PDEPEND="sys-auth/pambase |
78 |
vim-syntax? ( app-vim/pam-syntax )" |
79 |
|
80 |
S="${WORKDIR}/${MY_P}" |
81 |
|
82 |
PROVIDE="virtual/pam" |
83 |
|
84 |
check_old_modules() { |
85 |
local retval="0" |
86 |
|
87 |
if sed -e 's:#.*::' "${ROOT}"/etc/pam.d/* 2>/dev/null | fgrep -q pam_stack.so; then |
88 |
eerror "" |
89 |
eerror "Your current setup is using the pam_stack module." |
90 |
eerror "This module is deprecated and no longer supported, and since version" |
91 |
eerror "0.99 is no longer installed, nor provided by any other package." |
92 |
eerror "The package will be built (to allow binary package builds), but will" |
93 |
eerror "not be installed." |
94 |
eerror "Please replace pam_stack usage with proper include directive usage," |
95 |
eerror "following the PAM Upgrade guide at the following URL" |
96 |
eerror " http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml" |
97 |
eerror "" |
98 |
ebeep 15 |
99 |
|
100 |
retval=1 |
101 |
fi |
102 |
|
103 |
if sed -e 's:#.*::' "${ROOT}"/etc/pam.d/* 2>/dev/null | egrep -q 'pam_(pwdb|timestamp|console)'; then |
104 |
eerror "" |
105 |
eerror "Your current setup is using one or more of the following modules," |
106 |
eerror "that are not built or supported anymore:" |
107 |
eerror "pam_pwdb, pam_timestamp, pam_console" |
108 |
eerror "If you are in real need for these modules, please contact the maintainers" |
109 |
eerror "of PAM through http://bugs.gentoo.org/ providing information about its" |
110 |
eerror "use cases." |
111 |
eerror "Please also make sure to read the PAM Upgrade guide at the following URL:" |
112 |
eerror " http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml" |
113 |
eerror "" |
114 |
ebeep 10 |
115 |
|
116 |
retval=1 |
117 |
fi |
118 |
|
119 |
# Produce the warnings only during upgrade, for the following two |
120 |
has_version '<sys-libs/pam-0.99' || return $retval |
121 |
|
122 |
# This works only for those modules that are moved to sys-auth/$module, or the |
123 |
# message will be wrong. |
124 |
for module in pam_chroot pam_userdb pam_radius; do |
125 |
if sed -e 's:#.*::' "${ROOT}"/etc/pam.d/* 2>/dev/null | fgrep -q ${module}.so; then |
126 |
ewarn "" |
127 |
ewarn "Your current setup is using the ${module} module." |
128 |
ewarn "Since version 0.99, ${CATEGORY}/${PN} does not provide this module" |
129 |
ewarn "anymore; if you want to continue using this module, you should install" |
130 |
ewarn "sys-auth/${module}." |
131 |
ewarn "" |
132 |
ebeep 5 |
133 |
fi |
134 |
done |
135 |
|
136 |
return $retval |
137 |
} |
138 |
|
139 |
pkg_setup() { |
140 |
check_old_modules |
141 |
} |
142 |
|
143 |
src_unpack() { |
144 |
unpack ${A} |
145 |
cd "${S}" |
146 |
|
147 |
mkdir -p doc/txts |
148 |
for readme in modules/pam_*/README; do |
149 |
cp -f "${readme}" doc/txts/README.$(dirname "${readme}" | \ |
150 |
sed -e 's|^modules/||') |
151 |
done |
152 |
|
153 |
epatch "${FILESDIR}/${MY_PN}-0.99.7.0-disable-regenerate-man.patch" |
154 |
epatch "${FILESDIR}/${MY_PN}-0.99.8.1-xtests.patch" |
155 |
|
156 |
AT_M4DIR="m4" eautoreconf |
157 |
|
158 |
elibtoolize |
159 |
} |
160 |
|
161 |
src_compile() { |
162 |
local myconf |
163 |
|
164 |
# Workarounds autoconf 2.62 bug, libintl.h is included before |
165 |
# _GNU_SOURCE is defined in config.h. See bug #217154 |
166 |
append-flags -D_GNU_SOURCE |
167 |
|
168 |
if use hppa || use elibc_FreeBSD; then |
169 |
myconf="${myconf} --disable-pie" |
170 |
fi |
171 |
|
172 |
# KEEP COMMENTED OUT! It seems like it fails to build with USE=debug! |
173 |
# Do _not_ move this to $(use_enable) without checking if the |
174 |
# configure.in has been fixed. As of 2008/07/31 it's still broken |
175 |
# on upstream's CVS, and --disable-debug means --enable-debug too. |
176 |
# if use debug; then |
177 |
# myconf="${myconf} --enable-debug" |
178 |
# fi |
179 |
|
180 |
econf \ |
181 |
--libdir=/usr/$(get_libdir) \ |
182 |
--docdir=/usr/share/doc/${PF} \ |
183 |
--htmldir=/usr/share/doc/${PF}/html \ |
184 |
--enable-securedir=/$(get_libdir)/security \ |
185 |
--enable-isadir=/$(get_libdir)/security \ |
186 |
$(use_enable nls) \ |
187 |
$(use_enable selinux) \ |
188 |
$(use_enable cracklib) \ |
189 |
$(use_enable audit) \ |
190 |
--disable-db \ |
191 |
--disable-dependency-tracking \ |
192 |
--disable-prelude \ |
193 |
--disable-regenerate-man \ |
194 |
${myconf} || die "econf failed" |
195 |
emake sepermitlockdir="/var/run/sepermit" || die "emake failed" |
196 |
} |
197 |
|
198 |
src_install() { |
199 |
emake DESTDIR="${D}" install \ |
200 |
sepermitlockdir="/var/run/sepermit" || die "make install failed" |
201 |
|
202 |
# Need to be suid |
203 |
fperms u+s /sbin/unix_chkpwd |
204 |
|
205 |
dodir /$(get_libdir) |
206 |
mv "${D}/usr/$(get_libdir)/libpam.so"* "${D}/$(get_libdir)/" |
207 |
mv "${D}/usr/$(get_libdir)/libpamc.so"* "${D}/$(get_libdir)/" |
208 |
mv "${D}/usr/$(get_libdir)/libpam_misc.so"* "${D}/$(get_libdir)/" |
209 |
gen_usr_ldscript libpam.so libpamc.so libpam_misc.so |
210 |
|
211 |
dodoc CHANGELOG ChangeLog README AUTHORS Copyright |
212 |
docinto modules ; dodoc doc/txts/README.* |
213 |
|
214 |
# Remove the wrongly installed manpages |
215 |
rm "${D}"/usr/share/man/man8/pam_userdb.8* |
216 |
use cracklib || rm "${D}"/usr/share/man/man8/pam_cracklib.8* |
217 |
|
218 |
# Get rid of the .la files. We certainly don't need them for PAM |
219 |
# modules, and libpam is installed as a shared object only, so we |
220 |
# don't ned them for static linking either. |
221 |
find "${D}" -name '*.la' -delete |
222 |
} |
223 |
|
224 |
pkg_preinst() { |
225 |
check_old_modules || die "deprecated PAM modules still used" |
226 |
|
227 |
pam_epam_expand "${D}"/etc/pam.d/* |
228 |
} |