diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-02-14 17:21:27 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-02-14 17:21:27 -0300 |
commit | 3710193870d8f4588f8ab8c510889908bf1864dc (patch) | |
tree | 076a408a7442a9a08c2b19f4d3eca196bd9f1a9a /social/haveged | |
parent | e2cdca58136c4751fb6cfc12e9c5e8292092153f (diff) |
[social] repo
Diffstat (limited to 'social/haveged')
-rw-r--r-- | social/haveged/PKGBUILD | 28 | ||||
-rw-r--r-- | social/haveged/haveged | 44 |
2 files changed, 72 insertions, 0 deletions
diff --git a/social/haveged/PKGBUILD b/social/haveged/PKGBUILD new file mode 100644 index 000000000..804a22199 --- /dev/null +++ b/social/haveged/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: pootzko <pootzko@gmail.com> +# Contributor: kfgz <kfgz@interia.pl> + +pkgname=haveged +pkgver=1.0 +pkgrel=1 +pkgdesc="A simple entropy daemon." +arch=('i686' 'x86_64') +url="http://www.issihosts.com/haveged" +license="GPL" +depends=() +source=(${url}/${pkgname}-${pkgver}.tar.gz + haveged) +md5sums=('72df03658cafac35e087fb75f6d4100d' + '264b725be5271288b40f363d7cfc6b68') + + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + ./configure --prefix=/usr + make + make DESTDIR=${pkgdir} install + rm -rf ${pkgdir}/etc/init.d + cd ${srcdir} + install -D -m755 haveged ${pkgdir}/etc/rc.d/haveged +} + + diff --git a/social/haveged/haveged b/social/haveged/haveged new file mode 100644 index 000000000..c0e13b40d --- /dev/null +++ b/social/haveged/haveged @@ -0,0 +1,44 @@ +#!/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 |