aboutsummaryrefslogtreecommitdiff
path: root/extra/openssh/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-07-24 01:07:59 +0300
committerCem Keylan <cem@ckyln.com>2021-07-24 01:07:59 +0300
commit661ba4266905aad3ada9c773c761847ac7f9a182 (patch)
tree20bb3edf76841167812292b7cfcb676bb4437641 /extra/openssh/build
parenta88818c93a6bba0ec417b10cce96c1cd3fb22be6 (diff)
downloadrepository-661ba4266905aad3ada9c773c761847ac7f9a182.tar.gz
openssh: use clinst, clsv
Diffstat (limited to 'extra/openssh/build')
-rwxr-xr-xextra/openssh/build16
1 files changed, 6 insertions, 10 deletions
diff --git a/extra/openssh/build b/extra/openssh/build
index ff39eaa9..6f293438 100755
--- a/extra/openssh/build
+++ b/extra/openssh/build
@@ -1,8 +1,8 @@
#!/bin/sh -e
# Adds optional libedit support
-cpt-list libedit >/dev/null 2>&1 &&
- libedit="--with-libedit" && LIBS="$(pkgconf --static --libs libedit)"
+cpt-list -q libedit &&
+ libedit="--with-libedit" LIBS="$(pkgconf --static --libs libedit)"
export LIBS
export LDFLAGS="$LDFLAGS -static"
@@ -25,12 +25,8 @@ export LDFLAGS="$LDFLAGS -static"
make
make DESTDIR="$1" install
-install -m 755 contrib/ssh-copy-id "$1/usr/bin/ssh-copy-id"
-install -m 644 contrib/ssh-copy-id.1 "$1/usr/share/man/man8/ssh-copy-id.1"
+clinst -m 755 contrib/ssh-copy-id "$1/usr/bin/ssh-copy-id"
+clinst -m 644 contrib/ssh-copy-id.1 "$1/usr/share/man/man8/ssh-copy-id.1"
-# Install runit service.
-install -Dm755 sshd.run "$1/etc/sv/sshd/run"
-ln -s /run/runit/supervise.sshd "$1/etc/sv/sshd/supervise"
-
-# Install sysmgr service.
-install -Dm755 sshd.run "$1/etc/sysmgr/sshd"
+# Install sshd service
+clsv -d "$1" sshd.run