summaryrefslogtreecommitdiff
path: root/community/haveged
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-06-08 00:01:46 +0000
committerroot <root@rshg054.dnsready.net>2012-06-08 00:01:46 +0000
commit7d11e9346ebd0f9c378952caee0c82d6ca815f4e (patch)
tree37cbc273cef015a41013f52ed6a90fb16eca34f4 /community/haveged
parent334c2a7916a80d08b1c216cfbf02135e64891632 (diff)
Fri Jun 8 00:01:46 UTC 2012
Diffstat (limited to 'community/haveged')
-rw-r--r--community/haveged/PKGBUILD13
-rw-r--r--community/haveged/haveged.service11
2 files changed, 19 insertions, 5 deletions
diff --git a/community/haveged/PKGBUILD b/community/haveged/PKGBUILD
index 118750b7b..35087ea57 100644
--- a/community/haveged/PKGBUILD
+++ b/community/haveged/PKGBUILD
@@ -1,19 +1,21 @@
+# $Id: PKGBUILD 72028 2012-06-06 10:37:52Z heftig $
# 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.4
-pkgrel=1
-pkgdesc="A simple entropy daemon."
+pkgrel=3
+pkgdesc="Entropy harvesting daemon using CPU timings"
arch=('i686' 'x86_64')
url="http://www.issihosts.com/haveged"
license=('GPL')
-depends=('bash')
+depends=('glibc')
source=(${url}/${pkgname}-${pkgver}.tar.gz
- haveged)
+ haveged haveged.service)
md5sums=('39a03d4b8a4225706f78dbef3f623b0e'
- '264b725be5271288b40f363d7cfc6b68')
+ '264b725be5271288b40f363d7cfc6b68'
+ 'fc62a480f520377364503aca9efff0b0')
build() {
cd "${srcdir}"/${pkgname}-${pkgver/a/}
@@ -28,4 +30,5 @@ package() {
cd "${srcdir}"
install -D -m755 haveged "${pkgdir}"/etc/rc.d/haveged
+ install -D -m644 haveged.service "${pkgdir}"/usr/lib/systemd/system/haveged.service
}
diff --git a/community/haveged/haveged.service b/community/haveged/haveged.service
new file mode 100644
index 000000000..6803a0dec
--- /dev/null
+++ b/community/haveged/haveged.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Entropy Harvesting Daemon
+Documentation=man:haveged(8)
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/haveged -w 1024 -v 1
+PIDFile=/var/run/haveged.pid
+
+[Install]
+WantedBy=multi-user.target