commit:     780e1a2faff8e62942b7a516b811be519f3ae2aa
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 22 09:42:17 2017 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Wed Feb 22 09:48:47 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=780e1a2f

net-ftp/pure-ftpd: Converted away from confutils eclass (bug #610482).

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 net-ftp/pure-ftpd/pure-ftpd-1.0.45-r1.ebuild | 40 +++++++++++-----------------
 1 file changed, 16 insertions(+), 24 deletions(-)

diff --git a/net-ftp/pure-ftpd/pure-ftpd-1.0.45-r1.ebuild 
b/net-ftp/pure-ftpd/pure-ftpd-1.0.45-r1.ebuild
index 92f84ee473..9d942e9c77 100644
--- a/net-ftp/pure-ftpd/pure-ftpd-1.0.45-r1.ebuild
+++ b/net-ftp/pure-ftpd/pure-ftpd-1.0.45-r1.ebuild
@@ -3,7 +3,7 @@
 # $Id$
 
 EAPI=6
-inherit eutils confutils flag-o-matic
+inherit eutils flag-o-matic
 
 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
 
@@ -47,27 +47,6 @@ src_configure() {
        sed -e "s:# define MAX_USER_LENGTH 32U:# define MAX_USER_LENGTH 127U:" \
                -i "${S}/src/ftpd.h" || die "sed failed"
 
-       # required for confutils.eclass
-       local my_conf=""
-
-       # Let's configure the USE-enabled stuff
-       enable_extension_without        "capabilities"          "caps"
-       enable_extension_with           "rfc2640"               "charconv"      
        0
-       enable_extension_with           "ldap"                  "ldap"          
        0
-       enable_extension_with           "mysql"                 "mysql"         
        0
-       enable_extension_with           "pam"                   "pam"           
        0
-       enable_extension_with           "paranoidmsg"           "paranoidmsg"   
        0
-       enable_extension_with           "pgsql"                 "postgres"      
        0
-       enable_extension_with           "tls"                   "ssl"           
        0
-       enable_extension_with           "implicittls"           "implicittls"   
        0
-       enable_extension_with           "virtualchroot"         "vchroot"       
        0
-       enable_extension_with           "sysquotas"             "sysquota"      
        0
-       enable_extension_without        "inetd"                 "xinetd"
-
-       # noiplog is a negative flag, we don't want that enabled by default,
-       # so we handle it manually, as confutils can't do that
-       use noiplog && my_conf+=" --without-iplogging"
-
        # Those features are only configurable like this, see bug #179375.
        use anondel && append-cppflags -DANON_CAN_DELETE
        use anonperm && append-cppflags -DANON_CAN_CHANGE_PERMS
@@ -79,6 +58,7 @@ src_configure() {
        export ax_cv_check_cflags___fstack_protector_all=no
 
        local myeconfargs=(
+               --enable-largefile
                --with-altlog
                --with-cookie
                --with-diraliases
@@ -93,9 +73,21 @@ src_configure() {
                --with-throttling
                --with-uploadscript
                --with-virtualhosts
-               --enable-largefile
+               $(use_with charconv rfc2640)
+               $(use_with ldap)
+               $(use_with mysql)
+               $(use_with pam)
+               $(use_with paranoidmsg)
+               $(use_with postgres pgsql)
+               $(use_with ssl tls)
+               $(use_with implicittls)
+               $(use_with vchroot virtualchroot)
+               $(use_with sysquota sysquotas)
+               $(usex caps '' '--without-capabilities')
+               $(usex noiplog '--without-iplogging' '')
+               $(usex xinetd '' '--without-inetd')
        )
-       econf "${myeconfargs[@]}" ${my_conf}
+       econf "${myeconfargs[@]}"
 }
 
 src_install() {

Reply via email to