summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-ftp/ftpbase/ChangeLog7
-rw-r--r--net-ftp/ftpbase/Manifest15
-rw-r--r--net-ftp/ftpbase/files/digest-ftpbase-0.010
-rw-r--r--net-ftp/ftpbase/ftpbase-0.01.ebuild87
4 files changed, 104 insertions, 5 deletions
diff --git a/net-ftp/ftpbase/ChangeLog b/net-ftp/ftpbase/ChangeLog
index 83524dbf8cd9..6f5d00a03239 100644
--- a/net-ftp/ftpbase/ChangeLog
+++ b/net-ftp/ftpbase/ChangeLog
@@ -1,6 +1,11 @@
# 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.14 2007/05/15 14:03:32 bangert Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/ftpbase/ChangeLog,v 1.15 2007/07/10 13:07:59 uberlord Exp $
+
+*ftpbase-0.01 (09 Jul 2007)
+
+ 09 Jul 2007; Roy Marples <uberlord@gentoo.org> +ftpbase-0.01.ebuild:
+ Bumped for bug #184666 and keyworded ~x86-fbsd.
15 May 2007; Thilo Bangert <bangert@gentoo.org> metadata.xml:
add <herd>no-herd</herd>
diff --git a/net-ftp/ftpbase/Manifest b/net-ftp/ftpbase/Manifest
index 56a875fad96f..89dbb1376ef1 100644
--- a/net-ftp/ftpbase/Manifest
+++ b/net-ftp/ftpbase/Manifest
@@ -14,10 +14,14 @@ EBUILD ftpbase-0.00.ebuild 2296 RMD160 7f5ec5f806e07d07ed059e116eb384e75ddddf70
MD5 42c4e5b7d5264fad18d9013bf8166317 ftpbase-0.00.ebuild 2296
RMD160 7f5ec5f806e07d07ed059e116eb384e75ddddf70 ftpbase-0.00.ebuild 2296
SHA256 3bea086ac6e183219be377547b4844e0dd64b4c947ce011e63ee55203bd87db5 ftpbase-0.00.ebuild 2296
-MISC ChangeLog 2202 RMD160 05566e12975598a7e7b96668dd69d8555e1569ce SHA1 31e4c54051823fc346696f36ac67fe3d699a1a47 SHA256 ba6ed5832b466a51ad0f9215d5649ead7d3534d3ef9e1d11007f476c47863b59
-MD5 52a499a360782c05ec93d7c7877a0527 ChangeLog 2202
-RMD160 05566e12975598a7e7b96668dd69d8555e1569ce ChangeLog 2202
-SHA256 ba6ed5832b466a51ad0f9215d5649ead7d3534d3ef9e1d11007f476c47863b59 ChangeLog 2202
+EBUILD ftpbase-0.01.ebuild 2307 RMD160 6e5f93d84b6a254fbbabe53a572de21e659b3276 SHA1 2578fa72e7d981139389cdc35027ec2a4825edcf SHA256 b5c49ccebc6bd967fe8e7c4ba36f39c7769f083ba84161fe1c7f2f697146351e
+MD5 70a80d57d47620c8b61f668b667b16cc ftpbase-0.01.ebuild 2307
+RMD160 6e5f93d84b6a254fbbabe53a572de21e659b3276 ftpbase-0.01.ebuild 2307
+SHA256 b5c49ccebc6bd967fe8e7c4ba36f39c7769f083ba84161fe1c7f2f697146351e ftpbase-0.01.ebuild 2307
+MISC ChangeLog 2354 RMD160 516f3745f6c74d1590fac60bd83d94d8b868a381 SHA1 4d87c7c923d90b206eb4518cbf0e2b4fcaf3804a SHA256 fec143a87694f56d227de7557aa44eac74404cf54da49bb9b738a63853072be3
+MD5 039f842dbe96c3f8ef98aad1d238bd92 ChangeLog 2354
+RMD160 516f3745f6c74d1590fac60bd83d94d8b868a381 ChangeLog 2354
+SHA256 fec143a87694f56d227de7557aa44eac74404cf54da49bb9b738a63853072be3 ChangeLog 2354
MISC metadata.xml 306 RMD160 0d3ce04b1f0bafd9b166291345f5278b283699ab SHA1 764d15568cd49eff223235a061240794327f5398 SHA256 2422bf0ee9eadd92f6d3d022e0a35ee9a75adae0a7fa2d0202adbf53b8317c47
MD5 83731ec4f86ca4f48455227b0fa7d8ff metadata.xml 306
RMD160 0d3ce04b1f0bafd9b166291345f5278b283699ab metadata.xml 306
@@ -25,3 +29,6 @@ SHA256 2422bf0ee9eadd92f6d3d022e0a35ee9a75adae0a7fa2d0202adbf53b8317c47 metadata
MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-ftpbase-0.00 0
RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-ftpbase-0.00 0
SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-ftpbase-0.00 0
+MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-ftpbase-0.01 0
+RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-ftpbase-0.01 0
+SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-ftpbase-0.01 0
diff --git a/net-ftp/ftpbase/files/digest-ftpbase-0.01 b/net-ftp/ftpbase/files/digest-ftpbase-0.01
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/net-ftp/ftpbase/files/digest-ftpbase-0.01
diff --git a/net-ftp/ftpbase/ftpbase-0.01.ebuild b/net-ftp/ftpbase/ftpbase-0.01.ebuild
new file mode 100644
index 000000000000..bfd7f3a3e38e
--- /dev/null
+++ b/net-ftp/ftpbase/ftpbase-0.01.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/ftpbase/ftpbase-0.01.ebuild,v 1.1 2007/07/10 13:07:59 uberlord 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 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}
+
+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()
+
+ if use pam ; then
+ if has_version "<sys-libs/pam-0.78" ; then
+ newpamd "${FILESDIR}/ftp-pamd" ftp
+ else
+ newpamd "${FILESDIR}/ftp-pamd-include" ftp
+ fi
+ fi
+}