commit:     3856afddab4496750121131c622907c21235343e
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 29 15:16:25 2022 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Jan 29 15:16:25 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3856afdd

net-analyzer/snortsam: update EAPI 5 -> 7

Closes: https://bugs.gentoo.org/832319
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../{snortsam-2.70.ebuild => snortsam-2.70-r1.ebuild}   | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/net-analyzer/snortsam/snortsam-2.70.ebuild 
b/net-analyzer/snortsam/snortsam-2.70-r1.ebuild
similarity index 77%
rename from net-analyzer/snortsam/snortsam-2.70.ebuild
rename to net-analyzer/snortsam/snortsam-2.70-r1.ebuild
index f32b3f6db2ed..d900b52d06f6 100644
--- a/net-analyzer/snortsam/snortsam-2.70.ebuild
+++ b/net-analyzer/snortsam/snortsam-2.70-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
 
-inherit epatch flag-o-matic toolchain-funcs vcs-clean
+inherit flag-o-matic toolchain-funcs vcs-clean
 
 DESCRIPTION="Snort plugin that allows automated blocking of IP addresses on 
several firewalls"
 HOMEPAGE="http://www.snortsam.net/";
@@ -15,8 +15,10 @@ SLOT="0"
 KEYWORDS="~alpha amd64 ppc ppc64 sparc x86"
 IUSE="debug"
 
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
 src_prepare() {
-       epatch "${FILESDIR}"/${P}-gentoo.patch
+       default
        ecvs_clean
 }
 
@@ -31,14 +33,13 @@ src_compile() {
 
 src_install() {
        dobin snortsam
-       find "${S}" -depth -type f -name "*.asc" -exec rm -f {} \;
-       dodoc docs/* conf/*
+
+       find . -depth -type f -name '*.asc' -delete || die
+       dodoc -r docs/. conf/.
 }
 
 pkg_postinst() {
-       echo
        elog "To use snortsam with snort, you'll have to compile snort with 
USE=snortsam."
        elog "Read the INSTALL file to configure snort for snortsam, and 
configure"
        elog "snortsam for your particular firewall."
-       echo
 }

Reply via email to