mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 04:47:13 +08:00
added haveged to speedup entropy generation
This commit is contained in:
parent
3b671f864f
commit
a715a8051a
28
haveged/PKGBUILD
Normal file
28
haveged/PKGBUILD
Normal 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
10
haveged/service
Normal 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
|
Loading…
Reference in New Issue
Block a user