diff options
author | Jeroen Roovers <jer@gentoo.org> | 2017-02-21 06:07:39 +0100 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2017-02-21 06:07:39 +0100 |
commit | 5d79778e30d1866f355dff9e88eec985dcb348ca (patch) | |
tree | ecffe110b0109021ac918ede22438d288e3656d8 /net-firewall/psad | |
parent | net-analyzer/vnstat: Version bump. (diff) | |
download | gentoo-5d79778e30d1866f355dff9e88eec985dcb348ca.tar.gz gentoo-5d79778e30d1866f355dff9e88eec985dcb348ca.tar.bz2 gentoo-5d79778e30d1866f355dff9e88eec985dcb348ca.zip |
net-firewall/psad: Version bump.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'net-firewall/psad')
-rw-r--r-- | net-firewall/psad/Manifest | 1 | ||||
-rw-r--r-- | net-firewall/psad/files/psad-2.2.4-var-run.patch | 6 | ||||
-rw-r--r-- | net-firewall/psad/psad-2.4.4.ebuild | 94 |
3 files changed, 101 insertions, 0 deletions
diff --git a/net-firewall/psad/Manifest b/net-firewall/psad/Manifest index 94cca56c1dc6..9b4e024fe08d 100644 --- a/net-firewall/psad/Manifest +++ b/net-firewall/psad/Manifest @@ -2,3 +2,4 @@ DIST psad-2.2.5.tar.bz2 1243987 SHA256 736d446266227cb65511d792c85224573c95ea4dc DIST psad-2.4.1.tar.bz2 1361593 SHA256 d86688ed7907724750b501087a92a3417cb5b2dc81e06230d0eb2cdcf676b03e SHA512 e146d9853e265f4bb25b79fff7a0ab6ba2759367890498ea25edaff771df1b30c3a284b18e6fe5ae3f4c91a79f6b8d255bf331921c36a24fb0f4f554fa3cb848 WHIRLPOOL 5ac2b96fd8ec4baa98a0b35465e5c8bbfb3dffd48f2a95e31ef80e176d80e7ed09a5bcf6d945e8bed3d69d9cb21b14857dc56fd24bc5ce01ef9540729fd585d4 DIST psad-2.4.2.tar.bz2 1396459 SHA256 0490688c2d09428ee3b0f20a8aebaceb5993484c5e30176f883bea37272c9715 SHA512 1a28bec3eafcbc9a480680598724b7c99c1aaad2560ec44d00b002208d737b771017c3bbeb73ece10199740d1c9094b11036f8d04cb5b8c6f3860f2e0c0221ab WHIRLPOOL 17401c1ad846759f181f2f5d0619412f198aff5dd54fa8841a02757322ada67a9f6ae651b3b1cdbc4dbfbe2ed0570e56a74bb235794b24b0a187583383a94b0b DIST psad-2.4.3.tar.bz2 1395260 SHA256 e482de4602ab72dba868dcdd1078ad3645d49ab02a9eb116dd117c1a5a20f8c5 SHA512 8a25ef377e3f4f406c2179a42217110a670f1c0eb8e7991e32a99fd695ca1866218274e9aaeb48552e1bd9bd91b5fbf34b226d767c28f1db27f15b08fba2b0e8 WHIRLPOOL a1c06df2cd67baa3e2b519094ffcccd027aab47352c00cd3147a8d3db2366ce8cbea42c37f5e8adcd9c2532af215bd87ed5d925e376cf8d965725e4f5cf4c7ea +DIST psad-2.4.4.tar.bz2 1429113 SHA256 4a8dad05554f779c359fb1091b07b37219dd4321d85e162a5885a11efaec1901 SHA512 0437a489fcb54458dbb33e0139385e577a89db0c07bd872e4e56780feb8033080d59c99aeff419f3c94b22be8fb41995674749123d15f7d578cc8b0a77d7783f WHIRLPOOL 5ab47d1b23659058ed17f484d7b5aa2c2dad5412f06dfde2fc0032ae50c2d25e9ab9a05bcad29547dd9dc69b0268ec7601917d60d4178bf8032f661aa7ef742c diff --git a/net-firewall/psad/files/psad-2.2.4-var-run.patch b/net-firewall/psad/files/psad-2.2.4-var-run.patch index 78178a43d5e6..7e6c9d29081d 100644 --- a/net-firewall/psad/files/psad-2.2.4-var-run.patch +++ b/net-firewall/psad/files/psad-2.2.4-var-run.patch @@ -1,5 +1,11 @@ --- a/init-scripts/psad-init.gentoo +++ b/init-scripts/psad-init.gentoo +@@ -1,4 +1,4 @@ +-#!/sbin/runscript ++#!/sbin/openrc-run + ## Copyright 2006 Michael Rash + # Distributed under the terms of the GNU General Public License v2 + # Author: Michael Rash @@ -19,6 +19,10 @@ start() { diff --git a/net-firewall/psad/psad-2.4.4.ebuild b/net-firewall/psad/psad-2.4.4.ebuild new file mode 100644 index 000000000000..b5a2cbe07f83 --- /dev/null +++ b/net-firewall/psad/psad-2.4.4.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +#PERL_EXPORT_PHASE_FUNCTIONS=no +inherit perl-module toolchain-funcs + +DESCRIPTION="Port Scanning Attack Detection daemon" +SRC_URI="http://www.cipherdyne.org/psad/download/${P}.tar.bz2" +HOMEPAGE="http://www.cipherdyne.org/psad" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" + +DEPEND="virtual/perl-ExtUtils-MakeMaker" +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 +" +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 deps_subdir + for deps_subdir in IPTables-Parse IPTables-ChainMgr; do + cd "${S}"/deps/${deps_subdir} || die + SRC_PREP="no" perl-module_src_configure + done +} + +src_compile() { + tc-export CC + default + + local deps_subdir + for deps_subdir in IPTables-Parse IPTables-ChainMgr; do + cd "${S}"/deps/${deps_subdir} || die + perl-module_src_compile + done +} + +src_install() { + newbin pscan psad-pscan + + insinto /usr + 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 *.8 + + dodoc BENCHMARK CREDITS Change* FW_EXAMPLE_RULES FW_HELP README \ + README.SYSLOG SCAN_LOG + + insinto /etc/psad/snort_rules + doins deps/snort_rules/* + + local deps_subdir + for deps_subdir in IPTables-Parse IPTables-ChainMgr; do + cd "${S}"/deps/${deps_subdir} || die + perl-module_src_install + done +} |