summaryrefslogtreecommitdiff
path: root/user/haveged/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2019-01-27 20:20:57 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2019-01-27 20:20:57 +0000
commit35cf1156baad094ddcf9ef26ad26e71fe5df1a97 (patch)
tree1658207d9ae5156b742148c50309b051e756eb9e /user/haveged/APKBUILD
parentebeee0de334e0fe87934393f1be977aeb17805f3 (diff)
parent4b8e76cc12e2b73ff9ad920f7f4eb370f0ca3b33 (diff)
downloadpackages-35cf1156baad094ddcf9ef26ad26e71fe5df1a97.tar.gz
packages-35cf1156baad094ddcf9ef26ad26e71fe5df1a97.tar.bz2
packages-35cf1156baad094ddcf9ef26ad26e71fe5df1a97.tar.xz
packages-35cf1156baad094ddcf9ef26ad26e71fe5df1a97.zip
Merge branch 'haveged' into 'master'
user/haveged: new package APKBUILD, patch, and OpenRC script imported from Alpine. Builds and runs on `x86_64`. Note the OpenRC configuration file does not set any default options -- it may be desirable to set some default options there such as `-w 1024`, which I believe is common in other distributions. See merge request !149
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"