summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-01-22 21:19:48 +0000
committerSam James <sam@gentoo.org>2021-01-22 21:19:48 +0000
commit21a41a187a3eb57511fde8278f0153d91047cdb8 (patch)
tree5af60ef91a30d3385e6683b623e60926aa66392f /sys-process
parentmedia-libs/opencv: sort remote-id (diff)
downloadgentoo-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')
-rw-r--r--sys-process/fcron/fcron-3.2.1-r1.ebuild6
-rw-r--r--sys-process/fcron/fcron-3.2.1-r3.ebuild6
-rw-r--r--sys-process/fcron/fcron-3.3.0_beta-r1.ebuild6
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 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