Lines 16-21
Link Here
|
16 |
|
16 |
|
17 |
DEPEND="" |
17 |
DEPEND="" |
18 |
|
18 |
|
|
|
19 |
urandom_info() { |
20 |
if use urandom; then |
21 |
DEV="/dev/urandom" |
22 |
else |
23 |
DEV="/dev/random" |
24 |
fi |
25 |
einfo |
26 |
einfo "Using $DEV as random device" |
27 |
einfo "If /dev/random is used, programs may sporadically pause for several seconds." |
28 |
einfo "Using /dev/urandom prevents this, but weakens cryptography." |
29 |
einfo "/dev/urandom is good enough for most purposes." |
30 |
einfo |
31 |
} |
32 |
|
19 |
src_compile() { |
33 |
src_compile() { |
20 |
elibtoolize || die "elibtoolize failed" |
34 |
elibtoolize || die "elibtoolize failed" |
21 |
|
35 |
|
Lines 25-36
Link Here
|
25 |
myconf="${myconf} --enable-threads" |
39 |
myconf="${myconf} --enable-threads" |
26 |
myconf="${myconf} --enable-nonportable-atomics" |
40 |
myconf="${myconf} --enable-nonportable-atomics" |
27 |
if use urandom; then |
41 |
if use urandom; then |
28 |
einfo "Using /dev/urandom as random device" |
|
|
29 |
myconf="${myconf} --with-devrandom=/dev/urandom" |
42 |
myconf="${myconf} --with-devrandom=/dev/urandom" |
30 |
else |
43 |
else |
31 |
einfo "Using /dev/random as random device" |
|
|
32 |
myconf="${myconf} --with-devrandom=/dev/random" |
44 |
myconf="${myconf} --with-devrandom=/dev/random" |
33 |
fi |
45 |
fi |
|
|
46 |
urandom_info |
34 |
|
47 |
|
35 |
econf ${myconf} || die |
48 |
econf ${myconf} || die |
36 |
emake || die |
49 |
emake || die |
Lines 52-54
Link Here
|
52 |
|
65 |
|
53 |
dodoc CHANGES LICENSE NOTICE |
66 |
dodoc CHANGES LICENSE NOTICE |
54 |
} |
67 |
} |
|
|
68 |
|
69 |
pkg_postinst() { |
70 |
urandom_info |
71 |
} |