net-mail/qmailadmin: Bump to EAPI 7
authorMichał Górny <mgorny@gentoo.org>
Sat, 23 Nov 2019 19:08:57 +0000 (20:08 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 23 Nov 2019 19:26:06 +0000 (20:26 +0100)
Bug: https://bugs.gentoo.org/697246
Signed-off-by: Michał Górny <mgorny@gentoo.org>
net-mail/qmailadmin/qmailadmin-1.2.15-r1.ebuild
net-mail/qmailadmin/qmailadmin-1.2.16.ebuild

index ddd66ac34bfb7abbd97694080a93ad965d83ddcf..3e99cdd3a1a79f9431dbdbd204d305ced0f4f13c 100644 (file)
@@ -1,13 +1,9 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=0
+EAPI=7
 
-inherit qmail eutils webapp autotools
-
-# the RESTRICT is because the vpopmail lib directory is locked down
-# and non-root can't access them.
-RESTRICT="userpriv"
+inherit qmail webapp autotools
 
 MY_P=${P/_rc/-rc}
 
@@ -20,24 +16,27 @@ SLOT="0"
 WEBAPP_MANUAL_SLOT="yes"
 KEYWORDS="amd64 arm ~hppa ia64 ppc s390 sh sparc x86"
 IUSE="maildrop"
+# the RESTRICT is because the vpopmail lib directory is locked down
+# and non-root can't access them.
+RESTRICT="userpriv"
 
-DEPEND="virtual/qmail
+RDEPEND="virtual/qmail
        >=net-mail/vpopmail-5.4.33
        net-mail/autorespond
        maildrop? ( >=mail-filter/maildrop-2.0.1 )"
+DEPEND=${RDEPEND}
 
 S="${WORKDIR}"/${MY_P}
 
-src_unpack() {
-       unpack ${A}
-       cd "${S}"
-       epatch "${FILESDIR}"/${PN}-1.2.9-maildir.patch
-       epatch "${FILESDIR}"/${PN}-1.2.12-quota-overflow.patch
-       epatch "${FILESDIR}"/${PN}-1.2.15-quota-security.patch
+src_prepare() {
+       eapply "${FILESDIR}"/${PN}-1.2.9-maildir.patch
+       eapply "${FILESDIR}"/${PN}-1.2.12-quota-overflow.patch
+       eapply "${FILESDIR}"/${PN}-1.2.15-quota-security.patch
+       eapply_user
        eautoreconf
 }
 
-src_compile() {
+src_configure() {
        # Pass spam stuff through $@ so we get the quoting right
        if use maildrop ; then
                set -- --enable-modify-spam \
@@ -68,19 +67,17 @@ src_compile() {
                --enable-maxaliasesperpage=50 \
                --enable-vpopuser=vpopmail \
                --enable-vpopgroup=vpopmail \
-               "$@" \
-               || die "econf failed"
-
-       emake || die "make failed"
+               "$@"
 }
 
 src_install() {
        webapp_src_preinst
 
-       make DESTDIR="${D}" install || die "make install failed"
-
-       dodoc AUTHORS INSTALL README.hooks BUGS TODO ChangeLog \
-               TRANSLATORS NEWS FAQ README contrib/*
+       local DOCS=(
+               AUTHORS INSTALL README.hooks BUGS TODO ChangeLog TRANSLATORS
+               NEWS FAQ README contrib/*
+       )
+       default
 
        webapp_src_install
 }
index c3001ee6b8eb0cfaab13430bc45b1e92aad05fb2..95b5cf72f3a2735a79fcfe2659fc753495685bbb 100644 (file)
@@ -1,13 +1,9 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=0
+EAPI=7
 
-inherit qmail eutils webapp autotools
-
-# the RESTRICT is because the vpopmail lib directory is locked down
-# and non-root can't access them.
-RESTRICT="userpriv"
+inherit qmail webapp autotools
 
 MY_P=${P/_rc/-rc}
 
@@ -20,22 +16,25 @@ SLOT="0"
 WEBAPP_MANUAL_SLOT="yes"
 KEYWORDS="~amd64 ~arm ~hppa ~ppc ~s390 ~sh ~sparc ~x86"
 IUSE="maildrop"
+# the RESTRICT is because the vpopmail lib directory is locked down
+# and non-root can't access them.
+RESTRICT="userpriv"
 
 DEPEND="virtual/qmail
        >=net-mail/vpopmail-5.4.33
        net-mail/autorespond
        maildrop? ( >=mail-filter/maildrop-2.0.1 )"
+DEPEND=${RDEPEND}
 
 S="${WORKDIR}"/${MY_P}
 
-src_unpack() {
-       unpack ${A}
-       cd "${S}"
-       epatch "${FILESDIR}"/${PN}-1.2.9-maildir.patch
+src_prepare() {
+       eapply "${FILESDIR}"/${PN}-1.2.9-maildir.patch
+       eapply_user
        eautoreconf
 }
 
-src_compile() {
+src_configure() {
        # Pass spam stuff through $@ so we get the quoting right
        if use maildrop ; then
                set -- --enable-modify-spam \
@@ -66,27 +65,25 @@ src_compile() {
                --enable-maxaliasesperpage=50 \
                --enable-vpopuser=vpopmail \
                --enable-vpopgroup=vpopmail \
-               "$@" \
-               || die "econf failed"
-
-       emake || die "make failed"
+               "$@"
 }
 
 src_install() {
        webapp_src_preinst
 
-       make DESTDIR="${D}" install || die "make install failed"
-
-       dodoc AUTHORS INSTALL README.hooks BUGS TODO ChangeLog \
-               TRANSLATORS NEWS FAQ README contrib/*
+       local DOCS=(
+               AUTHORS INSTALL README.hooks BUGS TODO ChangeLog TRANSLATORS
+               NEWS FAQ README contrib/*
+       )
+       default
 
        webapp_src_install
 
        # CGI needs to be able to read /etc/vpopmail.conf
        # Which is 0640 root:vpopmail, as it contains passwords
        cgi=/usr/share/webapps/${PN}/${PV}/hostroot/cgi-bin/qmailadmin
-       fowners root:vpopmail $cgi
-       fperms g+s $cgi
+       fowners root:vpopmail ${cgi}
+       fperms g+s ${cgi}
 }
 
 pkg_postinst() {