summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2020-06-16 20:12:53 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2020-06-16 20:34:47 -0700
commit0269a2a32e6ef3352dad30260f2efbc05b425e87 (patch)
treef065d896278d9502f5f74964f27e16126a14c2ee /sys-libs/pam
parentnet-libs/libbitcoinconsensus: Bump to 0.20.0 (diff)
downloadgentoo-0269a2a32e6ef3352dad30260f2efbc05b425e87.tar.gz
gentoo-0269a2a32e6ef3352dad30260f2efbc05b425e87.tar.bz2
gentoo-0269a2a32e6ef3352dad30260f2efbc05b425e87.zip
sys-libs/pam: revbump 1.4.0, use tmpfiles_process
use /run instead of /var/run remove trailing - in tmpfiles.d, it can be omitted. also inherit multilib-minimal last in order Package-Manager: Portage-2.3.101, Repoman-2.3.22 Acked-by: Mikle Kolyada <zlogene@gentoo.org> Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'sys-libs/pam')
-rw-r--r--sys-libs/pam/pam-1.4.0-r1.ebuild (renamed from sys-libs/pam/pam-1.4.0.ebuild)22
1 files changed, 11 insertions, 11 deletions
diff --git a/sys-libs/pam/pam-1.4.0.ebuild b/sys-libs/pam/pam-1.4.0-r1.ebuild
index b1d695f9d9ef..632649733a30 100644
--- a/sys-libs/pam/pam-1.4.0.ebuild
+++ b/sys-libs/pam/pam-1.4.0-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-inherit autotools db-use fcaps multilib-minimal toolchain-funcs usr-ldscript
+inherit autotools db-use fcaps tmpfiles toolchain-funcs usr-ldscript multilib-minimal
DESCRIPTION="Linux-PAM (Pluggable Authentication Modules)"
HOMEPAGE="https://github.com/linux-pam/linux-pam"
@@ -94,16 +94,12 @@ multilib_src_install() {
multilib_src_install_all() {
find "${ED}" -type f -name '*.la' -delete || die
- dodir /usr/lib/tmpfiles.d
- cat - > "${D}"/usr/lib/tmpfiles.d/${CATEGORY}:${PN}-:${SLOT}.conf <<EOF
-d /var/run/faillock 0755 root root -
-EOF
-
- if use selinux; then
- cat - >> "${D}"/usr/lib/tmpfiles.d/${CATEGORY}:${PN}:${SLOT}.conf <<EOF
-d /run/sepermit 0755 root root
-EOF
- fi
+ newtmpfiles - "${CATEGORY}-${PN}.conf" <<-_EOF_
+ d /run/faillock 0755 root root
+ _EOF_
+ use selinux && newtmpfiles - "${CATEGORY}-${PN}-selinux.conf" <<-_EOF_
+ d /run/sepermit 0755 root root
+ _EOF_
for i in "${WORKDIR}"/${P}-doc/*; do
doman ${i}
@@ -125,4 +121,8 @@ pkg_postinst() {
# 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
+
+ # OpenRC systems need this processed right away
+ tmpfiles_process "${CATEGORY}-${PN}.conf"
+ use selinux && tmpfiles_process "${CATEGORY}-${PN}-selinux.conf"
}