summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2021-01-22 20:31:33 +0300
committerMikle Kolyada <zlogene@gentoo.org>2021-01-22 20:31:33 +0300
commit611e9dcbfc489de3a498931cf29cc1932c80b6c6 (patch)
tree79013494120cd664b040535966579b92fb18b247 /app-admin/sudo
parentnet-dialup/freeradius: install pam files unconditionally (diff)
downloadgentoo-611e9dcbfc489de3a498931cf29cc1932c80b6c6.tar.gz
gentoo-611e9dcbfc489de3a498931cf29cc1932c80b6c6.tar.bz2
gentoo-611e9dcbfc489de3a498931cf29cc1932c80b6c6.zip
app-admin/sudo: 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 'app-admin/sudo')
-rw-r--r--app-admin/sudo/sudo-1.9.3_p1-r1.ebuild (renamed from app-admin/sudo/sudo-1.9.3_p1.ebuild)8
-rw-r--r--app-admin/sudo/sudo-1.9.4_p2-r1.ebuild (renamed from app-admin/sudo/sudo-1.9.4_p2.ebuild)8
-rw-r--r--app-admin/sudo/sudo-1.9.5_p1-r1.ebuild (renamed from app-admin/sudo/sudo-1.9.5_p1.ebuild)7
-rw-r--r--app-admin/sudo/sudo-9999.ebuild8
4 files changed, 19 insertions, 12 deletions
diff --git a/app-admin/sudo/sudo-1.9.3_p1.ebuild b/app-admin/sudo/sudo-1.9.3_p1-r1.ebuild
index 32639cb05df9..b85357b30b3c 100644
--- a/app-admin/sudo/sudo-1.9.3_p1.ebuild
+++ b/app-admin/sudo/sudo-1.9.3_p1-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
@@ -198,8 +198,10 @@ src_install() {
newins doc/schema.OpenLDAP sudo.schema
fi
- pamd_mimic system-auth sudo auth account session
- pamd_mimic system-auth sudo-i auth account session
+ if use pam; then
+ pamd_mimic system-auth sudo auth account session
+ pamd_mimic system-auth sudo-i auth account session
+ fi
keepdir /var/db/sudo/lectured
fperms 0700 /var/db/sudo/lectured
diff --git a/app-admin/sudo/sudo-1.9.4_p2.ebuild b/app-admin/sudo/sudo-1.9.4_p2-r1.ebuild
index 84770ae1b432..97dbed1a0209 100644
--- a/app-admin/sudo/sudo-1.9.4_p2.ebuild
+++ b/app-admin/sudo/sudo-1.9.4_p2-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
@@ -198,8 +198,10 @@ src_install() {
newins doc/schema.OpenLDAP sudo.schema
fi
- pamd_mimic system-auth sudo auth account session
- pamd_mimic system-auth sudo-i auth account session
+ if use pam; then
+ pamd_mimic system-auth sudo auth account session
+ pamd_mimic system-auth sudo-i auth account session
+ fi
keepdir /var/db/sudo/lectured
fperms 0700 /var/db/sudo/lectured
diff --git a/app-admin/sudo/sudo-1.9.5_p1.ebuild b/app-admin/sudo/sudo-1.9.5_p1-r1.ebuild
index 53eee6aee832..ae5daa1d0fd8 100644
--- a/app-admin/sudo/sudo-1.9.5_p1.ebuild
+++ b/app-admin/sudo/sudo-1.9.5_p1-r1.ebuild
@@ -197,9 +197,10 @@ src_install() {
insinto /etc/openldap/schema
newins doc/schema.OpenLDAP sudo.schema
fi
-
- pamd_mimic system-auth sudo auth account session
- pamd_mimic system-auth sudo-i auth account session
+ if use pam; then
+ pamd_mimic system-auth sudo auth account session
+ pamd_mimic system-auth sudo-i auth account session
+ fi
keepdir /var/db/sudo/lectured
fperms 0700 /var/db/sudo/lectured
diff --git a/app-admin/sudo/sudo-9999.ebuild b/app-admin/sudo/sudo-9999.ebuild
index 84770ae1b432..97dbed1a0209 100644
--- a/app-admin/sudo/sudo-9999.ebuild
+++ b/app-admin/sudo/sudo-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
@@ -198,8 +198,10 @@ src_install() {
newins doc/schema.OpenLDAP sudo.schema
fi
- pamd_mimic system-auth sudo auth account session
- pamd_mimic system-auth sudo-i auth account session
+ if use pam; then
+ pamd_mimic system-auth sudo auth account session
+ pamd_mimic system-auth sudo-i auth account session
+ fi
keepdir /var/db/sudo/lectured
fperms 0700 /var/db/sudo/lectured