summaryrefslogtreecommitdiff
path: root/community/haveged/PKGBUILD
blob: 73d6cb68ce0656346d47fdbdb70461a4ad9d3cbb (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
# 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.4
pkgrel=1
pkgdesc="A simple entropy daemon."
arch=('i686' 'x86_64' 'mips64el')
url="http://www.issihosts.com/haveged"
license=('GPL')
depends=('bash')
source=(${url}/${pkgname}-${pkgver}.tar.gz
        haveged)
md5sums=('39a03d4b8a4225706f78dbef3f623b0e'
         '264b725be5271288b40f363d7cfc6b68')

build() {
  cd "${srcdir}"/${pkgname}-${pkgver/a/}
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}"/${pkgname}-${pkgver/a/}
  make DESTDIR="${pkgdir}" install
  rm -rf "${pkgdir}"/etc/init.d

  cd "${srcdir}"
  install -D -m755 haveged "${pkgdir}"/etc/rc.d/haveged
}