aboutsummaryrefslogtreecommitdiff
path: root/system/bit-babbler/bit-babbler.SlackBuild
diff options
context:
space:
mode:
authorawg <awg@cock.li>2019-03-11 09:27:25 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-03-16 06:53:18 +0700
commit8c7340ae42a454a8d7a43e62c470be76b681c6d8 (patch)
treebf8dc67c1e276661f9de73978174a5dcdfec4c41 /system/bit-babbler/bit-babbler.SlackBuild
parent9bc9b438ce52b38d7c818d1e8ab089c89461f7ec (diff)
system/bit-babbler: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/bit-babbler/bit-babbler.SlackBuild')
-rw-r--r--system/bit-babbler/bit-babbler.SlackBuild16
1 files changed, 12 insertions, 4 deletions
diff --git a/system/bit-babbler/bit-babbler.SlackBuild b/system/bit-babbler/bit-babbler.SlackBuild
index 6661ad340946..6f8f806e28d3 100644
--- a/system/bit-babbler/bit-babbler.SlackBuild
+++ b/system/bit-babbler/bit-babbler.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# SlackBuild for bit-babbler, 5 March 2018
+# SlackBuild for bit-babbler, 6 March 2019
# awg <awg@cock.li>
# All rights reserved.
#
@@ -22,7 +22,7 @@
PRGNAM=bit-babbler
VERSION=${VERSION:-0.8}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -87,16 +87,24 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
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
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION $PKG/usr/doc/$PRGNAM-$VERSION/examples
cp -a debian/copyright debian/changelog debian/bit-babbler.NEWS doc/virtual_machines $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a doc/examples/*.pl $PKG/usr/doc/$PRGNAM-$VERSION/examples
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# install sysctl setting, udev rules, and init script.
install -D -m 0644 debian/bit-babbler-sysctl.conf $PKG/etc/sysctl.d/bit-babbler-sysctl.conf
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
+# set default socket control group in udev rules and seedd.conf for finished package.
+if [ "${GROUP:=bit-babbler}" ]; then
+ sed -i -e "s/^\(GROUP=\"\)bit-babbler\(\"\)/\1$GROUP\2/" \
+ -e "s/\(-m g:\)bit-babbler\(:rw\)/\1$GROUP\2/" $PKG/lib/udev/rules.d/90-bit-babbler.rules
+ sed -i -e "s/^\([[:blank:]]*socket-group[[:blank:]]*\)adm/\1$GROUP/" $PKG/etc/bit-babbler/seedd.conf
+ # group adm not a good default.
+fi
-# cut out unneeded files.
+# remove trash.
rm -rv $PKG/lib/systemd/
mkdir -p $PKG/install