From ee7a52035d3160110eff737aef902bbeb34627c4 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sat, 19 Jul 2014 00:24:54 +0200 Subject: [PATCH] New package: socklog-void-20140718 --- srcpkgs/socklog-void/INSTALL | 27 +++++++++++++++++++++++++++ srcpkgs/socklog-void/template | 17 +++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 srcpkgs/socklog-void/INSTALL create mode 100644 srcpkgs/socklog-void/template diff --git a/srcpkgs/socklog-void/INSTALL b/srcpkgs/socklog-void/INSTALL new file mode 100644 index 00000000000..f9d69cf84d4 --- /dev/null +++ b/srcpkgs/socklog-void/INSTALL @@ -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 + +and then re-login to make it effective. + +======================================================================= +_EOF + ;; +esac diff --git a/srcpkgs/socklog-void/template b/srcpkgs/socklog-void/template new file mode 100644 index 00000000000..48a8978db53 --- /dev/null +++ b/srcpkgs/socklog-void/template @@ -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 " +license="Public Domain" +homepage="http://www.voidlinux.eu" + +do_fetch() { + git clone git://github.com/chneukirchen/socklog-void ${pkgname}-${version} +}