diff options
Diffstat (limited to 'system/bit-babbler/bit-babbler.SlackBuild')
-rw-r--r-- | system/bit-babbler/bit-babbler.SlackBuild | 12 |
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. |