summaryrefslogtreecommitdiff
path: root/community/haveged
diff options
context:
space:
mode:
Diffstat (limited to 'community/haveged')
-rw-r--r--community/haveged/PKGBUILD34
-rw-r--r--community/haveged/service11
2 files changed, 45 insertions, 0 deletions
diff --git a/community/haveged/PKGBUILD b/community/haveged/PKGBUILD
new file mode 100644
index 000000000..09d1ccf4b
--- /dev/null
+++ b/community/haveged/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 92888 2013-06-18 08:41:07Z bpiotrowski $
+# 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.7.c
+_pkgver=${pkgver/.c/c}
+pkgrel=1
+pkgdesc='Entropy harvesting daemon using CPU timings'
+arch=('i686' 'x86_64')
+url='http://www.issihosts.com/haveged'
+license=('GPL')
+depends=('glibc')
+options=('!libtool')
+source=($url/$pkgname-$_pkgver.tar.gz
+ service)
+sha256sums=('40397eded96fc0d624a6a81c8e888ab023e46f3114f1ee699994e645531bf121'
+ 'badf8ceb5484d45888a089fabdfba5f44f6ec2930bca203c50200051a4d83e12')
+
+build() {
+ cd $pkgname-$_pkgver
+ ./configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/bin
+ make
+}
+
+package() {
+ cd $pkgname-$_pkgver
+ make DESTDIR="$pkgdir" install
+
+ rm -rf "$pkgdir"/etc/init.d
+ install -D -m644 "$srcdir"/service \
+ "$pkgdir"/usr/lib/systemd/system/haveged.service
+}
diff --git a/community/haveged/service b/community/haveged/service
new file mode 100644
index 000000000..676fb1893
--- /dev/null
+++ b/community/haveged/service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Entropy Harvesting Daemon
+Documentation=man:haveged(8)
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/haveged -w 1024 -v 1
+PIDFile=/var/run/haveged.pid
+
+[Install]
+WantedBy=multi-user.target