1 |
angelos 14/03/22 15:00:30 |
2 |
|
3 |
Added: audio-entropyd.conf-2 |
4 |
audio-entropyd-2.0.1-uclibc.patch |
5 |
audio-entropyd-2.0.1-ldflags.patch |
6 |
audio-entropyd.init-2 |
7 |
Log: |
8 |
Move audio-entropyd to sys-apps |
9 |
|
10 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 84F20B43) |
11 |
|
12 |
Revision Changes Path |
13 |
1.1 sys-apps/audio-entropyd/files/audio-entropyd.conf-2 |
14 |
|
15 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/audio-entropyd/files/audio-entropyd.conf-2?rev=1.1&view=markup |
16 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/audio-entropyd/files/audio-entropyd.conf-2?rev=1.1&content-type=text/plain |
17 |
|
18 |
Index: audio-entropyd.conf-2 |
19 |
=================================================================== |
20 |
# Copyright 1999-2004 Gentoo Foundation |
21 |
# Distributed under the terms of the GNU General Public License v2 |
22 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/audio-entropyd/files/audio-entropyd.conf-2,v 1.1 2014/03/22 15:00:29 angelos Exp $ |
23 |
|
24 |
# /etc/conf.d/audio-entropyd |
25 |
|
26 |
# The acceptable values are DEVICE, READSIZE and SAMPLERATE |
27 |
# These defaults give the optimum entropy |
28 |
|
29 |
#DEVICE="hw:0" |
30 |
|
31 |
#SAMPLERATE must be a valid sampling rate of your audio source |
32 |
SAMPLERATE="44050" |
33 |
|
34 |
|
35 |
|
36 |
1.1 sys-apps/audio-entropyd/files/audio-entropyd-2.0.1-uclibc.patch |
37 |
|
38 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/audio-entropyd/files/audio-entropyd-2.0.1-uclibc.patch?rev=1.1&view=markup |
39 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/audio-entropyd/files/audio-entropyd-2.0.1-uclibc.patch?rev=1.1&content-type=text/plain |
40 |
|
41 |
Index: audio-entropyd-2.0.1-uclibc.patch |
42 |
=================================================================== |
43 |
--- audio-entropyd-1.0.1.orig/error.c 2008-01-22 09:50:28 +0000 |
44 |
+++ audio-entropyd-1.0.1/error.c 2008-01-22 09:53:51 +0000 |
45 |
@@ -9,13 +9,13 @@ |
46 |
#include <signal.h> |
47 |
#include <syslog.h> |
48 |
#include <regex.h> |
49 |
-#if defined(__GLIBC__) |
50 |
+#if defined(__GLIBC__) && !defined(__UCLIBC__) |
51 |
#include <execinfo.h> |
52 |
#endif |
53 |
|
54 |
void print_trace(void) |
55 |
{ |
56 |
-#if defined(__GLIBC__) |
57 |
+#if defined(__GLIBC__) && !defined(__UCLIBC__) |
58 |
void *array[MAX_BACKTRACE_LENGTH]; |
59 |
size_t size; |
60 |
|
61 |
@@ -39,7 +39,7 @@ |
62 |
printf("\n\n\nDebug information:\n"); |
63 |
if (errno) fprintf(stderr, "errno: %d=%s (if applicable)\n", errno, strerror(errno)); |
64 |
|
65 |
-#if defined(__GLIBC__) |
66 |
+#if defined(__GLIBC__) && !defined(__UCLIBC__) |
67 |
print_trace(); |
68 |
#endif |
69 |
|
70 |
|
71 |
|
72 |
|
73 |
1.1 sys-apps/audio-entropyd/files/audio-entropyd-2.0.1-ldflags.patch |
74 |
|
75 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/audio-entropyd/files/audio-entropyd-2.0.1-ldflags.patch?rev=1.1&view=markup |
76 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/audio-entropyd/files/audio-entropyd-2.0.1-ldflags.patch?rev=1.1&content-type=text/plain |
77 |
|
78 |
Index: audio-entropyd-2.0.1-ldflags.patch |
79 |
=================================================================== |
80 |
diff --git a/Makefile b/Makefile |
81 |
index 95a84a6..340f95f 100644 |
82 |
--- a/Makefile |
83 |
+++ b/Makefile |
84 |
@@ -12,7 +12,7 @@ TARGETS=audio-entropyd |
85 |
all: $(TARGETS) |
86 |
|
87 |
audio-entropyd: audio-entropyd.o error.o proc.o val.o RNGTEST.o error.o |
88 |
- $(CC) -o $@ $^ $(LFLAGS) |
89 |
+ $(CC) $(LDFLAGS) -o $@ $^ $(LFLAGS) |
90 |
|
91 |
install: audio-entropyd |
92 |
cp audio-entropyd /usr/local/sbin/ |
93 |
|
94 |
|
95 |
|
96 |
1.1 sys-apps/audio-entropyd/files/audio-entropyd.init-2 |
97 |
|
98 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/audio-entropyd/files/audio-entropyd.init-2?rev=1.1&view=markup |
99 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/audio-entropyd/files/audio-entropyd.init-2?rev=1.1&content-type=text/plain |
100 |
|
101 |
Index: audio-entropyd.init-2 |
102 |
=================================================================== |
103 |
#!/sbin/runscript |
104 |
# Copyright 1999-2004 Gentoo Foundation |
105 |
# Distributed under the terms of the GNU General Public License v2 |
106 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/audio-entropyd/files/audio-entropyd.init-2,v 1.1 2014/03/22 15:00:29 angelos Exp $ |
107 |
|
108 |
depend() { |
109 |
need modules |
110 |
use alsasound |
111 |
} |
112 |
|
113 |
start() { |
114 |
local params="" |
115 |
[ -n "$DEVICE" ] && params="$params -d $DEVICE" |
116 |
[ -n "$SAMPLERATE" ] && params="$params -N $SAMPLERATE" |
117 |
|
118 |
ebegin "Starting audio entropy gathering daemon" |
119 |
start-stop-daemon --start --quiet --pidfile /var/run/audio-entropyd.pid \ |
120 |
--exec /usr/sbin/audio-entropyd -- ${params} |
121 |
eend ${?} |
122 |
} |
123 |
|
124 |
stop() { |
125 |
ebegin "Stopping audio entropy gathering daemon" |
126 |
start-stop-daemon --stop --quiet --pidfile /var/run/audio-entropyd.pid |
127 |
eend ${?} |
128 |
} |