From 661ba4266905aad3ada9c773c761847ac7f9a182 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Sat, 24 Jul 2021 01:07:59 +0300 Subject: openssh: use clinst, clsv --- extra/openssh/build | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'extra/openssh/build') 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 -- cgit v1.2.3