From 0431954a01737d6c4a05e60251fcb9e5b0730715 Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Tue, 16 Apr 2013 11:55:16 -0700 Subject: Add packaging Change-Id: I050e1957ff088b18d1105d58b8f9fb244b6adeb6 --- packaging/rng-tools.changes | 4 ++++ packaging/rng-tools.spec | 31 +++++++++++++++++++++++++++++++ packaging/rngd.service | 8 ++++++++ 3 files changed, 43 insertions(+) create mode 100644 packaging/rng-tools.changes create mode 100644 packaging/rng-tools.spec create mode 100644 packaging/rngd.service 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 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 -- cgit v1.2.3