1 |
flameeyes 13/02/27 11:08:52 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pam-1.1.6-r3.ebuild |
5 |
Log: |
6 |
Add new ebuild using autotools-utils to muse moving to multilib. |
7 |
|
8 |
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 1CD13C8AD4301342) |
9 |
|
10 |
Revision Changes Path |
11 |
1.327 sys-libs/pam/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/pam/ChangeLog?rev=1.327&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/pam/ChangeLog?rev=1.327&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/pam/ChangeLog?r1=1.326&r2=1.327 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v |
20 |
retrieving revision 1.326 |
21 |
retrieving revision 1.327 |
22 |
diff -u -r1.326 -r1.327 |
23 |
--- ChangeLog 20 Feb 2013 09:51:04 -0000 1.326 |
24 |
+++ ChangeLog 27 Feb 2013 11:08:52 -0000 1.327 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for sys-libs/pam |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v 1.326 2013/02/20 09:51:04 ago Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v 1.327 2013/02/27 11:08:52 flameeyes Exp $ |
30 |
+ |
31 |
+*pam-1.1.6-r3 (27 Feb 2013) |
32 |
+ |
33 |
+ 27 Feb 2013; Diego E. Pettenò <flameeyes@g.o> +pam-1.1.6-r3.ebuild: |
34 |
+ Add new ebuild using autotools-utils to muse moving to multilib. |
35 |
|
36 |
20 Feb 2013; Agostino Sarubbo <ago@g.o> pam-1.1.6-r2.ebuild: |
37 |
Stable for s390, wrt bug #454664 |
38 |
|
39 |
|
40 |
|
41 |
1.1 sys-libs/pam/pam-1.1.6-r3.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/pam/pam-1.1.6-r3.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/pam/pam-1.1.6-r3.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: pam-1.1.6-r3.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2013 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.6-r3.ebuild,v 1.1 2013/02/27 11:08:52 flameeyes Exp $ |
51 |
|
52 |
EAPI=5 |
53 |
|
54 |
inherit libtool multilib eutils pam toolchain-funcs flag-o-matic db-use autotools autotools-utils |
55 |
|
56 |
MY_PN="Linux-PAM" |
57 |
MY_P="${MY_PN}-${PV}" |
58 |
|
59 |
HOMEPAGE="https://fedorahosted.org/linux-pam/" |
60 |
DESCRIPTION="Linux-PAM (Pluggable Authentication Modules)" |
61 |
|
62 |
SRC_URI="http://www.linux-pam.org/library/${MY_P}.tar.bz2 |
63 |
http://www.linux-pam.org/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 nis" |
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? ( |
76 |
>=sys-libs/glibc-2.7 |
77 |
nis? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) ) |
78 |
)" |
79 |
DEPEND="${RDEPEND} |
80 |
>=sys-devel/libtool-2 |
81 |
sys-devel/flex |
82 |
nls? ( sys-devel/gettext ) |
83 |
virtual/pkgconfig" |
84 |
PDEPEND="sys-auth/pambase |
85 |
vim-syntax? ( app-vim/pam-syntax )" |
86 |
RDEPEND="${RDEPEND} |
87 |
!<sys-apps/openrc-0.11.8 |
88 |
!sys-auth/openpam |
89 |
!sys-auth/pam_userdb" |
90 |
|
91 |
S="${WORKDIR}/${MY_P}" |
92 |
|
93 |
check_old_modules() { |
94 |
local retval="0" |
95 |
|
96 |
if sed -e 's:#.*::' "${EROOT}"/etc/pam.d/* 2>/dev/null | fgrep -q pam_stack.so; then |
97 |
eerror "" |
98 |
eerror "Your current setup is using the pam_stack module." |
99 |
eerror "This module is deprecated and no longer supported, and since version" |
100 |
eerror "0.99 is no longer installed, nor provided by any other package." |
101 |
eerror "The package will be built (to allow binary package builds), but will" |
102 |
eerror "not be installed." |
103 |
eerror "Please replace pam_stack usage with proper include directive usage," |
104 |
eerror "following the PAM Upgrade guide at the following URL" |
105 |
eerror " http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml" |
106 |
eerror "" |
107 |
|
108 |
retval=1 |
109 |
fi |
110 |
|
111 |
if sed -e 's:#.*::' "${EROOT}"/etc/pam.d/* 2>/dev/null | egrep -q 'pam_(pwdb|console)'; then |
112 |
eerror "" |
113 |
eerror "Your current setup is using one or more of the following modules," |
114 |
eerror "that are not built or supported anymore:" |
115 |
eerror "pam_pwdb, pam_console" |
116 |
eerror "If you are in real need for these modules, please contact the maintainers" |
117 |
eerror "of PAM through http://bugs.gentoo.org/ providing information about its" |
118 |
eerror "use cases." |
119 |
eerror "Please also make sure to read the PAM Upgrade guide at the following URL:" |
120 |
eerror " http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml" |
121 |
eerror "" |
122 |
|
123 |
retval=1 |
124 |
fi |
125 |
|
126 |
return $retval |
127 |
} |
128 |
|
129 |
pkg_pretend() { |
130 |
# do not error out, this is just a warning, one could build a binpkg |
131 |
# with old modules enabled. |
132 |
check_old_modules |
133 |
} |
134 |
|
135 |
src_prepare() { |
136 |
epatch "${FILESDIR}"/${MY_P}-destdir.patch |
137 |
epatch "${FILESDIR}"/${MY_P}+glibc-2.16.patch |
138 |
|
139 |
eautoreconf |
140 |
elibtoolize |
141 |
} |
142 |
|
143 |
src_configure() { |
144 |
# Disable automatic detection of libxcrypt; we _don't_ want the |
145 |
# user to link libxcrypt in by default, since we won't track the |
146 |
# dependency and allow to break PAM this way. |
147 |
export ac_cv_header_xcrypt_h=no |
148 |
|
149 |
local myeconfargs=( |
150 |
--htmldir="${EPREFIX}"/usr/share/doc/${PF}/html |
151 |
--enable-securedir="${EPREFIX}"/$(get_libdir)/security |
152 |
--enable-isadir="${EPREFIX}"/$(get_libdir)/security |
153 |
$(use_enable nls) |
154 |
$(use_enable selinux) |
155 |
$(use_enable cracklib) |
156 |
$(use_enable audit) |
157 |
$(use_enable debug) |
158 |
$(use_enable berkdb db) |
159 |
$(use_enable nis) |
160 |
--with-db-uniquename=-$(db_findver sys-libs/db) |
161 |
--disable-prelude |
162 |
) |
163 |
|
164 |
if use hppa || use elibc_FreeBSD; then |
165 |
myeconfargs+=( --disable-pie ) |
166 |
fi |
167 |
|
168 |
autotools-utils_src_configure |
169 |
} |
170 |
|
171 |
src_compile() { |
172 |
autotools-utils_src_compile sepermitlockdir="${EPREFIX}/run/sepermit" |
173 |
} |
174 |
|
175 |
DOCS=( CHANGELOG ChangeLog README AUTHORS Copyright NEWS ) |
176 |
|
177 |
src_install() { |
178 |
autotools-utils_src_install sepermitlockdir="${EPREFIX}/run/sepermit" |
179 |
|
180 |
# Need to be suid |
181 |
fperms u+s /sbin/unix_chkpwd |
182 |
|
183 |
gen_usr_ldscript -a pam pamc pam_misc |
184 |
|
185 |
# create extra symlinks just in case something depends on them... |
186 |
local lib |
187 |
for lib in pam pamc pam_misc; do |
188 |
if ! [[ -f "${ED}"/$(get_libdir)/lib${lib}$(get_libname) ]]; then |
189 |
dosym lib${lib}$(get_libname 0) /$(get_libdir)/lib${lib}$(get_libname) |
190 |
fi |
191 |
done |
192 |
|
193 |
docinto modules |
194 |
for dir in modules/pam_*; do |
195 |
newdoc "${dir}"/README README."$(basename "${dir}")" |
196 |
done |
197 |
|
198 |
prune_libtool_files --all |
199 |
|
200 |
if use selinux; then |
201 |
dodir /usr/lib/tmpfiles.d |
202 |
cat - > "${D}"/usr/lib/tmpfiles.d/${CATEGORY}:${PN}:${SLOT}.conf <<EOF |
203 |
d /run/sepermit 0755 root root |
204 |
EOF |
205 |
fi |
206 |
} |
207 |
|
208 |
pkg_preinst() { |
209 |
check_old_modules || die "deprecated PAM modules still used" |
210 |
} |
211 |
|
212 |
pkg_postinst() { |
213 |
ewarn "Some software with pre-loaded PAM libraries might experience" |
214 |
ewarn "warnings or failures related to missing symbols and/or versions" |
215 |
ewarn "after any update. While unfortunate this is a limit of the" |
216 |
ewarn "implementation of PAM and the software, and it requires you to" |
217 |
ewarn "restart the software manually after the update." |
218 |
ewarn "" |
219 |
ewarn "You can get a list of such software running a command like" |
220 |
ewarn " lsof / | egrep -i 'del.*libpam\\.so'" |
221 |
ewarn "" |
222 |
ewarn "Alternatively, simply reboot your system." |
223 |
if [ -x "${ROOT}"/var/log/tallylog ] ; then |
224 |
elog "" |
225 |
elog "Because of a bug present up to version 1.1.1-r2, you have" |
226 |
elog "an executable /var/log/tallylog file. You can safely" |
227 |
elog "correct it by running the command" |
228 |
elog " chmod -x /var/log/tallylog" |
229 |
elog "" |
230 |
fi |
231 |
} |