summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2008-05-14 22:10:30 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2008-05-14 22:10:30 +0000
commit3a994c7e47ebf78519e9c4cc9ebb52ad32548cfe (patch)
tree194440452545a7c58c56b6c8cac1e545f7218b3d /net-ftp/ftpbase
parentVersion bump (#221171). (diff)
downloadhistorical-3a994c7e47ebf78519e9c4cc9ebb52ad32548cfe.tar.gz
historical-3a994c7e47ebf78519e9c4cc9ebb52ad32548cfe.tar.bz2
historical-3a994c7e47ebf78519e9c4cc9ebb52ad32548cfe.zip
add a new version that drops support for pam_stack configuration files and just depends on virtual/pam.
Package-Manager: portage-2.1.5_rc10
Diffstat (limited to 'net-ftp/ftpbase')
-rw-r--r--net-ftp/ftpbase/ChangeLog11
-rw-r--r--net-ftp/ftpbase/Manifest13
-rw-r--r--net-ftp/ftpbase/ftpbase-0.01-r1.ebuild81
3 files changed, 102 insertions, 3 deletions
diff --git a/net-ftp/ftpbase/ChangeLog b/net-ftp/ftpbase/ChangeLog
index 718df3ac630c..0158cfc39c4c 100644
--- a/net-ftp/ftpbase/ChangeLog
+++ b/net-ftp/ftpbase/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-ftp/ftpbase
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/ftpbase/ChangeLog,v 1.16 2007/12/25 16:20:28 phreak Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/ftpbase/ChangeLog,v 1.17 2008/05/14 22:10:30 flameeyes Exp $
+
+*ftpbase-0.01-r1 (14 May 2008)
+
+ 14 May 2008; Diego Pettenò <flameeyes@gentoo.org>
+ +ftpbase-0.01-r1.ebuild:
+ add a new version that drops support for pam_stack configuration files and
+ just depends on virtual/pam.
25 Dec 2007; Christian Heim <phreak@gentoo.org> metadata.xml:
Removing uberlord from metadata.xml as per #199318. Assigning to
diff --git a/net-ftp/ftpbase/Manifest b/net-ftp/ftpbase/Manifest
index 95d43fb6765f..b27165bcd1e5 100644
--- a/net-ftp/ftpbase/Manifest
+++ b/net-ftp/ftpbase/Manifest
@@ -1,7 +1,18 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX ftp-pamd 807 RMD160 1dce921bb3045aca3f4d57f4bc70f804f49d91cb SHA1 f793dda67863e70ae943a1dc56dc094b9423cb93 SHA256 c378eaaa16ca300bb828256d68807cf6f84751ae3ef9192186cf16bef89076dc
AUX ftp-pamd-include 747 RMD160 086aa9c0e1b0f23f8792a9da32038efc1a92cf7a SHA1 b6ef4ae821e30acff6827ed6054f6467013e57c2 SHA256 b6194c655619343e5908517a50a615b1b028181ea09280ec87dea23f6c10e9a6
AUX ftpusers 407 RMD160 46a48b5ab2c51b4062b62a424bd88a244bb08445 SHA1 d814dedf066e0e2233b1c44fff2e5c4f8f66a1ef SHA256 34360cd3a4700e8c03aa08d1a5c3f217bb58b5e935950e14868f5ff8d32e52bc
EBUILD ftpbase-0.00.ebuild 2296 RMD160 7f5ec5f806e07d07ed059e116eb384e75ddddf70 SHA1 a6a79d1c06625ced2ed0cc78d19b7f57e7eaf218 SHA256 3bea086ac6e183219be377547b4844e0dd64b4c947ce011e63ee55203bd87db5
+EBUILD ftpbase-0.01-r1.ebuild 2183 RMD160 22c6f92a07a4a91910927bba97aa9ee0cd7da398 SHA1 cd2dda46fb119a1829b7f7def7b1e2f9ec36d268 SHA256 5f24601a51a2da098f5783a4efcfab5e06374d1a5a10b6890fcb0da5ad76c7d4
EBUILD ftpbase-0.01.ebuild 2307 RMD160 6e5f93d84b6a254fbbabe53a572de21e659b3276 SHA1 2578fa72e7d981139389cdc35027ec2a4825edcf SHA256 b5c49ccebc6bd967fe8e7c4ba36f39c7769f083ba84161fe1c7f2f697146351e
-MISC ChangeLog 2505 RMD160 97038d1b249a23bca434a69248acf02656faa384 SHA1 10dc8276517d509b6023c2104225c6ae06fa260b SHA256 51281f293d0d1663055fc2d598bbf3f90d3f8c064c004a964ca0bff53d2de0fe
+MISC ChangeLog 2729 RMD160 ca5083a0a4c8cf3cb4c5bacb0992d84162860235 SHA1 7aa79c66dfde38f68d73067781690df757c0a89d SHA256 165d306ca3b5159cb1ad94cd6c227d8ce2afc351f3b3a4675f5b2525113d9cdd
MISC metadata.xml 304 RMD160 beebe43c38b7f732ba4e6c3342b21f32199754a8 SHA1 95da89a8ef677e561f97a2e5b70ffe959e94a307 SHA256 3da1224f2d247795716debc8ef84ed8216f546d3576db1c09f0c2cf11a5b7df3
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.9 (GNU/Linux)
+
+iEYEARECAAYFAkgrY10ACgkQAiZjviIA2XhkTgCgxqDEXfgVZjo2JhvNlN6PWc3d
+dVcAoNNPfKXFqQn3CwVgV6V3juLck3lv
+=4/H6
+-----END PGP SIGNATURE-----
diff --git a/net-ftp/ftpbase/ftpbase-0.01-r1.ebuild b/net-ftp/ftpbase/ftpbase-0.01-r1.ebuild
new file mode 100644
index 000000000000..0e9ec448dd11
--- /dev/null
+++ b/net-ftp/ftpbase/ftpbase-0.01-r1.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/ftpbase/ftpbase-0.01-r1.ebuild,v 1.1 2008/05/14 22:10:30 flameeyes Exp $
+
+inherit eutils pam
+
+DESCRIPTION="FTP layout package"
+HOMEPAGE="http://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}
+
+check_collision() {
+ [[ ! -e $1 ]] && return 0
+
+ [[ $(head -n 1 "$1") == $(head -n 1 "$2") ]] && return 0
+
+ eerror " $1 exists and was not provided by ${P}"
+ return 1
+}
+
+pkg_setup() {
+ ebegin "Checking for possible file collisions..."
+
+ local collide=false
+ check_collision "${ROOT}etc/ftpusers" "${FILESDIR}/ftpusers" || collide=true
+
+ if use pam ; then
+ check_collision "${ROOT}etc/pam.d/ftp" "${FILESDIR}/ftp-pamd" || collide=true
+ fi
+
+ if ${collide} ; then
+ eerror
+ eerror "Those files listed above have to be removed in order to"
+ eerror "install this version of ftpbase."
+ eerror
+ eerror "If you edited them, remember to backup and when restoring make"
+ eerror " sure the first line in each file is:"
+ eerror "$(head -n 1 "${FILESDIR}/ftpusers")"
+ eend 1
+ die "Can't be installed, files will collide"
+ fi
+
+ eend 0
+
+ # 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()
+
+ newpamd "${FILESDIR}/ftp-pamd-include" ftp
+}