New package: blocky-0.26.2

This commit is contained in:
krum 2025-05-22 19:46:56 -05:00 committed by Duncan Overbruck
parent d4411d15fd
commit 867ea95059
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,8 @@
#!/bin/sh
exec 2>&1
[ -r ./conf ] && . ./conf
exec setpriv --reuid _blocky --regid _blocky --clear-groups \
--ambient-caps -all,+net_bind_service \
--inh-caps -all,+net_bind_service \
--bounding-set -all,+net_bind_service \
--no-new-privs -- blocky --config "${CONFFILE:-/etc/blocky/config.yml}"

31
srcpkgs/blocky/template Normal file
View file

@ -0,0 +1,31 @@
# Template file for 'blocky'
pkgname=blocky
version=0.26.2
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=b6aadd53253fe51d1bd41a1c19911091b944657fd034cd3dfad8c139ac5870b3
# 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
}