summaryrefslogtreecommitdiffstats
path: root/net-ftp/bsdftpd-ssl/bsdftpd-ssl-1.0.2-r2.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'net-ftp/bsdftpd-ssl/bsdftpd-ssl-1.0.2-r2.ebuild')
-rw-r--r--net-ftp/bsdftpd-ssl/bsdftpd-ssl-1.0.2-r2.ebuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/net-ftp/bsdftpd-ssl/bsdftpd-ssl-1.0.2-r2.ebuild b/net-ftp/bsdftpd-ssl/bsdftpd-ssl-1.0.2-r2.ebuild
new file mode 100644
index 0000000..2748a8a
--- /dev/null
+++ b/net-ftp/bsdftpd-ssl/bsdftpd-ssl-1.0.2-r2.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header:
+
+inherit eutils
+
+DESCRIPTION="BSD SSL enabled FTP server"
+SRC_URI="http://dside.dyndns.org/files/darklin/bsdftpd-ssl-1.0.2.tar.bz2"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 x86"
+RDEPEND="sys-libs/ncurses dev-util/byacc"
+
+src_unpack() {
+ unpack ${P}.tar.bz2
+ EPATCH_OPTS="-p1 -d ${P}" epatch ${FILESDIR}/bsdftpd-ds-keypassword.patch.bz2
+ EPATCH_OPTS="-p1 -d ${P}" epatch ${FILESDIR}/bsdftpd-ds-extprog.patch.bz2
+ EPATCH_OPTS="-p1 -d ${P}" epatch ${FILESDIR}/bsdftpd-ds-anonymous.patch.bz2
+ EPATCH_OPTS="-p1 -d ${P}" epatch ${FILESDIR}/bsdftpd-ds-pport.patch.bz2
+ EPATCH_OPTS="-p1 -d ${P}" epatch ${FILESDIR}/bsdftpd-ds-termcap.patch.bz2
+ EPATCH_OPTS="-p1 -d ${P}" epatch ${FILESDIR}/bsdftpd-ds-compile.patch
+ EPATCH_OPTS="-p1 -d ${P}" epatch ${FILESDIR}/bsdftpd-ds-argmax.diff
+ EPATCH_OPTS="-p1 -d ${P}" epatch ${FILESDIR}/bsdftpd-ds-cmdtab.diff
+ EPATCH_OPTS="-p1 -d ${P}" epatch ${FILESDIR}/bsdftpd-ds-getline.diff
+}
+
+src_compile() {
+ ./config.sh Linux
+ make || die
+}
+
+src_install() {
+ into /usr
+ mkdir -p ${D}/usr/bin/
+ mkdir -p ${D}/usr/sbin
+ make install DESTDIR=${D} INSTALLTOP=${D}/usr
+ mkdir -p ${D}/etc/init.d/
+ mkdir -p ${D}/etc/conf.d/
+ mkdir -p ${D}/etc/pam.d/
+
+ install -m 0755 ${FILESDIR}/bsdftpd.sysinit ${D}/etc/init.d/bsdftpd
+ install -m 0644 ${FILESDIR}/bsdftpd.sysconfig ${D}/etc/conf.d/bsdftpd
+ install -m 0644 ${FILESDIR}/bsdftpd.pam ${D}/etc/pam.d/ftpd
+ install -m 0755 ${FILESDIR}/auth.sslftp ${D}/usr/bin
+ install -m 0644 ${FILESDIR}/x509.auth ${D}/etc
+}