diff options
author | Michał Górny <mgorny@gentoo.org> | 2019-11-06 10:47:59 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2019-11-06 10:47:59 +0100 |
commit | 3e6350d648db0482d731fd0835c73ba62705d076 (patch) | |
tree | 1b9cc3b09d7abed9078bb8e45d1579939887e12e /net-ftp | |
parent | dev-lang/cfortran: Drop old (EAPI 0) (diff) | |
download | gentoo-3e6350d648db0482d731fd0835c73ba62705d076.tar.gz gentoo-3e6350d648db0482d731fd0835c73ba62705d076.tar.bz2 gentoo-3e6350d648db0482d731fd0835c73ba62705d076.zip |
net-ftp/ftpbase: Drop old (EAPI 0)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'net-ftp')
-rw-r--r-- | net-ftp/ftpbase/ftpbase-0.01-r2.ebuild | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/net-ftp/ftpbase/ftpbase-0.01-r2.ebuild b/net-ftp/ftpbase/ftpbase-0.01-r2.ebuild deleted file mode 100644 index 370bb9c1a29a..000000000000 --- a/net-ftp/ftpbase/ftpbase-0.01-r2.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=0 - -inherit eutils pam user - -DESCRIPTION="FTP layout package" -HOMEPAGE="https://www.gentoo.org/" -SRC_URI="" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" -IUSE="pam" - -DEPEND="pam? ( sys-libs/pam ) - !<net-ftp/proftpd-1.2.10-r6 - !<net-ftp/pure-ftpd-1.0.20-r2 - !<net-ftp/vsftpd-2.0.3-r1" - -S=${WORKDIR} - -pkg_setup() { - # Check if home exists - local exists=false - [[ -d "${ROOT}home/ftp" ]] && exists=true - - # Add our default ftp user - enewgroup ftp 21 - enewuser ftp 21 -1 /home/ftp ftp - - # If home did not exist and does now then we created it in the enewuser - # command. Now we have to change it's permissions to something sane. - if [[ ${exists} == "false" && -d "${ROOT}home/ftp" ]] ; then - chown root:ftp "${ROOT}"home/ftp - fi -} - -src_install() { - # The ftpusers file is a list of people who are NOT allowed - # to use the ftp service. - insinto /etc - doins "${FILESDIR}/ftpusers" || die - - # Ideally we would create the home directory here with a dodir. - # But we cannot until bug #9849 is solved - so we kludge in pkg_postinst() - - 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 - fi - newpamd "${T}"/ftp-pamd-include ftp -} |