summaryrefslogtreecommitdiff
path: root/user/haveged/APKBUILD
blob: 489f85cb57dd2a76c0dd5d6eea4e53ec69a80e6d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: Danilo Godec <danilo.godec@agenda.si>
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer:
pkgname=haveged
pkgver=1.9.8
pkgrel=0
pkgdesc="Entropy harvesting daemon using CPU timings"
url="http://www.issihosts.com/haveged/"
arch="all"
license="GPL-3.0+"
subpackages="$pkgname-dev $pkgname-doc $pkgname-openrc"
makedepends="linux-headers"
source="$pkgname-$pkgver.tar.gz::https://github.com/jirka-h/haveged/archive/v$pkgver.tar.gz
	haveged.initd
	haveged.confd"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install

	rm "$pkgdir"/usr/lib/libhavege.la

	install -Dm755 "$srcdir"/haveged.initd \
		"$pkgdir"/etc/init.d/haveged
	install -Dm644 "$srcdir"/haveged.confd \
		"$pkgdir"/etc/conf.d/haveged
}

sha512sums="6a4012c7ab0ad7df77ae61dd3aca072a7aeca942c180d37c8495009fad13a4c9c0e7bf64a3ffce00e50c06679d4b948c3930a960789a06edf074076cf68d37db  haveged-1.9.8.tar.gz
5d1e4186580951d4e6e01193e9c8827ceddaf3c2e28a981fc9176cb446bed32b059304796a77d9db6fb761a21f8fd27dd3d31e06a0fb7a5985b4ea94978fcd64  haveged.initd
58fa2c513e26291047b60ea6d6355ad837c1cb07750a2dfb2a5ebf90cc504a4b6ebf3573869410a06cac85d9b634b3df988e8b033921394da8a5abeee574c822  haveged.confd"