aboutsummaryrefslogblamecommitdiffstats
path: root/testing/radsecproxy/APKBUILD
blob: 37f30b9684ff025537006f796ca4c6121eff8ec5 (plain) (tree)
















































                                                                                                                                                                                              
# Maintainer: Josef Vybíhal <jvybihal@uniscomp.cz>
pkgname=radsecproxy
pkgver=1.8.2
pkgrel=0
pkgdesc="radsecproxy is a generic RADIUS proxy that supports both UDP and TLS (RadSec) RADIUS transports."
url="https://github.com/radsecproxy/radsecproxy"
arch="all"
license="BSD-3-Clause"
makedepends="nettle-dev openssl-dev autoconf automake"
subpackages="$pkgname-doc $pkgname-openrc"
source="https://github.com/radsecproxy/radsecproxy/releases/download/$pkgver/radsecproxy-$pkgver.tar.gz
	$pkgname.initd
	$pkgname.confd
	0001-fix-memory-allocation-in-t_rewrite_config-fix-71.patch"

prepare() {
	default_prepare
	autoreconf -fi
}

build() {
	./configure \
		--prefix=/usr \
		--bindir=/usr/bin \
		--sbindir=/usr/bin \
		--sysconfdir=/etc/radsecproxy
	make

}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install

	install -D -m0644 radsecproxy.conf-example "$pkgdir"/etc/radsecproxy/radsecproxy.conf

	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname

	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="a755f67d22c225fc236bb2b28d6681fdb4e615ea971477ed1d7669049b0da8590697b2ec150a6cc0e9d20426260c42712984b9b940649c87a87dcd8f0d90d7d3  radsecproxy-1.8.2.tar.gz
fb9b2761071f3773fe4c15ed74372333c0d7f39feb84eb48dbf8b531c85a5d4d3ae15fe8933f3f56c57bbf5047e9e08b652f0c44d7e974ec8d56909f3e308f30  radsecproxy.initd
e1e7b62fd92d7433430cbef5fcb99b0213f140c8aaa03f63ac2f432cead005e276c34ce2f8f6473b602e85160dc3cf8cb2e5209a6f026b740b4056208b40d073  radsecproxy.confd
a59d686b43f3b82655ffa14fab50f7491db3e93bcfa3c0885dca8338b8ee2f543c0dc600a2ea5f47c2639b88ed149b8a539ea3cdabfdb488e6174f802d43d803  0001-fix-memory-allocation-in-t_rewrite_config-fix-71.patch"