Hello, here is a new version of the patch, in the first was a small typo, this is fixed in this patch now. (Tested on 4 machines)
Greetings Patrick
diff -Nru /tmp/Qx7EVNsY2d/sysklogd-1.4.1/debian/config /tmp/CmvFb6mOvh/sysklogd-1.4.1/debian/config --- /tmp/Qx7EVNsY2d/sysklogd-1.4.1/debian/config 1970-01-01 00:00:00.000000000 +0000 +++ /tmp/CmvFb6mOvh/sysklogd-1.4.1/debian/config 2006-09-21 08:47:07.000000000 +0000 @@ -0,0 +1,18 @@ +#!/bin/sh + +. /usr/share/debconf/confmodule + +db_input low sysklogd/sysklogd-default-options || true +db_go + +db_get sysklogd/sysklogd-default-options + +if [ ! -z "$RET" ]; then + out=`echo $RET | sed -e "s/.*\(-r\).*/\1/"`; + if [ ! -z $out ]; then + db_input low sysklogd/sysklogd-remote-loghost || true + db_go + fi +fi +db_stop + diff -Nru /tmp/Qx7EVNsY2d/sysklogd-1.4.1/debian/control /tmp/CmvFb6mOvh/sysklogd-1.4.1/debian/control --- /tmp/Qx7EVNsY2d/sysklogd-1.4.1/debian/control 2006-09-21 08:47:07.000000000 +0000 +++ /tmp/CmvFb6mOvh/sysklogd-1.4.1/debian/control 2006-09-21 08:47:07.000000000 +0000 @@ -7,7 +7,7 @@ Package: sysklogd Architecture: any Section: admin -Depends: ${shlibs:Depends}, klogd | linux-kernel-log-daemon +Depends: ${shlibs:Depends}, klogd | linux-kernel-log-daemon, debconf ( >=0.5 ) | debconf-2.0 Conflicts: syslogd Provides: syslogd, system-log-daemon Replaces: syslogd diff -Nru /tmp/Qx7EVNsY2d/sysklogd-1.4.1/debian/postinst /tmp/CmvFb6mOvh/sysklogd-1.4.1/debian/postinst --- /tmp/Qx7EVNsY2d/sysklogd-1.4.1/debian/postinst 2006-09-21 08:47:07.000000000 +0000 +++ /tmp/CmvFb6mOvh/sysklogd-1.4.1/debian/postinst 2006-09-21 08:47:07.000000000 +0000 @@ -2,6 +2,8 @@ set -e +. /usr/share/debconf/confmodule + if [ ! -d /var/log/news ] \ && grep -q /var/log/news/ /etc/syslog.conf \ && grep -q ^news: /etc/passwd \ @@ -74,6 +76,21 @@ fi set -e fi + + db_get sysklogd/sysklogd-default-options + + if [ ! -z "$RET" ]; then + sed -e "s/^\([[:space:]]*\)SYSLOGD=.*/\1SYSLOGD=\"$RET\"/" -i /etc/default/syslogd + out=`echo $RET | sed -e "s/.*\(-r\).*/\1/"`; + if [ ! -z $out ]; then + db_get sysklogd/sysklogd-remote-loghost + if [ ! -z "$RET" ]; then + echo "$RET" >> /etc/syslog.conf + fi + fi + fi + + db_stop fi diff -Nru /tmp/Qx7EVNsY2d/sysklogd-1.4.1/debian/rules /tmp/CmvFb6mOvh/sysklogd-1.4.1/debian/rules --- /tmp/Qx7EVNsY2d/sysklogd-1.4.1/debian/rules 2006-09-21 08:47:07.000000000 +0000 +++ /tmp/CmvFb6mOvh/sysklogd-1.4.1/debian/rules 2006-09-21 08:47:07.000000000 +0000 @@ -74,8 +74,8 @@ chown -R root:root debian/tmp.sysklogd chmod -R g-ws debian/tmp.sysklogd $(installbin) -d debian/tmp.sysklogd/usr/share/doc/$(package) - $(installbin) debian/{preinst,postinst,postrm,prerm} debian/tmp.sysklogd/DEBIAN/ - $(installdoc) debian/conffiles debian/tmp.sysklogd/DEBIAN/ + $(installbin) debian/{preinst,postinst,postrm,prerm,config} debian/tmp.sysklogd/DEBIAN/ + $(installdoc) debian/{conffiles,templates} debian/tmp.sysklogd/DEBIAN/ $(installdoc) debian/changelog debian/tmp.sysklogd/usr/share/doc/$(package)/changelog.Debian # $(installbin) -d debian/tmp.sysklogd/usr/share/$(package) diff -Nru /tmp/Qx7EVNsY2d/sysklogd-1.4.1/debian/templates /tmp/CmvFb6mOvh/sysklogd-1.4.1/debian/templates --- /tmp/Qx7EVNsY2d/sysklogd-1.4.1/debian/templates 1970-01-01 00:00:00.000000000 +0000 +++ /tmp/CmvFb6mOvh/sysklogd-1.4.1/debian/templates 2006-09-21 08:47:07.000000000 +0000 @@ -0,0 +1,11 @@ +Template: sysklogd/sysklogd-default-options +Type: string +Description: Enter the options you want sysklogd to use + Enter only the options like "-r" or "-m 0" without anything else before + or behind. + +Template: sysklogd/sysklogd-remote-loghost +Type: string +Description: Enter the host you want to log to + You have choosen the -r option so you can here decide what and to which host you want + to log to. A sample entry can look like: "*.* @loghost"
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil