From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F0A4213997D for ; Sun, 10 Nov 2019 13:24:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 30E71E08FC; Sun, 10 Nov 2019 13:24:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 03545E08FC for ; Sun, 10 Nov 2019 13:24:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1E95334CB3A for ; Sun, 10 Nov 2019 13:24:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 85B26890 for ; Sun, 10 Nov 2019 13:24:10 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1573392219.de2c9c7cc5c8c1e28fe64de78283650e16e3b7af.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/sqlgrey/files/, mail-filter/sqlgrey/ X-VCS-Repository: repo/gentoo X-VCS-Files: mail-filter/sqlgrey/files/sqlgrey-1.7.6-init.patch mail-filter/sqlgrey/sqlgrey-1.7.6-r2.ebuild X-VCS-Directories: mail-filter/sqlgrey/ mail-filter/sqlgrey/files/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: de2c9c7cc5c8c1e28fe64de78283650e16e3b7af X-VCS-Branch: master Date: Sun, 10 Nov 2019 13:24:10 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 712bee53-4e66-4fd0-ba1f-771fd1afefc0 X-Archives-Hash: 1903c1f10682f3e58e3174ee5629f90b commit: de2c9c7cc5c8c1e28fe64de78283650e16e3b7af Author: Michał Górny gentoo org> AuthorDate: Sun Nov 10 13:22:28 2019 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Nov 10 13:23:39 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de2c9c7c mail-filter/sqlgrey: Bump to EAPI 7 Signed-off-by: Michał Górny gentoo.org> mail-filter/sqlgrey/files/sqlgrey-1.7.6-init.patch | 4 +- mail-filter/sqlgrey/sqlgrey-1.7.6-r2.ebuild | 74 ++++++++++------------ 2 files changed, 37 insertions(+), 41 deletions(-) diff --git a/mail-filter/sqlgrey/files/sqlgrey-1.7.6-init.patch b/mail-filter/sqlgrey/files/sqlgrey-1.7.6-init.patch index 48d3a581c5d..355cb453924 100644 --- a/mail-filter/sqlgrey/files/sqlgrey-1.7.6-init.patch +++ b/mail-filter/sqlgrey/files/sqlgrey-1.7.6-init.patch @@ -1,5 +1,5 @@ ---- ./sqlgrey-1.7.6/init/sqlgrey.gentoo.orig 2007-05-12 11:12:12.000000000 +0200 -+++ ./sqlgrey-1.7.6/init/sqlgrey.gentoo 2007-05-12 12:05:52.491468250 +0200 +--- sqlgrey-1.7.6/init/sqlgrey.gentoo.orig 2007-05-12 11:12:12.000000000 +0200 ++++ sqlgrey-1.7.6/init/sqlgrey.gentoo 2007-05-12 12:05:52.491468250 +0200 @@ -14,13 +14,13 @@ # SQLite puts files in the working directory cd ~sqlgrey diff --git a/mail-filter/sqlgrey/sqlgrey-1.7.6-r2.ebuild b/mail-filter/sqlgrey/sqlgrey-1.7.6-r2.ebuild index a6f49463e7b..4b26a8203a6 100644 --- a/mail-filter/sqlgrey/sqlgrey-1.7.6-r2.ebuild +++ b/mail-filter/sqlgrey/sqlgrey-1.7.6-r2.ebuild @@ -1,41 +1,42 @@ -# 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 eutils systemd user +inherit systemd user -DESCRIPTION="SQLgrey is a postfix policy service implementing a grey-listing policy" -SRC_URI="mirror://sourceforge/sqlgrey/${P}.tar.bz2" +DESCRIPTION="A postfix policy service implementing a grey-listing policy" HOMEPAGE="http://sqlgrey.sourceforge.net/" +SRC_URI="mirror://sourceforge/sqlgrey/${P}.tar.bz2" + LICENSE="GPL-2" SLOT="0" -IUSE="mysql postgres sqlite" +KEYWORDS="amd64 ~arm ~sparc x86" +IUSE="mysql +postgres sqlite" +REQUIRED_USE="|| ( mysql postgres sqlite )" + RDEPEND="dev-lang/perl dev-perl/DBI - dev-perl/Net-Server dev-perl/Date-Calc + dev-perl/Net-Server virtual/mailx - postgres? ( dev-perl/DBD-Pg ) - sqlite? ( dev-perl/DBD-SQLite ) mysql? ( dev-perl/DBD-mysql ) - !postgres? ( !mysql? ( !sqlite? ( dev-perl/DBD-Pg ) ) )" -DEPEND="$RDEPEND + postgres? ( dev-perl/DBD-Pg ) + sqlite? ( dev-perl/DBD-SQLite )" +DEPEND="${RDEPEND} sys-apps/sed" -KEYWORDS="amd64 ~arm ~sparc x86" + +PATCHES=( + "${FILESDIR}/${P}-init.patch" +) pkg_setup() { enewgroup sqlgrey enewuser sqlgrey -1 -1 /var/spool/sqlgrey sqlgrey } -src_unpack() { - unpack ${A} - epatch "${FILESDIR}/${P}-init.patch" -} - src_install () { - make gentoo-install ROOTDIR="${D}" + emake gentoo-install ROOTDIR="${D}" dodoc HOWTO FAQ README README.OPTINOUT README.PERF TODO Changelog # keeps SQLgrey data in /var/spool/sqlgrey @@ -46,34 +47,29 @@ src_install () { } pkg_postinst() { - echo - einfo "To make use of greylisting, please update your postfix config." - einfo - einfo "Put something like this in /etc/postfix/main.cf:" - einfo " smtpd_recipient_restrictions =" - einfo " ..." - einfo " check_policy_service inet:127.0.0.1:2501" - einfo - einfo "Remember to restart Postfix after that change. Also remember" - einfo "to make the daemon start durig boot:" - einfo " rc-update add sqlgrey default" - einfo - echo - einfo "To setup SQLgrey to run out-of-the-box on your system, run:" - einfo "emerge --config ${PN}" - echo + elog "To make use of greylisting, please update your postfix config." + elog + elog "Put something like this in /etc/postfix/main.cf:" + elog " smtpd_recipient_restrictions =" + elog " ..." + elog " check_policy_service inet:127.0.0.1:2501" + elog + elog "Remember to restart Postfix after that change. Also remember" + elog "to make the daemon start durig boot:" + elog " rc-update add sqlgrey default" + elog + elog + elog "To setup SQLgrey to run out-of-the-box on your system, run:" + elog "emerge --config ${PN}" + elog ewarn "Read the documentation for more info (perldoc sqlgrey) or the" ewarn "included howto /usr/share/doc/${PF}/HOWTO.gz" - echo + ewarn ewarn "If you are using MySQL >= 4.1 use \"latin1\" as charset for" ewarn "the SQLgrey db" - echo - ebeep 2 - epause 5 } pkg_config () { - # SQLgrey configuration file local SQLgrey_CONFIG="/etc/sqlgrey/sqlgrey.conf" local SQLgrey_DB_USER_NAME="sqlgrey"