summaryrefslogtreecommitdiffstats
path: root/system/openrc-services/openrc-services.SlackBuild
diff options
context:
space:
mode:
author Aaditya Bagga2018-11-07 09:57:16 +0100
committer Willy Sudiarto Raharjo2018-11-30 15:07:55 +0100
commit62c420ffdc9855166c020c43d8987c49b21d4437 (patch)
tree2d494a88e48b37eab54666ffe65e45c619a96298 /system/openrc-services/openrc-services.SlackBuild
parent5679f858c08d713fed6c7785a6f3ad7ae165e421 (diff)
downloadslackbuilds-62c420ffdc9855166c020c43d8987c49b21d4437.tar.gz
system/openrc-services: Updated for version 20181107 + SYSCONFDIR changed.
Diffstat (limited to 'system/openrc-services/openrc-services.SlackBuild')
-rw-r--r--system/openrc-services/openrc-services.SlackBuild19
1 files changed, 10 insertions, 9 deletions
diff --git a/system/openrc-services/openrc-services.SlackBuild b/system/openrc-services/openrc-services.SlackBuild
index 2e481a77f4..0b152f9914 100644
--- a/system/openrc-services/openrc-services.SlackBuild
+++ b/system/openrc-services/openrc-services.SlackBuild
@@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=openrc-services
-VERSION=${VERSION:-20180916}
+VERSION=${VERSION:-20181107}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -71,19 +71,20 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Install
-sh install.sh "$PKG"
+SYSCONFDIR="etc/openrc"
+SYSCONFDIR="$SYSCONFDIR" sh install.sh "$PKG"
# Install slackware compatibility services
-install -Dm 644 misc/local.d/rcM.start "$PKG/etc/local.d/rcM.start"
-install -Dm 755 misc/local.d/rcd_net.start "$PKG/etc/local.d/rcd_net.start"
+install -Dm 644 misc/local.d/rcM.start "$PKG/etc/openrc/local.d/rcM.start"
+install -Dm 755 misc/local.d/rcd_net.start "$PKG/etc/openrc/local.d/rcd_net.start"
# Enable some basic services
-install -d "$PKG/etc/runlevels/sysinit"
-ln -sf /etc/init.d/udev "$PKG/etc/runlevels/sysinit/udev"
-ln -sf /etc/init.d/udev-trigger "$PKG/etc/runlevels/sysinit/udev-trigger"
+install -d "$PKG/etc/openrc/runlevels/sysinit"
+ln -sf /etc/openrc/init.d/udev "$PKG/etc/openrc/runlevels/sysinit/udev"
+ln -sf /etc/openrc/init.d/udev-trigger "$PKG/etc/openrc/runlevels/sysinit/udev-trigger"
# Backup config files
-for file in $PKG/etc/conf.d/*; do
+for file in $PKG/etc/openrc/conf.d/*; do
mv "$file" "${file}.new"
done
@@ -91,7 +92,7 @@ for file in $PKG/etc/logrotate.d/*; do
mv "$file" "${file}.new"
done
-for file in $PKG/etc/local.d/*; do
+for file in $PKG/etc/openrc/local.d/*; do
mv "$file" "${file}.new"
done