PKGBUILDs/extra/haveged/PKGBUILD

51 lines
1.5 KiB
Bash
Raw Normal View History

2018-05-29 02:14:06 +00:00
# $Id$
2018-08-05 20:28:00 +00:00
# Maintainer: Christian Hesse <mail@eworm.de>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
2018-05-29 02:14:06 +00:00
# Contributor: kfgz <kfgz at interia dot pl>
# Contributor: pootzko <pootzko at gmail dot com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch from Alpine Linux to fix cache detection issues on ARM
pkgname=haveged
2018-08-05 20:28:00 +00:00
pkgver=1.9.2
pkgrel=1
2018-05-29 02:14:06 +00:00
pkgdesc='Entropy harvesting daemon using CPU timings'
2018-08-05 20:28:00 +00:00
arch=('x86_64')
url='https://github.com/jirka-h/haveged'
2018-05-29 02:14:06 +00:00
license=('GPL')
depends=('glibc')
2018-08-05 20:28:00 +00:00
validpgpkeys=('8F6B7293B03E5AC5762B65CE2E2F252B05CCA168') # Jirka Hladky <hladky.jiri@gmail.com>
source=("$pkgname-$pkgver.tar.gz::https://github.com/jirka-h/$pkgname/archive/$pkgver.tar.gz"
"https://github.com/jirka-h/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz.asc"
2018-05-29 02:14:06 +00:00
'haveged.service'
'fix-cpu-cache-size-detection.patch')
2018-08-05 20:28:00 +00:00
sha256sums=('d5b625b9d867965da1d28335d3c214b99a0e85f994ad291909fba51589c9af54'
2018-05-29 02:14:06 +00:00
'SKIP'
2018-08-05 20:28:00 +00:00
'7cb5d21d075650ad8f08f0ba958cc1bc39b5ff67ef484d9fce365febcaecb05c'
2018-05-29 02:14:06 +00:00
'5aecfd72a1dbb9cc9b32d5677917d8a59dba7a2e021e31dee95f3f5b9e7ecf28')
prepare() {
cd $pkgname-$pkgver
2018-08-05 20:28:00 +00:00
2018-05-29 02:14:06 +00:00
patch -p1 -i ../fix-cpu-cache-size-detection.patch
}
build() {
cd $pkgname-$pkgver
2018-08-05 20:28:00 +00:00
2018-05-29 02:14:06 +00:00
./configure \
--prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/bin
make
}
package() {
2018-08-05 20:28:00 +00:00
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
install -D -m0644 "${srcdir}"/haveged.service "$pkgdir"/usr/lib/systemd/system/haveged.service
2018-05-29 02:14:06 +00:00
}