# Maintainer: Leonardo Arena pkgname=sniproxy pkgver=0.6.1 pkgrel=0 pkgdesc="Proxies incoming HTTP and TLS connections based on the hostname" url="https://github.com/dlundquist/sniproxy" arch="all" license="BSD-2-Clause" makedepends=" $depends_dev autoconf automake bsd-compat-headers gettext-dev libev-dev libtool pcre-dev udns-dev " install="$pkgname.pre-install" subpackages="$pkgname-doc $pkgname-openrc" pkgusers="sniproxy" pkggroups="sniproxy" options="!check" # several tests failing source="$pkgname-$pkgver.tar.gz::https://github.com/dlundquist/sniproxy/archive/$pkgver.tar.gz $pkgname.initd $pkgname.conf $pkgname.logrotate " prepare() { default_prepare ./autogen.sh } build() { ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info make } check() { make check } package() { make DESTDIR="$pkgdir" install install -Dm755 "$srcdir"/$pkgname.initd \ "$pkgdir"/etc/init.d/$pkgname install -Dm644 "$srcdir"/$pkgname.conf \ "$pkgdir"/etc/$pkgname/$pkgname.conf install -Dm644 "$srcdir"/$pkgname.logrotate \ "$pkgdir"/etc/logrotate.d/$pkgname for dir in /var/log /etc /var/run; do mkdir -p "$pkgdir"/$dir/$pkgname chown $pkgusers:$pkggroups "$pkgdir"/$dir/$pkgname done } sha512sums=" 4a20830ee6dfeb33a363c480c4698c263a8deccfcac2071198248147ef40d951a1b551c373b0e1e29f6b6bfcdac350390f8f4c3653ed9d1f1940ed50c96af785 sniproxy-0.6.1.tar.gz 57f4997f8a96516b4622105c024708bf39002a83d7f3eb76dd857ee0202598309b51d585f6b25b5e72e9710b79c36a3e4f21bc2effcead16dd2c032137c704f3 sniproxy.initd f7423cfd48e9333d5db857b4eb61b747664221607e2d47a55167493159b7b838580f101427e98252468c0be9c42693f7f0689ac8bd1acdcd1dfb75638a8f49fb sniproxy.conf 8c026af5ed23620776ef5a9a08f09236d30fc5152c9f95de2b95eb7ac48ad001c21010922d74dc7c78071f9e6ef8f794c2a59c11677d8e12be8d57e94bac2b5e sniproxy.logrotate "