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: Tue, 20 Jun 2017 11:58:43
Message-Id: 1497959866.6140fa2a38291aae25ddf798fb32e824110d9d25.jer@gentoo
1 commit: 6140fa2a38291aae25ddf798fb32e824110d9d25
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 20 11:57:46 2017 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 20 11:57:46 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6140fa2a
7
8 net-firewall/psad: Version bump.
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 net-firewall/psad/Manifest | 1 +
13 net-firewall/psad/psad-2.4.5.ebuild | 93 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 94 insertions(+)
15
16 diff --git a/net-firewall/psad/Manifest b/net-firewall/psad/Manifest
17 index 6757081ca7d..61a04f9e7ef 100644
18 --- a/net-firewall/psad/Manifest
19 +++ b/net-firewall/psad/Manifest
20 @@ -1,3 +1,4 @@
21 DIST psad-2.2.5.tar.bz2 1243987 SHA256 736d446266227cb65511d792c85224573c95ea4dc3bde3d5c65bc19084f57452 SHA512 195a06420cf821d182a5422705ba2d407fd35f23887430e61925cad0eada7d20e2416eaf6317857a5aec2f1264a280a7e0128cc301f17dcf20cf833a9f0efb6e WHIRLPOOL fac4797e0a399d4f5edf2179c21d37791d184ee1e334b9b8fb2707405afc10ca0c0d4ab43cd274f34cf8ba9453189066b1d46b955d0533fa357e376ef3817f1f
22 DIST psad-2.4.3.tar.bz2 1395260 SHA256 e482de4602ab72dba868dcdd1078ad3645d49ab02a9eb116dd117c1a5a20f8c5 SHA512 8a25ef377e3f4f406c2179a42217110a670f1c0eb8e7991e32a99fd695ca1866218274e9aaeb48552e1bd9bd91b5fbf34b226d767c28f1db27f15b08fba2b0e8 WHIRLPOOL a1c06df2cd67baa3e2b519094ffcccd027aab47352c00cd3147a8d3db2366ce8cbea42c37f5e8adcd9c2532af215bd87ed5d925e376cf8d965725e4f5cf4c7ea
23 DIST psad-2.4.4.tar.bz2 1429113 SHA256 4a8dad05554f779c359fb1091b07b37219dd4321d85e162a5885a11efaec1901 SHA512 0437a489fcb54458dbb33e0139385e577a89db0c07bd872e4e56780feb8033080d59c99aeff419f3c94b22be8fb41995674749123d15f7d578cc8b0a77d7783f WHIRLPOOL 5ab47d1b23659058ed17f484d7b5aa2c2dad5412f06dfde2fc0032ae50c2d25e9ab9a05bcad29547dd9dc69b0268ec7601917d60d4178bf8032f661aa7ef742c
24 +DIST psad-2.4.5.tar.bz2 1631602 SHA256 2de1115325bd7c95d32ce0bdee5028c43a86c2893203b5fc1ba6bdfe8ba182d1 SHA512 6466cf3191092672557fb6c044c6126290f1d89aea37a20aad1b3eb148b5b8be5bc2cf3700938b91263d7403f776613f304bd491c24a7e16b0975b81f24481a0 WHIRLPOOL 87bbd23cf4419e6a85cbb4fdb7a08dfe3e1aeb10c1542766d4b708a837182dea2859d5db982f2d91a67331b80c2e6728391917964f6dd555b70c3a38f7e7d607
25
26 diff --git a/net-firewall/psad/psad-2.4.5.ebuild b/net-firewall/psad/psad-2.4.5.ebuild
27 new file mode 100644
28 index 00000000000..fa26cc018d8
29 --- /dev/null
30 +++ b/net-firewall/psad/psad-2.4.5.ebuild
31 @@ -0,0 +1,93 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +#PERL_EXPORT_PHASE_FUNCTIONS=no
37 +inherit 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 +PATCHES=(
60 + "${FILESDIR}"/${PN}-2.2.4-var-run.patch
61 +)
62 +
63 +src_prepare() {
64 + default
65 +
66 + sed -i \
67 + -e 's|/usr/bin/gcc|$(CC)|g' \
68 + -e 's|-O|$(CFLAGS) $(LDFLAGS)|g' \
69 + Makefile || die
70 + # Fix up default paths
71 + sed -i \
72 + -e "s:/usr/bin/whois_psad:/usr/bin/whois:g" \
73 + psad.conf || die
74 +}
75 +
76 +src_configure() {
77 + default
78 +
79 + local deps_subdir
80 + for deps_subdir in IPTables-Parse IPTables-ChainMgr; do
81 + cd "${S}"/deps/${deps_subdir} || die
82 + SRC_PREP="no" perl-module_src_configure
83 + done
84 +}
85 +
86 +src_compile() {
87 + tc-export CC
88 + default
89 +
90 + local deps_subdir
91 + for deps_subdir in IPTables-Parse IPTables-ChainMgr; do
92 + cd "${S}"/deps/${deps_subdir} || die
93 + perl-module_src_compile
94 + done
95 +}
96 +
97 +src_install() {
98 + newbin misc/pscan psad-pscan
99 +
100 + insinto /usr
101 + dosbin kmsgsd psad psadwatchd
102 + newsbin fwcheck_psad.pl fwcheck_psad
103 +
104 + insinto /etc/psad
105 + doins \
106 + *.conf auto_dl icmp{,6}_types ip_options psad_* pf.os posf \
107 + protocols signatures
108 +
109 + newinitd init-scripts/psad-init.gentoo psad
110 +
111 + doman doc/*.8
112 +
113 + dodoc doc/BENCHMARK CREDITS Change* doc/FW_EXAMPLE_RULES README \
114 + doc/README.SYSLOG doc/SCAN_LOG
115 +
116 + insinto /etc/psad/snort_rules
117 + doins deps/snort_rules/*
118 +
119 + local deps_subdir
120 + for deps_subdir in IPTables-Parse IPTables-ChainMgr; do
121 + cd "${S}"/deps/${deps_subdir} || die
122 + perl-module_src_install
123 + done
124 +}