aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-10-06 15:52:43 +0300
committerCem Keylan <cem@ckyln.com>2020-10-06 15:52:43 +0300
commit5605a58d8ce15d6e24ff1b55dae0d428f0901f09 (patch)
tree62d5517f0eb0b3eb3d85a974c24785da3b954dfc /core
parent06190816f22a376e10dbcea87ecc6e1c819ca042 (diff)
downloadrepository-5605a58d8ce15d6e24ff1b55dae0d428f0901f09.tar.gz
runit: make install calls more portable
Diffstat (limited to 'core')
-rwxr-xr-xcore/runit/build10
1 files changed, 7 insertions, 3 deletions
diff --git a/core/runit/build b/core/runit/build
index a8bdb9bb..17aec618 100755
--- a/core/runit/build
+++ b/core/runit/build
@@ -13,10 +13,15 @@ cd "runit-$2"
make
- install -Dm755 -t "$1/usr/bin/" chpst runit runit-init runsv runsvchdir runsvdir sv svlogd utmpset
+ for bin in chpst runit runit-init runsv runsvchdir runsvdir sv svlogd \
+ utmpset ../../poweroff ../../reboot; do
+ install -Dm755 "$bin" "$1/usr/bin/${bin}"
+ done
)
-install -Dm644 -t "$1/usr/share/man/man8" man/*
+for manpage in man/*; do
+ install -Dm644 "$manpage" "$1/usr/share/man/man8/${manpage##*/}"
+done
mkdir -p "$1/var/service" "$1/etc/runit"
ln -s runit-init "$1/usr/bin/init"
@@ -24,4 +29,3 @@ ln -s /usr/lib/init/rc.boot "$1/etc/runit/1"
ln -s /usr/lib/init/rc.shutdown "$1/etc/runit/3"
install -Dm755 ../2 "$1/etc/runit/2"
-install -Dm755 -t "$1/usr/bin" ../poweroff ../reboot