mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
system/bit-babbler: Updated for version 0.8.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
6c17771f31
commit
3f83238811
5 changed files with 22 additions and 18 deletions
|
@ -2,4 +2,4 @@ The BitBabbler is a hardware True Random Number Generator (TRNG)
|
|||
manufactured by Voicetronix of Australia. This package installs the
|
||||
software necessary to control and test White and Black BB devices.
|
||||
|
||||
Please see README.Slackare for installation tips.
|
||||
Please see README.Slackware for installation tips.
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
After installing this package, you'll need to addgroup "bit-babbler"
|
||||
**OR** put a modified copy of /lib/udev/rules.d/90-bit-babbler.rules
|
||||
into /etc/udev/rules.d that uses an existing group (e.g., "wheel").
|
||||
(So long as the file name is identical, the modified rules file in this
|
||||
directory will override the default rules installed by this package.)
|
||||
To begin: groupadd "bit-babbler", or place a modified copy of
|
||||
90-bit-babbler.rules (found in /lib/udev/rules.d/) into /etc/udev/rules.d
|
||||
that uses an existing group (e.g., "wheel"). For consistency, change
|
||||
socket-group in /etc/bit-babbler/seedd.conf to use the same group.
|
||||
|
||||
To have your BitBabbler device(s) start feeding entropy to the
|
||||
kernel at boot:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
# SlackBuild for bit-babbler, 24 September 2017
|
||||
# AW Green <awg@posteo.us>
|
||||
# SlackBuild for bit-babbler, 5 March 2018
|
||||
# awg <awg@cock.li>
|
||||
# All rights reserved.
|
||||
#
|
||||
# Permission to use, copy, modify, or distribute this software for any
|
||||
|
@ -21,7 +21,7 @@
|
|||
## see the file 'copyright' in the bit-babbler source distribution.
|
||||
|
||||
PRGNAM=bit-babbler
|
||||
VERSION=${VERSION:-0.7}
|
||||
VERSION=${VERSION:-0.8}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -88,7 +88,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
|
|||
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a debian/copyright debian/changelog doc/virtual_machines $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a debian/copyright debian/changelog debian/bit-babbler.NEWS doc/virtual_machines $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
# install sysctl setting, udev rules, and init script.
|
||||
|
@ -96,6 +96,9 @@ install -D -m 0644 debian/bit-babbler-sysctl.conf $PKG/etc/sysctl.d/bit-babbler-
|
|||
install -D -m 0644 debian/bit-babbler.udev $PKG/lib/udev/rules.d/90-bit-babbler.rules
|
||||
install -D -m 0644 $CWD/rc.seedd.new $PKG/etc/rc.d/rc.seedd.new
|
||||
|
||||
# cut out unneeded files.
|
||||
rm -rv $PKG/lib/systemd/
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="bit-babbler"
|
||||
VERSION="0.7"
|
||||
VERSION="0.8"
|
||||
HOMEPAGE="http://bit-babbler.org/"
|
||||
DOWNLOAD="http://bit-babbler.org/downloads/bit-babbler_0.7.tar.gz"
|
||||
MD5SUM="70f3387149df13caa722820774592090"
|
||||
DOWNLOAD="http://bit-babbler.org/downloads/bit-babbler_0.8.tar.gz"
|
||||
MD5SUM="1def2a04c9f0783d8cc466b64b6b118e"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="AW Green"
|
||||
EMAIL="awg@posteo.us"
|
||||
MAINTAINER="awg"
|
||||
EMAIL="awg@cock.li"
|
||||
|
|
|
@ -2,14 +2,16 @@
|
|||
#
|
||||
# /etc/rc.d/rc.seedd: start and stop BitBabbler TRNG(s).
|
||||
|
||||
BBOPTS='--daemon --config=/etc/bit-babbler/seedd.conf'
|
||||
|
||||
seedd_start() {
|
||||
if [ -S /var/run/bit-babbler/seedd.socket ]; then
|
||||
echo 'seedd appears to be already running!'
|
||||
else
|
||||
echo 'Checking for BitBabbler(s)...'
|
||||
/usr/bin/seedd --scan
|
||||
echo 'Starting seedd: /usr/bin/seedd --daemon --kernel'
|
||||
/usr/bin/seedd --daemon --kernel
|
||||
/usr/bin/seedd --scan
|
||||
echo "Starting seedd: /usr/bin/seedd $BBOPTS"
|
||||
/usr/bin/seedd $BBOPTS
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue