summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorShulhan2021-01-26 00:11:18 +0700
committerShulhan2021-01-26 00:11:18 +0700
commitc11177dcdf82ca340a90cf14060d86ff9581a216 (patch)
tree7162896bec38fd329e32d38652f82217dde8bfbd
parentf7b93f0c054241d18c0f3a412f6399f5bb716e42 (diff)
downloadaur-rescached-git.tar.gz
Release rescached v4.0.0
Rescached now have a web user interface (wui) that can be accessed at http://127.0.0.1:5380. The interface can be used to monitoring caches, managing caches, environment, blocked hosts, internal hosts files, and zone files. == Breaking changes * The `rescached::dir.hosts` now default to "/etc/rescached/hosts.d" * The `rescached::dir.master` now default to "/etc/rescached/zone.d"
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD8
-rw-r--r--rescached.install8
3 files changed, 16 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 562277cf03b..e72c5836add 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,18 @@
pkgbase = rescached-git
pkgdesc = Resolver/DNS cache daemon
- pkgver = 3.0.2.r0.g5c3f180
+ pkgver = 4.0.0.r0.g004ca8b
pkgrel = 1
url = https://github.com/shuLhan/rescached-go
+ install = rescached.install
arch = i686
arch = x86_64
arch = armv7h
license = custom:BSD
makedepends = git
- makedepends = go>=1.13
+ makedepends = go>=1.14
depends = bash
provides = rescached
backup = etc/rescached/rescached.cfg
- backup = etc/rescached/hosts.d/hosts.block
backup = etc/rescached/localhost.cert.pem
backup = etc/rescached/localhost.key.pem
source = rescached-git::git+https://github.com/shuLhan/rescached-go.git
diff --git a/PKGBUILD b/PKGBUILD
index 3c2df6e6171..07b7c61501a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: shulhan <ms@kilabit.info>
pkgname=rescached-git
-pkgver=3.0.2.r0.g5c3f180
+pkgver=4.0.0.r0.g004ca8b
pkgrel=1
pkgdesc="Resolver/DNS cache daemon"
arch=('i686' 'x86_64' 'armv7h')
@@ -10,7 +10,7 @@ license=('custom:BSD')
depends=('bash')
provides=('rescached')
-makedepends=('git' 'go>=1.13')
+makedepends=('git' 'go>=1.14')
source=(
"$pkgname::git+https://github.com/shuLhan/rescached-go.git"
)
@@ -20,11 +20,12 @@ sha1sums=(
backup=(
'etc/rescached/rescached.cfg'
- 'etc/rescached/hosts.d/hosts.block'
'etc/rescached/localhost.cert.pem'
'etc/rescached/localhost.key.pem'
)
+install=rescached.install
+
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
@@ -40,6 +41,7 @@ build() {
echo ">> make ..."
echo ">>"
unset GOROOT
+ export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
make || return 1
}
diff --git a/rescached.install b/rescached.install
new file mode 100644
index 00000000000..f5f23821b79
--- /dev/null
+++ b/rescached.install
@@ -0,0 +1,8 @@
+## arg 1: the new package version
+post_upgrade() {
+ cat <<EOF
+!!! The "/etc/rescached/master.d" directory has been renamed to
+ "/etc/rescached/zone.d". You should copy the files manually before
+ restarting the rescached.service.
+EOF
+}