Date: Monday, January 3, 2022 @ 06:12:46 Author: eworm Revision: 433322
upgpkg: haveged 1.9.16-1: new upstream release Added: haveged/trunk/initcpio-hook haveged/trunk/initcpio-install Modified: haveged/trunk/PKGBUILD ------------------+ PKGBUILD | 15 +++++++++++---- initcpio-hook | 5 +++++ initcpio-install | 17 +++++++++++++++++ 3 files changed, 33 insertions(+), 4 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-01-02 22:13:36 UTC (rev 433321) +++ PKGBUILD 2022-01-03 06:12:46 UTC (rev 433322) @@ -4,7 +4,7 @@ # Contributor: pootzko <pootzko at gmail dot com> pkgname=haveged -pkgver=1.9.15 +pkgver=1.9.16 pkgrel=1 pkgdesc='Entropy harvesting daemon using CPU timings' arch=('x86_64') @@ -12,13 +12,17 @@ license=('GPL') depends=('glibc') validpgpkeys=('8F6B7293B03E5AC5762B65CE2E2F252B05CCA168') # Jirka Hladky <hladky.j...@gmail.com> -source=("$pkgname-$pkgver.tar.gz::https://github.com/jirka-h/$pkgname/archive/v$pkgver.tar.gz") -sha256sums=('f882919ccead07ad6687a4784c0c501e617321e96dd0118403464969359cf6ad') +source=("$pkgname-$pkgver.tar.gz::https://github.com/jirka-h/$pkgname/archive/v$pkgver.tar.gz" + 'initcpio-hook' + 'initcpio-install') +sha256sums=('6d7ab185c3f5ab8e2203a05aaa0308d3f61edd96799eaab61c9971dc6252185f' + 'a59ff95d521a860031693d1e1d65d37ffba58412f0199b029bd340e2f7f52a0b' + 'befb42d418d13c832da6d67f50417f6bca9a1c754dbdc63175f1e2546ea29b51') prepare() { cd $pkgname-$pkgver - sed -i 's/@SBIN_DIR@/\/usr\/bin/' contrib/Fedora/haveged.service + sed -i 's/@SBIN_DIR@/\/usr\/bin/' contrib/Fedora/haveged*.service } build() { @@ -42,4 +46,7 @@ make DESTDIR="$pkgdir" install install -D -m0644 contrib/Fedora/haveged.service "$pkgdir"/usr/lib/systemd/system/haveged.service + install -D -m0644 contrib/Fedora/haveged-once.service "$pkgdir"/usr/lib/systemd/system/haveged-once.service + install -D -m0644 "${srcdir}/initcpio-hook" "$pkgdir"/usr/lib/initcpio/hooks/haveged + install -D -m0644 "${srcdir}/initcpio-install" "$pkgdir"/usr/lib/initcpio/install/haveged } Added: initcpio-hook =================================================================== --- initcpio-hook (rev 0) +++ initcpio-hook 2022-01-03 06:12:46 UTC (rev 433322) @@ -0,0 +1,5 @@ +#!/usr/bin/ash + +run_earlyhook() { + haveged --once +} Added: initcpio-install =================================================================== --- initcpio-install (rev 0) +++ initcpio-install 2022-01-03 06:12:46 UTC (rev 433322) @@ -0,0 +1,17 @@ +#!/bin/sh + +build() { + if command -v add_systemd_unit >/dev/null; then + add_systemd_unit haveged-once.service + add_symlink /usr/lib/systemd/system/sysinit.target.wants/haveged-once.service ../haveged-once.service + else + add_binary 'haveged' + add_runscript + fi +} + +help() { + cat <<HELPEOF +Haveged for early entropy and fast crng initialization. +HELPEOF +}