diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-08-30 23:23:50 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-08-31 06:56:57 +0000 |
commit | a655c0c42b7ef3b6a55e2fe2be302a8669819303 (patch) | |
tree | 2dcbc594fc440f82fa9e0fc6e82aff7f30612a89 | |
parent | 045f55fc8d3d9e0c7314cb31731756b0d277b05d (diff) | |
download | aports-a655c0c42b7ef3b6a55e2fe2be302a8669819303.tar.bz2 aports-a655c0c42b7ef3b6a55e2fe2be302a8669819303.tar.xz |
main/haveged: modernize APKBUILD and add check
-rw-r--r-- | main/haveged/APKBUILD | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/main/haveged/APKBUILD b/main/haveged/APKBUILD index 91b8b3dddd..6c48499979 100644 --- a/main/haveged/APKBUILD +++ b/main/haveged/APKBUILD @@ -4,21 +4,22 @@ pkgname=haveged pkgver=1.9.1 -pkgrel=3 +pkgrel=4 pkgdesc="Entropy harvesting daemon using CPU timings" url="https://sourceforge.net/projects/haveged" arch="all" license="GPL" subpackages="$pkgname-doc" makedepends="linux-headers" -source="$pkgname-$pkgver.tar.gz::https://sourceforge.net/projects/haveged/files/haveged-1.9.1.tar.gz/download +source="$pkgname-$pkgver.tar.gz::https://sourceforge.net/projects/haveged/files/$pkgname-$pkgver.tar.gz/download haveged.initd haveged.confd" builddir="$srcdir/$pkgname-$pkgver" prepare() { + default_prepare cd "$builddir" - update_config_sub || return 1 + update_config_sub } build() { @@ -28,30 +29,28 @@ build() { --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ - --sysconfdir=/etc \ - || return 1 - make || return 1 + --sysconfdir=/etc + make +} + +check() { + cd "$builddir" + make check } package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install rm "$pkgdir"/usr/lib/libhavege.la install -Dm755 "$srcdir"/haveged.initd \ - "$pkgdir"/etc/init.d/haveged || return 1 + "$pkgdir"/etc/init.d/haveged install -Dm644 "$srcdir"/haveged.confd \ - "$pkgdir"/etc/conf.d/haveged || return 1 + "$pkgdir"/etc/conf.d/haveged } -md5sums="015ff58cd10607db0e0de60aeca2f5f8 haveged-1.9.1.tar.gz -12228310b4379e1791769b5c2e8e35ef haveged.initd -242300ea7948a16018d1b0f77fb5ec96 haveged.confd" -sha256sums="9c2363ed9542a6784ff08e247182137e71f2ddb79e8e6c1ac4ad50d21ced3715 haveged-1.9.1.tar.gz -386e20b94634a8144ca6cdacc947124cf9b5c66cabd0fd0faf3fdb7891f6356d haveged.initd -54f692941e4d15108683daa0e37240f834beaa216aeee462ef94f24c2382abf7 haveged.confd" sha512sums="267d62cfeb886ea00fa412de1a91a34821460d0f4ad789dcfb3547018300e1cbf480917571b19652f2d449369293031d9534f9533bbf6a59560f4f10608c9cd2 haveged-1.9.1.tar.gz 5d1e4186580951d4e6e01193e9c8827ceddaf3c2e28a981fc9176cb446bed32b059304796a77d9db6fb761a21f8fd27dd3d31e06a0fb7a5985b4ea94978fcd64 haveged.initd 57201472fc659aaab919562a00d474d3823d5becea62e8b13ef93eda05e1fd667721c968f224fcae871d13cfcd16d1924403d9181e0899fa214fa00bf4fefc75 haveged.confd" |