Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH v4 19/19] net-ftp/ftpbase: Utilize {group,user}/ftp
Date: Tue, 11 Jun 2019 16:30:30
Message-Id: 20190611162347.2989-20-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH v4 00/19] User/group packages by "Michał Górny"
1 Signed-off-by: Michał Górny <mgorny@g.o>
2 ---
3 net-ftp/ftpbase/ftpbase-0.01-r3.ebuild | 39 ++++++++++++++++++++++++++
4 1 file changed, 39 insertions(+)
5 create mode 100644 net-ftp/ftpbase/ftpbase-0.01-r3.ebuild
6
7 diff --git a/net-ftp/ftpbase/ftpbase-0.01-r3.ebuild b/net-ftp/ftpbase/ftpbase-0.01-r3.ebuild
8 new file mode 100644
9 index 000000000000..c333840faa18
10 --- /dev/null
11 +++ b/net-ftp/ftpbase/ftpbase-0.01-r3.ebuild
12 @@ -0,0 +1,39 @@
13 +# Copyright 1999-2019 Gentoo Authors
14 +# Distributed under the terms of the GNU General Public License v2
15 +
16 +EAPI=7
17 +
18 +inherit eutils pam user
19 +
20 +DESCRIPTION="FTP layout package"
21 +HOMEPAGE="https://www.gentoo.org/"
22 +SRC_URI=""
23 +
24 +LICENSE="GPL-2"
25 +SLOT="0"
26 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
27 +IUSE="pam"
28 +
29 +DEPEND="pam? ( virtual/pam )
30 + !<net-ftp/proftpd-1.2.10-r6
31 + !<net-ftp/pure-ftpd-1.0.20-r2
32 + !<net-ftp/vsftpd-2.0.3-r1"
33 +RDEPEND="
34 + acct-group/ftp
35 + acct-user/ftp"
36 +
37 +S=${WORKDIR}
38 +
39 +src_install() {
40 + # The ftpusers file is a list of people who are NOT allowed
41 + # to use the ftp service.
42 + insinto /etc
43 + doins "${FILESDIR}/ftpusers" || die
44 +
45 + cp "${FILESDIR}/ftp-pamd-include" "${T}" || die
46 + if use elibc_FreeBSD; then
47 + sed -i -e "/pam_listfile.so/s/^.*$/account required pam_ftpusers.so no_warn disallow/" \
48 + "${T}"/ftp-pamd-include || die
49 + fi
50 + newpamd "${T}"/ftp-pamd-include ftp
51 +}
52 --
53 2.22.0

Replies