diff options
Diffstat (limited to 'main/haveged/APKBUILD')
-rw-r--r-- | main/haveged/APKBUILD | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/main/haveged/APKBUILD b/main/haveged/APKBUILD index 188d6f50f0..707db780a4 100644 --- a/main/haveged/APKBUILD +++ b/main/haveged/APKBUILD @@ -5,42 +5,45 @@ pkgname=haveged pkgver=1.9.1 pkgrel=1 -pkgdesc='Entropy harvesting daemon using CPU timings' +pkgdesc="Entropy harvesting daemon using CPU timings" url="http://www.issihosts.com/haveged/" arch="all" license="GPL" subpackages="$pkgname-doc" makedepends="linux-headers" source="http://www.issihosts.com/haveged/haveged-$pkgver.tar.gz - haveged.initd haveged.confd" - -_builddir="$srcdir"/$pkgname-$pkgver + haveged.initd + haveged.confd" +builddir="$srcdir/$pkgname-$pkgver" prepare() { - cd "$_builddir" + cd "$builddir" update_config_sub || return 1 } build() { - cd "$_builddir" - ./configure \ + cd "$builddir" + + ./configure \ --build=$CBUILD \ --host=$CHOST \ - --prefix /usr \ - --sysconfdir /etc \ + --prefix=/usr \ + --sysconfdir=/etc \ || return 1 - make || 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 + 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 |