summaryrefslogtreecommitdiff
path: root/community/haveged/PKGBUILD
blob: d73c5f102db70b9a4080dd8fb3633593a1f6e6bd (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
# $Id: PKGBUILD 84580 2013-02-20 05:11:56Z bpiotrowski $
# Maintainer:  Bartłomiej Piotrowski <barthalion@gmail.com>
# Contributor: kfgz <kfgz at interia dot pl>
# Contributor: pootzko <pootzko at gmail dot com>

pkgname=haveged
pkgver=1.7
pkgrel=1
pkgdesc='Entropy harvesting daemon using CPU timings'
arch=('i686' 'x86_64')
url='http://www.issihosts.com/haveged'
license=('GPL')
depends=('glibc')
source=($url/$pkgname-$pkgver.tar.gz
        service
        haveged-1.7-build.patch)
sha256sums=('9ec85438386a46d5c3fe7b5b121cafd89c34bae68cbbfb4cecb1ff5622111013'
            '85aed005b7d0d0bae74f7fc0ca70907a6f67ddbcb2df77ca004f9a919028564a'
            '94c77b1d2d80eb5fb30bab4aeb560e6dfe9957654cd3ed915478d2ce67ac37b7')

build() {
  cd $srcdir/$pkgname-$pkgver

  patch -Np1 -i $srcdir/haveged-1.7-build.patch
  aclocal && libtoolize --force && automake --add-missing && autoreconf

  ./configure --prefix=/usr
  make
}

package() {
  cd $srcdir/$pkgname-$pkgver
  make DESTDIR=$pkgdir install

  rm -rf $pkgdir/etc/init.d
  install -D -m644 $srcdir/service $pkgdir/usr/lib/systemd/system/haveged.service
}