summaryrefslogtreecommitdiff
path: root/pcr/audio-entropyd
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2013-09-11 11:18:58 -0300
committerNicolás Reynolds <fauno@endefensadelsl.org>2013-09-11 11:18:58 -0300
commit777c049258079127ca3625a0b4f9d2b2f27924f9 (patch)
tree5fdfae3d6ec063b58d855df055dcedcffb615b6f /pcr/audio-entropyd
parent786368508df89d4355bef325bd0121041afc4c52 (diff)
downloadabslibre-777c049258079127ca3625a0b4f9d2b2f27924f9.tar.gz
abslibre-777c049258079127ca3625a0b4f9d2b2f27924f9.tar.bz2
abslibre-777c049258079127ca3625a0b4f9d2b2f27924f9.zip
gather entropy from audio
Diffstat (limited to 'pcr/audio-entropyd')
-rw-r--r--pcr/audio-entropyd/PKGBUILD29
-rw-r--r--pcr/audio-entropyd/audio-entropyd.service10
2 files changed, 39 insertions, 0 deletions
diff --git a/pcr/audio-entropyd/PKGBUILD b/pcr/audio-entropyd/PKGBUILD
new file mode 100644
index 000000000..c691c0128
--- /dev/null
+++ b/pcr/audio-entropyd/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: fauno <fauno@parabola.nu>
+pkgname=audio-entropyd
+pkgver=2.0.3
+pkgrel=1
+pkgdesc="Feeds the /dev/random device with entropy-data read from an audio device"
+arch=('i686')
+url="http://vanheusden.com/aed/"
+license=('GPL2')
+groups=('entropy')
+depends=('alsa-lib')
+source=(http://www.vanheusden.com/aed/${pkgname}-${pkgver}.tgz
+ ${pkgname}.service)
+
+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
+}
+sha1sums=('b788559c6c01e17bb9d314ac2a7411bc30fbb8a2'
+ '6d3ad093176efaa0e5a4fe80113048aa9c4810ce')
+sha256sums=('6fbaf1c4f77e988f4656cd079309d5eb6bd36cbae89c2ee01324c5690adaf3ff'
+ '41704fac32b2c180c1fb6155b902445e2c5bc493da0191180cb3720cd72bd42c')
diff --git a/pcr/audio-entropyd/audio-entropyd.service b/pcr/audio-entropyd/audio-entropyd.service
new file mode 100644
index 000000000..feff7cae4
--- /dev/null
+++ b/pcr/audio-entropyd/audio-entropyd.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Gathering entropy from audio
+After=sound.target
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/audio-entropyd
+
+[Install]
+WantedBy=multi-user.target