aboutsummaryrefslogtreecommitdiff
path: root/system/runit-services/runit-services.SlackBuild
diff options
context:
space:
mode:
authorAaditya Bagga <aaditya_gnulinux@zoho.com>2019-10-27 15:52:18 +0530
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-11-01 06:14:17 +0700
commit751ae3de785567e59b610682e64f2cfe62f90dc4 (patch)
tree3176ea1c2c631e076de7402693f44ddc84269c0a /system/runit-services/runit-services.SlackBuild
parent8a0c405d375fe21fb8ab04b3c7ed386cc882891e (diff)
system/runit-services: Updated for version 20191026.
Diffstat (limited to 'system/runit-services/runit-services.SlackBuild')
-rw-r--r--system/runit-services/runit-services.SlackBuild9
1 files changed, 6 insertions, 3 deletions
diff --git a/system/runit-services/runit-services.SlackBuild b/system/runit-services/runit-services.SlackBuild
index 521c6ae0de..b44e068d80 100644
--- a/system/runit-services/runit-services.SlackBuild
+++ b/system/runit-services/runit-services.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=runit-services
-VERSION=${VERSION:-20191015}
+VERSION=${VERSION:-20191026}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -51,11 +51,14 @@ find -L . \
# Install
make install DESTDIR="$PKG"
+if [ "${RUNITSVDIR:-/service}" != '/service' ]; then
+ make update-config DESTDIR="$PKG" RUNITSVDIR="$RUNITSVDIR"
+fi
# Fix some things
# ntp user does not exist in 14.2
-sed -i 's/ntp:daemon/daemon:adm/' -i "${PKG}/etc/sv/ntpd/log/conf"
-echo "NTPD_USER=root # for slack 14.2" >> "${PKG}/etc/sv/ntpd/conf"
+sed 's/ntp:daemon/daemon:adm/' -i "${PKG}/etc/sv/ntpd/log/conf"
+sed 's/ntp:ntp/root:root/' -i "${PKG}/etc/sv/ntpd/conf"
# Backup config files
find -L "${PKG}/etc/sv" -type f -name conf -exec mv {} {}.new \;