summaryrefslogtreecommitdiff
path: root/system/bit-babbler/bit-babbler.SlackBuild
diff options
context:
space:
mode:
authorawg <awg@cock.li>2019-03-17 07:59:51 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-03-17 07:59:51 +0700
commitdb745e69d421411445a287c8684e0ec94d71a15b (patch)
tree2157c1cd5252ee2f239f431f9c205aac60c7f31e /system/bit-babbler/bit-babbler.SlackBuild
parentdaa1e41d735b8152258cb80b6e4830381bb339cf (diff)
downloadslackbuilds-db745e69d421411445a287c8684e0ec94d71a15b.tar.gz
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.SlackBuild12
1 files changed, 6 insertions, 6 deletions
diff --git a/system/bit-babbler/bit-babbler.SlackBuild b/system/bit-babbler/bit-babbler.SlackBuild
index 6f8f806e28..c8344c1afb 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, 6 March 2019
+# SlackBuild for bit-babbler, 7 March 2019
# awg <awg@cock.li>
# All rights reserved.
#
@@ -97,11 +97,11 @@ 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
# 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.
+if [ "${BBGROUP:=bit-babbler}" ]; then
+ sed -i -e "s/^\(GROUP=\"\)bit-babbler\(\"\)/\1$BBGROUP\2/" \
+ -e "s/\(-m g:\)bit-babbler\(:rw\)/\1$BBGROUP\2/" $PKG/lib/udev/rules.d/90-bit-babbler.rules
+ mv $PKG/etc/bit-babbler/seedd.conf $PKG/etc/bit-babbler/seedd.conf.new
+ sed -i -e "s/^\([[:blank:]]*socket-group[[:blank:]]*\)adm/\1$BBGROUP/" $PKG/etc/bit-babbler/seedd.conf.new
fi
# remove trash.