net-mail/vchkuser: Port to EAPI 6
authorDavid Seifert <soap@gentoo.org>
Wed, 3 Jan 2018 18:37:38 +0000 (19:37 +0100)
committerDavid Seifert <soap@gentoo.org>
Wed, 3 Jan 2018 18:37:38 +0000 (19:37 +0100)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

net-mail/vchkuser/vchkuser-0.4.ebuild

index f007e274eaec2bea6f37e0c83552b040ad5bf705..93faf978ed0a1bf5f0b7880519d61bb25e65ff39 100644 (file)
@@ -1,7 +1,7 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="3"
+EAPI=6
 
 inherit autotools qmail
 
@@ -14,13 +14,18 @@ SLOT="0"
 KEYWORDS="amd64 x86"
 IUSE="debug"
 
-DEPEND="net-mail/vpopmail
-       || ( mail-mta/netqmail[qmail-spp] mail-mta/qmail-ldap[qmail-spp] )"
+DEPEND="
+       net-mail/vpopmail
+       || (
+               mail-mta/netqmail[qmail-spp]
+               mail-mta/qmail-ldap[qmail-spp]
+       )"
 RDEPEND=""
 
 S="${WORKDIR}/hollow-${PN}-8a048f7"
 
 src_prepare() {
+       default
        eautoreconf
 }
 
@@ -29,12 +34,13 @@ src_configure() {
                $(use_enable debug) \
                --with-vpopuser=vpopmail \
                --with-qmailgroup=nofiles \
-               --with-vpopmaildir=/var/vpopmail \
+               --with-vpopmaildir="${EPREFIX}"/var/vpopmail \
                --with-qmaildir=${QMAIL_HOME}
 }
 
 src_install() {
-       emake DESTDIR="${D}" install || die "emake failed"
+       default
+
        fowners vpopmail:nofiles "${QMAIL_HOME}"/plugins/vchkuser
        fperms 4750 "${QMAIL_HOME}"/plugins/vchkuser
 }