# Copyright 1999-2010 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.ebuild,v 1.1 2010/03/08 13:38:46 voyageur Exp $ EAPI="2" inherit eutils CASE_VER="0.3" CLAMAV_VER="0.11rc" DEFLATE_VER="0.5.4" GSS_VER="1.3.3" 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 # Fix Gentoo Bug #284853 use kerberos && sed -i -e "s/krb5_principal2principalname/_\0/" \ "${WORKDIR}"/mod_gss-${GSS_VER}/mod_auth_gss.c.in # 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 } src_configure() { local myc myl mym use acl && mym="${mym}:mod_facl" use ban && mym="${mym}:mod_ban" use case && mym="${mym}:mod_case" use clamav && mym="${mym}:mod_clamav" if use ctrls || use shaper ; then myc="${myc} --enable-ctrls" mym="${mym}:mod_ctrls_admin" fi use deflate && mym="${mym}:mod_deflate" use exec && mym="${mym}:mod_exec" if use kerberos ; then cd "${WORKDIR}"/mod_gss-${GSS_VER} if has_version