diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-07-09 15:43:36 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-07-09 15:43:36 +0100 |
commit | 2719f73b6813d11d13a9650cdd2ab8ec6e69385d (patch) | |
tree | 8c816148bcbd22757d892089c989ae614eae4f5a /net-firewall/psad/psad-2.4.6-r1.ebuild | |
parent | 0f558761aa2dee1017b4751e4017205e015a9560 (diff) |
gentoo resync : 09.07.2022
Diffstat (limited to 'net-firewall/psad/psad-2.4.6-r1.ebuild')
-rw-r--r-- | net-firewall/psad/psad-2.4.6-r1.ebuild | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/net-firewall/psad/psad-2.4.6-r1.ebuild b/net-firewall/psad/psad-2.4.6-r1.ebuild new file mode 100644 index 000000000000..d9125b0b0558 --- /dev/null +++ b/net-firewall/psad/psad-2.4.6-r1.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit perl-module toolchain-funcs + +DESCRIPTION="Port Scanning Attack Detection daemon" +HOMEPAGE="https://www.cipherdyne.org/psad/" +SRC_URI="https://www.cipherdyne.org/psad/download/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm64 ppc ~sparc x86" + +RDEPEND=" + dev-perl/Bit-Vector + dev-perl/Date-Calc + dev-perl/NetAddr-IP + dev-perl/Unix-Syslog + net-firewall/iptables + net-misc/whois + virtual/logger + virtual/mailx + virtual/perl-Storable" +BDEPEND="virtual/perl-ExtUtils-MakeMaker" + +PATCHES=( "${FILESDIR}"/${PN}-2.2.4-var-run.patch ) + +src_prepare() { + default + + sed -i \ + -e 's|/usr/bin/gcc|$(CC)|g' \ + -e 's|-O|$(CFLAGS) $(LDFLAGS)|g' \ + Makefile || die + # Fix up default paths + sed -i \ + -e "s:/usr/bin/whois_psad:/usr/bin/whois:g" \ + psad.conf || die +} + +src_configure() { + default + + local d + for d in IPTables-Parse IPTables-ChainMgr; do + cd "${S}"/deps/${d} || die + perl-module_src_configure + done +} + +src_compile() { + tc-export CC + default + + local d + for d in IPTables-Parse IPTables-ChainMgr; do + cd "${S}"/deps/${d} || die + perl-module_src_compile + done +} + +src_install() { + newbin misc/pscan psad-pscan + + dosbin kmsgsd psad psadwatchd + newsbin fwcheck_psad.pl fwcheck_psad + + insinto /etc/psad + doins \ + *.conf auto_dl icmp{,6}_types ip_options psad_* pf.os posf \ + protocols signatures + + newinitd init-scripts/psad-init.gentoo psad + + doman doc/*.8 + + dodoc doc/BENCHMARK CREDITS Change* doc/FW_EXAMPLE_RULES README \ + doc/README.SYSLOG doc/SCAN_LOG + + insinto /etc/psad/snort_rules + doins deps/snort_rules/* + + local d + for d in IPTables-Parse IPTables-ChainMgr; do + cd "${S}"/deps/${d} || die + perl-module_src_install + done +} |