summaryrefslogtreecommitdiff
path: root/pcr/timer_entropyd
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2013-09-11 11:09:40 -0300
committerNicolás Reynolds <fauno@endefensadelsl.org>2013-09-11 11:09:40 -0300
commita18c214ce68fa4557343152aae775a952643f29d (patch)
treee7e7b48e07e8931aaa6db4e2ed31394d847714d6 /pcr/timer_entropyd
parent4e08f1fd5366402438696705ffeb6ddc26149049 (diff)
timer_entropyd
Diffstat (limited to 'pcr/timer_entropyd')
-rw-r--r--pcr/timer_entropyd/PKGBUILD28
-rw-r--r--pcr/timer_entropyd/timer_entropyd.service10
2 files changed, 38 insertions, 0 deletions
diff --git a/pcr/timer_entropyd/PKGBUILD b/pcr/timer_entropyd/PKGBUILD
new file mode 100644
index 000000000..487adb23d
--- /dev/null
+++ b/pcr/timer_entropyd/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: fauno <fauno@parabola.nu>
+pkgname=timer_entropyd
+pkgver=0.2
+pkgrel=1
+pkgdesc="Feeds the /dev/random device with entropy-data (random values) read from timers."
+arch=('i686')
+url="http://www.vanheusden.com/te/"
+license=('GPL2')
+groups=('entropy')
+source=(http://www.vanheusden.com/te/${pkgname}-${pkgver}.tgz
+ ${pkgname}.service)
+sha1sums=('61b82128bf4df483271a475a0cc772a7fd80a804'
+ 'a41669eda5a2ff283b17571805b603073a6f283f')
+sha256sums=('0cf2b976b78c1b1169a4bec5a6fc71d8b118de927bc05002686376a61f73989a'
+ '1cce8c38f310533d86a6dd95616d213835d16e35e38ee40990300afbc9895807')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ install -D -m 755 ${pkgname} ${pkgdir}/usr/bin/${pkgname}
+ install -D -m 644 ${srcdir}/${pkgname}.service \
+ ${pkgdir}/usr/lib/systemd/system/${pkgname}.service
+}
diff --git a/pcr/timer_entropyd/timer_entropyd.service b/pcr/timer_entropyd/timer_entropyd.service
new file mode 100644
index 000000000..ccda97ee7
--- /dev/null
+++ b/pcr/timer_entropyd/timer_entropyd.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Gathering entropy from system timers
+After=network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/timer_entropyd
+
+[Install]
+WantedBy=multi-user.target