summaryrefslogtreecommitdiff
path: root/pcr/haveged
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-11-07 22:41:58 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-11-07 22:41:58 -0200
commit8da2c1605c06abe0e9334cd6cc3b390538c0c1ac (patch)
tree2ae943a36b62f04732ab786dfe66aad5d0ca1d3e /pcr/haveged
parente893c032aab01638827ad44669b5a6ea45c57c01 (diff)
parent3032537688e6317ed549cf069f2091d54d46a6f3 (diff)
downloadabslibre-8da2c1605c06abe0e9334cd6cc3b390538c0c1ac.tar.gz
abslibre-8da2c1605c06abe0e9334cd6cc3b390538c0c1ac.tar.bz2
abslibre-8da2c1605c06abe0e9334cd6cc3b390538c0c1ac.zip
Merge branch 'master' of ssh://projects.parabola.nu/~git/abslibre
Diffstat (limited to 'pcr/haveged')
-rw-r--r--pcr/haveged/PKGBUILD12
-rw-r--r--pcr/haveged/haveged44
-rw-r--r--pcr/haveged/haveged.service9
3 files changed, 15 insertions, 50 deletions
diff --git a/pcr/haveged/PKGBUILD b/pcr/haveged/PKGBUILD
index 257e1f39f..cddf37363 100644
--- a/pcr/haveged/PKGBUILD
+++ b/pcr/haveged/PKGBUILD
@@ -2,20 +2,20 @@
# Contributor (Arch): pootzko <pootzko at gmail dot com>
pkgname=haveged
-pkgver=1.1
+pkgver=1.9.1
pkgrel=1
pkgdesc="A simple entropy daemon."
arch=('i686' 'x86_64' 'mips64el')
url="http://www.issihosts.com/haveged"
license="GPL"
source=(${url}/${pkgname}-${pkgver}.tar.gz
- haveged)
-md5sums=('f7752f0355a0e89d8f196658db5f6884'
- '264b725be5271288b40f363d7cfc6b68')
+ haveged.service)
+md5sums=('015ff58cd10607db0e0de60aeca2f5f8'
+ 'ff884d546792ec37625a3c20864dba16')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
- ./configure --prefix=/usr
+ ./configure --prefix=/usr --sbindir=/usr/bin
make
}
@@ -24,5 +24,5 @@ package() {
make DESTDIR=${pkgdir} install
rm -rf ${pkgdir}/etc/init.d
cd ${srcdir}
- install -D -m755 haveged ${pkgdir}/etc/rc.d/haveged
+ install -vDm755 haveged.service ${pkgdir}/usr/lib/systemd/system/haveged.service
}
diff --git a/pcr/haveged/haveged b/pcr/haveged/haveged
deleted file mode 100644
index c0e13b40d..000000000
--- a/pcr/haveged/haveged
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/bash
-##
-# chkconfig: 2345 75 25
-# description: havege entropy daemon
-#
-# source function library
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-RETVAL=0
-prog="haveged"
-
-case "$1" in
-start)
- stat_busy $"Starting $prog"
- /usr/sbin/$prog -w 1024 -v 1
- if [ $? -gt 0 ]; then
- stat_fail
- else
- add_daemon $prog
- stat_done
- fi
- ;;
-
-stop)
- stat_busy $"Stopping $prog"
- kill `cat /var/run/$prog.pid`
- if [ $? -gt 0 ]; then
- stat_fail
- else
- rm_daemon $prog
- stat_done
- rm -f /var/lock/$prog
- fi
- ;;
-
-restart)
- $0 stop
- $0 start
- ;;
-
-*)
- echo "usage: $prog [start|stop|restart]"
-esac
diff --git a/pcr/haveged/haveged.service b/pcr/haveged/haveged.service
new file mode 100644
index 000000000..82871f9dd
--- /dev/null
+++ b/pcr/haveged/haveged.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=A simple entropy daemon
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/haveged -w 1024 -v 1
+
+[Install]
+WantedBy=multi-user.target