diff --git a/srcpkgs/sklogw/files/sklogw/finish b/srcpkgs/sklogw/files/sklogw/finish new file mode 100755 index 00000000000..e56ca89007f --- /dev/null +++ b/srcpkgs/sklogw/files/sklogw/finish @@ -0,0 +1,6 @@ +#!/usr/bin/sh + +#finish script + +rm -rf /var/cache_dns +cp -rp /tmp/cache_dns /var/cache_dns diff --git a/srcpkgs/sklogw/files/sklogw/log/run b/srcpkgs/sklogw/files/sklogw/log/run new file mode 100755 index 00000000000..8d925984580 --- /dev/null +++ b/srcpkgs/sklogw/files/sklogw/log/run @@ -0,0 +1,5 @@ +#!/usr/bin/sh + +#log script +[ -d /var/log/sklogw ] || mkdir -p /var/log/sklogw +exec svlogd -ttt /var/log/sklogw diff --git a/srcpkgs/sklogw/files/sklogw/run b/srcpkgs/sklogw/files/sklogw/run new file mode 100755 index 00000000000..3b7908c256a --- /dev/null +++ b/srcpkgs/sklogw/files/sklogw/run @@ -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 diff --git a/srcpkgs/sklogw/template b/srcpkgs/sklogw/template new file mode 100644 index 00000000000..3be4d375501 --- /dev/null +++ b/srcpkgs/sklogw/template @@ -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 " +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 +}