diff options
author | Sam James <sam@gentoo.org> | 2021-05-17 02:20:16 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-05-17 02:20:16 +0000 |
commit | 016d0d2d65dee18e204275754f1449757576dec2 (patch) | |
tree | 8568ee9e3cf4b33e2e0def132023cb760d21f43f /net-analyzer/scanlogd | |
parent | net-analyzer/ssldump: add 1.4 (diff) | |
download | gentoo-016d0d2d65dee18e204275754f1449757576dec2.tar.gz gentoo-016d0d2d65dee18e204275754f1449757576dec2.tar.bz2 gentoo-016d0d2d65dee18e204275754f1449757576dec2.zip |
net-analyzer/scanlogd: add 2.2.8
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-analyzer/scanlogd')
-rw-r--r-- | net-analyzer/scanlogd/Manifest | 1 | ||||
-rw-r--r-- | net-analyzer/scanlogd/scanlogd-2.2.8.ebuild | 56 |
2 files changed, 57 insertions, 0 deletions
diff --git a/net-analyzer/scanlogd/Manifest b/net-analyzer/scanlogd/Manifest index a9a4cbfaab64..299f13dffe9b 100644 --- a/net-analyzer/scanlogd/Manifest +++ b/net-analyzer/scanlogd/Manifest @@ -1 +1,2 @@ DIST scanlogd-2.2.7.tar.gz 11352 BLAKE2B 480e1ef78ac35ff04fb44961aa501f997786e20a3501f54f74b9e5761edba4736341d364a9a10772d795cb6025b88399bf3b56b0a980a0d2d0787f7a66eeeb22 SHA512 56238cb91a33524a9512914568984ed0d066eb84bea1c08551fbc4e02c9643a3f9535d59b364db00d538e4d9bcd9650ac24f2042584d3a9c639f99eb77ba1a7b +DIST scanlogd-2.2.8.tar.gz 12190 BLAKE2B 26396c3174de3d3cceed9833354cae7d7bbcf3078a81472ae1fa28856f011e6984fa8182a994d5a10632c19f15f86e31f1ee73309273cad04e05fec942afa0a4 SHA512 92f7a28dd40593dad6afae4fd0572efeceea3f43f334ff82c349538d4a28e9ab624912f82fc5c102a4a9937009bbf7b76a81029588e2815ff9b305144143572a diff --git a/net-analyzer/scanlogd/scanlogd-2.2.8.ebuild b/net-analyzer/scanlogd/scanlogd-2.2.8.ebuild new file mode 100644 index 000000000000..c21dc3ec5c8f --- /dev/null +++ b/net-analyzer/scanlogd/scanlogd-2.2.8.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit savedconfig toolchain-funcs user + +DESCRIPTION="A port scan detection tool" +SRC_URI="https://www.openwall.com/scanlogd/${P}.tar.gz" +HOMEPAGE="https://www.openwall.com/scanlogd/" + +LICENSE="scanlogd GPL-2" # GPL-2 for initscript +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="+nids pcap" +REQUIRED_USE="?? ( nids pcap )" + +DEPEND=" + nids? ( net-libs/libnids ) + pcap? ( net-libs/libpcap ) +" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-2.2.7-gentoo.patch +) + +src_prepare() { + default + + restore_config params.h + + tc-export CC +} + +src_compile() { + local target=linux + + use nids && target=libnids + use pcap && target=libpcap + emake ${target} +} + +src_install() { + dosbin scanlogd + + doman scanlogd.8 + newinitd "${FILESDIR}"/scanlogd.rc scanlogd + + save_config params.h +} + +pkg_preinst() { + enewgroup scanlogd + enewuser scanlogd -1 -1 /dev/null scanlogd +} |