net-print/cups: 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-22 17:52:58 +03:00
parent c664aa761c
commit 8f0d07dfba
2 changed files with 8 additions and 6 deletions

View File

@@ -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
@@ -253,8 +253,9 @@ multilib_src_install_all() {
"${T}"/cupsd || die
doinitd "${T}"/cupsd
# install our pam script
pamd_mimic_system cups auth account
if use pam; then
pamd_mimic_system cups auth account
fi
if use xinetd ; then
# correct path

View File

@@ -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
@@ -251,8 +251,9 @@ multilib_src_install_all() {
"${T}"/cupsd || die
doinitd "${T}"/cupsd
# install our pam script
pamd_mimic_system cups auth account
if use pam; then
pamd_mimic_system cups auth account
fi
if use xinetd ; then
# correct path