summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2013-11-19 12:10:32 (GMT)
committer Peter Korsgaard <peter@korsgaard.com>2013-11-19 12:21:32 (GMT)
commit9f07355f3dae75d557db2c2fe32929154ef8a812 (patch)
treeb2f8c9d86b44d65cedb4a28f33d7c51526847b4b
parenta98442f2b514d296c8639d9fa66e6a64b54dd6b4 (diff)
downloadbuildroot-9f07355f3dae75d557db2c2fe32929154ef8a812.tar.gz
buildroot-9f07355f3dae75d557db2c2fe32929154ef8a812.tar.bz2
haveged: new package
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/Config.in1
-rw-r--r--package/haveged/Config.in9
-rwxr-xr-xpackage/haveged/S21haveged25
-rw-r--r--package/haveged/haveged.mk17
4 files changed, 52 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index 311cc6c..1a95b10 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -750,6 +750,7 @@ source "package/bc/Config.in"
source "package/collectd/Config.in"
source "package/empty/Config.in"
source "package/googlefontdirectory/Config.in"
+source "package/haveged/Config.in"
source "package/mcrypt/Config.in"
source "package/mobile-broadband-provider-info/Config.in"
source "package/shared-mime-info/Config.in"
diff --git a/package/haveged/Config.in b/package/haveged/Config.in
new file mode 100644
index 0000000..0e49a2d
--- /dev/null
+++ b/package/haveged/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_HAVEGED
+ bool "haveged"
+ depends on BR2_USE_MMU # fork()
+ help
+ The haveged project is an attempt to provide an easy-to-use,
+ unpredictable random number generator based upon an adaptation
+ of the HAVEGE algorithm.
+
+ http://www.issihosts.com/haveged/
diff --git a/package/haveged/S21haveged b/package/haveged/S21haveged
new file mode 100755
index 0000000..f17cd29
--- /dev/null
+++ b/package/haveged/S21haveged
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+[ -x /usr/sbin/haveged ] || exit 0
+
+case "$1" in
+ start)
+ echo -n "Starting haveged: "
+ start-stop-daemon -S -x /usr/sbin/haveged -- -w 1024 -r 0
+ [ $? == 0 ] && echo "OK" || echo "FAIL"
+ ;;
+ stop)
+ echo -n "Stopping haveged: "
+ start-stop-daemon -K -x /usr/sbin/haveged
+ [ $? == 0 ] && echo "OK" || echo "FAIL"
+ ;;
+ restart|reload)
+ $0 stop
+ $0 start
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|restart}"
+ exit 1
+esac
+
+exit 0
diff --git a/package/haveged/haveged.mk b/package/haveged/haveged.mk
new file mode 100644
index 0000000..99dbe41
--- /dev/null
+++ b/package/haveged/haveged.mk
@@ -0,0 +1,17 @@
+################################################################################
+#
+# haveged
+#
+################################################################################
+
+HAVEGED_VERSION = 1.7c
+HAVEGED_SITE = http://www.issihosts.com/haveged
+HAVEGED_LICENSE = GPLv3+
+HAVEGED_LICENSE_FILES = COPYING
+
+define HAVEGED_INSTALL_INIT_SYSV
+ $(INSTALL) -m 755 -D package/haveged/S21haveged \
+ $(TARGET_DIR)/etc/init.d/S21haveged
+endef
+
+$(eval $(autotools-package))