diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-05-22 07:31:18 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-05-22 07:31:18 +0100 |
commit | 908778078736bd36f7a60a2d576d415cb8e000fa (patch) | |
tree | c6a4796c48b608c14dc7e9674cdbd38f905e3c15 /net-analyzer/scanlogd/scanlogd-2.2.8.ebuild | |
parent | 185fa19bbf68a4d4dca534d2b46729207a177f16 (diff) |
gentoo resync : 22.05.2021
Diffstat (limited to 'net-analyzer/scanlogd/scanlogd-2.2.8.ebuild')
-rw-r--r-- | net-analyzer/scanlogd/scanlogd-2.2.8.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
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 +} |