Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/pam: pam-1.1.0.ebuild ChangeLog
Date: Sat, 20 Jun 2009 20:23:15
Message-Id: E1MI75l-0007OG-Iy@stork.gentoo.org
1 flameeyes 09/06/20 20:23:13
2
3 Modified: ChangeLog
4 Added: pam-1.1.0.ebuild
5 Log:
6 Version bump to new release. Some of the interesting changes: the debug USE flag is properly set up this time, we don't patch man regeneration any longer (should be fixed upsteram), don't touch the modules' README files until install phase, don't error out on pam_timestamp usage, this PAM version fixes it. Also drop the update warnings on the split PAM modules.
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.240 sys-libs/pam/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/pam/ChangeLog?rev=1.240&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/pam/ChangeLog?rev=1.240&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/pam/ChangeLog?r1=1.239&r2=1.240
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v
19 retrieving revision 1.239
20 retrieving revision 1.240
21 diff -u -r1.239 -r1.240
22 --- ChangeLog 20 Jun 2009 18:51:05 -0000 1.239
23 +++ ChangeLog 20 Jun 2009 20:23:13 -0000 1.240
24 @@ -1,6 +1,16 @@
25 # ChangeLog for sys-libs/pam
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v 1.239 2009/06/20 18:51:05 flameeyes Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v 1.240 2009/06/20 20:23:13 flameeyes Exp $
29 +
30 +*pam-1.1.0 (20 Jun 2009)
31 +
32 + 20 Jun 2009; Diego E. Pettenò <flameeyes@g.o> +pam-1.1.0.ebuild,
33 + +files/Linux-PAM-1.1.0-debug.patch:
34 + Version bump to new release. Some of the interesting changes: the debug
35 + USE flag is properly set up this time, we don't patch man regeneration any
36 + longer (should be fixed upsteram), don't touch the modules' README files
37 + until install phase, don't error out on pam_timestamp usage, this PAM
38 + version fixes it. Also drop the update warnings on the split PAM modules.
39
40 20 Jun 2009; Diego E. Pettenò <flameeyes@g.o> -pam-1.0.1.ebuild:
41 Remove old version.
42
43
44
45 1.1 sys-libs/pam/pam-1.1.0.ebuild
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/pam/pam-1.1.0.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/pam/pam-1.1.0.ebuild?rev=1.1&content-type=text/plain
49
50 Index: pam-1.1.0.ebuild
51 ===================================================================
52 # Copyright 1999-2009 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-1.1.0.ebuild,v 1.1 2009/06/20 20:23:13 flameeyes Exp $
55
56 WANT_AUTOCONF="latest"
57 WANT_AUTOMAKE="latest"
58
59 inherit libtool multilib eutils autotools pam toolchain-funcs flag-o-matic
60
61 MY_PN="Linux-PAM"
62 MY_P="${MY_PN}-${PV}"
63
64 HOMEPAGE="http://www.kernel.org/pub/linux/libs/pam/"
65 DESCRIPTION="Linux-PAM (Pluggable Authentication Modules)"
66
67 SRC_URI="mirror://kernel/linux/libs/pam/library/${MY_P}.tar.bz2"
68
69 LICENSE="PAM"
70 SLOT="0"
71 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
72 IUSE="cracklib nls elibc_FreeBSD selinux vim-syntax audit test elibc_glibc debug"
73
74 RDEPEND="nls? ( virtual/libintl )
75 cracklib? ( >=sys-libs/cracklib-2.8.3 )
76 audit? ( sys-process/audit )
77 selinux? ( >=sys-libs/libselinux-1.28 )
78 elibc_glibc? ( >=sys-libs/glibc-2.7 )"
79 DEPEND="${RDEPEND}
80 sys-devel/flex
81 nls? ( sys-devel/gettext )"
82 PDEPEND="sys-auth/pambase
83 vim-syntax? ( app-vim/pam-syntax )"
84
85 S="${WORKDIR}/${MY_P}"
86
87 PROVIDE="virtual/pam"
88
89 check_old_modules() {
90 local retval="0"
91
92 if sed -e 's:#.*::' "${ROOT}"/etc/pam.d/* 2>/dev/null | fgrep -q pam_stack.so; then
93 eerror ""
94 eerror "Your current setup is using the pam_stack module."
95 eerror "This module is deprecated and no longer supported, and since version"
96 eerror "0.99 is no longer installed, nor provided by any other package."
97 eerror "The package will be built (to allow binary package builds), but will"
98 eerror "not be installed."
99 eerror "Please replace pam_stack usage with proper include directive usage,"
100 eerror "following the PAM Upgrade guide at the following URL"
101 eerror " http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml"
102 eerror ""
103 ebeep 15
104
105 retval=1
106 fi
107
108 if sed -e 's:#.*::' "${ROOT}"/etc/pam.d/* 2>/dev/null | egrep -q 'pam_(pwdb|console)'; then
109 eerror ""
110 eerror "Your current setup is using one or more of the following modules,"
111 eerror "that are not built or supported anymore:"
112 eerror "pam_pwdb, pam_timestamp, pam_console"
113 eerror "If you are in real need for these modules, please contact the maintainers"
114 eerror "of PAM through http://bugs.gentoo.org/ providing information about its"
115 eerror "use cases."
116 eerror "Please also make sure to read the PAM Upgrade guide at the following URL:"
117 eerror " http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml"
118 eerror ""
119 ebeep 10
120
121 retval=1
122 fi
123
124 return $retval
125 }
126
127 pkg_setup() {
128 check_old_modules
129 }
130
131 src_unpack() {
132 unpack ${A}
133 cd "${S}"
134
135 epatch "${FILESDIR}/${MY_PN}-0.99.8.1-xtests.patch"
136
137 # Remove NIS dependencies, see bug #235431
138 epatch "${FILESDIR}/${MY_PN}-1.0.2-noyp.patch"
139
140 # Fix building with debug USE flag enabled
141 epatch "${FILESDIR}/${MY_PN}-1.1.0-debug.patch"
142
143 # Remove libtool-2 libtool macros, see bug 261167
144 rm m4/libtool.m4 m4/lt*.m4 || die "rm libtool macros failed."
145
146 AT_M4DIR="m4" eautoreconf
147
148 elibtoolize
149 }
150
151 src_compile() {
152 local myconf
153
154 if use hppa || use elibc_FreeBSD; then
155 myconf="${myconf} --disable-pie"
156 fi
157
158 econf \
159 --libdir=/usr/$(get_libdir) \
160 --docdir=/usr/share/doc/${PF} \
161 --htmldir=/usr/share/doc/${PF}/html \
162 --enable-securedir=/$(get_libdir)/security \
163 --enable-isadir=/$(get_libdir)/security \
164 $(use_enable nls) \
165 $(use_enable selinux) \
166 $(use_enable cracklib) \
167 $(use_enable audit) \
168 $(use_enable debug) \
169 --disable-db \
170 --disable-dependency-tracking \
171 --disable-prelude \
172 ${myconf} || die "econf failed"
173 emake sepermitlockdir="/var/run/sepermit" || die "emake failed"
174 }
175
176 src_install() {
177 emake DESTDIR="${D}" install \
178 sepermitlockdir="/var/run/sepermit" || die "make install failed"
179
180 # Need to be suid
181 fperms u+s /sbin/unix_chkpwd
182
183 dodir /$(get_libdir)
184 mv "${D}/usr/$(get_libdir)/libpam.so"* "${D}/$(get_libdir)/"
185 mv "${D}/usr/$(get_libdir)/libpamc.so"* "${D}/$(get_libdir)/"
186 mv "${D}/usr/$(get_libdir)/libpam_misc.so"* "${D}/$(get_libdir)/"
187 gen_usr_ldscript libpam.so libpamc.so libpam_misc.so
188
189 dodoc CHANGELOG ChangeLog README AUTHORS Copyright NEWS || die
190
191 docinto modules
192 for dir in modules/pam_*; do
193 newdoc $dir/README README.$(basename ${dir})
194 done
195
196 # Remove the wrongly installed manpages
197 rm "${D}"/usr/share/man/man8/pam_userdb.8*
198 use cracklib || rm "${D}"/usr/share/man/man8/pam_cracklib.8*
199
200 # Get rid of the .la files. We certainly don't need them for PAM
201 # modules, and libpam is installed as a shared object only, so we
202 # don't ned them for static linking either.
203 find "${D}" -name '*.la' -delete
204 }
205
206 pkg_preinst() {
207 check_old_modules || die "deprecated PAM modules still used"
208 }