# Template file for 'jitterentropy-rngd'
pkgname=jitterentropy-rngd
version=1.2.8
revision=1
build_style=gnu-makefile
make_use_env=yes
short_desc="Jitter RNG Daemon"
maintainer="Andy Weidenbaum <atweiden@tutanota.de>"
license="BSD-3-Clause, GPL-2.0-only"
homepage="https://www.chronox.de/jent.html"
distfiles="https://www.chronox.de/jent/${pkgname}-${version}.tar.xz"
checksum=c4480c67d888fd9c6c9c3bcf06c785578ad81984ec978da3c33d16aa019664fb

CFLAGS="-O0"

pre_configure() {
	# fix sbin and disable systemd service installation
	sed \
		-i \
		-e 's/sbin/bin/g' \
		-e '/jitterentropy\.service\ /d' \
		Makefile
}

post_install() {
	vlicense COPYING
	vlicense COPYING.bsd
	vlicense COPYING.gplv2
}
