diff options
author | Sam James <sam@gentoo.org> | 2021-01-22 21:19:48 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-01-22 21:19:48 +0000 |
commit | 21a41a187a3eb57511fde8278f0153d91047cdb8 (patch) | |
tree | 5af60ef91a30d3385e6683b623e60926aa66392f /sys-process/fcron/fcron-3.2.1-r1.ebuild | |
parent | media-libs/opencv: sort remote-id (diff) | |
download | gentoo-21a41a187a3eb57511fde8278f0153d91047cdb8.tar.gz gentoo-21a41a187a3eb57511fde8278f0153d91047cdb8.tar.bz2 gentoo-21a41a187a3eb57511fde8278f0153d91047cdb8.zip |
sys-process/fcron: install pam files conditionally
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-process/fcron/fcron-3.2.1-r1.ebuild')
-rw-r--r-- | sys-process/fcron/fcron-3.2.1-r1.ebuild | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys-process/fcron/fcron-3.2.1-r1.ebuild b/sys-process/fcron/fcron-3.2.1-r1.ebuild index 7e07ebb433d3..e1c90a0def31 100644 --- a/sys-process/fcron/fcron-3.2.1-r1.ebuild +++ b/sys-process/fcron/fcron-3.2.1-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="6" @@ -147,7 +147,7 @@ src_install() { fperms 0750 /etc/fcron fperms 0640 /etc/fcron/fcron.{allow,deny,conf} - pamd_mimic system-services fcron auth account session + use pam && pamd_mimic system-services fcron auth account session cat > "${T}"/fcrontab.pam <<- EOF # Don't ask for the user's password; fcrontab will only allow to # change user if running as root. @@ -159,7 +159,7 @@ src_install() { account include system-auth session include system-auth EOF - newpamd "${T}"/fcrontab.pam fcrontab + use pam && newpamd "${T}"/fcrontab.pam fcrontab newinitd "${FILESDIR}"/fcron.init.4 fcron systemd_newunit "${S}/script/fcron.init.systemd" fcron.service |