added haveged to speedup entropy generation

This commit is contained in:
AlmAck 2017-04-03 22:10:26 +02:00
parent 3b671f864f
commit a715a8051a
2 changed files with 38 additions and 0 deletions

28
haveged/PKGBUILD Normal file
View File

@ -0,0 +1,28 @@
# Arch Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
pkgname=haveged
pkgver=1.9.1
pkgrel=1
pkgdesc='Entropy harvesting daemon using CPU timings'
arch=('x86_64')
url='http://www.issihosts.com/haveged'
license=('GPL')
depends=('glibc')
validpgpkeys=('4CFBA9F06A360837CE23919DA24EDC651E265688') # Gary Wuertz <gary@issiweb.com>
source=("$url/$pkgname-$pkgver.tar.gz"
"$pkgname-$pkgver.tar.gz.sig::$url/verify/$pkgname-$pkgver.sig"
'service')
md5sums=('015ff58cd10607db0e0de60aeca2f5f8'
'SKIP'
'5b1afbd842300ff8dba0dfccef76514b')
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/bin
make
}
package() {
make -C $pkgname-$pkgver DESTDIR="$pkgdir" install
install -Dm644 service "$pkgdir"/usr/lib/systemd/system/haveged.service
}

10
haveged/service Normal file
View File

@ -0,0 +1,10 @@
[Unit]
Description=Entropy Harvesting Daemon
Documentation=man:haveged(8)
[Service]
ExecStart=/usr/bin/haveged -F -w 1024 -v 1
SuccessExitStatus=143
[Install]
WantedBy=multi-user.target