New package: sklogw-0.1

This commit is contained in:
xant0me 2016-11-27 02:57:13 +01:00
parent bfe675ec06
commit ae76c431f7
4 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,6 @@
#!/usr/bin/sh
#finish script
rm -rf /var/cache_dns
cp -rp /tmp/cache_dns /var/cache_dns

View File

@ -0,0 +1,5 @@
#!/usr/bin/sh
#log script
[ -d /var/log/sklogw ] || mkdir -p /var/log/sklogw
exec svlogd -ttt /var/log/sklogw

View File

@ -0,0 +1,7 @@
#!/usr/bin/sh
# copy the persistant cache to the in memory tmpfs
rm -rf /tmp/cache_dns
cp -rp /var/cache/dns /tmp/cache_dns
chmod 700 -R /tmp/cache_dns
exec sklogw

17
srcpkgs/sklogw/template Normal file
View File

@ -0,0 +1,17 @@
# Template file for 'sklogw'
pkgname=sklogw
version=0.1
revision=1
short_desc="A simple cache for dns query"
maintainer="xant0me <xant0me@openmailbox.org>"
license="MIT"
homepage="https://framagit.org/xant0me/cache_dns"
distfiles="https://framagit.org/xant0me/cache_dns/repository/archive.tar.gz?ref=v${version}>sklogw-${version}.tar.gz"
checksum="7f28ab7f6b9a1cee4f16a49c3314b72f6bb192c3e4a119d4a3aa0de300e80b04"
build_style="gnu-makefile"
wrksrc="cache_dns-v0.1-e3aff30a1afa1819384cb66ac0252f472d45bb9a"
post_install() {
vlicense LICENSE
vsv sklogw
}