summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Stine <battousai@gentoo.org>2004-03-23 19:12:58 +0000
committerBryan Stine <battousai@gentoo.org>2004-03-23 19:12:58 +0000
commit91e2ab7d80fb95342bb4acdd7c70e88656b2c864 (patch)
tree1b9992ca962e5cefee8120434ac041af93976a3c /net-firewall/psad/files
parentDitching old stuff, bumping 1.3.1 to stable (Manifest recommit) (diff)
downloadgentoo-2-91e2ab7d80fb95342bb4acdd7c70e88656b2c864.tar.gz
gentoo-2-91e2ab7d80fb95342bb4acdd7c70e88656b2c864.tar.bz2
gentoo-2-91e2ab7d80fb95342bb4acdd7c70e88656b2c864.zip
Expunging old metalog patch.
Diffstat (limited to 'net-firewall/psad/files')
-rw-r--r--net-firewall/psad/files/psad-1.2.4-metalog.patch59
1 files changed, 0 insertions, 59 deletions
diff --git a/net-firewall/psad/files/psad-1.2.4-metalog.patch b/net-firewall/psad/files/psad-1.2.4-metalog.patch
deleted file mode 100644
index 558ce59a0b01..000000000000
--- a/net-firewall/psad/files/psad-1.2.4-metalog.patch
+++ /dev/null
@@ -1,59 +0,0 @@
---- /root/psad 2003-10-26 16:49:31.000000000 +0100
-+++ ./psad 2003-10-26 18:53:43.000000000 +0100
-@@ -3618,5 +3618,5 @@
-
- die ' ** No system logger config file could be found.'
-- unless (-e '/etc/syslog.conf' or -e '/etc/syslog-ng/syslog-ng.conf');
-+ unless (-e '/etc/syslog.conf' or -e '/etc/syslog-ng/syslog-ng.conf' or -e '/etc/metalog/metalog.conf');
-
- ### look for psadfifo in some system logger config file
-@@ -3696,4 +3696,49 @@
- }
- }
-+# Metalog support added by Dennis Freise <cat@final-frontier.ath.cx>
-+ if (-e '/etc/metalog/metalog.conf') {
-+ unless (-e '/etc/metalog/metalog.conf.orig') {
-+ copy '/etc/metalog/metalog.conf',
-+ '/etc/metalog/metalog.conf.orig';
-+ }
-+ open RS, '< /etc/metalog/metalog.conf' or
-+ die " ** Unable to open /etc/metalog/metalog.conf: $!\n";
-+ my @lines = <RS>;
-+ close RS;
-+
-+ my $found = 0;
-+ for my $line (@lines) {
-+ if ($line =~ m/psadpipe.sh/) {
-+ $found = 1;
-+ last;
-+ }
-+ }
-+ unless ($found) {
-+ open METALOG, '> /etc/metalog/metalog.conf' or
-+ die " ** Unable to open /etc/metalog/metalog.conf: $!";
-+
-+ print METALOG "\n";
-+ print METALOG "\nPSAD :\n",
-+ " facility = \"kern\"\n";
-+ print METALOG ' command = ',
-+ "\"/usr/sbin/psadpipe.sh\"\n";
-+ close METALOG;
-+ &Psad::psyslog('psad', '.. reconfiguring metalog to write ' .
-+ "kern-facility messages to /usr/sbin/psadpipe.sh");
-+
-+ open PIPESCRIPT, '> /usr/sbin/psadpipe.sh' or
-+ die " ** Unable to open /usr/sbin/psadpipe.sh: $!";
-+ print PIPESCRIPT "#!/bin/sh\n\n";
-+ print PIPESCRIPT "echo \"\$3\" >> $config{'PSAD_FIFO'}\n";
-+ close PIPESCRIPT;
-+ chmod 0700, '/usr/sbin/psadpipe.sh';
-+ &Psad::psyslog('psad', '.. generated /usr/sbin/psadpipe.sh which writes ' .
-+ "to $config{'PSAD_FIFO'}");
-+
-+# Metalog seems to simply die on SIGHUP and SIGALRM, and I found no signal or option to reload it's config... :-(
-+ die "All files written. You have to manually restart metalog! When done, start psad again.";
-+# system "$cmds{'killall'} -HUP metalog";
-+ }
-+ }
-
- ### make sure the permissions on these files is 0600