diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-11-07 19:44:37 -0200 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-11-07 19:44:37 -0200 |
commit | f81d1c0d9e6506b23ccb87594acdae9bb82cc871 (patch) | |
tree | 5791dd10e53751b77ceeea136563c2be46099b1a /pcr | |
parent | 73d3ddfbdcbb999a4596de9721481bb7ba1d28bd (diff) |
update haveged to 1.9.1
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/haveged/PKGBUILD | 10 | ||||
-rw-r--r-- | pcr/haveged/haveged | 44 | ||||
-rw-r--r-- | pcr/haveged/haveged.service | 9 |
3 files changed, 14 insertions, 49 deletions
diff --git a/pcr/haveged/PKGBUILD b/pcr/haveged/PKGBUILD index 257e1f39f..c92878de4 100644 --- a/pcr/haveged/PKGBUILD +++ b/pcr/haveged/PKGBUILD @@ -2,16 +2,16 @@ # 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} @@ -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 -D -m755 haveged ${pkgdir}/usr/lib/systemd/system } 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 |