1 |
commit: 3856afddab4496750121131c622907c21235343e |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 29 15:16:25 2022 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 29 15:16:25 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3856afdd |
7 |
|
8 |
net-analyzer/snortsam: update EAPI 5 -> 7 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/832319 |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
.../{snortsam-2.70.ebuild => snortsam-2.70-r1.ebuild} | 17 +++++++++-------- |
14 |
1 file changed, 9 insertions(+), 8 deletions(-) |
15 |
|
16 |
diff --git a/net-analyzer/snortsam/snortsam-2.70.ebuild b/net-analyzer/snortsam/snortsam-2.70-r1.ebuild |
17 |
similarity index 77% |
18 |
rename from net-analyzer/snortsam/snortsam-2.70.ebuild |
19 |
rename to net-analyzer/snortsam/snortsam-2.70-r1.ebuild |
20 |
index f32b3f6db2ed..d900b52d06f6 100644 |
21 |
--- a/net-analyzer/snortsam/snortsam-2.70.ebuild |
22 |
+++ b/net-analyzer/snortsam/snortsam-2.70-r1.ebuild |
23 |
@@ -1,9 +1,9 @@ |
24 |
-# Copyright 1999-2021 Gentoo Authors |
25 |
+# Copyright 1999-2022 Gentoo Authors |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
|
28 |
-EAPI=5 |
29 |
+EAPI=7 |
30 |
|
31 |
-inherit epatch flag-o-matic toolchain-funcs vcs-clean |
32 |
+inherit flag-o-matic toolchain-funcs vcs-clean |
33 |
|
34 |
DESCRIPTION="Snort plugin that allows automated blocking of IP addresses on several firewalls" |
35 |
HOMEPAGE="http://www.snortsam.net/" |
36 |
@@ -15,8 +15,10 @@ SLOT="0" |
37 |
KEYWORDS="~alpha amd64 ppc ppc64 sparc x86" |
38 |
IUSE="debug" |
39 |
|
40 |
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) |
41 |
+ |
42 |
src_prepare() { |
43 |
- epatch "${FILESDIR}"/${P}-gentoo.patch |
44 |
+ default |
45 |
ecvs_clean |
46 |
} |
47 |
|
48 |
@@ -31,14 +33,13 @@ src_compile() { |
49 |
|
50 |
src_install() { |
51 |
dobin snortsam |
52 |
- find "${S}" -depth -type f -name "*.asc" -exec rm -f {} \; |
53 |
- dodoc docs/* conf/* |
54 |
+ |
55 |
+ find . -depth -type f -name '*.asc' -delete || die |
56 |
+ dodoc -r docs/. conf/. |
57 |
} |
58 |
|
59 |
pkg_postinst() { |
60 |
- echo |
61 |
elog "To use snortsam with snort, you'll have to compile snort with USE=snortsam." |
62 |
elog "Read the INSTALL file to configure snort for snortsam, and configure" |
63 |
elog "snortsam for your particular firewall." |
64 |
- echo |
65 |
} |