summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephanie J. Lockwood-Childs <wormo@gentoo.org>2009-08-12 07:06:13 +0000
committerStephanie J. Lockwood-Childs <wormo@gentoo.org>2009-08-12 07:06:13 +0000
commit864aacd1085312294255ea709aa87b261d4a7be9 (patch)
treedcd6ade29a9756c55581b2b8031f9a2b424ea0d1 /app-admin/ulogd/files
parentVersion bump. (bug #279250) (diff)
downloadhistorical-864aacd1085312294255ea709aa87b261d4a7be9.tar.gz
historical-864aacd1085312294255ea709aa87b261d4a7be9.tar.bz2
historical-864aacd1085312294255ea709aa87b261d4a7be9.zip
Install logrotate file (thanks to Christian Bricart),
add SYSLOG module to default config (thanks to Dean Hall, bug #235842), make sure ulogd user is able to read ulogd.conf Package-Manager: portage-2.1.6.13/cvs/Linux x86_64
Diffstat (limited to 'app-admin/ulogd/files')
-rw-r--r--app-admin/ulogd/files/ulogd-1.24-syslog-and-logrotate.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/app-admin/ulogd/files/ulogd-1.24-syslog-and-logrotate.patch b/app-admin/ulogd/files/ulogd-1.24-syslog-and-logrotate.patch
new file mode 100644
index 000000000000..b3410f6f936e
--- /dev/null
+++ b/app-admin/ulogd/files/ulogd-1.24-syslog-and-logrotate.patch
@@ -0,0 +1,34 @@
+diff -u ulogd-1.24.orig/ulogd.conf.in ulogd-1.24/ulogd.conf.in
+--- ulogd-1.24.orig/ulogd.conf.in 2009-08-11 22:56:31.000000000 -0700
++++ ulogd-1.24/ulogd.conf.in 2009-08-11 23:07:35.000000000 -0700
+@@ -50,7 +50,10 @@
+ #plugin="@libdir@/ulogd_PGSQL.so"
+ #plugin="@libdir@/ulogd_SQLITE3.so"
+ #plugin="@libdir@/ulogd_PCAP.so"
++#plugin="@libdir@/ulogd_SYSLOG.so"
+
++## Note: if you change the paths of log files from defaults, you probably
++## will want to update paths in /etc/logrotate.d/ulogd to match
+
+ [LOGEMU]
+ file="/var/log/ulogd/ulogd.syslogemu"
+@@ -83,3 +86,6 @@
+ file="/var/log/ulogd/ulogd.pcap"
+ sync=1
+
++[SYSLOG]
++facility=LOG_DAEMON
++level=LOG_INFO
+diff -u ulogd-1.24.orig/ulogd.logrotate ulogd-1.24/ulogd.logrotate
+--- ulogd-1.24.orig/ulogd.logrotate 2009-08-11 22:56:32.000000000 -0700
++++ ulogd-1.24/ulogd.logrotate 2009-08-11 23:06:26.000000000 -0700
+@@ -1,6 +1,8 @@
+-/var/log/ulogd.log /var/log/ulogd.syslogemu /var/log/ulogd.pktlog /var/log/ulogd.pcap {
++/var/log/ulogd/ulogd.log /var/log/ulogd/ulogd.syslogemu /var/log/ulogd/ulogd.pktlog /var/log/ulogd/ulogd.pcap {
+ missingok
+ sharedscripts
++ weekly
++ compress
+ postrotate
+ /bin/killall -HUP ulogd 2> /dev/null || true
+ endscript