From 21a41a187a3eb57511fde8278f0153d91047cdb8 Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 22 Jan 2021 21:19:48 +0000 Subject: sys-process/fcron: install pam files conditionally Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Sam James --- sys-process/fcron/fcron-3.2.1-r1.ebuild | 6 +++--- sys-process/fcron/fcron-3.2.1-r3.ebuild | 6 +++--- sys-process/fcron/fcron-3.3.0_beta-r1.ebuild | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'sys-process') 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 diff --git a/sys-process/fcron/fcron-3.2.1-r3.ebuild b/sys-process/fcron/fcron-3.2.1-r3.ebuild index e4ae261689bf..a564610b6fc0 100644 --- a/sys-process/fcron/fcron-3.2.1-r3.ebuild +++ b/sys-process/fcron/fcron-3.2.1-r3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="6" @@ -148,7 +148,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. @@ -160,7 +160,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-r5 fcron systemd_newunit "${S}/script/fcron.init.systemd" fcron.service diff --git a/sys-process/fcron/fcron-3.3.0_beta-r1.ebuild b/sys-process/fcron/fcron-3.3.0_beta-r1.ebuild index ca2a152f4031..0e7915a8d603 100644 --- a/sys-process/fcron/fcron-3.3.0_beta-r1.ebuild +++ b/sys-process/fcron/fcron-3.3.0_beta-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" @@ -153,7 +153,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. @@ -165,7 +165,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-r5 fcron systemd_newunit "${S}/script/fcron.init.systemd" fcron.service -- cgit v1.2.3-65-gdbad