summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2021-01-22 18:52:26 +0300
committerMikle Kolyada <zlogene@gentoo.org>2021-01-22 18:52:26 +0300
commit5ecd2ae79529fbfc8adf804304511821a19497e6 (patch)
treec383ad3d62598d3c6f7ee51d297fb29aa92a26e9 /net-dialup
parentx11-misc/xscreensaver: install pam files conditionally (diff)
downloadgentoo-5ecd2ae79529fbfc8adf804304511821a19497e6.tar.gz
gentoo-5ecd2ae79529fbfc8adf804304511821a19497e6.tar.bz2
gentoo-5ecd2ae79529fbfc8adf804304511821a19497e6.zip
net-dialup/ppp: 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-dialup')
-rw-r--r--net-dialup/ppp/ppp-2.4.8-r1.ebuild (renamed from net-dialup/ppp/ppp-2.4.8.ebuild)6
-rw-r--r--net-dialup/ppp/ppp-2.4.9-r2.ebuild (renamed from net-dialup/ppp/ppp-2.4.9-r1.ebuild)4
2 files changed, 7 insertions, 3 deletions
diff --git a/net-dialup/ppp/ppp-2.4.8.ebuild b/net-dialup/ppp/ppp-2.4.8-r1.ebuild
index e0bd7d646d70..387ac5a6dbd3 100644
--- a/net-dialup/ppp/ppp-2.4.8.ebuild
+++ b/net-dialup/ppp/ppp-2.4.8-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
@@ -135,7 +135,9 @@ src_install() {
insopts -m0644
doins etc.ppp/options
- pamd_mimic_system ppp auth account session
+ if use pam; then
+ pamd_mimic_system ppp auth account session
+ fi
local PLUGINS_DIR="/usr/$(get_libdir)/pppd/${PV}"
insinto "${PLUGINS_DIR}"
diff --git a/net-dialup/ppp/ppp-2.4.9-r1.ebuild b/net-dialup/ppp/ppp-2.4.9-r2.ebuild
index 89627e1475da..ac481c696fb5 100644
--- a/net-dialup/ppp/ppp-2.4.9-r1.ebuild
+++ b/net-dialup/ppp/ppp-2.4.9-r2.ebuild
@@ -133,7 +133,9 @@ src_install() {
insopts -m0644
doins etc.ppp/options
- pamd_mimic_system ppp auth account session
+ if use pam; then
+ pamd_mimic_system ppp auth account session
+ fi
local PLUGINS_DIR="/usr/$(get_libdir)/pppd/${PV}"
insinto "${PLUGINS_DIR}"