# Template file for 'tinyproxy'
pkgname=tinyproxy
version=1.11.3
revision=1
build_style=gnu-configure
configure_args="--enable-transparent --localstatedir=/var tinyproxy_cv_regex_broken=no"
hostmakedepends="asciidoc"
short_desc="Small, efficient HTTP/SSL proxy daemon"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://tinyproxy.github.io/"
changelog="https://github.com/tinyproxy/tinyproxy/releases"
distfiles="https://github.com/tinyproxy/tinyproxy/releases/download/${version}/tinyproxy-${version}.tar.xz"
checksum=f05644fdf1211ba13754a354bebed909b5b39371b12cce8563c46929a75bedf6

system_accounts="_tinyproxy"
conf_files="/etc/tinyproxy/tinyproxy.conf"
make_dirs="/var/log/tinyproxy 755 _tinyproxy _tinyproxy"

post_install() {
	vsed -i $DESTDIR/etc/tinyproxy/tinyproxy.conf \
		-e 's/^User .*/User _tinyproxy/' \
		-e 's/^Group .*/Group _tinyproxy/'
	vsv tinyproxy
}
