# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.3.3_rc1-r1.ebuild,v 1.3 2009/09/24 15:42:20 voyageur Exp $ EAPI="2" inherit autotools eutils CASE_VER="0.3" CLAMAV_VER="0.11rc" DEFLATE_VER="0.3.3" GSS_VER="1.3.2" VROOT_VER="0.8.5" DESCRIPTION="An advanced and very configurable FTP server." HOMEPAGE="http://www.proftpd.org/ http://www.castaglia.org/proftpd/ http://www.thrallingpenguin.com/resources/mod_clamav.htm http://gssmod.sourceforge.net/" SRC_URI="ftp://ftp.proftpd.org/distrib/source/${P/_/}.tar.bz2 case? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-case-${CASE_VER}.tar.gz ) clamav? ( https://secure.thrallingpenguin.com/redmine/attachments/download/1/mod_clamav-${CLAMAV_VER}.tar.gz ) deflate? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-deflate-${DEFLATE_VER}.tar.gz ) kerberos? ( mirror://sourceforge/gssmod/mod_gss-${GSS_VER}.tar.gz ) vroot? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-vroot-${VROOT_VER}.tar.gz )" LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" IUSE="acl authfile ban +caps case clamav +ctrls deflate doc exec hardened ifsession ident ipv6 kerberos ldap mysql ncurses nls pam postgres radius ratio readme rewrite selinux sftp shaper sitemisc softquota +ssl tcpd trace vroot xinetd" DEPEND="acl? ( sys-apps/acl sys-apps/attr ) caps? ( sys-libs/libcap ) clamav? ( app-antivirus/clamav ) kerberos? ( || ( //g" contrib/mod_sql_mysql.c # Manipulate build system sed -i -e "s/utils install-conf install/utils install/g" Makefile.in sed -i -e "s/ @INSTALL_STRIP@//g" Make.rules.in sed -e "/libtool\.m4/q" aclocal.m4 > acinclude.m4 rm -f aclocal.m4 eautoreconf } src_configure() { local myconf mylibs mymodules use acl && mymodules="${mymodules}:mod_facl" use ban && mymodules="${mymodules}:mod_ban" use case && mymodules="${mymodules}:mod_case" use clamav && mymodules="${mymodules}:mod_clamav" if use ctrls || use shaper ; then myconf="${myconf} --enable-ctrls" mymodules="${mymodules}:mod_ctrls_admin" fi use deflate && mymodules="${mymodules}:mod_deflate" use exec && mymodules="${mymodules}:mod_exec" if use kerberos ; then cd "${WORKDIR}"/mod_gss-${GSS_VER} if has_version