Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-firewall/psad/
Date: Wed, 16 Dec 2015 08:15:28
Message-Id: 1450252437.0d94a5093f86296e8a7a4e541a471f8082744581.jer@gentoo
1 commit: 0d94a5093f86296e8a7a4e541a471f8082744581
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 16 07:53:57 2015 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 16 07:53:57 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d94a509
7
8 net-firewall/psad: Version bump.
9
10 Package-Manager: portage-2.2.26
11
12 net-firewall/psad/Manifest | 1 +
13 net-firewall/psad/psad-2.4.2.ebuild | 91 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 92 insertions(+)
15
16 diff --git a/net-firewall/psad/Manifest b/net-firewall/psad/Manifest
17 index 79ec326..ed51477 100644
18 --- a/net-firewall/psad/Manifest
19 +++ b/net-firewall/psad/Manifest
20 @@ -1,2 +1,3 @@
21 DIST psad-2.2.5.tar.bz2 1243987 SHA256 736d446266227cb65511d792c85224573c95ea4dc3bde3d5c65bc19084f57452 SHA512 195a06420cf821d182a5422705ba2d407fd35f23887430e61925cad0eada7d20e2416eaf6317857a5aec2f1264a280a7e0128cc301f17dcf20cf833a9f0efb6e WHIRLPOOL fac4797e0a399d4f5edf2179c21d37791d184ee1e334b9b8fb2707405afc10ca0c0d4ab43cd274f34cf8ba9453189066b1d46b955d0533fa357e376ef3817f1f
22 DIST psad-2.4.1.tar.bz2 1361593 SHA256 d86688ed7907724750b501087a92a3417cb5b2dc81e06230d0eb2cdcf676b03e SHA512 e146d9853e265f4bb25b79fff7a0ab6ba2759367890498ea25edaff771df1b30c3a284b18e6fe5ae3f4c91a79f6b8d255bf331921c36a24fb0f4f554fa3cb848 WHIRLPOOL 5ac2b96fd8ec4baa98a0b35465e5c8bbfb3dffd48f2a95e31ef80e176d80e7ed09a5bcf6d945e8bed3d69d9cb21b14857dc56fd24bc5ce01ef9540729fd585d4
23 +DIST psad-2.4.2.tar.bz2 1396459 SHA256 0490688c2d09428ee3b0f20a8aebaceb5993484c5e30176f883bea37272c9715 SHA512 1a28bec3eafcbc9a480680598724b7c99c1aaad2560ec44d00b002208d737b771017c3bbeb73ece10199740d1c9094b11036f8d04cb5b8c6f3860f2e0c0221ab WHIRLPOOL 17401c1ad846759f181f2f5d0619412f198aff5dd54fa8841a02757322ada67a9f6ae651b3b1cdbc4dbfbe2ed0570e56a74bb235794b24b0a187583383a94b0b
24
25 diff --git a/net-firewall/psad/psad-2.4.2.ebuild b/net-firewall/psad/psad-2.4.2.ebuild
26 new file mode 100644
27 index 0000000..dcf0bcd
28 --- /dev/null
29 +++ b/net-firewall/psad/psad-2.4.2.ebuild
30 @@ -0,0 +1,91 @@
31 +# Copyright 1999-2015 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=5
36 +#PERL_EXPORT_PHASE_FUNCTIONS=no
37 +inherit eutils perl-module toolchain-funcs
38 +
39 +DESCRIPTION="Port Scanning Attack Detection daemon"
40 +SRC_URI="http://www.cipherdyne.org/psad/download/${P}.tar.bz2"
41 +HOMEPAGE="http://www.cipherdyne.org/psad"
42 +
43 +SLOT="0"
44 +LICENSE="GPL-2"
45 +KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
46 +
47 +DEPEND="virtual/perl-ExtUtils-MakeMaker"
48 +RDEPEND="
49 + dev-perl/Bit-Vector
50 + dev-perl/Date-Calc
51 + dev-perl/NetAddr-IP
52 + dev-perl/Unix-Syslog
53 + net-firewall/iptables
54 + net-misc/whois
55 + virtual/logger
56 + virtual/mailx
57 + virtual/perl-Storable
58 +"
59 +
60 +src_prepare() {
61 + epatch "${FILESDIR}"/${PN}-2.2.4-var-run.patch
62 +
63 + sed -i \
64 + -e 's|/usr/bin/gcc|$(CC)|g' \
65 + -e 's|-O|$(CFLAGS) $(LDFLAGS)|g' \
66 + Makefile || die
67 + # Fix up default paths
68 + sed -i \
69 + -e "s:/usr/bin/whois_psad:/usr/bin/whois:g" \
70 + psad.conf || die
71 +}
72 +
73 +src_configure() {
74 + default
75 +
76 + local deps_subdir
77 + for deps_subdir in IPTables-Parse IPTables-ChainMgr; do
78 + cd "${S}"/deps/${deps_subdir} || die
79 + SRC_PREP="no" perl-module_src_configure
80 + done
81 +}
82 +
83 +src_compile() {
84 + tc-export CC
85 + default
86 +
87 + local deps_subdir
88 + for deps_subdir in IPTables-Parse IPTables-ChainMgr; do
89 + cd "${S}"/deps/${deps_subdir} || die
90 + perl-module_src_compile
91 + done
92 +}
93 +
94 +src_install() {
95 + newbin pscan psad-pscan
96 +
97 + insinto /usr
98 + dosbin kmsgsd psad psadwatchd
99 + newsbin fwcheck_psad.pl fwcheck_psad
100 +
101 + insinto /etc/psad
102 + doins \
103 + *.conf auto_dl icmp{,6}_types ip_options psad_* pf.os posf \
104 + protocols signatures
105 +
106 + newinitd init-scripts/psad-init.gentoo psad
107 +
108 + doman *.8
109 +
110 + dodoc BENCHMARK CREDITS Change* FW_EXAMPLE_RULES FW_HELP README \
111 + README.SYSLOG SCAN_LOG
112 +
113 + insinto /etc/psad/snort_rules
114 + doins deps/snort_rules/*
115 +
116 + local deps_subdir
117 + for deps_subdir in IPTables-Parse IPTables-ChainMgr; do
118 + cd "${S}"/deps/${deps_subdir} || die
119 + perl-module_src_install
120 + done
121 +}