summaryrefslogtreecommitdiff
path: root/pcr/haveged
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-08-27 05:07:26 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-08-27 05:07:26 -0300
commit0ff008e3c9dcc5ef088f481dfff3dcd121575598 (patch)
treed6f6cf5d6939e1f030a48d3711d3606570afd08f /pcr/haveged
parented9d1c12bbfcf9cb8b3d53e886edb679df372640 (diff)
downloadabslibre-0ff008e3c9dcc5ef088f481dfff3dcd121575598.tar.gz
abslibre-0ff008e3c9dcc5ef088f481dfff3dcd121575598.tar.bz2
abslibre-0ff008e3c9dcc5ef088f481dfff3dcd121575598.zip
move some packages from [social] to [pcr] and remove unused [social]
Diffstat (limited to 'pcr/haveged')
-rw-r--r--pcr/haveged/PKGBUILD28
-rw-r--r--pcr/haveged/haveged44
2 files changed, 72 insertions, 0 deletions
diff --git a/pcr/haveged/PKGBUILD b/pcr/haveged/PKGBUILD
new file mode 100644
index 000000000..257e1f39f
--- /dev/null
+++ b/pcr/haveged/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer (Arch): kfgz <kfgz at interia dot pl>
+# Contributor (Arch): pootzko <pootzko at gmail dot com>
+
+pkgname=haveged
+pkgver=1.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')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ make DESTDIR=${pkgdir} install
+ rm -rf ${pkgdir}/etc/init.d
+ cd ${srcdir}
+ install -D -m755 haveged ${pkgdir}/etc/rc.d/haveged
+}
diff --git a/pcr/haveged/haveged b/pcr/haveged/haveged
new file mode 100644
index 000000000..c0e13b40d
--- /dev/null
+++ b/pcr/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