diff options
author | Gustavo Felisberto <humpback@gentoo.org> | 2005-08-31 12:59:21 +0000 |
---|---|---|
committer | Gustavo Felisberto <humpback@gentoo.org> | 2005-08-31 12:59:21 +0000 |
commit | 463b7007805d069617054d9c47ac3af9cadebf3c (patch) | |
tree | 46ee7a7a8a82a347ae3ef765b45da79cf2b58dc7 /net-ftp/pure-ftpd/pure-ftpd-1.0.20-r2.ebuild | |
parent | Removing vulnerable versions (diff) | |
download | gentoo-2-463b7007805d069617054d9c47ac3af9cadebf3c.tar.gz gentoo-2-463b7007805d069617054d9c47ac3af9cadebf3c.tar.bz2 gentoo-2-463b7007805d069617054d9c47ac3af9cadebf3c.zip |
ftp-base fix
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'net-ftp/pure-ftpd/pure-ftpd-1.0.20-r2.ebuild')
-rw-r--r-- | net-ftp/pure-ftpd/pure-ftpd-1.0.20-r2.ebuild | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/net-ftp/pure-ftpd/pure-ftpd-1.0.20-r2.ebuild b/net-ftp/pure-ftpd/pure-ftpd-1.0.20-r2.ebuild new file mode 100644 index 000000000000..1bb9e7b6688b --- /dev/null +++ b/net-ftp/pure-ftpd/pure-ftpd-1.0.20-r2.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-ftp/pure-ftpd/pure-ftpd-1.0.20-r2.ebuild,v 1.1 2005/08/31 12:59:21 humpback Exp $ + +inherit eutils + +DESCRIPTION="fast, production-quality, standard-conformant FTP server" +HOMEPAGE="http://www.pureftpd.org/" +SRC_URI="ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="pam mysql postgres ldap ssl caps vchroot" + +DEPEND="virtual/libc + net-ftp/ftpbase + pam? ( || ( virtual/pam sys-libs/pam ) ) + mysql? ( >=dev-db/mysql-3 ) + postgres? ( >=dev-db/postgresql-7.2.2 ) + ldap? ( >=net-nds/openldap-2.0.25 ) + ssl? ( >=dev-libs/openssl-0.9.6g )" + +RDEPEND="${DEPEND} + net-ftp/ftpbase" + +src_unpack() { + + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${P}-pam.patch + +} + +src_compile() { + local myconf="--with-privsep" + + use pam && myconf="${myconf} --with-pam" + use ldap && myconf="${myconf} --with-ldap" + use mysql && myconf="${myconf} --with-mysql" + use postgres && myconf="${myconf} --with-pgsql" + use ssl && myconf="${myconf} --with-tls" + use caps && myconf="${myconf} --with-capabilities" + !(use caps) && myconf="${myconf} --without-capabilities" + use vchroot && myconf="${myconf} --with-virtualchroot" + #!(use vchroot) && myconf="${myconf} --without-virtualchroot" + + # adjust max user length to something more appropriate + # for virtual hosts. See bug #62472 for details. + sed -e "s:# define MAX_USER_LENGTH 32U:# define MAX_USER_LENGTH 127U:" -i ${S}/src/ftpd.h + + econf \ + --with-altlog --with-extauth \ + --with-puredb --with-cookie \ + --with-throttling --with-ratios \ + --with-quotas --with-ftpwho \ + --with-uploadscript --with-virtualhosts \ + --with-diraliases --with-peruserlimits \ + --with-largefile \ + ${myconf} || die "econf failed" + + emake || die "compile problem" +} + +src_install() { + einstall || die + + dodoc AUTHORS CONTACT ChangeLog FAQ HISTORY INSTALL README* NEWS + + dodir /etc/{conf.d,init.d} + + cp ${FILESDIR}/pure-ftpd.conf_d ${D}/etc/conf.d/pure-ftpd + + exeopts -m 0744 + exeinto /etc/init.d + newexe ${FILESDIR}/pure-ftpd.rc6-r1 pure-ftpd + + insopts -m 0644 + insinto /etc/xinetd.d + newins ${FILESDIR}/pure-ftpd.xinetd pure-ftpd + + if use ldap ; then + dodir /etc/openldap/schema + insinto /etc/openldap/schema + doins pureftpd.schema + insinto /etc/openldap + doins pureftpd-ldap.conf + fi +} + +pkg_postinst() { + einfo "Before starting Pure-FTPd, you have to edit the /etc/conf.d/pure-ftpd file." + echo + ewarn "It's *really* important to read the README provided with Pure-FTPd." + ewarn "Check out - http://www.pureftpd.org/README" + ewarn "And for SSL/TLS help - http://www.pureftpd.org/README.TLS" +} |