summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Hadaway <raker@gentoo.org>2002-11-25 20:40:14 +0000
committerNick Hadaway <raker@gentoo.org>2002-11-25 20:40:14 +0000
commit6781ff5141ff013fc388380d837569a61214ea36 (patch)
tree2e841fa069684e1f0b7ce6a9d624a7d2d55de058 /net-ftp
parentadded mmx to bad-ppc-flags list (diff)
downloadgentoo-2-6781ff5141ff013fc388380d837569a61214ea36.tar.gz
gentoo-2-6781ff5141ff013fc388380d837569a61214ea36.tar.bz2
gentoo-2-6781ff5141ff013fc388380d837569a61214ea36.zip
New ebuild. The netkit linux-ftpd with ssl support.
Diffstat (limited to 'net-ftp')
-rw-r--r--net-ftp/ftpd/ChangeLog9
-rw-r--r--net-ftp/ftpd/files/digest-ftpd-0.171
-rw-r--r--net-ftp/ftpd/files/ssl.diff.gzbin0 -> 10444 bytes
-rw-r--r--net-ftp/ftpd/ftpd-0.17.ebuild63
4 files changed, 73 insertions, 0 deletions
diff --git a/net-ftp/ftpd/ChangeLog b/net-ftp/ftpd/ChangeLog
new file mode 100644
index 000000000000..0bde5d2b431d
--- /dev/null
+++ b/net-ftp/ftpd/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for net-ftp/ftpd
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/ftpd/ChangeLog,v 1.1 2002/11/25 20:40:14 raker Exp $
+
+*ftpd-0.17 (25 Nov 2002)
+
+ 25 Nov 2002; Nick Hadaway <raker@gentoo.org> ftpd-0.17.ebuild,
+ files/digest-ftpd-0.17.ebuild, files/ssl.diff.gz :
+ New ebuild. Your basic netkit linux-ftpd patched for ssl support.
diff --git a/net-ftp/ftpd/files/digest-ftpd-0.17 b/net-ftp/ftpd/files/digest-ftpd-0.17
new file mode 100644
index 000000000000..909d577cfb10
--- /dev/null
+++ b/net-ftp/ftpd/files/digest-ftpd-0.17
@@ -0,0 +1 @@
+MD5 f5f491564812db5d8783daa538c49186 linux-ftpd-0.17.tar.gz 46763
diff --git a/net-ftp/ftpd/files/ssl.diff.gz b/net-ftp/ftpd/files/ssl.diff.gz
new file mode 100644
index 000000000000..e7e80ac3d76a
--- /dev/null
+++ b/net-ftp/ftpd/files/ssl.diff.gz
Binary files differ
diff --git a/net-ftp/ftpd/ftpd-0.17.ebuild b/net-ftp/ftpd/ftpd-0.17.ebuild
new file mode 100644
index 000000000000..25ca9b2cf618
--- /dev/null
+++ b/net-ftp/ftpd/ftpd-0.17.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/ftpd/ftpd-0.17.ebuild,v 1.1 2002/11/25 20:40:14 raker Exp $
+
+DESCRIPTION="The netkit FTP server with optional SSL support"
+HOMEPAGE="http://www.hcs.harvard.edu/~dholland/computers/netkit.html"
+SRC_URI="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/linux-${P}.tar.gz"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~x86"
+
+IUSE="ssl"
+
+DEPEND="virtual/glibc
+ ssl? ( dev-libs/openssl )"
+
+S=${WORKDIR}/linux-${P}
+
+src_unpack() {
+
+ unpack ${A}
+ cd ${S}
+
+ if [ "`use ssl`" ]; then
+ zcat ${FILESDIR}/ssl.diff.gz | patch -p1 \
+ || die "ssl patch failed"
+ fi
+
+}
+
+src_compile() {
+
+ ./configure --prefix=/usr || die "configure failed"
+
+ cp MCONFIG MCONFIG.orig
+ sed -e "s/-pipe -O2/${CFLAGS}/" MCONFIG.orig > MCONFIG
+
+ emake || die "parallel make failed"
+
+}
+
+src_install() {
+
+ dobin ftpd/ftpd
+ doman ftpd/ftpd.8
+ dodoc README ChangeLog
+
+}
+
+pkg_postinst() {
+
+ einfo "In order to start the server with SSL support"
+ einfo "You need to create a certificate and place it"
+ einfo "in SSLCERTDIR..."
+ einfo "<=openssl-0.9.6g - SSLCERTDIR=/usr/lib/ssl/certs"
+ einfo ">=openssl-0.9.6-r1 - SSLCERTDIR=/etc/ssl/certs"
+ einfo ""
+ einfo "cd SSLCERTDIR"
+ einfo "openssl req -new -x509 -nodes -out ftpd.pem -keyout ftpd.pem"
+ einfo ""
+
+}