Signed-off-by: Alexander Dahl <[email protected]>
---
This is not complete, I just tried if it helps solving my problem, it
does not. But because it runs so far, I'd like to share it anyway. Add
startup files for bbinit or systemd as you like. Some examples come
with the source, for bbinit buildroot has something one could have a
look at.

 rules/haveged.in   |  9 +++++++++
 rules/haveged.make | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)
 create mode 100644 rules/haveged.in
 create mode 100644 rules/haveged.make

diff --git a/rules/haveged.in b/rules/haveged.in
new file mode 100644
index 0000000..50e890f
--- /dev/null
+++ b/rules/haveged.in
@@ -0,0 +1,9 @@
+## SECTION=shell_and_console
+
+config HAVEGED
+       tristate
+       prompt "haveged"
+       help
+         An entropy daemon and random number generator.
+
+# vim: ft=kconfig noet tw=72
diff --git a/rules/haveged.make b/rules/haveged.make
new file mode 100644
index 0000000..54cccec
--- /dev/null
+++ b/rules/haveged.make
@@ -0,0 +1,56 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2016 by Alexander Dahl <[email protected]>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_HAVEGED) += haveged
+
+#
+# Paths and names
+#
+HAVEGED_VERSION        := 1.9.1
+HAVEGED_MD5    := 015ff58cd10607db0e0de60aeca2f5f8
+HAVEGED                := haveged-$(HAVEGED_VERSION)
+HAVEGED_SUFFIX := tar.gz
+HAVEGED_URL    := \
+       http://www.issihosts.com/haveged/$(HAVEGED).$(HAVEGED_SUFFIX) \
+       http://www.issihosts.com/haveged/archive/$(HAVEGED).$(HAVEGED_SUFFIX)
+HAVEGED_SOURCE := $(SRCDIR)/$(HAVEGED).$(HAVEGED_SUFFIX)
+HAVEGED_DIR    := $(BUILDDIR)/$(HAVEGED)
+HAVEGED_LICENSE        := GPL-3.0+
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+HAVEGED_CONF_TOOL      := autoconf
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/haveged.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init, haveged)
+       @$(call install_fixup, haveged,PRIORITY,optional)
+       @$(call install_fixup, haveged,SECTION,base)
+       @$(call install_fixup, haveged,AUTHOR,"Alexander Dahl 
<[email protected]>")
+       @$(call install_fixup, haveged,DESCRIPTION,missing)
+
+       @$(call install_lib, haveged, 0, 0, 0644, libhavege)
+       @$(call install_copy, haveged, 0, 0, 0755, -, /usr/sbin/haveged)
+
+       @$(call install_finish, haveged)
+
+       @$(call touch)
+
+# vim: ft=make noet
-- 
2.1.4


_______________________________________________
ptxdist mailing list
[email protected]

Reply via email to