summaryrefslogtreecommitdiff
path: root/sys-apps/audio-entropyd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-apps/audio-entropyd
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/audio-entropyd')
-rw-r--r--sys-apps/audio-entropyd/Manifest10
-rw-r--r--sys-apps/audio-entropyd/audio-entropyd-2.0.3-r1.ebuild37
-rw-r--r--sys-apps/audio-entropyd/files/audio-entropyd-2.0.1-ldflags.patch13
-rw-r--r--sys-apps/audio-entropyd/files/audio-entropyd-2.0.1-uclibc.patch27
-rw-r--r--sys-apps/audio-entropyd/files/audio-entropyd.conf-212
-rw-r--r--sys-apps/audio-entropyd/files/audio-entropyd.init-226
-rw-r--r--sys-apps/audio-entropyd/files/audio-entropyd.service8
-rw-r--r--sys-apps/audio-entropyd/metadata.xml5
8 files changed, 138 insertions, 0 deletions
diff --git a/sys-apps/audio-entropyd/Manifest b/sys-apps/audio-entropyd/Manifest
new file mode 100644
index 000000000000..4fb99b4842b7
--- /dev/null
+++ b/sys-apps/audio-entropyd/Manifest
@@ -0,0 +1,10 @@
+AUX audio-entropyd-2.0.1-ldflags.patch 358 SHA256 466eb7a2e2513708ef11ac9dbf54773ee8861b94ff0c111e6e89ed69dedee479 SHA512 0a1456d0580a08193e2b4e2a408405a0b412de0c54838ce950e6dc2490bc3f45276a86f53f2e7489b3f47343afddcb250d906ef0cb5ddce65f6b51bcab57d2e0 WHIRLPOOL 92656f7e399289403cfd53023c85de7ebc3ac494386b0850136d58f947cd7cc6784a141d15e18c3fb3bbc2e42ae85d393733f03cdd45c0f6b9445954279f4663
+AUX audio-entropyd-2.0.1-uclibc.patch 708 SHA256 78d5f8cf969cc199c8651f6b2d4f451c9b79afba457e5253edffedd7c4f5cc49 SHA512 9e78deb5a813307f1cc87cef0cd10121c0a48b9fcda573a868687b307f95ce4f318a8dc845699c054dda9acb71a1ba0d16bb545c0f0f2ebf38ec834d58eaea3e WHIRLPOOL 8870929374af4edd758117ce8286da6c1a9eb7882811a9ebc032c91ec926fd7d1ffb81ef5c607feeceeb426814c37905ac12e2ff1e9fa285efd14a7e750cfe27
+AUX audio-entropyd.conf-2 340 SHA256 f1be5b6b5b6c46e9ecbdc1ca2a78400edf3873e849c3881009f42d84f425006d SHA512 9922bcdf6e5be49dd158ccd2e14328b1d314d756a9b61bd5c262baef25136e56517c9087097e22808106b09c5e877fe143d024f2c63ae8b12d2d316b6d371dd0 WHIRLPOOL 65cdeeb0c386a9dcf8c6adb0dc5a170429ae596375c45e515ec56c64b7ff6c356cc469389d60c8af375bdfe37cd08aae3f18329f9820163fbf471f47abc3b42d
+AUX audio-entropyd.init-2 651 SHA256 5902c62b62fffd8592a6c06b37f02625ab36f08ebbe522bd7b88c6324bad9ad4 SHA512 61ff99fca907c555f45312c0250511a7c0f7bb757ea7da3d7c6c33932884d9bfdc2148dac466d96fb023ab10bb0d78c3134f488a8486bc38da3743ec2200df57 WHIRLPOOL 238bce9c6a50577df8746444a932fbb7b3e842e0d891111c1016b5d8aaa566c70f32ba6da1da5842367eafcbf0d18e49db283e3074fce5d7244d0b8eb760d17d
+AUX audio-entropyd.service 127 SHA256 6dd1ead6fb1409798b9e2022b387158e3bdf95c9b3e756ac868fdd7b4583564b SHA512 991948b7638f90a7f909492374b70a0f6964a3406df1f5794c25b46523e3c09b2a1d89dfd3c08e6f2925fe5d94a59b5645c0a9bee4746e7d670bacb5831f4001 WHIRLPOOL 281d6d0e0ab97c841e2f95ac5d284fb501c2ded5d1e13b6d9f1fbba8e8f9bd6fbf7351fe130d88c5c65cd91fedadf8c9b55e3098878fc8032b4545339fee97bd
+DIST audio-entropyd-2.0.3.tgz 16681 SHA256 6fbaf1c4f77e988f4656cd079309d5eb6bd36cbae89c2ee01324c5690adaf3ff SHA512 d21c2d547235accdd460bcaf1ff5f5696db2988d385c3c52aad0d651865386409682f8747d1823765f0c0925bf28f38abdfc0b114d239f494c7eb699c5ed3ebf WHIRLPOOL e653b7cccda00323b5f17a675d72cef1a9adf9915dcd27041e63993073a378d92ab5779d25434ecd48ecbb74b45abc4217e4b629c98ba3885589727ef90edf6d
+EBUILD audio-entropyd-2.0.3-r1.ebuild 934 SHA256 ea591cab6d7ca76ae632fd0a87449bb3728fa1f1a0ebe0c24c4e056460d4e29e SHA512 131e1cb96b30b19aaa64ffa8d6c9af98127a6f11621e13e447135164f2bdfe510429671b9f9081c61c6be5cc883777ea7e4352a905721d037a98cdb0c54f7b17 WHIRLPOOL d967f16b3e15e78edaf7766e672d20448ef07f76003daa82fb67c1c020826ed4acec4a5e85f05a15779b9783ee7f81c3494ae15e6647d9aadc6d9172d06a8552
+MISC ChangeLog 2855 SHA256 2a5ff3dcee2700ed70fcb6ae3c17ee4fcd3c2561885989d893b002909f3dd64b SHA512 31c04d051e75dab09ae5898cb1da121ac88c366a4c549a396ad5a8a51d90d80be65cbb2660ddc3f52d369a86335080cdc1aeefc62dbad83df18523e96103337e WHIRLPOOL 642218d7659cee760d64f864dd2f4d0964edfb50f33d05b663db5513bc500f5b8399a7630682254b4250ac8c80a7a9fe868233cfb98bde115ec5ccab5d21a4f5
+MISC ChangeLog-2015 7020 SHA256 80dc6774200dea3ae14dc0904de67acccbb5b81286b4653373ff5fe54afdccc1 SHA512 a0da02cae8be468204573d4d5d6d9f2bd0632ef588b480af0802d2cb0ac914272c8ad170a9a289fb42fddd7ddaaf956b70879119f5d1ea691d0caf925abe0b03 WHIRLPOOL b8ffab0060348456ac4e395d703c817bdcdf5c2eee6a6299a1e2d3672d32e54f1df2efac75e93184643ada39e4069e0b84b65c817030809478ca5a68ce41b4fd
+MISC metadata.xml 241 SHA256 0f2e37b698efda33b2d447f810b2f84882ce2fea989e1f5bf752a8388b5d891a SHA512 dafca7f08962c7d0cc66f603d499915103b4994e2453329857da0d3456363a80bc69c6c35ee537ca013b9969c44ac61d99bab5150a0474b8b970d08d11ad6b56 WHIRLPOOL 3e54a6fdd50ddd37ef0cca85140bd5a3d329e338dc379ee09e6fd50685775c24e783e01ae56d3cff0d31c3205657268140afddee3dce5e093262b6e93533d983
diff --git a/sys-apps/audio-entropyd/audio-entropyd-2.0.3-r1.ebuild b/sys-apps/audio-entropyd/audio-entropyd-2.0.3-r1.ebuild
new file mode 100644
index 000000000000..5e5a60fb72c6
--- /dev/null
+++ b/sys-apps/audio-entropyd/audio-entropyd-2.0.3-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils systemd toolchain-funcs
+
+DESCRIPTION="Audio-entropyd generates entropy-data for the /dev/random device"
+HOMEPAGE="http://www.vanheusden.com/aed/"
+SRC_URI="http://www.vanheusden.com/aed/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ~sparc x86"
+IUSE="selinux"
+
+RDEPEND="selinux? ( sec-policy/selinux-entropyd )
+ media-sound/alsa-utils
+ media-libs/alsa-lib"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-2.0.1-uclibc.patch" \
+ "${FILESDIR}/${PN}-2.0.1-ldflags.patch"
+ sed -i -e "s:^OPT_FLAGS=.*:OPT_FLAGS=${CFLAGS}:" \
+ -e "/^WARNFLAGS/s: -g::" Makefile || die
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ dosbin audio-entropyd
+ dodoc README TODO
+ systemd_dounit "${FILESDIR}/${PN}.service"
+ newinitd "${FILESDIR}/${PN}.init-2" ${PN}
+ newconfd "${FILESDIR}/${PN}.conf-2" ${PN}
+}
diff --git a/sys-apps/audio-entropyd/files/audio-entropyd-2.0.1-ldflags.patch b/sys-apps/audio-entropyd/files/audio-entropyd-2.0.1-ldflags.patch
new file mode 100644
index 000000000000..870e9121140d
--- /dev/null
+++ b/sys-apps/audio-entropyd/files/audio-entropyd-2.0.1-ldflags.patch
@@ -0,0 +1,13 @@
+diff --git a/Makefile b/Makefile
+index 95a84a6..340f95f 100644
+--- a/Makefile
++++ b/Makefile
+@@ -12,7 +12,7 @@ TARGETS=audio-entropyd
+ all: $(TARGETS)
+
+ audio-entropyd: audio-entropyd.o error.o proc.o val.o RNGTEST.o error.o
+- $(CC) -o $@ $^ $(LFLAGS)
++ $(CC) $(LDFLAGS) -o $@ $^ $(LFLAGS)
+
+ install: audio-entropyd
+ cp audio-entropyd /usr/local/sbin/
diff --git a/sys-apps/audio-entropyd/files/audio-entropyd-2.0.1-uclibc.patch b/sys-apps/audio-entropyd/files/audio-entropyd-2.0.1-uclibc.patch
new file mode 100644
index 000000000000..bdf5adeff825
--- /dev/null
+++ b/sys-apps/audio-entropyd/files/audio-entropyd-2.0.1-uclibc.patch
@@ -0,0 +1,27 @@
+--- audio-entropyd-1.0.1.orig/error.c 2008-01-22 09:50:28 +0000
++++ audio-entropyd-1.0.1/error.c 2008-01-22 09:53:51 +0000
+@@ -9,13 +9,13 @@
+ #include <signal.h>
+ #include <syslog.h>
+ #include <regex.h>
+-#if defined(__GLIBC__)
++#if defined(__GLIBC__) && !defined(__UCLIBC__)
+ #include <execinfo.h>
+ #endif
+
+ void print_trace(void)
+ {
+-#if defined(__GLIBC__)
++#if defined(__GLIBC__) && !defined(__UCLIBC__)
+ void *array[MAX_BACKTRACE_LENGTH];
+ size_t size;
+
+@@ -39,7 +39,7 @@
+ printf("\n\n\nDebug information:\n");
+ if (errno) fprintf(stderr, "errno: %d=%s (if applicable)\n", errno, strerror(errno));
+
+-#if defined(__GLIBC__)
++#if defined(__GLIBC__) && !defined(__UCLIBC__)
+ print_trace();
+ #endif
+
diff --git a/sys-apps/audio-entropyd/files/audio-entropyd.conf-2 b/sys-apps/audio-entropyd/files/audio-entropyd.conf-2
new file mode 100644
index 000000000000..d39ddfca29fa
--- /dev/null
+++ b/sys-apps/audio-entropyd/files/audio-entropyd.conf-2
@@ -0,0 +1,12 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# /etc/conf.d/audio-entropyd
+
+# The acceptable values are DEVICE, READSIZE and SAMPLERATE
+# These defaults give the optimum entropy
+
+#DEVICE="hw:0"
+
+#SAMPLERATE must be a valid sampling rate of your audio source
+SAMPLERATE="44050"
diff --git a/sys-apps/audio-entropyd/files/audio-entropyd.init-2 b/sys-apps/audio-entropyd/files/audio-entropyd.init-2
new file mode 100644
index 000000000000..ff59a659022d
--- /dev/null
+++ b/sys-apps/audio-entropyd/files/audio-entropyd.init-2
@@ -0,0 +1,26 @@
+#!/sbin/openrc-run
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need modules
+ use alsasound
+ provide entropy
+}
+
+start() {
+ local params=""
+ [ -n "$DEVICE" ] && params="$params -d $DEVICE"
+ [ -n "$SAMPLERATE" ] && params="$params -N $SAMPLERATE"
+
+ ebegin "Starting audio entropy gathering daemon"
+ start-stop-daemon --start --quiet --pidfile /var/run/audio-entropyd.pid \
+ --exec /usr/sbin/audio-entropyd -- ${params}
+ eend ${?}
+}
+
+stop() {
+ ebegin "Stopping audio entropy gathering daemon"
+ start-stop-daemon --stop --quiet --pidfile /var/run/audio-entropyd.pid
+ eend ${?}
+}
diff --git a/sys-apps/audio-entropyd/files/audio-entropyd.service b/sys-apps/audio-entropyd/files/audio-entropyd.service
new file mode 100644
index 000000000000..849ad0131c63
--- /dev/null
+++ b/sys-apps/audio-entropyd/files/audio-entropyd.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=Audio Entropy Daemon
+
+[Service]
+ExecStart=/usr/sbin/audio-entropyd -n
+
+[Install]
+WantedBy=multi-user.target
diff --git a/sys-apps/audio-entropyd/metadata.xml b/sys-apps/audio-entropyd/metadata.xml
new file mode 100644
index 000000000000..d53949a351ff
--- /dev/null
+++ b/sys-apps/audio-entropyd/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<longdescription>Audio-entropyd generates entropy-data for the /dev/random device.</longdescription>
+</pkgmetadata>