aboutsummaryrefslogtreecommitdiffstats
path: root/testing/haveged/APKBUILD
blob: 135dc37faadc4a9b8c7764f293c05adc7dbdd6dd (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
# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: Danilo Godec <danilo.godec@agenda.si>

pkgname=haveged
pkgver=1.6
pkgrel=1
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

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

package() {
  cd "$_builddir"
  make DESTDIR="$pkgdir" install || return 1

  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="5a386a530e89bfbc6c8d22717b16e2a8  haveged-1.6.tar.gz
0718d29f820b878a311e939b3682935c  haveged.initd
242300ea7948a16018d1b0f77fb5ec96  haveged.confd"