summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/rng-tools.changes4
-rw-r--r--packaging/rng-tools.spec31
-rw-r--r--packaging/rngd.service8
3 files changed, 43 insertions, 0 deletions
diff --git a/packaging/rng-tools.changes b/packaging/rng-tools.changes
new file mode 100644
index 0000000..99f2b7d
--- /dev/null
+++ b/packaging/rng-tools.changes
@@ -0,0 +1,4 @@
+* Wed Apr 17 2013 Patrick McCarty <patrick.mccarty@linux.intel.com> 97d6357
+- Add packaging
+- Imported Upstream version 4
+
diff --git a/packaging/rng-tools.spec b/packaging/rng-tools.spec
new file mode 100644
index 0000000..1a59680
--- /dev/null
+++ b/packaging/rng-tools.spec
@@ -0,0 +1,31 @@
+Name: rng-tools
+Version: 4
+Release: 0
+License: GPL-2.0+
+Summary: A random number generator daemon
+Url: http://sourceforge.net/projects/gkernel
+Group: Development/Tools
+Source0: %{name}-%{version}.tar.gz
+Source1: rngd.service
+
+%description
+A daemon that monitors a hardware random number generator, and supplies entropy
+from that to the system kernel's /dev/random machinery.
+
+%prep
+%setup -q
+
+%build
+%configure
+make %{?_smp_mflags}
+
+%install
+%make_install
+install -Dm0644 %{SOURCE1} %{buildroot}%{_prefix}/lib/systemd/system/rngd.service
+
+%docs_package
+
+%files
+%{_bindir}/rngtest
+%{_prefix}/lib/systemd/system/rngd.service
+%{_sbindir}/rngd
diff --git a/packaging/rngd.service b/packaging/rngd.service
new file mode 100644
index 0000000..6895c24
--- /dev/null
+++ b/packaging/rngd.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=Hardware RNG Encryption Gatherer Daemon
+
+[Service]
+ExecStart=/usr/sbin/rngd -f
+
+[Install]
+WantedBy=multi-user.target