# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="NcFTPd is a high-performance File Transfer Protocol (FTP) \ server software solution for UNIX systems, designed especially for \ high-traffic sites and internet service providers." HOMEPAGE="http://www.ncftp.com/ncftpd/" SRC_URI="ftp://ftp.ncftp.com/ncftpd/2.8.2/${PF}-linux-x86-export.tar.gz" LICENSE="as-is" SLOT="0" KEYWORDS="~x86" IUSE="pam tcpd" DEPEND="net-ftp/ftpbase >=sys-libs/glibc-2.3 pam? ( || ( virtual/pam sys-libs/pam ) ) tcpd? ( >=sys-apps/tcp-wrappers-7.6 )" src_unpack() { unpack "${A}" || die } src_install() { cd ${S}/glibc2.3 || die insinto /etc/${PN}/extra doins extra/{chgpass.pl,process_ncftpd_event.sh,to_wu.sh,useradmin.pl,xferstats.sh} insinto /etc/${PN} doins -r reports into /usr dosbin ncftpd ncftpd_edquota ncftpd_passwd ncftpd_repquota ncftpd_spy dodoc README* LICENSE docinto examples dodoc conf/{domain.cf-dist,general.cf-dist} insinto /etc newconfd ${FILESDIR}/ncftpd.conf.d ncftpd newinitd ${FILESDIR}/ncftpd.init.d ncftpd dodir /var/log/${PN} } pkg_postinst() { einfo "${PN} emerged.. look in /etc/${PN}/extra" einfo "for additional tools you can use" einfo "sample configurations files can be found" einfo "in /usr/share/doc/${PN}" einfo "further documentation can be found" einfo "http://www.${PN}.com/${PN}/doc/" }