sysklogd: add the rc.d scripts and run them by default.

--HG--
extra : convert_revision : 07e704a3e8c999d04305205ad359793d50a29d0c
This commit is contained in:
Juan RP
2009-03-06 05:40:33 +01:00
parent 134d5f6ce1
commit 5329e3579b
4 changed files with 39 additions and 1 deletions

View File

@@ -27,9 +27,10 @@ Add_dependency full glibc
post_install()
{
local destdir=$XBPS_DESTDIR/$pkgname-$version
local filesdir=$XBPS_TEMPLATESDIR/$pkgname/files
# Create a default syslog.conf.
mkdir -p $destdir/etc
install -d ${destdir}/etc/rc.d
( \
echo "auth,authpriv.* -/var/log/auth.log"; \
echo "*.*;auth,authpriv.none -/var/log/sys.log"; \
@@ -39,4 +40,7 @@ post_install()
echo "user.* -/var/log/user.log"; \
echo "*.emerg *"; \
) > $destdir/etc/syslog.conf
# Install the rc.d scripts.
install -m755 ${filesdir}/* ${destdir}/etc/rc.d
}