commit: 21a41a187a3eb57511fde8278f0153d91047cdb8
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 22 21:19:48 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jan 22 21:19:48 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21a41a18
sys-process/fcron: install pam files conditionally
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Sam James <sam <AT> gentoo.org>
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(-)
diff --git a/sys-process/fcron/fcron-3.2.1-r1.ebuild
b/sys-process/fcron/fcron-3.2.1-r1.ebuild
index 7e07ebb433d..e1c90a0def3 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 e4ae261689b..a564610b6fc 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 ca2a152f403..0e7915a8d60 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