aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-05-25 02:08:53 +0300
committerCem Keylan <cem@ckyln.com>2020-05-25 02:08:53 +0300
commit8efde306bcbbf5398ba5c4b19db44ef744e8853a (patch)
tree07e7146d9e04e2459345d232a228d2af1ba94a5a
parent34d5abd67185b234e904a5cac589c412c5734795 (diff)
downloadrepository-8efde306bcbbf5398ba5c4b19db44ef744e8853a.tar.gz
eudev: ditch install
-rwxr-xr-xcore/eudev/build9
1 files changed, 7 insertions, 2 deletions
diff --git a/core/eudev/build b/core/eudev/build
index 297c9920..68a37e7b 100755
--- a/core/eudev/build
+++ b/core/eudev/build
@@ -1,5 +1,10 @@
#!/bin/sh -e
+kinstall() {
+ mkdir -p "${2%/*}"; cp "$3" "$2"
+ chmod "$1" "$2"
+}
+
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
@@ -11,8 +16,8 @@ make
make DESTDIR="$1" install
# Install runit service.
-install -Dm755 udevd.run "$1/etc/sv/udevd/run"
+kinstall 755 "$1/etc/sv/udevd/run" udevd.run
ln -s /run/runit/supervise.udevd "$1/etc/sv/udevd/supervise"
# Install sysmgr service.
-install -Dm755 udevd.run "$1/etc/sysmgr/udevd"
+kinstall 755 "$1/etc/sysmgr/udevd" udevd.run