summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2021-01-24 13:32:50 +0300
committerMikle Kolyada <zlogene@gentoo.org>2021-01-24 13:33:22 +0300
commitd06386545e7df671604303f2fe4912128d86a2d0 (patch)
treecdfc54630e8162e8cb96106c6067ad0ef8701a8d /net-ftp
parentdev-python/Babel: stable 2.9.0 for hppa, bug #763675 (diff)
downloadgentoo-d06386545e7df671604303f2fe4912128d86a2d0.tar.gz
gentoo-d06386545e7df671604303f2fe4912128d86a2d0.tar.bz2
gentoo-d06386545e7df671604303f2fe4912128d86a2d0.zip
net-ftp/ftpbase: 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-ftp')
-rw-r--r--net-ftp/ftpbase/ftpbase-0.01-r4.ebuild (renamed from net-ftp/ftpbase/ftpbase-0.01-r3.ebuild)11
1 files changed, 4 insertions, 7 deletions
diff --git a/net-ftp/ftpbase/ftpbase-0.01-r3.ebuild b/net-ftp/ftpbase/ftpbase-0.01-r4.ebuild
index f278d506cefe..19eee733db9e 100644
--- a/net-ftp/ftpbase/ftpbase-0.01-r3.ebuild
+++ b/net-ftp/ftpbase/ftpbase-0.01-r4.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-inherit eutils pam user
+inherit pam
DESCRIPTION="FTP layout package"
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
@@ -30,10 +30,7 @@ src_install() {
insinto /etc
doins "${FILESDIR}/ftpusers"
- cp "${FILESDIR}/ftp-pamd-include" "${T}" || die
- if use elibc_FreeBSD; then
- sed -i -e "/pam_listfile.so/s/^.*$/account required pam_ftpusers.so no_warn disallow/" \
- "${T}"/ftp-pamd-include || die
+ if use pam; then
+ newpamd "${FILESDIR}"/ftp-pamd-include ftp
fi
- newpamd "${T}"/ftp-pamd-include ftp
}