# gardar@wineasy.se S="${WORKDIR}/${P}" SRC_URI="http://prdownloads.sourceforge.net/pureftpd/${P}.tar.bz2" DESCRIPTION="Pure-FTPd is a fast, production-quality, standard-conformant FTP server" HOMEPAGE="http://www.pureftpd.org/" DEPEND="virtual/glibc pam? ( >=sys-libs/pam-0.75 ) mysql? ( >=dev-db/mysql-3.23.49 ) postgres? ( >=dev-db/postgresql-7.2 ) ldap? ( >=net-nds/openldap-2.0.21 )" src_compile() { local myconf use pam && myconf="${myconf} --with-pam" use ldap && myconf="${myconf} --with-ldap" use mysql && myconf="${myconf} --with-mysql" use postgres && myconf="${myconf} --with-pgsql" ./configure --prefix=/usr --mandir=/usr/share/man \ --with-altlog --with-extauth \ --with-puredb --with-cookie \ --with-throttling --with-ratios \ --with-quotas --with-ftpwho \ --with-uploadscript --with-virtualhosts \ --with-virtualchroot --with-diraliases \ --build=${CHOST} ${myconf} || die "configure failed" emake || die "compile problem" } src_install() { make \ prefix=${D}/usr \ mandir=${D}/usr/share/man \ install || die dodoc AUTHORS CONTACT COPYING ChangeLog dodoc FAQ HISTORY INSTALL README* NEWS insinto /etc/ ; doins ${FILESDIR}/ftpusers newdoc ${FILESDIR}/pure-ftpd.conf_d pure-ftpd.conf.sample if [ "`use pam`" ] ; then insinto /etc/pam.d ; doins pam/{ftplockout,pure-ftpd} fi exeinto /etc/init.d newexe ${FILESDIR}/pure-ftpd.rc6 pure-ftpd }