Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/pam/
Date: Sun, 18 Nov 2018 18:24:22
Message-Id: 1542565450.0f4ede808390a021c78e5fac6d62f44f88727cf6.zlogene@gentoo
1 commit: 0f4ede808390a021c78e5fac6d62f44f88727cf6
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 18 18:23:54 2018 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 18 18:24:10 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f4ede80
7
8 sys-libs/pam: Drop old
9
10 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 sys-libs/pam/pam-1.3.1.ebuild | 126 ------------------------------------------
14 1 file changed, 126 deletions(-)
15
16 diff --git a/sys-libs/pam/pam-1.3.1.ebuild b/sys-libs/pam/pam-1.3.1.ebuild
17 deleted file mode 100644
18 index 75f1b0b62cf..00000000000
19 --- a/sys-libs/pam/pam-1.3.1.ebuild
20 +++ /dev/null
21 @@ -1,126 +0,0 @@
22 -# Copyright 1999-2018 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=6
26 -
27 -inherit autotools db-use fcaps multilib-minimal toolchain-funcs
28 -
29 -DESCRIPTION="Linux-PAM (Pluggable Authentication Modules)"
30 -HOMEPAGE="https://github.com/linux-pam/linux-pam"
31 -SRC_URI="https://github.com/linux-pam/linux-pam/archive/v${PV}.tar.gz -> ${P}.tar.gz"
32 -
33 -LICENSE="|| ( BSD GPL-2 )"
34 -SLOT="0"
35 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
36 -IUSE="audit berkdb +cracklib debug nis nls +pie selinux static-libs"
37 -
38 -DEPEND="app-text/docbook-xml-dtd:4.3
39 - app-text/docbook-xml-dtd:4.4
40 - app-text/docbook-xml-dtd:4.5
41 - nls? ( sys-devel/gettext )"
42 -
43 -RDEPEND="${DEPEND}
44 - audit? ( >=sys-process/audit-2.2.2[${MULTILIB_USEDEP}] )
45 - berkdb? ( >=sys-libs/db-4.8.30-r1:=[${MULTILIB_USEDEP}] )
46 - cracklib? ( >=sys-libs/cracklib-2.9.1-r1[${MULTILIB_USEDEP}] )
47 - selinux? ( >=sys-libs/libselinux-2.2.2-r4[${MULTILIB_USEDEP}] )
48 - nis? ( >=net-libs/libtirpc-0.2.4-r2[${MULTILIB_USEDEP}] )
49 - nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )
50 - !<sys-apps/openrc-0.11.8
51 - !sys-auth/openpam
52 - !sys-auth/pam_userdb"
53 -
54 -BDEPEND="virtual/pkgconfig"
55 -
56 -PDEPEND="sys-auth/pambase"
57 -
58 -S="${WORKDIR}/linux-${P}"
59 -
60 -src_prepare() {
61 - default
62 - eapply "${FILESDIR}/${PN}-remove-browsers.patch"
63 - touch ChangeLog || die
64 - eautoreconf
65 -}
66 -
67 -multilib_src_configure() {
68 - # Do not let user's BROWSER setting mess us up. #549684
69 - unset BROWSER
70 -
71 - # Disable automatic detection of libxcrypt; we _don't_ want the
72 - # user to link libxcrypt in by default, since we won't track the
73 - # dependency and allow to break PAM this way.
74 -
75 - export ac_cv_header_xcrypt_h=no
76 -
77 - local myconf=(
78 - --with-db-uniquename=-$(db_findver sys-libs/db)
79 - --enable-securedir="${EPREFIX}"/$(get_libdir)/security
80 - --libdir=/usr/$(get_libdir)
81 - --disable-prelude
82 - $(use_enable audit)
83 - $(use_enable berkdb db)
84 - $(use_enable cracklib)
85 - $(use_enable debug)
86 - $(use_enable nis)
87 - $(use_enable nls)
88 - $(use_enable pie)
89 - $(use_enable selinux)
90 - $(use_enable static-libs static)
91 - --enable-isadir='.' #464016
92 - )
93 - ECONF_SOURCE="${S}" econf ${myconf[@]}
94 -}
95 -
96 -multilib_src_compile() {
97 - emake sepermitlockdir="${EPREFIX}/run/sepermit"
98 -}
99 -
100 -multilib_src_install() {
101 - emake DESTDIR="${D}" install \
102 - sepermitlockdir="${EPREFIX}/run/sepermit"
103 -
104 - local prefix
105 - if multilib_is_native_abi; then
106 - prefix=
107 - gen_usr_ldscript -a pam pamc pam_misc
108 - else
109 - prefix=/usr
110 - fi
111 -
112 - # create extra symlinks just in case something depends on them...
113 - local lib
114 - for lib in pam pamc pam_misc; do
115 - if ! [[ -f "${ED}"${prefix}/$(get_libdir)/lib${lib}$(get_libname) ]]; then
116 - dosym lib${lib}$(get_libname 0) ${prefix}/$(get_libdir)/lib${lib}$(get_libname)
117 - fi
118 - done
119 -}
120 -
121 -multilib_src_install_all() {
122 - find "${ED}" -type f -name '*.la' -delete || die
123 -
124 - if use selinux; then
125 - dodir /usr/lib/tmpfiles.d
126 - cat - > "${D}"/usr/lib/tmpfiles.d/${CATEGORY}:${PN}:${SLOT}.conf <<EOF
127 -d /run/sepermit 0755 root root
128 -EOF
129 - fi
130 -}
131 -
132 -pkg_postinst() {
133 - ewarn "Some software with pre-loaded PAM libraries might experience"
134 - ewarn "warnings or failures related to missing symbols and/or versions"
135 - ewarn "after any update. While unfortunate this is a limit of the"
136 - ewarn "implementation of PAM and the software, and it requires you to"
137 - ewarn "restart the software manually after the update."
138 - ewarn ""
139 - ewarn "You can get a list of such software running a command like"
140 - ewarn " lsof / | egrep -i 'del.*libpam\\.so'"
141 - ewarn ""
142 - ewarn "Alternatively, simply reboot your system."
143 -
144 - # The pam_unix module needs to check the password of the user which requires
145 - # read access to /etc/shadow only.
146 - fcaps cap_dac_override sbin/unix_chkpwd
147 -}