sys-process/at: install pam files conditionally

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
This commit is contained in:
Mikle Kolyada
2021-01-24 01:42:52 +03:00
parent 0257d925ad
commit 4faa8ec397
2 changed files with 10 additions and 4 deletions
@@ -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
@@ -64,7 +64,10 @@ src_install() {
newinitd "${FILESDIR}"/atd.rc8 atd
newconfd "${FILESDIR}"/atd.confd atd
newpamd "${FILESDIR}"/at.pamd-3.1.13-r1 atd
if use pam; then
newpamd "${FILESDIR}"/at.pamd-3.1.13-r1 atd
fi
# Preserve existing .SEQ files (bug #386625)
local seq_file="${EROOT}/var/spool/at/atjobs/.SEQ"
@@ -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
@@ -67,7 +67,10 @@ src_install() {
newinitd "${FILESDIR}"/atd.rc8 atd
newconfd "${FILESDIR}"/atd.confd atd
newpamd "${FILESDIR}"/at.pamd-3.1.13-r1 atd
if use pam; then
newpamd "${FILESDIR}"/at.pamd-3.1.13-r1 atd
fi
# Preserve existing .SEQ files (bug #386625)
local seq_file="${EROOT}/var/spool/at/atjobs/.SEQ"