summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2021-01-22 17:52:58 +0300
committerMikle Kolyada <zlogene@gentoo.org>2021-01-22 17:54:11 +0300
commit8f0d07dfbacb9156183d16fc09c3193e842aaba3 (patch)
tree2a6879af34f4afe0c610000b845b07b07046f511 /net-print
parentdev-util/cbindgen: restrict tests (diff)
downloadgentoo-8f0d07dfbacb9156183d16fc09c3193e842aaba3.tar.gz
gentoo-8f0d07dfbacb9156183d16fc09c3193e842aaba3.tar.bz2
gentoo-8f0d07dfbacb9156183d16fc09c3193e842aaba3.zip
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>
Diffstat (limited to 'net-print')
-rw-r--r--net-print/cups/cups-2.3.3-r2.ebuild (renamed from net-print/cups/cups-2.3.3-r1.ebuild)7
-rw-r--r--net-print/cups/cups-9999.ebuild7
2 files changed, 8 insertions, 6 deletions
diff --git a/net-print/cups/cups-2.3.3-r1.ebuild b/net-print/cups/cups-2.3.3-r2.ebuild
index d6375da0adfe..a367e9deed5b 100644
--- a/net-print/cups/cups-2.3.3-r1.ebuild
+++ b/net-print/cups/cups-2.3.3-r2.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
@@ -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
diff --git a/net-print/cups/cups-9999.ebuild b/net-print/cups/cups-9999.ebuild
index dd20b85bf923..7fecb1e8f2ee 100644
--- a/net-print/cups/cups-9999.ebuild
+++ b/net-print/cups/cups-9999.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
@@ -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