Skip to contentSkip to conversation

haveged: new package

PATCH New Gustavo Zacarias 2 participants 3 messages Nov 19, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 haveged: new package

---
 package/Config.in          |  1 +
 package/haveged/Config.in  |  9 +++++++++
 package/haveged/S21haveged | 25 +++++++++++++++++++++++++
 package/haveged/haveged.mk | 17 +++++++++++++++++
 4 files changed, 52 insertions(+)
 create mode 100644 package/haveged/Config.in
 create mode 100755 package/haveged/S21haveged
 create mode 100644 package/haveged/haveged.mk
package/Config.in +1 -0
index e7b29b0..de4e966 100644
@@ -751,6 +751,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"
package/haveged/Config.in new file +9 -0
new file mode 100644
index 0000000..0e49a2d
@@ -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/
package/haveged/S21haveged new file +25 -0
new file mode 100755
index 0000000..f17cd29
@@ -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
package/haveged/haveged.mk new file +17 -0
new file mode 100644
index 0000000..c634c54
@@ -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))
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 1/1 haveged: new package

Dear Gustavo Zacarias,

I had to find something to review, so here is the nitpick of the day:

Quoted 1 line · Gustavo Zacarias

+#############################################################

There should be 80 # signs :-)

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 haveged: new package

Quoted 3 lines · Thomas Petazzoni
Quoted 1 line

+#############################################################

There should be 80 # signs :-)

That happens when using an old template people :)
Regards.