diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-07-17 19:04:28 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-07-17 19:04:28 +0100 |
commit | 514d1bbe260df2521fe60f1a3ec87cfcfde1a829 (patch) | |
tree | 555c194dbeb0fb2ac4ad3cde7c0f6a80fd330ce2 /net-analyzer/scanlogd/scanlogd-2.2.7-r1.ebuild | |
parent | 4df3bf9762850b34cd1ead5c80374d1a0fc3362e (diff) |
gentoo resync : 17.07.2021
Diffstat (limited to 'net-analyzer/scanlogd/scanlogd-2.2.7-r1.ebuild')
-rw-r--r-- | net-analyzer/scanlogd/scanlogd-2.2.7-r1.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/net-analyzer/scanlogd/scanlogd-2.2.7-r1.ebuild b/net-analyzer/scanlogd/scanlogd-2.2.7-r1.ebuild new file mode 100644 index 000000000000..7598563d3815 --- /dev/null +++ b/net-analyzer/scanlogd/scanlogd-2.2.7-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit savedconfig toolchain-funcs + +DESCRIPTION="A port scan detection tool" +SRC_URI="http://www.openwall.com/scanlogd/${P}.tar.gz" +HOMEPAGE="http://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} + acct-group/scanlogd + acct-user/scanlogd +" + +PATCHES=( + "${FILESDIR}"/${P}-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 +} |