summaryrefslogtreecommitdiff
path: root/user/haveged/APKBUILD
diff options
context:
space:
mode:
authormultiplexd <multi@in-addr.xyz>2019-01-21 21:29:31 +0000
committermultiplexd <multi@in-addr.xyz>2019-01-26 12:40:27 +0000
commit4b8e76cc12e2b73ff9ad920f7f4eb370f0ca3b33 (patch)
tree476d8cb2fe5be45e33f53390d2b0b6a72714ae4c /user/haveged/APKBUILD
parenta78b2f2c6a1712a9a6b3a41cf42ba8203d6182d3 (diff)
downloadpackages-4b8e76cc12e2b73ff9ad920f7f4eb370f0ca3b33.tar.gz
packages-4b8e76cc12e2b73ff9ad920f7f4eb370f0ca3b33.tar.bz2
packages-4b8e76cc12e2b73ff9ad920f7f4eb370f0ca3b33.tar.xz
packages-4b8e76cc12e2b73ff9ad920f7f4eb370f0ca3b33.zip
user/haveged: new package
Diffstat (limited to 'user/haveged/APKBUILD')
-rw-r--r--user/haveged/APKBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/user/haveged/APKBUILD b/user/haveged/APKBUILD
new file mode 100644
index 000000000..7a40a3fc4
--- /dev/null
+++ b/user/haveged/APKBUILD
@@ -0,0 +1,51 @@
+# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
+# Contributor: Danilo Godec <danilo.godec@agenda.si>
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: multiplexd <multi@in-addr.xyz>
+pkgname=haveged
+pkgver=1.9.4
+pkgrel=1
+pkgdesc="Entropy harvesting daemon using CPU timings"
+url="http://www.issihosts.com/haveged/"
+arch="all"
+license="GPL-3.0+"
+subpackages="$pkgname-doc $pkgname-openrc"
+makedepends="linux-headers"
+source="$pkgname-$pkgver.tar.gz::https://github.com/jirka-h/haveged/archive/$pkgver.tar.gz
+ fix-cpu-cache-size-detection.patch
+ haveged.initd
+ haveged.confd"
+
+build() {
+ cd "$builddir"
+
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+
+ make DESTDIR="$pkgdir" install
+
+ rm "$pkgdir"/usr/lib/libhavege.la
+
+ install -Dm755 "$srcdir"/haveged.initd \
+ "$pkgdir"/etc/init.d/haveged
+ install -Dm644 "$srcdir"/haveged.confd \
+ "$pkgdir"/etc/conf.d/haveged
+}
+
+sha512sums="20017c7637779c0cfa414233bb67efb2976f92c08e4eb1b7ea41ccd483dad755629d8e05fb8560a2db811fc2ded7d05fa081ab10c59341cb4c206595a964641d haveged-1.9.4.tar.gz
+6279296b057f19daf25020ac14997268230af4b11510d6e5c4a86989c119d6b081d2501069af198772302d5cce1464514c749033a4928fb95671268825a84ba8 fix-cpu-cache-size-detection.patch
+5d1e4186580951d4e6e01193e9c8827ceddaf3c2e28a981fc9176cb446bed32b059304796a77d9db6fb761a21f8fd27dd3d31e06a0fb7a5985b4ea94978fcd64 haveged.initd
+57201472fc659aaab919562a00d474d3823d5becea62e8b13ef93eda05e1fd667721c968f224fcae871d13cfcd16d1924403d9181e0899fa214fa00bf4fefc75 haveged.confd"