sysklogd: create a default /etc/syslog.conf.

As specified in the LFS 6.4 book.

--HG--
extra : convert_revision : 98d449d65191ffd936b3eb68ef462aaff83bdb8c
This commit is contained in:
Juan RP 2008-11-26 16:29:05 +01:00
parent c0b41d7a82
commit a724ecdfdb

View file

@ -21,3 +21,20 @@ long_desc="
System.map file."
run_depends="glibc-2.8"
post_install()
{
local destdir=$XBPS_DESTDIR/$pkgname-$version
# Create a default syslog.conf.
mkdir -p $destdir/etc
( \
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
}