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