You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
903 B
51 lines
903 B
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
11 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
11 years ago
|
|
||
3 years ago
|
inherit savedconfig toolchain-funcs
|
||
4 years ago
|
|
||
|
DESCRIPTION="A port scan detection tool"
|
||
11 years ago
|
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"
|
||
10 years ago
|
KEYWORDS="~amd64 ppc x86"
|
||
11 years ago
|
IUSE="+nids pcap"
|
||
|
REQUIRED_USE="?? ( nids pcap )"
|
||
|
|
||
|
DEPEND="
|
||
|
nids? ( net-libs/libnids )
|
||
|
pcap? ( net-libs/libpcap )
|
||
|
"
|
||
3 years ago
|
RDEPEND="
|
||
|
${DEPEND}
|
||
|
acct-group/scanlogd
|
||
|
acct-user/scanlogd
|
||
|
"
|
||
11 years ago
|
|
||
4 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/${P}-gentoo.patch
|
||
|
)
|
||
|
|
||
11 years ago
|
src_prepare() {
|
||
4 years ago
|
default
|
||
11 years ago
|
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
|
||
|
}
|