public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Patrice Clement" <monsieurp@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/pam/
Date: Tue, 19 Dec 2017 22:22:19 +0000 (UTC)	[thread overview]
Message-ID: <1513722123.46492ca281409104813a3d6a05a55267751d0a9c.monsieurp@gentoo> (raw)

commit:     46492ca281409104813a3d6a05a55267751d0a9c
Author:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Sat Dec  9 19:20:28 2017 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Tue Dec 19 22:22:03 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46492ca2

sys-libs/pam: remove app-vim/pam-syntax dependency.

Package-Manager: Portage-2.3.13, Repoman-2.3.3
RepoMan-Options: --force

 sys-libs/pam/pam-1.2.1-r2.ebuild | 205 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 205 insertions(+)

diff --git a/sys-libs/pam/pam-1.2.1-r2.ebuild b/sys-libs/pam/pam-1.2.1-r2.ebuild
new file mode 100644
index 00000000000..1fc9b8ad5e7
--- /dev/null
+++ b/sys-libs/pam/pam-1.2.1-r2.ebuild
@@ -0,0 +1,205 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit libtool multilib multilib-minimal eutils pam toolchain-funcs flag-o-matic db-use fcaps
+
+MY_PN="Linux-PAM"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Linux-PAM (Pluggable Authentication Modules)"
+HOMEPAGE="http://www.linux-pam.org/ https://fedorahosted.org/linux-pam/"
+SRC_URI="http://www.linux-pam.org/library/${MY_P}.tar.bz2
+	http://www.linux-pam.org/documentation/${MY_PN}-1.2.0-docs.tar.bz2"
+
+LICENSE="|| ( BSD GPL-2 )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="audit berkdb cracklib debug nis nls +pie selinux test"
+
+RDEPEND="nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )
+	cracklib? ( >=sys-libs/cracklib-2.9.1-r1[${MULTILIB_USEDEP}] )
+	audit? ( >=sys-process/audit-2.2.2[${MULTILIB_USEDEP}] )
+	selinux? ( >=sys-libs/libselinux-2.2.2-r4[${MULTILIB_USEDEP}] )
+	berkdb? ( >=sys-libs/db-4.8.30-r1:=[${MULTILIB_USEDEP}] )
+	nis? ( >=net-libs/libtirpc-0.2.4-r2[${MULTILIB_USEDEP}] )"
+
+DEPEND="${RDEPEND}
+	>=sys-devel/libtool-2
+	>=sys-devel/flex-2.5.39-r1[${MULTILIB_USEDEP}]
+	nls? ( sys-devel/gettext )
+	nis? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )"
+PDEPEND="sys-auth/pambase"
+
+RDEPEND="${RDEPEND}
+	!<sys-apps/openrc-0.11.8
+	!sys-auth/openpam
+	!sys-auth/pam_userdb
+	abi_x86_32? (
+		!<=app-emulation/emul-linux-x86-baselibs-20140508-r7
+		!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
+	)"
+
+S="${WORKDIR}/${MY_P}"
+
+check_old_modules() {
+	local retval="0"
+
+	if sed -e 's:#.*::' "${EROOT}"/etc/pam.d/* 2>/dev/null | fgrep -q pam_stack.so; then
+		eerror ""
+		eerror "Your current setup is using the pam_stack module."
+		eerror "This module is deprecated and no longer supported, and since version"
+		eerror "0.99 is no longer installed, nor provided by any other package."
+		eerror "The package will be built (to allow binary package builds), but will"
+		eerror "not be installed."
+		eerror "Please replace pam_stack usage with proper include directive usage,"
+		eerror "following the PAM Upgrade guide at the following URL"
+		eerror "  https://wiki.gentoo.org/wiki/Project:PAM/Upgrade_to_0.99"
+		eerror ""
+
+		retval=1
+	fi
+
+	if sed -e 's:#.*::' "${EROOT}"/etc/pam.d/* 2>/dev/null | egrep -q 'pam_(pwdb|console)'; then
+		eerror ""
+		eerror "Your current setup is using one or more of the following modules,"
+		eerror "that are not built or supported anymore:"
+		eerror "pam_pwdb, pam_console"
+		eerror "If you are in real need for these modules, please contact the maintainers"
+		eerror "of PAM through https://bugs.gentoo.org/ providing information about its"
+		eerror "use cases."
+		eerror "Please also make sure to read the PAM Upgrade guide at the following URL:"
+		eerror "  https://wiki.gentoo.org/wiki/Project:PAM/Upgrade_to_0.99"
+		eerror ""
+
+		retval=1
+	fi
+
+	return ${retval}
+}
+
+pkg_pretend() {
+	# do not error out, this is just a warning, one could build a binpkg
+	# with old modules enabled.
+	check_old_modules
+}
+
+src_unpack() {
+	# Upstream didn't release a new doc tarball (since nothing changed?).
+	unpack ${MY_PN}-1.2.0-docs.tar.bz2
+	# Update timestamps to avoid regenerating at build time. #569338
+	find -type f -exec touch -r "${T}" {} + || die
+	mv Linux-PAM-1.2.{0,1} || die
+	unpack ${MY_P}.tar.bz2
+}
+
+src_prepare() {
+	elibtoolize
+}
+
+multilib_src_configure() {
+	# Do not let user's BROWSER setting mess us up. #549684
+	unset BROWSER
+
+	# Disable automatic detection of libxcrypt; we _don't_ want the
+	# user to link libxcrypt in by default, since we won't track the
+	# dependency and allow to break PAM this way.
+	export ac_cv_header_xcrypt_h=no
+
+	local myconf=(
+		--docdir='$(datarootdir)'/doc/${PF}
+		--htmldir='$(docdir)/html'
+		--libdir='$(prefix)'/$(get_libdir)
+		--enable-securedir="${EPREFIX}"/$(get_libdir)/security
+		--enable-isadir='.' #464016
+		$(use_enable nls)
+		$(use_enable selinux)
+		$(use_enable cracklib)
+		$(use_enable audit)
+		$(use_enable debug)
+		$(use_enable berkdb db)
+		$(use_enable nis)
+		$(use_enable pie)
+		--with-db-uniquename=-$(db_findver sys-libs/db)
+		--disable-prelude
+		--disable-regenerate-docu
+	)
+
+	ECONF_SOURCE=${S} \
+	econf "${myconf[@]}"
+}
+
+multilib_src_compile() {
+	emake sepermitlockdir="${EPREFIX}/run/sepermit"
+}
+
+multilib_src_install() {
+	emake DESTDIR="${D}" install \
+		sepermitlockdir="${EPREFIX}/run/sepermit"
+
+	local prefix
+	if multilib_is_native_abi; then
+		prefix=
+		gen_usr_ldscript -a pam pamc pam_misc
+	else
+		prefix=/usr
+	fi
+
+	# create extra symlinks just in case something depends on them...
+	local lib
+	for lib in pam pamc pam_misc; do
+		if ! [[ -f "${ED}"${prefix}/$(get_libdir)/lib${lib}$(get_libname) ]]; then
+			dosym lib${lib}$(get_libname 0) ${prefix}/$(get_libdir)/lib${lib}$(get_libname)
+		fi
+	done
+}
+
+DOCS=( CHANGELOG ChangeLog README AUTHORS Copyright NEWS )
+
+multilib_src_install_all() {
+	einstalldocs
+	prune_libtool_files --all
+
+	docinto modules
+	local dir
+	for dir in modules/pam_*; do
+		newdoc "${dir}"/README README."$(basename "${dir}")"
+	done
+
+	if use selinux; then
+		dodir /usr/lib/tmpfiles.d
+		cat - > "${D}"/usr/lib/tmpfiles.d/${CATEGORY}:${PN}:${SLOT}.conf <<EOF
+d /run/sepermit 0755 root root
+EOF
+	fi
+}
+
+pkg_preinst() {
+	check_old_modules || die "deprecated PAM modules still used"
+}
+
+pkg_postinst() {
+	ewarn "Some software with pre-loaded PAM libraries might experience"
+	ewarn "warnings or failures related to missing symbols and/or versions"
+	ewarn "after any update. While unfortunate this is a limit of the"
+	ewarn "implementation of PAM and the software, and it requires you to"
+	ewarn "restart the software manually after the update."
+	ewarn ""
+	ewarn "You can get a list of such software running a command like"
+	ewarn "  lsof / | egrep -i 'del.*libpam\\.so'"
+	ewarn ""
+	ewarn "Alternatively, simply reboot your system."
+	if [[ -x "${EROOT}"/var/log/tallylog ]] ; then
+		elog ""
+		elog "Because of a bug present up to version 1.1.1-r2, you have"
+		elog "an executable /var/log/tallylog file. You can safely"
+		elog "correct it by running the command"
+		elog "  chmod -x /var/log/tallylog"
+		elog ""
+	fi
+
+	# The pam_unix module needs to check the password of the user which requires
+	# read access to /etc/shadow only.
+	fcaps cap_dac_override sbin/unix_chkpwd
+}


             reply	other threads:[~2017-12-19 22:22 UTC|newest]

Thread overview: 157+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-19 22:22 Patrice Clement [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-03 18:56 [gentoo-commits] repo/gentoo:master commit in: sys-libs/pam/ Mike Gilbert
2025-02-23  5:42 Sam James
2025-02-23  5:31 Sam James
2025-02-23  5:21 Sam James
2025-02-23  5:16 Sam James
2025-01-21 19:11 Mike Gilbert
2025-01-14 11:48 Andreas K. Hüttel
2025-01-09  8:31 Sam James
2025-01-08 20:43 Sam James
2025-01-08 10:01 Sam James
2025-01-08  9:50 Sam James
2025-01-08  9:50 Sam James
2025-01-08  8:42 Sam James
2025-01-08  8:42 Sam James
2025-01-08  4:56 Sam James
2025-01-08  4:56 Sam James
2024-12-06 12:26 Sam James
2024-07-17  5:56 Sam James
2024-07-17  5:15 Sam James
2024-07-17  4:55 Sam James
2024-07-17  4:55 Sam James
2024-07-17  4:46 Sam James
2024-07-17  4:44 Sam James
2024-07-17  4:44 Sam James
2024-05-03  8:23 Sam James
2024-05-03  8:21 Sam James
2024-05-03  8:21 Sam James
2024-05-03  8:21 Sam James
2024-03-19  3:42 Ionen Wolkens
2024-03-03 23:02 Sam James
2024-03-03  2:48 Sam James
2024-03-02 22:50 Sam James
2024-02-27 23:21 Sam James
2024-02-27 23:04 Sam James
2024-02-27 23:04 Sam James
2024-02-27 23:04 Sam James
2024-02-06 22:41 Sam James
2024-01-08 12:03 Sam James
2023-07-14 16:59 Arthur Zamarin
2023-07-11  8:43 Jakov Smolić
2023-07-08  3:39 Sam James
2023-07-07 10:14 Sam James
2023-07-07  8:10 Jakov Smolić
2023-07-07  4:40 Sam James
2023-07-07  4:40 Sam James
2023-07-07  4:40 Sam James
2023-05-10 18:49 Sam James
2023-05-10 18:49 Sam James
2023-01-13 16:31 Arthur Zamarin
2022-12-26  3:20 Sam James
2022-12-25 21:24 Sam James
2022-12-25 21:24 Sam James
2022-12-25 21:24 Sam James
2022-12-25 20:30 Arthur Zamarin
2022-12-25 20:11 Sam James
2022-12-25 20:11 Sam James
2022-12-21 22:54 Sam James
2022-12-11 12:53 Sam James
2022-09-05  2:22 Sam James
2022-09-04  1:11 Sam James
2022-08-31 12:23 Arthur Zamarin
2022-08-31  6:19 Jakov Smolić
2022-08-31  6:19 Jakov Smolić
2022-08-31  5:12 Arthur Zamarin
2022-08-30 23:58 Sam James
2022-08-30 23:58 Sam James
2022-08-30 22:51 Sam James
2022-08-30 22:51 Sam James
2022-06-27 15:00 Guilherme Amadio
2022-06-27 15:00 Guilherme Amadio
2022-05-15  1:00 Sam James
2021-12-25 10:52 Mikle Kolyada
2021-11-06  2:29 Sam James
2021-11-05 18:52 Mikle Kolyada
2021-09-08  1:22 Sam James
2021-09-03 17:49 Mikle Kolyada
2021-09-01 12:08 Mikle Kolyada
2021-08-18 14:28 Sam James
2021-07-22  6:51 Mikle Kolyada
2021-07-19 20:09 Sam James
2021-07-19 20:06 Mikle Kolyada
2021-03-03 20:02 Sam James
2021-02-18 19:36 Mikle Kolyada
2021-02-18 16:03 Mikle Kolyada
2020-12-16 19:21 Mikle Kolyada
2020-11-25 18:44 Mikle Kolyada
2020-11-25 18:44 Mikle Kolyada
2020-11-13 17:05 Mikle Kolyada
2020-11-13 13:22 Mikle Kolyada
2020-10-10  9:31 Mikle Kolyada
2020-09-13  9:42 Mikle Kolyada
2020-09-12 10:18 Mikle Kolyada
2020-09-07  7:33 Mikle Kolyada
2020-08-29 12:47 Mikle Kolyada
2020-08-29 12:47 Mikle Kolyada
2020-08-20 15:51 Mikle Kolyada
2020-08-20 15:04 Mikle Kolyada
2020-08-09 10:22 Mikle Kolyada
2020-06-28  8:42 Mikle Kolyada
2020-06-18 15:02 Mikle Kolyada
2020-06-17 21:23 Mikle Kolyada
2020-06-17 19:22 Mikle Kolyada
2020-06-17  3:35 Georgy Yakovlev
2020-06-16 21:17 Mikle Kolyada
2020-06-16 16:44 Mikle Kolyada
2020-06-13 20:09 Mike Gilbert
2020-06-13  9:31 Mikle Kolyada
2020-06-10 18:27 Mikle Kolyada
2020-06-08 22:22 Mikle Kolyada
2020-03-15 18:36 Mikle Kolyada
2020-03-12 16:12 Mikle Kolyada
2020-02-13  0:11 Patrick McLean
2020-02-12 19:21 Patrick McLean
2020-01-28 13:06 Mikle Kolyada
2020-01-13 11:55 Mikle Kolyada
2020-01-13 11:55 Mikle Kolyada
2019-12-20 14:44 Mikle Kolyada
2019-11-03 17:17 Mikle Kolyada
2019-08-16 11:25 Mikle Kolyada
2019-05-04  9:33 Mikle Kolyada
2018-11-24 21:03 Mikle Kolyada
2018-11-24 21:00 Mikle Kolyada
2018-11-23 10:04 Mikle Kolyada
2018-11-23  9:46 Mikle Kolyada
2018-11-22 16:17 Mikle Kolyada
2018-11-18 18:24 Mikle Kolyada
2018-11-18 18:24 Mikle Kolyada
2018-10-20 18:28 Mikle Kolyada
2018-10-08  9:32 Mikle Kolyada
2018-10-06 22:08 Sergei Trofimovich
2018-10-06 16:48 Matt Turner
2018-10-06 16:48 Matt Turner
2018-10-05  8:44 Mikle Kolyada
2018-10-05  8:41 Mikle Kolyada
2018-10-05  4:10 Thomas Deutschmann
2018-10-04 22:36 Sergei Trofimovich
2018-10-03 20:42 Mikle Kolyada
2018-10-02 21:11 Mikle Kolyada
2018-10-02 18:32 Sergei Trofimovich
2018-10-02  7:47 Mikle Kolyada
2018-09-30 12:25 Mikle Kolyada
2018-02-26 21:56 Patrice Clement
2017-12-28 22:35 Michael Orlitzky
2017-12-19 22:22 Patrice Clement
2017-12-19 22:22 Patrice Clement
2017-12-19 22:22 Patrice Clement
2017-12-19 22:22 Patrice Clement
2017-11-23 22:16 Patrice Clement
2017-01-29 20:14 Fabian Groffen
2017-01-17  4:11 Mike Gilbert
2016-12-15 12:13 Lars Wendler
2016-10-21 12:25 Michael Palimaka
2016-05-05  5:47 Mike Frysinger
2015-12-23 16:27 Mike Frysinger
2015-08-19 15:14 Mike Frysinger
2015-08-19 15:14 Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1513722123.46492ca281409104813a3d6a05a55267751d0a9c.monsieurp@gentoo \
    --to=monsieurp@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox