1 |
battousai 08/09/12 05:03:42 |
2 |
|
3 |
Modified: ChangeLog psad-1.4.8.ebuild psad-2.0.6.ebuild |
4 |
Added: psad-2.1.4.ebuild |
5 |
Log: |
6 |
Bump to 2.1.4, fixing bug #236434. Minor syntax fixes in all versions. |
7 |
(Portage version: 2.2_rc8/cvs/Linux 2.6.27-rc4 x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.44 net-firewall/psad/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/psad/ChangeLog?rev=1.44&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/psad/ChangeLog?rev=1.44&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/psad/ChangeLog?r1=1.43&r2=1.44 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-firewall/psad/ChangeLog,v |
19 |
retrieving revision 1.43 |
20 |
retrieving revision 1.44 |
21 |
diff -u -r1.43 -r1.44 |
22 |
--- ChangeLog 6 May 2007 10:00:48 -0000 1.43 |
23 |
+++ ChangeLog 12 Sep 2008 05:03:41 -0000 1.44 |
24 |
@@ -1,6 +1,15 @@ |
25 |
# ChangeLog for net-firewall/psad |
26 |
-# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/psad/ChangeLog,v 1.43 2007/05/06 10:00:48 genone Exp $ |
28 |
+# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/psad/ChangeLog,v 1.44 2008/09/12 05:03:41 battousai Exp $ |
30 |
+ |
31 |
+*psad-2.1.4 (12 Sep 2008) |
32 |
+ |
33 |
+ 12 Sep 2008; Bryan D. Stine <battousai@g.o> psad-1.4.8.ebuild, |
34 |
+ psad-2.0.6.ebuild, +psad-2.1.4.ebuild: |
35 |
+ Version bump to 2.1.4. Dependencies, such as the bundled perl modules, |
36 |
+ have been moved into the deps/ folder in the srcdir, so adjusted the |
37 |
+ ebuild for that. Fixes bug #236434, thanks to Gustaf Ankarloo for the |
38 |
+ report. Also, fixed minor syntax errors in all versions. |
39 |
|
40 |
06 May 2007; Marius Mauch <genone@g.o> psad-1.4.8.ebuild, |
41 |
psad-2.0.6.ebuild: |
42 |
|
43 |
|
44 |
|
45 |
1.12 net-firewall/psad/psad-1.4.8.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/psad/psad-1.4.8.ebuild?rev=1.12&view=markup |
48 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/psad/psad-1.4.8.ebuild?rev=1.12&content-type=text/plain |
49 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/psad/psad-1.4.8.ebuild?r1=1.11&r2=1.12 |
50 |
|
51 |
Index: psad-1.4.8.ebuild |
52 |
=================================================================== |
53 |
RCS file: /var/cvsroot/gentoo-x86/net-firewall/psad/psad-1.4.8.ebuild,v |
54 |
retrieving revision 1.11 |
55 |
retrieving revision 1.12 |
56 |
diff -u -r1.11 -r1.12 |
57 |
--- psad-1.4.8.ebuild 13 Jul 2007 07:21:37 -0000 1.11 |
58 |
+++ psad-1.4.8.ebuild 12 Sep 2008 05:03:41 -0000 1.12 |
59 |
@@ -1,6 +1,6 @@ |
60 |
-# Copyright 1999-2007 Gentoo Foundation |
61 |
+# Copyright 1999-2008 Gentoo Foundation |
62 |
# Distributed under the terms of the GNU General Public License v2 |
63 |
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/psad/psad-1.4.8.ebuild,v 1.11 2007/07/13 07:21:37 mr_bones_ Exp $ |
64 |
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/psad/psad-1.4.8.ebuild,v 1.12 2008/09/12 05:03:41 battousai Exp $ |
65 |
|
66 |
inherit eutils perl-app |
67 |
|
68 |
@@ -25,23 +25,23 @@ |
69 |
net-misc/whois" |
70 |
|
71 |
src_compile() { |
72 |
- cd ${S}/Psad |
73 |
+ cd "${S}"/Psad |
74 |
SRC_PREP="no" perl-module_src_compile |
75 |
emake test |
76 |
|
77 |
- cd ${S}/Net-IPv4Addr |
78 |
+ cd "${S}"/Net-IPv4Addr |
79 |
SRC_PREP="no" perl-module_src_compile |
80 |
emake test |
81 |
|
82 |
- cd ${S}/IPTables-Parse |
83 |
+ cd "${S}"/IPTables-Parse |
84 |
SRC_PREP="no" perl-module_src_compile |
85 |
emake test |
86 |
|
87 |
- cd ${S}/IPTables-ChainMgr |
88 |
+ cd "${S}"/IPTables-ChainMgr |
89 |
SRC_PREP="no" perl-module_src_compile |
90 |
emake test |
91 |
|
92 |
- cd ${S} |
93 |
+ cd "${S}" |
94 |
# We'll use the C binaries |
95 |
emake || die "Make failed: daemons" |
96 |
} |
97 |
@@ -54,25 +54,25 @@ |
98 |
|
99 |
keepdir /var/lib/psad /var/log/psad /var/run/psad /var/lock/subsys/${PN} |
100 |
dodir /etc/psad |
101 |
- cd ${S}/Psad |
102 |
+ cd "${S}"/Psad |
103 |
perl-module_src_install |
104 |
|
105 |
- cd ${S}/Net-IPv4Addr |
106 |
+ cd "${S}"/Net-IPv4Addr |
107 |
perl-module_src_install |
108 |
|
109 |
- cd ${S}/IPTables-ChainMgr |
110 |
+ cd "${S}"/IPTables-ChainMgr |
111 |
perl-module_src_install |
112 |
|
113 |
- cd ${S}/IPTables-Parse |
114 |
+ cd "${S}"/IPTables-Parse |
115 |
perl-module_src_install |
116 |
|
117 |
- cd ${S} |
118 |
+ cd "${S}" |
119 |
insinto /usr |
120 |
dosbin kmsgsd psad psadwatchd |
121 |
newsbin fwcheck_psad.pl fwcheck_psad |
122 |
dobin pscan |
123 |
|
124 |
- cd ${S} |
125 |
+ cd "${S}" |
126 |
|
127 |
fix_psad_conf |
128 |
|
129 |
@@ -81,23 +81,23 @@ |
130 |
doins psad_* |
131 |
doins auto_dl icmp_types posf signatures pf.os |
132 |
|
133 |
- cd ${S}/init-scripts |
134 |
+ cd "${S}"/init-scripts |
135 |
newinitd psad-init.gentoo psad |
136 |
|
137 |
- cd ${S}/snort_rules |
138 |
+ cd "${S}"/snort_rules |
139 |
dodir /etc/psad/snort_rules |
140 |
insinto /etc/psad/snort_rules |
141 |
doins *.rules |
142 |
|
143 |
- cd ${S} |
144 |
- dodoc BENCHMARK CREDITS Change* FW_EXAMPLE_RULES README LICENSE SCAN_LOG |
145 |
+ cd "${S}" |
146 |
+ dodoc BENCHMARK CREDITS Change* FW_EXAMPLE_RULES README SCAN_LOG |
147 |
} |
148 |
|
149 |
pkg_postinst() { |
150 |
- if [ ! -p ${ROOT}/var/lib/psad/psadfifo ] |
151 |
+ if [ ! -p "${ROOT}"/var/lib/psad/psadfifo ] |
152 |
then |
153 |
ebegin "Creating syslog FIFO for PSAD" |
154 |
- mknod -m 600 ${ROOT}/var/lib/psad/psadfifo p |
155 |
+ mknod -m 600 "${ROOT}"/var/lib/psad/psadfifo p |
156 |
eend $? |
157 |
fi |
158 |
|
159 |
|
160 |
|
161 |
|
162 |
1.6 net-firewall/psad/psad-2.0.6.ebuild |
163 |
|
164 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/psad/psad-2.0.6.ebuild?rev=1.6&view=markup |
165 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/psad/psad-2.0.6.ebuild?rev=1.6&content-type=text/plain |
166 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/psad/psad-2.0.6.ebuild?r1=1.5&r2=1.6 |
167 |
|
168 |
Index: psad-2.0.6.ebuild |
169 |
=================================================================== |
170 |
RCS file: /var/cvsroot/gentoo-x86/net-firewall/psad/psad-2.0.6.ebuild,v |
171 |
retrieving revision 1.5 |
172 |
retrieving revision 1.6 |
173 |
diff -u -r1.5 -r1.6 |
174 |
--- psad-2.0.6.ebuild 13 Jul 2007 07:21:37 -0000 1.5 |
175 |
+++ psad-2.0.6.ebuild 12 Sep 2008 05:03:41 -0000 1.6 |
176 |
@@ -1,6 +1,6 @@ |
177 |
-# Copyright 1999-2007 Gentoo Foundation |
178 |
+# Copyright 1999-2008 Gentoo Foundation |
179 |
# Distributed under the terms of the GNU General Public License v2 |
180 |
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/psad/psad-2.0.6.ebuild,v 1.5 2007/07/13 07:21:37 mr_bones_ Exp $ |
181 |
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/psad/psad-2.0.6.ebuild,v 1.6 2008/09/12 05:03:41 battousai Exp $ |
182 |
|
183 |
inherit eutils perl-app |
184 |
|
185 |
@@ -25,19 +25,19 @@ |
186 |
net-misc/whois" |
187 |
|
188 |
src_compile() { |
189 |
- cd ${S}/Net-IPv4Addr |
190 |
+ cd "${S}"/Net-IPv4Addr |
191 |
SRC_PREP="no" perl-module_src_compile |
192 |
emake test |
193 |
|
194 |
- cd ${S}/IPTables-Parse |
195 |
+ cd "${S}"/IPTables-Parse |
196 |
SRC_PREP="no" perl-module_src_compile |
197 |
emake test |
198 |
|
199 |
- cd ${S}/IPTables-ChainMgr |
200 |
+ cd "${S}"/IPTables-ChainMgr |
201 |
SRC_PREP="no" perl-module_src_compile |
202 |
emake test |
203 |
|
204 |
- cd ${S} |
205 |
+ cd "${S}" |
206 |
# We'll use the C binaries |
207 |
emake || die "Make failed: daemons" |
208 |
} |
209 |
@@ -51,22 +51,22 @@ |
210 |
keepdir /var/lib/psad /var/log/psad /var/run/psad /var/lock/subsys/${PN} |
211 |
dodir /etc/psad |
212 |
|
213 |
- cd ${S}/Net-IPv4Addr |
214 |
+ cd "${S}"/Net-IPv4Addr |
215 |
perl-module_src_install |
216 |
|
217 |
- cd ${S}/IPTables-ChainMgr |
218 |
+ cd "${S}"/IPTables-ChainMgr |
219 |
perl-module_src_install |
220 |
|
221 |
- cd ${S}/IPTables-Parse |
222 |
+ cd "${S}"/IPTables-Parse |
223 |
perl-module_src_install |
224 |
|
225 |
- cd ${S} |
226 |
+ cd "${S}" |
227 |
insinto /usr |
228 |
dosbin kmsgsd psad psadwatchd |
229 |
newsbin fwcheck_psad.pl fwcheck_psad |
230 |
dobin pscan |
231 |
|
232 |
- cd ${S} |
233 |
+ cd "${S}" |
234 |
|
235 |
fix_psad_conf |
236 |
|
237 |
@@ -75,23 +75,23 @@ |
238 |
doins psad_* |
239 |
doins auto_dl icmp_types ip_options posf signatures pf.os |
240 |
|
241 |
- cd ${S}/init-scripts |
242 |
+ cd "${S}"/init-scripts |
243 |
newinitd psad-init.gentoo psad |
244 |
|
245 |
- cd ${S}/snort_rules |
246 |
+ cd "${S}"/snort_rules |
247 |
dodir /etc/psad/snort_rules |
248 |
insinto /etc/psad/snort_rules |
249 |
doins *.rules |
250 |
|
251 |
- cd ${S} |
252 |
- dodoc BENCHMARK CREDITS Change* FW_EXAMPLE_RULES README LICENSE SCAN_LOG |
253 |
+ cd "${S}" |
254 |
+ dodoc BENCHMARK CREDITS Change* FW_EXAMPLE_RULES README SCAN_LOG |
255 |
} |
256 |
|
257 |
pkg_postinst() { |
258 |
- if [ ! -p ${ROOT}/var/lib/psad/psadfifo ] |
259 |
+ if [ ! -p "${ROOT}"/var/lib/psad/psadfifo ] |
260 |
then |
261 |
ebegin "Creating syslog FIFO for PSAD" |
262 |
- mknod -m 600 ${ROOT}/var/lib/psad/psadfifo p |
263 |
+ mknod -m 600 "${ROOT}"/var/lib/psad/psadfifo p |
264 |
eend $? |
265 |
fi |
266 |
|
267 |
|
268 |
|
269 |
|
270 |
1.1 net-firewall/psad/psad-2.1.4.ebuild |
271 |
|
272 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/psad/psad-2.1.4.ebuild?rev=1.1&view=markup |
273 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/psad/psad-2.1.4.ebuild?rev=1.1&content-type=text/plain |
274 |
|
275 |
Index: psad-2.1.4.ebuild |
276 |
=================================================================== |
277 |
# Copyright 1999-2008 Gentoo Foundation |
278 |
# Distributed under the terms of the GNU General Public License v2 |
279 |
# $Header: /var/cvsroot/gentoo-x86/net-firewall/psad/psad-2.1.4.ebuild,v 1.1 2008/09/12 05:03:41 battousai Exp $ |
280 |
|
281 |
inherit eutils perl-app |
282 |
|
283 |
IUSE="" |
284 |
|
285 |
DESCRIPTION="Port Scanning Attack Detection daemon" |
286 |
SRC_URI="http://www.cipherdyne.org/psad/download/${P}.tar.bz2" |
287 |
HOMEPAGE="http://www.cipherdyne.org/psad" |
288 |
|
289 |
SLOT="0" |
290 |
LICENSE="GPL-2" |
291 |
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" |
292 |
|
293 |
DEPEND="${DEPEND} |
294 |
dev-lang/perl" |
295 |
|
296 |
RDEPEND="virtual/logger |
297 |
dev-perl/Unix-Syslog |
298 |
dev-perl/Date-Calc |
299 |
virtual/mailx |
300 |
net-firewall/iptables |
301 |
net-misc/whois" |
302 |
|
303 |
src_compile() { |
304 |
cd "${S}"/deps/Net-IPv4Addr |
305 |
SRC_PREP="no" perl-module_src_compile |
306 |
emake test |
307 |
|
308 |
cd "${S}"/deps/IPTables-Parse |
309 |
SRC_PREP="no" perl-module_src_compile |
310 |
emake test |
311 |
|
312 |
cd "${S}"/deps/IPTables-ChainMgr |
313 |
SRC_PREP="no" perl-module_src_compile |
314 |
emake test |
315 |
|
316 |
cd "${S}" |
317 |
# We'll use the C binaries |
318 |
emake || die "Make failed: daemons" |
319 |
} |
320 |
|
321 |
src_install() { |
322 |
local myhostname= |
323 |
local mydomain= |
324 |
|
325 |
doman *.8 |
326 |
|
327 |
keepdir /var/lib/psad /var/log/psad /var/run/psad /var/lock/subsys/${PN} |
328 |
dodir /etc/psad |
329 |
|
330 |
cd "${S}"/deps/Net-IPv4Addr |
331 |
perl-module_src_install |
332 |
|
333 |
cd "${S}"/deps/IPTables-ChainMgr |
334 |
perl-module_src_install |
335 |
|
336 |
cd "${S}"/deps/IPTables-Parse |
337 |
perl-module_src_install |
338 |
|
339 |
cd "${S}" |
340 |
insinto /usr |
341 |
dosbin kmsgsd psad psadwatchd |
342 |
newsbin fwcheck_psad.pl fwcheck_psad |
343 |
dobin pscan |
344 |
|
345 |
cd "${S}" |
346 |
|
347 |
fix_psad_conf |
348 |
|
349 |
insinto /etc/psad |
350 |
doins *.conf |
351 |
doins psad_* |
352 |
doins auto_dl icmp_types ip_options posf signatures pf.os |
353 |
|
354 |
cd "${S}"/init-scripts |
355 |
newinitd psad-init.gentoo psad |
356 |
|
357 |
cd "${S}"/deps/snort_rules |
358 |
dodir /etc/psad/snort_rules |
359 |
insinto /etc/psad/snort_rules |
360 |
doins *.rules |
361 |
|
362 |
cd "${S}" |
363 |
dodoc BENCHMARK CREDITS Change* FW_EXAMPLE_RULES README SCAN_LOG |
364 |
} |
365 |
|
366 |
pkg_postinst() { |
367 |
if [ ! -p "${ROOT}"/var/lib/psad/psadfifo ] |
368 |
then |
369 |
ebegin "Creating syslog FIFO for PSAD" |
370 |
mknod -m 600 "${ROOT}"/var/lib/psad/psadfifo p |
371 |
eend $? |
372 |
fi |
373 |
|
374 |
echo |
375 |
elog "Please be sure to edit /etc/psad/psad.conf to reflect your system's" |
376 |
elog "configuration or it may not work correctly or start up. Specifically, check" |
377 |
elog "the validity of the HOSTNAME setting and replace the EMAIL_ADDRESSES and" |
378 |
elog "HOME_NET settings at the least." |
379 |
elog |
380 |
if has_version ">=app-admin/syslog-ng-0.0.0" |
381 |
then |
382 |
ewarn "You appear to have installed syslog-ng. If you are using syslog-ng as your" |
383 |
ewarn "default system logger, please change the SYSLOG_DAEMON entry in" |
384 |
ewarn "/etc/psad/psad.conf to the following (per examples in psad.conf):" |
385 |
ewarn " SYSLOG_DAEMON syslog-ng;" |
386 |
ewarn |
387 |
fi |
388 |
if has_version ">=app-admin/sysklogd-0.0.0" |
389 |
then |
390 |
elog "You have sysklogd installed. If this is your default system logger, no" |
391 |
elog "special configuration is needed. If it is not, please set SYSLOG_DAEMON" |
392 |
elog "in /etc/psad/psad.conf accordingly." |
393 |
elog |
394 |
fi |
395 |
if has_version ">=app-admin/metalog-0.0" |
396 |
then |
397 |
ewarn "You appear to have installed metalog. If you are using metalog as your" |
398 |
ewarn "default system logger, please change the SYSLOG_DAEMON entry in" |
399 |
ewarn "/etc/psad/psad.conf to the following (per examples in psad.conf):" |
400 |
ewarn " SYSLOG_DAEMON metalog" |
401 |
fi |
402 |
|
403 |
ewarn "NOTE: You need firewall rules to log dropped packets. Otherwise PSAD will" |
404 |
ewarn "not be aware of any port scan attacks. Please see FW_EXAMPLE_RULES in the" |
405 |
ewarn "psad documentation directory (ie /usr/share/doc/${P}) for the criteria and" |
406 |
ewarn "sample rules." |
407 |
} |
408 |
|
409 |
fix_psad_conf() { |
410 |
cp psad.conf psad.conf.orig |
411 |
|
412 |
# Ditch the _CHANGEME_ for hostname, substituting in our real hostname |
413 |
[ -e /etc/hostname ] && myhostname="$(< /etc/hostname)" |
414 |
[ "${myhostname}" == "" ] && myhostname="$HOSTNAME" |
415 |
mydomain=".$(grep ^domain /etc/resolv.conf | cut -d" " -f2)" |
416 |
sed -i "s:HOSTNAME\(.\+\)\_CHANGEME\_;:HOSTNAME\1${myhostname}${mydomain};:" psad.conf || die "fix_psad_conf failed" |
417 |
|
418 |
# Fix up paths |
419 |
sed -i "s:/sbin/syslogd:/usr/sbin/syslogd:g" psad.conf || die "fix_psad_conf failed" |
420 |
sed -i "s:/sbin/syslog-ng:/usr/sbin/syslog-ng:g" psad.conf || die "fix_psad_conf failed" |
421 |
sed -i "s:/usr/bin/whois_psad:/usr/bin/whois:g" psad.conf || die "fix_psad_conf failed" |
422 |
} |