mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
system/haveged: Updated for version 1.7c.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
aa4341618b
commit
124c55da4e
3 changed files with 20 additions and 19 deletions
|
@ -2,17 +2,18 @@ haveged (a simple entropy-gathering daemon)
|
|||
|
||||
The haveged project is an attempt to provide an easy-to-use, unpredictable
|
||||
random number generator based upon an adaptation of the HAVEGE algorithm.
|
||||
Haveged was created to remedy low-entropy conditions in the Linux random device
|
||||
that can occur under some workloads, especially on headless servers.
|
||||
Haveged was created to remedy low-entropy conditions in the Linux random
|
||||
device that can occur under some workloads, especially on headless servers.
|
||||
|
||||
The HAVEGE algorithm is based upon the indirect effects of unrelated hardware
|
||||
events on the instruction timing of a calculation that is sensitive to processor
|
||||
features such as branch predictors and instruction/data access mechanisms.
|
||||
events on the instruction timing of a calculation that is sensitive to
|
||||
processor features such as branch predictors and instruction/data access
|
||||
mechanisms.
|
||||
Samples from a high-resolution timer are input into the algorithm to
|
||||
produce a stream of random data in a collection buffer. The contents of this
|
||||
buffer can be fed into the random device or accessed directly through the file
|
||||
system. File system access is a useful alternative to those situations where
|
||||
use of the random device is either inappropriate or not available.
|
||||
buffer can be fed into the random device or accessed directly through the
|
||||
file system. File system access is a useful alternative to those situations
|
||||
where use of the random device is either inappropriate or not available.
|
||||
|
||||
Add the following snippet to your /etc/rc.d/rc.M to start up haveged at boot:
|
||||
|
||||
|
@ -21,6 +22,6 @@ if [ -x /etc/rc.d/rc.haveged ]; then
|
|||
/etc/rc.d/rc.haveged start
|
||||
fi
|
||||
|
||||
You can see how many bits of entropy are available to the system by reading the
|
||||
/proc/sys/kernel/random/entropy_avail file, and check the size of your entropy
|
||||
pool at /proc/sys/kernel/random/poolsize.
|
||||
You can see how many bits of entropy are available to the system by reading
|
||||
the /proc/sys/kernel/random/entropy_avail file, and check the size of your
|
||||
entropy pool at /proc/sys/kernel/random/poolsize.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for haveged
|
||||
|
||||
# Copyright 2012 Erik Falor, West Valley City, Utah, USA
|
||||
# Copyright 2013 Erik Falor, West Valley City, Utah, USA
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -23,7 +23,7 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=haveged
|
||||
VERSION=${VERSION:-1.5}
|
||||
VERSION=${VERSION:-1.7c}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -64,10 +64,10 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
|||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="haveged"
|
||||
VERSION="1.5"
|
||||
VERSION="1.7c"
|
||||
HOMEPAGE="http://www.issihosts.com/haveged/index.html"
|
||||
DOWNLOAD="http://www.issihosts.com/haveged/haveged-1.5.tar.gz"
|
||||
MD5SUM="c1f34be00c3f438ec83862e90e192e4b"
|
||||
DOWNLOAD="http://www.issihosts.com/haveged/haveged-1.7c.tar.gz"
|
||||
MD5SUM="036760389b1827a2532e248dd3cc46d3"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
|
|
Loading…
Reference in a new issue