aboutsummaryrefslogtreecommitdiffstats
path: root/main/haveged/APKBUILD
blob: 6db06ed91dafaa25dd7f278b5c40f36084d7b822 (plain)
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
45
46
47
48
49
50
51
52
# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: Danilo Godec <danilo.godec@agenda.si>

pkgname=haveged
pkgver=1.9.1
pkgrel=0
pkgdesc='Entropy harvesting daemon using CPU timings'
url="http://www.issihosts.com/haveged/"
arch="all"
license="GPL"
subpackages="$pkgname-doc"
source="http://www.issihosts.com/haveged/haveged-$pkgver.tar.gz
        haveged.initd haveged.confd"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
  cd "$_builddir"
  ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix /usr \
		--sysconfdir /etc \
		|| return 1
  make || return 1
}

package() {
  cd "$_builddir"
  make DESTDIR="$pkgdir" install || return 1
  rm "$pkgdir"/usr/lib/libhavege.la

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

md5sums="015ff58cd10607db0e0de60aeca2f5f8  haveged-1.9.1.tar.gz
0718d29f820b878a311e939b3682935c  haveged.initd
242300ea7948a16018d1b0f77fb5ec96  haveged.confd"
sha256sums="9c2363ed9542a6784ff08e247182137e71f2ddb79e8e6c1ac4ad50d21ced3715  haveged-1.9.1.tar.gz
f5e99dc3e11437714fabc956611404306c3894a70f78259c412fb847377268af  haveged.initd
54f692941e4d15108683daa0e37240f834beaa216aeee462ef94f24c2382abf7  haveged.confd"
sha512sums="267d62cfeb886ea00fa412de1a91a34821460d0f4ad789dcfb3547018300e1cbf480917571b19652f2d449369293031d9534f9533bbf6a59560f4f10608c9cd2  haveged-1.9.1.tar.gz
4a6cd8f97953b0ea9ca1ee7c0fc672f962b78d2020c9f733f202d0d6e7aced14f7110bd2b757799d5a296a187eeff6a0f7d18daa3c7644c0e9c756f57ee2d45a  haveged.initd
57201472fc659aaab919562a00d474d3823d5becea62e8b13ef93eda05e1fd667721c968f224fcae871d13cfcd16d1924403d9181e0899fa214fa00bf4fefc75  haveged.confd"