diff options
Diffstat (limited to 'extra/openssh/build')
-rwxr-xr-x | extra/openssh/build | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/extra/openssh/build b/extra/openssh/build index a70f97a3..6f293438 100755 --- a/extra/openssh/build +++ b/extra/openssh/build @@ -1,15 +1,12 @@ #!/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" -autoreconf -fi - ./configure \ --prefix=/usr \ --sbindir=/usr/bin \ @@ -28,12 +25,8 @@ autoreconf -fi 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" - -# Install runit service. -install -Dm755 sshd.run "$1/etc/sv/sshd/run" -ln -s /run/runit/supervise.sshd "$1/etc/sv/sshd/supervise" +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 sysmgr service. -install -Dm755 sshd.run "$1/etc/sysmgr/sshd" +# Install sshd service +clsv -d "$1" sshd.run |