New package: socklog-void-20140718

This commit is contained in:
Christian Neukirchen 2014-07-19 00:24:54 +02:00
parent 85f29085d9
commit ee7a52035d
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,27 @@
case "$ACTION" in
post)
setcap cap_syslog+ep /usr/bin/nanoklogd
chown -R root:socklog /var/log/socklog
chmod 2750 /var/log/socklog/*
cat <<_EOF
=======================================================================
To enable socklog-void, start the following runit services, and
ensure no other syslogd is running:
* socklog-unix
* nanoklogd
Logs reside in /var/log/socklog/*, use svlogtail for simple access.
To access logs as ordinary user, add yourself to group socklog:
# sudo usermod -a -G socklog <user>
and then re-login to make it effective.
=======================================================================
_EOF
;;
esac

View File

@ -0,0 +1,17 @@
# Template file for 'socklog-void'
pkgname=socklog-void
version=20140718
revision=1
build_style=gnu-makefile
system_groups="socklog"
make_dirs="/var/log/socklog 2750 root socklog"
hostmakedepends="git"
depends="socklog runit"
short_desc="Void Linux socklog configuration"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="Public Domain"
homepage="http://www.voidlinux.eu"
do_fetch() {
git clone git://github.com/chneukirchen/socklog-void ${pkgname}-${version}
}