diff --git a/templates/sysklogd/files/syslog.conf b/templates/sysklogd/files/syslog.conf new file mode 100644 index 00000000000..bec07359692 --- /dev/null +++ b/templates/sysklogd/files/syslog.conf @@ -0,0 +1,4 @@ +auth,authpriv.* -/var/log/authlog +*.*;daemon.*,kern.*,user.*;auth,authpriv.none -/var/log/messages +mail.* -/var/log/maillog +*.emerg * diff --git a/templates/sysklogd/template b/templates/sysklogd/template index 6ac77da93f1..fcb48892b94 100644 --- a/templates/sysklogd/template +++ b/templates/sysklogd/template @@ -1,6 +1,7 @@ # Template file for 'sysklogd' pkgname=sysklogd version=1.5 +revision=1 distfiles=" http://www.infodrom.org/projects/sysklogd/download/$pkgname-$version.tar.gz" build_style=gnu_makefile @@ -26,19 +27,9 @@ Add_dependency full glibc post_install() { - # Create a default syslog.conf. + # Install the rc.d scripts and conf file. install -d ${DESTDIR}/etc/rc.d - ( \ - echo "auth,authpriv.* -/var/log/auth.log"; \ - echo "*.*;auth,authpriv.none -/var/log/sys.log"; \ - echo "daemon.* -/var/log/daemon.log"; \ - echo "kern.* -/var/log/kern.log"; \ - echo "mail.* -/var/log/mail.log"; \ - echo "user.* -/var/log/user.log"; \ - echo "*.emerg *"; \ - ) > $DESTDIR/etc/syslog.conf - chmod 644 $DESTDIR/etc/syslog.conf - - # Install the rc.d scripts. - install -m755 ${FILESDIR}/* ${DESTDIR}/etc/rc.d + install -m755 ${FILESDIR}/klogd ${DESTDIR}/etc/rc.d + install -m755 ${FILESDIR}/syslogd ${DESTDIR}/etc/rc.d + install -m644 ${FILESDIR}/syslog.conf ${DESTDIR}/etc }