void-packages/srcpkgs/sniproxy/template

30 lines
747 B
Bash

# Template file for 'sniproxy'
pkgname=sniproxy
version=0.6.0
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool autoconf pkg-config udns-devel gettext-devel"
makedepends="libev-devel pcre-devel"
short_desc="Proxies incoming HTTP and TLS connections based on the hostname"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3"
homepage="https://github.com/dlundquist/${pkgname}"
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=d73c77a9fa8199ae7ac551c0332d3e0a3ff234623f53d65369a8fa560d9880e2
conf_files="/etc/${pkgname}.conf"
CFLAGS="-fcommon"
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
makedepends+=" musl-legacy-compat"
fi
pre_configure() {
autoreconf -fi
}
post_install() {
vconf $pkgname.conf
}