# Template file for 'sniproxy'
pkgname=sniproxy
version=0.7.0
revision=1
build_style=gnu-configure
configure_args="--enable-dns"
hostmakedepends="automake libtool autoconf pkg-config udns-devel gettext-devel"
makedepends="libev-devel pcre-devel"
checkdepends="curl perl"
short_desc="Proxies incoming HTTP and TLS connections based on the hostname"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="BSD-2-Clause"
homepage="https://github.com/dlundquist/sniproxy"
changelog="https://raw.githubusercontent.com/dlundquist/sniproxy/master/ChangeLog"
distfiles="https://github.com/dlundquist/sniproxy/archive/${version}.tar.gz"
checksum=bbe579886c1af60e850b8b5bef850f10b317e6ebe366cb0b5476b1230f2870e4

conf_files="/etc/sniproxy.conf"

CFLAGS="-fcommon"

if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
	makedepends+=" musl-legacy-compat"
fi

pre_configure() {
	autoreconf -fi
}

post_install() {
	vconf sniproxy.conf
	vlicense COPYING
}
