diff options
Diffstat (limited to 'system/runit-services/runit-services.SlackBuild')
-rw-r--r-- | system/runit-services/runit-services.SlackBuild | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/system/runit-services/runit-services.SlackBuild b/system/runit-services/runit-services.SlackBuild index 521c6ae0dea4e..b44e068d80597 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 \; |