diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-ftp/ftpbase |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-ftp/ftpbase')
-rw-r--r-- | net-ftp/ftpbase/Manifest | 7 | ||||
-rw-r--r-- | net-ftp/ftpbase/files/ftp-pamd | 17 | ||||
-rw-r--r-- | net-ftp/ftpbase/files/ftp-pamd-include | 17 | ||||
-rw-r--r-- | net-ftp/ftpbase/files/ftpusers | 36 | ||||
-rw-r--r-- | net-ftp/ftpbase/ftpbase-0.01-r2.ebuild | 53 | ||||
-rw-r--r-- | net-ftp/ftpbase/metadata.xml | 8 |
6 files changed, 138 insertions, 0 deletions
diff --git a/net-ftp/ftpbase/Manifest b/net-ftp/ftpbase/Manifest new file mode 100644 index 000000000000..6d51885d1ae7 --- /dev/null +++ b/net-ftp/ftpbase/Manifest @@ -0,0 +1,7 @@ +AUX ftp-pamd 700 SHA256 6b96a05790c0e191e685ba15494abe7787e490f9709ffbd9703df97cc0ec9fdf SHA512 61aceee28610cb7a6989fca0ee82702df1118dd2e964bb26fe5cfcb508250599e9e1cdb9aa5dfb61df9c5fef25af4334a87d5f1f4065f693193912dfe172bb68 WHIRLPOOL 31f6a9394e82173907287d3dfc4011f11a7d5b3647742ce212b9edba4ee38e4a2da9bdfde18071476425738ae75ed01363e0b10d1878e05b18a9dc257486ac00 +AUX ftp-pamd-include 632 SHA256 dc170d03bc34e654a9b4fbed240a6bd8a5d45c8c699a7187d15a21582b052d87 SHA512 adc59c544b815bd88b7e91a43cb5620008d1f83d15a08620f56242d74991ba413e56b31bcca8e5fcfe71f05362bbad89b02d5289260f08649d38965c8951ec76 WHIRLPOOL 32684654db0080f0febc7616bbbc3d25c82375eee1366e1c15b5a097c493f865d21dab58f98554ee670c8c4ac4d94fd797675aabcb5099e0fc7e840a87830b65 +AUX ftpusers 300 SHA256 912c6ab8c869d7372c28bbaf3e781671160423c850bbbd3a21cd8a2595ff878f SHA512 29a8bdca1a6bb516c5189e6c69969cba3c220ea878e352e78bb6ea5cb2ac7476306736240155dc6d3f7512aac48164354db68721ea952d1010639e8ae14635e0 WHIRLPOOL d286bb3e783e3ca5e08474d4586c7c8c02bfc722ea0551053a21b70f17a2f546b28a04136847b2ac9da278990354dae2d1e123b7a20c5918a37e1889e10cb597 +EBUILD ftpbase-0.01-r2.ebuild 1443 SHA256 eb74378e9b46c5c12c5aca5e652df67832c6883625767a57170bf9da34189a83 SHA512 92f4b1a732393e0df1fe25a2effd54920d700fffe5595339ff5d755cb00c5cda60805122d6460cfb02b6130061157c41db4ad70f6693ea2580aa80e85eaeb3c9 WHIRLPOOL a415f91fdd0fbb3e55c8b2b904ce5ed634746dae8eb92d83e643ec59f8b532f2cde3bc7a32c738a742635f1af709299e3247bc0c7f0a6993cff0be9e3eb0e20d +MISC ChangeLog 2612 SHA256 ae86a809322715600812e2d6a764cb4a60d9b8da87a2b89de7061845677a7bf8 SHA512 f2bf7e5a0763e511b92d896d4f883f1c36908f244ea795ec8838998d8e1528eb9ca0c441c58bad69ef386531d9dce68ed6c97717c0d2e0a16b36b1d8473dcc92 WHIRLPOOL 5c35b7c039ea2f2619709ab815e00f35b84b9fe5bf79d45696fb66eadb421a1df24f4ea09f5d5601032fcca4075f78668a285cee2ce93d318115d81e9d55faa7 +MISC ChangeLog-2015 4532 SHA256 a1a37a46a7474ec0f28aefb7938903443a7167ce7621913c2fd8f610963ce5ed SHA512 992eef70ee50054a21ada65e73556147435072302d5a173494d7f41deade2fa3d33975aadfbf1ffb2b6d4424a3cd37d52aeeaee22ab34d2a47d107979a3d3570 WHIRLPOOL 8cf30012d25662cd0ff3aa30e7726e58d1e81668a4bfc813dcb52956cafeca40d237948c6ee45a27e4397afcdcd92f99dc1a96262afe0a397a672816b8cca3a8 +MISC metadata.xml 235 SHA256 a850039e6b668408ff15dc3243747e320af718b09bb100a6852619efc986b543 SHA512 fa78af8197737bd5d9b44305bac24dacac9034fd96284af1e3c89428fc418e17a4bea91fa53f07dce02e6ab8afe6455343db364d031ab342225a26d0364c23da WHIRLPOOL df5f931566f25de2b35defcf16abe9ede6e24c7226c17444a97cf77b190a7edd221d48cb9c7e78e4c481a1e5168236526dfa2ba3179b928bb012322a521e8bca diff --git a/net-ftp/ftpbase/files/ftp-pamd b/net-ftp/ftpbase/files/ftp-pamd new file mode 100644 index 000000000000..34b7912a0b48 --- /dev/null +++ b/net-ftp/ftpbase/files/ftp-pamd @@ -0,0 +1,17 @@ +# Provided by ftpbase (dont remove this line!) +# Standard pam.d file for ftp service packages. + +auth required pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed +auth required pam_stack.so service=system-auth + +# If this is enabled, anonymous logins will fail because the 'ftp' user does +# not have a "valid" shell, as listed in /etc/shells. +# +# If you enable this, it is recommended that you do *not* give the 'ftp' +# user a real shell. Instead, give the 'ftp' user /bin/false for a shell and +# add /bin/false to /etc/shells. +# auth required pam_shells.so + +account required pam_stack.so service=system-auth + +session required pam_stack.so service=system-auth diff --git a/net-ftp/ftpbase/files/ftp-pamd-include b/net-ftp/ftpbase/files/ftp-pamd-include new file mode 100644 index 000000000000..c410527c8a60 --- /dev/null +++ b/net-ftp/ftpbase/files/ftp-pamd-include @@ -0,0 +1,17 @@ +# Provided by ftpbase (dont remove this line!) +# Standard pam.d file for ftp service packages. + +auth required pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed +auth include system-auth + +# If this is enabled, anonymous logins will fail because the 'ftp' user does +# not have a "valid" shell, as listed in /etc/shells. +# +# If you enable this, it is recommended that you do *not* give the 'ftp' +# user a real shell. Instead, give the 'ftp' user /bin/false for a shell and +# add /bin/false to /etc/shells. +# auth required pam_shells.so + +account include system-auth + +session include system-auth diff --git a/net-ftp/ftpbase/files/ftpusers b/net-ftp/ftpbase/files/ftpusers new file mode 100644 index 000000000000..7754be9b7fc8 --- /dev/null +++ b/net-ftp/ftpbase/files/ftpusers @@ -0,0 +1,36 @@ +# Provided by ftpbase (dont remove this line!) +# /etc/ftpusers: list of users disallowed FTP access + +halt +operator +root +shutdown +sync +bin +daemon +adm +lp +mail +postmaster +news +uucp +man +games +at +cron +www +named +squid +gdm +mysql +postgres +guest +nobody +alias +qmaild +qmaill +qmailp +qmailq +qmailr +qmails +postfix diff --git a/net-ftp/ftpbase/ftpbase-0.01-r2.ebuild b/net-ftp/ftpbase/ftpbase-0.01-r2.ebuild new file mode 100644 index 000000000000..392c27075c28 --- /dev/null +++ b/net-ftp/ftpbase/ftpbase-0.01-r2.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils pam user + +DESCRIPTION="FTP layout package" +HOMEPAGE="https://www.gentoo.org/" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd" +IUSE="pam" + +DEPEND="pam? ( virtual/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 +} diff --git a/net-ftp/ftpbase/metadata.xml b/net-ftp/ftpbase/metadata.xml new file mode 100644 index 000000000000..ba090926742a --- /dev/null +++ b/net-ftp/ftpbase/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <longdescription lang="en"> + FTP base package + </longdescription> +</pkgmetadata> |