aboutsummaryrefslogtreecommitdiff
path: root/system/bit-babbler
diff options
context:
space:
mode:
Diffstat (limited to 'system/bit-babbler')
-rw-r--r--system/bit-babbler/README2
-rw-r--r--system/bit-babbler/README.Slackware9
-rw-r--r--system/bit-babbler/bit-babbler.SlackBuild11
-rw-r--r--system/bit-babbler/bit-babbler.info10
-rw-r--r--system/bit-babbler/rc.seedd.new8
5 files changed, 22 insertions, 18 deletions
diff --git a/system/bit-babbler/README b/system/bit-babbler/README
index e0e415989793..0359eb623ebc 100644
--- a/system/bit-babbler/README
+++ b/system/bit-babbler/README
@@ -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.
diff --git a/system/bit-babbler/README.Slackware b/system/bit-babbler/README.Slackware
index eb0ab82e5d95..d807cf93ed64 100644
--- a/system/bit-babbler/README.Slackware
+++ b/system/bit-babbler/README.Slackware
@@ -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:
diff --git a/system/bit-babbler/bit-babbler.SlackBuild b/system/bit-babbler/bit-babbler.SlackBuild
index 5e7051b91d6f..6661ad340946 100644
--- a/system/bit-babbler/bit-babbler.SlackBuild
+++ b/system/bit-babbler/bit-babbler.SlackBuild
@@ -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
diff --git a/system/bit-babbler/bit-babbler.info b/system/bit-babbler/bit-babbler.info
index c4e67773a5b0..d69abf65dfbf 100644
--- a/system/bit-babbler/bit-babbler.info
+++ b/system/bit-babbler/bit-babbler.info
@@ -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"
diff --git a/system/bit-babbler/rc.seedd.new b/system/bit-babbler/rc.seedd.new
index 7742543cd8b8..c7df6b2effc5 100644
--- a/system/bit-babbler/rc.seedd.new
+++ b/system/bit-babbler/rc.seedd.new
@@ -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
}