summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2021-01-23 13:56:55 +0300
committerMikle Kolyada <zlogene@gentoo.org>2021-01-23 13:56:55 +0300
commit20328c8cd972ba7edad62e5a13f597a8d64094fe (patch)
tree2ab19faae4f52b45804050c61a9420e3499da375 /sys-process
parentnet-misc/openssh: install pam files conditionally (diff)
downloadgentoo-20328c8cd972ba7edad62e5a13f597a8d64094fe.tar.gz
gentoo-20328c8cd972ba7edad62e5a13f597a8d64094fe.tar.bz2
gentoo-20328c8cd972ba7edad62e5a13f597a8d64094fe.zip
sys-process/cronie: install pam files conditionally
Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
Diffstat (limited to 'sys-process')
-rw-r--r--sys-process/cronie/cronie-1.5.5-r1.ebuild (renamed from sys-process/cronie/cronie-1.5.5.ebuild)7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys-process/cronie/cronie-1.5.5.ebuild b/sys-process/cronie/cronie-1.5.5-r1.ebuild
index 4bbef2e9bb0c..87d7137e8e3b 100644
--- a/sys-process/cronie/cronie-1.5.5.ebuild
+++ b/sys-process/cronie/cronie-1.5.5-r1.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=7
@@ -83,7 +83,10 @@ src_install() {
doins contrib/0hourly
newinitd "${FILESDIR}/${PN}-1.3-initd" ${PN}
- newpamd "${FILESDIR}/${PN}-1.4.3-pamd" crond
+
+ if use pam; then
+ newpamd "${FILESDIR}/${PN}-1.4.3-pamd" crond
+ fi
systemd_newunit contrib/cronie.systemd cronie.service