summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McCarty <patrick.mccarty@linux.intel.com>2013-04-16 11:55:16 -0700
committerPatrick McCarty <patrick.mccarty@linux.intel.com>2013-04-17 14:42:11 -0700
commit0431954a01737d6c4a05e60251fcb9e5b0730715 (patch)
tree21f5f6d0296a3b41066c1adb703e42ab12f4ece1
parentab15de43a1110820e448940c479c7d988072b072 (diff)
downloadrng-tools-0431954a01737d6c4a05e60251fcb9e5b0730715.tar.gz
rng-tools-0431954a01737d6c4a05e60251fcb9e5b0730715.tar.bz2
rng-tools-0431954a01737d6c4a05e60251fcb9e5b0730715.zip
Change-Id: I050e1957ff088b18d1105d58b8f9fb244b6adeb6
-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