From 08de5464045b5ce107695e38f18079ac9909cd11 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Sun, 4 Feb 2018 15:58:44 +0100 Subject: [PATCH] New package: dq-0.0.20180112 --- srcpkgs/dq/files/CACHESIZE | 1 + srcpkgs/dq/files/IP | 1 + srcpkgs/dq/files/ROOT | 1 + srcpkgs/dq/files/dqcache/log/run | 2 + srcpkgs/dq/files/dqcache/run | 3 ++ srcpkgs/dq/template | 63 ++++++++++++++++++++++++++++++++ srcpkgs/dq/update | 3 ++ 7 files changed, 74 insertions(+) create mode 100644 srcpkgs/dq/files/CACHESIZE create mode 100644 srcpkgs/dq/files/IP create mode 100644 srcpkgs/dq/files/ROOT create mode 100644 srcpkgs/dq/files/dqcache/log/run create mode 100644 srcpkgs/dq/files/dqcache/run create mode 100644 srcpkgs/dq/template create mode 100644 srcpkgs/dq/update diff --git a/srcpkgs/dq/files/CACHESIZE b/srcpkgs/dq/files/CACHESIZE new file mode 100644 index 00000000000..825319e1c5b --- /dev/null +++ b/srcpkgs/dq/files/CACHESIZE @@ -0,0 +1 @@ +10000000 diff --git a/srcpkgs/dq/files/IP b/srcpkgs/dq/files/IP new file mode 100644 index 00000000000..7b9ad531d26 --- /dev/null +++ b/srcpkgs/dq/files/IP @@ -0,0 +1 @@ +127.0.0.1 diff --git a/srcpkgs/dq/files/ROOT b/srcpkgs/dq/files/ROOT new file mode 100644 index 00000000000..32a47045f70 --- /dev/null +++ b/srcpkgs/dq/files/ROOT @@ -0,0 +1 @@ +/etc/dqcache/root diff --git a/srcpkgs/dq/files/dqcache/log/run b/srcpkgs/dq/files/dqcache/log/run new file mode 100644 index 00000000000..ffcdcdb3736 --- /dev/null +++ b/srcpkgs/dq/files/dqcache/log/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec chpst -u _dqcache svlogd -t /var/log/dqcache diff --git a/srcpkgs/dq/files/dqcache/run b/srcpkgs/dq/files/dqcache/run new file mode 100644 index 00000000000..5d3e34ebb66 --- /dev/null +++ b/srcpkgs/dq/files/dqcache/run @@ -0,0 +1,3 @@ +#!/bin/sh +[ -r ./conf ] && . ./conf +exec chpst -U _dqcache -e /etc/dqcache/env dqcache 2>&1 diff --git a/srcpkgs/dq/template b/srcpkgs/dq/template new file mode 100644 index 00000000000..c68b24439da --- /dev/null +++ b/srcpkgs/dq/template @@ -0,0 +1,63 @@ +# Template file for 'dq' +pkgname=dq +version=0.0.20180112 +revision=1 +wrksrc="${pkgname}-${version##*.}" +build_style=gnu-makefile +make_dirs=" + /etc/dqcache/env 0755 root root + /etc/dqcache/root/servers 0755 root root + /var/log/dqcache 0755 _dqcache _dqcache" +conf_files=" + /etc/dqcache/env/* + /etc/dqcache/root/servers/*" +short_desc="Recursive DNS/DNSCurve server and cli tool to debug DNS/DNSCurve" +maintainer="Duncaen " +license="Public Domain" +homepage="https://mojzis.com/software/dq/" +distfiles="https://github.com/janmojzis/dq/archive/${version##*.}.tar.gz" +checksum=f233f4190213939bd40f35e7a050dbea25e6094f212dc8e1f503bae53c54e18b + +system_accounts="_dqcache" + +post_extract() { + sed -e '/chown/d' -i make-install.sh + echo "/usr/bin" >conf-sbin +} +post_install() { + vsv dqcache + + for f in CACHESIZE IP ROOT; do + vinstall "${FILESDIR}/$f" 644 etc/dqcache/env + done + + vmkdir etc/dqcache/root/servers + # https://www.iana.org/domains/root/servers + cat <"@" +198.41.0.4 +2001:503:ba3e::2:30 +192.228.79.201 +2001:500:84::b +192.33.4.12 +2001:500:2::c +199.7.91.13 +2001:500:2d::d +192.203.230.10 +192.5.5.241 +2001:500:2f::f +192.112.36.4 +198.97.190.53 +2001:500:1::53 +192.36.148.17 +2001:7fe::53 +192.58.128.30 +2001:503:c27::2:30 +193.0.14.129 +2001:7fd::1 +199.7.83.42 +2001:500:9f::42 +202.12.27.33 +2001:dc3::35 +! + vinstall "@" 644 etc/dqcache/root/servers +} diff --git a/srcpkgs/dq/update b/srcpkgs/dq/update new file mode 100644 index 00000000000..5e5c857f8fe --- /dev/null +++ b/srcpkgs/dq/update @@ -0,0 +1,3 @@ +version="${version##*.}" +site="https://api.github.com/repos/janmojzis/dq/releases" +pattern='"name"\s*:\s*"\K[\d]+(?=")'