Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/scanlogd/
Date: Mon, 17 May 2021 02:37:07
Message-Id: 1621218016.016d0d2d65dee18e204275754f1449757576dec2.sam@gentoo
1 commit: 016d0d2d65dee18e204275754f1449757576dec2
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 17 02:20:16 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon May 17 02:20:16 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=016d0d2d
7
8 net-analyzer/scanlogd: add 2.2.8
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 net-analyzer/scanlogd/Manifest | 1 +
13 net-analyzer/scanlogd/scanlogd-2.2.8.ebuild | 56 +++++++++++++++++++++++++++++
14 2 files changed, 57 insertions(+)
15
16 diff --git a/net-analyzer/scanlogd/Manifest b/net-analyzer/scanlogd/Manifest
17 index a9a4cbfaab6..299f13dffe9 100644
18 --- a/net-analyzer/scanlogd/Manifest
19 +++ b/net-analyzer/scanlogd/Manifest
20 @@ -1 +1,2 @@
21 DIST scanlogd-2.2.7.tar.gz 11352 BLAKE2B 480e1ef78ac35ff04fb44961aa501f997786e20a3501f54f74b9e5761edba4736341d364a9a10772d795cb6025b88399bf3b56b0a980a0d2d0787f7a66eeeb22 SHA512 56238cb91a33524a9512914568984ed0d066eb84bea1c08551fbc4e02c9643a3f9535d59b364db00d538e4d9bcd9650ac24f2042584d3a9c639f99eb77ba1a7b
22 +DIST scanlogd-2.2.8.tar.gz 12190 BLAKE2B 26396c3174de3d3cceed9833354cae7d7bbcf3078a81472ae1fa28856f011e6984fa8182a994d5a10632c19f15f86e31f1ee73309273cad04e05fec942afa0a4 SHA512 92f7a28dd40593dad6afae4fd0572efeceea3f43f334ff82c349538d4a28e9ab624912f82fc5c102a4a9937009bbf7b76a81029588e2815ff9b305144143572a
23
24 diff --git a/net-analyzer/scanlogd/scanlogd-2.2.8.ebuild b/net-analyzer/scanlogd/scanlogd-2.2.8.ebuild
25 new file mode 100644
26 index 00000000000..c21dc3ec5c8
27 --- /dev/null
28 +++ b/net-analyzer/scanlogd/scanlogd-2.2.8.ebuild
29 @@ -0,0 +1,56 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +inherit savedconfig toolchain-funcs user
36 +
37 +DESCRIPTION="A port scan detection tool"
38 +SRC_URI="https://www.openwall.com/scanlogd/${P}.tar.gz"
39 +HOMEPAGE="https://www.openwall.com/scanlogd/"
40 +
41 +LICENSE="scanlogd GPL-2" # GPL-2 for initscript
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~ppc ~x86"
44 +IUSE="+nids pcap"
45 +REQUIRED_USE="?? ( nids pcap )"
46 +
47 +DEPEND="
48 + nids? ( net-libs/libnids )
49 + pcap? ( net-libs/libpcap )
50 +"
51 +RDEPEND="${DEPEND}"
52 +
53 +PATCHES=(
54 + "${FILESDIR}"/${PN}-2.2.7-gentoo.patch
55 +)
56 +
57 +src_prepare() {
58 + default
59 +
60 + restore_config params.h
61 +
62 + tc-export CC
63 +}
64 +
65 +src_compile() {
66 + local target=linux
67 +
68 + use nids && target=libnids
69 + use pcap && target=libpcap
70 + emake ${target}
71 +}
72 +
73 +src_install() {
74 + dosbin scanlogd
75 +
76 + doman scanlogd.8
77 + newinitd "${FILESDIR}"/scanlogd.rc scanlogd
78 +
79 + save_config params.h
80 +}
81 +
82 +pkg_preinst() {
83 + enewgroup scanlogd
84 + enewuser scanlogd -1 -1 /dev/null scanlogd
85 +}