talimat 902 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Description: For logging system messages, such as those given by the kernel.
  2. # URL: http://www.infodrom.org/projects/sysklogd/
  3. # Maintainer: Dr. Greg Wettstein, greg at wind dot enjellic dot com
  4. # Packager: milisarge@gmail.com
  5. name=sysklogd
  6. version=1.5.1
  7. release=1
  8. source=(http://www.infodrom.org/projects/sysklogd/download/sysklogd-$version.tar.gz)
  9. build()
  10. {
  11. cd sysklogd-$version
  12. sed -i '/Error loading kernel symbols/{n;n;d}' ksym_mod.c
  13. mkdir -p $PKG/{/sbin,etc,usr/share/man/man{5,8}}
  14. make
  15. make BINDIR=$PKG/sbin MANDIR=$PKG/usr/share/man install
  16. cat > $PKG/etc/syslog.conf << "EOF"
  17. # Begin /etc/syslog.conf
  18. auth,authpriv.* -/var/log/auth.log
  19. *.*;auth,authpriv.none -/var/log/sys.log
  20. daemon.* -/var/log/daemon.log
  21. kern.* -/var/log/kern.log
  22. mail.* -/var/log/mail.log
  23. user.* -/var/log/user.log
  24. local7.* -/var/log/pkg-get.log
  25. cron.* -/var/log/cron.log
  26. *.emerg *
  27. # End /etc/syslog.conf
  28. EOF
  29. }