summaryrefslogtreecommitdiff
path: root/pcr/video_entropyd
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2013-09-11 11:23:56 -0300
committerNicolás Reynolds <fauno@endefensadelsl.org>2013-09-11 11:23:56 -0300
commit10f6d40e71d8d0450007e3e6be19db673f449652 (patch)
tree88bb5475b09b3b0b0a46de78cedc02fa9362d468 /pcr/video_entropyd
parent777c049258079127ca3625a0b4f9d2b2f27924f9 (diff)
downloadabslibre-10f6d40e71d8d0450007e3e6be19db673f449652.tar.gz
abslibre-10f6d40e71d8d0450007e3e6be19db673f449652.tar.bz2
abslibre-10f6d40e71d8d0450007e3e6be19db673f449652.zip
gather entropy from video devices
Diffstat (limited to 'pcr/video_entropyd')
-rw-r--r--pcr/video_entropyd/PKGBUILD28
-rw-r--r--pcr/video_entropyd/video_entropyd.service9
2 files changed, 37 insertions, 0 deletions
diff --git a/pcr/video_entropyd/PKGBUILD b/pcr/video_entropyd/PKGBUILD
new file mode 100644
index 000000000..e096aabdd
--- /dev/null
+++ b/pcr/video_entropyd/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: fauno <fauno@parabola.nu>
+pkgname=video_entropyd
+pkgver=2.0
+pkgrel=1
+pkgdesc="Feeds the /dev/random device with entropy-data read from a video device"
+arch=('i686')
+url="http://vanheusden.com/ved/"
+license=('GPL2')
+groups=('entropy')
+source=(http://www.vanheusden.com/ved/${pkgname}-${pkgver}.tgz
+ ${pkgname}.service)
+sha1sums=('9d566bce8d0f0fa4e8be24b481ffdba0d0c70406'
+ '30cfb694ee886e36ab97329d575a8b9437a30bb2')
+sha256sums=('aba6255ddb32cd376c785128a7e850fb51b6c1d7fe3f4ba765abc0c50ec67d7a'
+ 'b6988df79823a29ab04bfa0fe6d8f2e14f3176398eb220fa1248c6728e8be27f')
+
+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/video_entropyd/video_entropyd.service b/pcr/video_entropyd/video_entropyd.service
new file mode 100644
index 000000000..1dfef410a
--- /dev/null
+++ b/pcr/video_entropyd/video_entropyd.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Gathering entropy from video
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/video_entropyd
+
+[Install]
+WantedBy=multi-user.target