1 # Maintainer: Christian Hesse <mail@eworm.de>
2 # Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
3 # Contributor: kfgz <kfgz at interia dot pl>
4 # Contributor: pootzko <pootzko at gmail dot com>
9 pkgdesc='Entropy harvesting daemon using CPU timings'
11 url='https://github.com/jirka-h/haveged'
14 validpgpkeys=('8F6B7293B03E5AC5762B65CE2E2F252B05CCA168') # Jirka Hladky <hladky.jiri@gmail.com>
15 source=("$pkgname-$pkgver.tar.gz::https://github.com/jirka-h/$pkgname/archive/v$pkgver.tar.gz"
18 sha256sums=('b835fa02b52ee7d06276e028571cadcb14d08f5e5a4b5767adf81451f70561c7'
19 'a59ff95d521a860031693d1e1d65d37ffba58412f0199b029bd340e2f7f52a0b'
20 'befb42d418d13c832da6d67f50417f6bca9a1c754dbdc63175f1e2546ea29b51')
25 sed -i 's/@SBIN_DIR@/\/usr\/bin/' contrib/Fedora/haveged*.service
39 cd ${pkgname}-${pkgver}
46 make DESTDIR="$pkgdir" install
48 install -D -m0644 contrib/Fedora/haveged.service "$pkgdir"/usr/lib/systemd/system/haveged.service
49 install -D -m0644 contrib/Fedora/haveged-once.service "$pkgdir"/usr/lib/systemd/system/haveged-once.service
50 install -D -m0644 "${srcdir}/initcpio-hook" "$pkgdir"/usr/lib/initcpio/hooks/haveged
51 install -D -m0644 "${srcdir}/initcpio-install" "$pkgdir"/usr/lib/initcpio/install/haveged