summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2015-01-20 17:20:27 +0000
committerJeroen Roovers <jer@gentoo.org>2015-01-20 17:20:27 +0000
commit7aeaf8752b681fce50d54793378623cfea1d3109 (patch)
tree562d8757893a3a1c25b9eb58b85a46cbc5107877 /net-firewall
parentVersion bump. (diff)
downloadgentoo-2-7aeaf8752b681fce50d54793378623cfea1d3109.tar.gz
gentoo-2-7aeaf8752b681fce50d54793378623cfea1d3109.tar.bz2
gentoo-2-7aeaf8752b681fce50d54793378623cfea1d3109.zip
Version bump.
(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Diffstat (limited to 'net-firewall')
-rw-r--r--net-firewall/psad/ChangeLog10
-rw-r--r--net-firewall/psad/files/psad-2.2.4-var-run.patch13
-rw-r--r--net-firewall/psad/psad-2.2.4.ebuild90
3 files changed, 111 insertions, 2 deletions
diff --git a/net-firewall/psad/ChangeLog b/net-firewall/psad/ChangeLog
index 09930b2d65ac..e73b2066aac6 100644
--- a/net-firewall/psad/ChangeLog
+++ b/net-firewall/psad/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-firewall/psad
-# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/psad/ChangeLog,v 1.82 2014/11/03 10:50:11 jer Exp $
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/psad/ChangeLog,v 1.83 2015/01/20 17:20:27 jer Exp $
+
+*psad-2.2.4 (20 Jan 2015)
+
+ 20 Jan 2015; Jeroen Roovers <jer@gentoo.org> +psad-2.2.4.ebuild,
+ +files/psad-2.2.4-var-run.patch:
+ Version bump.
03 Nov 2014; Jeroen Roovers <jer@gentoo.org> -psad-2.2.2-r1.ebuild:
Old.
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
new file mode 100644
index 000000000000..78178a43d5e6
--- /dev/null
+++ b/net-firewall/psad/files/psad-2.2.4-var-run.patch
@@ -0,0 +1,13 @@
+--- a/init-scripts/psad-init.gentoo
++++ b/init-scripts/psad-init.gentoo
+@@ -19,6 +19,10 @@
+
+ start() {
+ checkconfig || return 1
++ checkpath -q -d -m 755 -o root:root /run/psad
++ checkpath -q -d -m 755 -o root:root /var/lib/psad
++ checkpath -q -d -m 755 -o root:root /var/log/psad
++ [ -p /var/lib/psad/psadfifo ] || mknod -m 600 /var/lib/psad/psadfifo p
+
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon \
diff --git a/net-firewall/psad/psad-2.2.4.ebuild b/net-firewall/psad/psad-2.2.4.ebuild
new file mode 100644
index 000000000000..a1218078749b
--- /dev/null
+++ b/net-firewall/psad/psad-2.2.4.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/psad/psad-2.2.4.ebuild,v 1.1 2015/01/20 17:20:27 jer Exp $
+
+EAPI=5
+#PERL_EXPORT_PHASE_FUNCTIONS=no
+inherit eutils 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
+"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.2.4-var-run.patch
+
+ 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 README 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
+}