# Template file for 'blocky'
pkgname=blocky
version=0.33.0
revision=1
build_style=go
go_import_path=github.com/0xERR0R/blocky
hostmakedepends="go"
short_desc="DNS proxy as ad-blocker for local network"
maintainer="krum <git@kris.sh>"
license="Apache-2.0"
homepage="https://0xerr0r.github.io/blocky/latest"
changelog="https://github.com/0xERR0R/blocky/releases"
distfiles="https://github.com/0xERR0R/blocky/archive/v${version}.tar.gz"
checksum=b51b5a23727c1f74f976204524c77d571329439eb88c9a718b92916c16c93ca7
# test requires existing docker socket
make_check=extended

system_accounts="_blocky"
_blocky_descr="blocky daemon"

conf_files="/etc/blocky/config.yml"

make_dirs="
 /var/log/blocky 0750 _blocky _blocky"

post_install() {
	vsv blocky

	printf "\n" >> config.yml
	vinstall config.yml 644 etc/blocky
}
