2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-21 23:00:06 -07:00
repo/extra/openssh/build

36 lines
853 B
Plaintext
Raw Normal View History

2019-07-01 05:40:19 -06:00
#!/bin/sh -e
2024-09-24 23:22:12 -06:00
patch -p1 < musl-btmp.patch
2024-07-02 20:13:31 -06:00
export CFLAGS="$CFLAGS -Wno-error=incompatible-pointer-types"
2019-07-01 05:40:19 -06:00
./configure \
--prefix=/usr \
--datadir=/usr/share/openssh \
--sysconfdir=/etc/ssh \
2020-02-10 14:35:37 -07:00
--sbindir=/usr/bin \
2020-05-08 02:59:03 -06:00
--libexecdir=/usr/lib/openssh \
2019-07-01 05:40:19 -06:00
--without-selinux \
2023-08-21 17:04:22 -06:00
--without-zlib-version-check \
2019-07-01 05:40:19 -06:00
--with-privsep-user=nobody \
--with-mantype=doc \
--without-rpath \
--disable-strip \
--with-ssl-engine \
--with-pid-dir=/run \
--disable-wtmp \
2022-10-05 17:57:00 -06:00
--disable-utmp \
--disable-security-key
2019-07-01 05:40:19 -06:00
make
make DESTDIR="$1" install
2021-07-01 10:34:46 -06:00
cp -f contrib/ssh-copy-id "$1/usr/bin"
cp -f contrib/ssh-copy-id.1 "$1/usr/share/man/man1"
chmod +x "$1/usr/bin/ssh-copy-id"
2019-07-04 01:16:16 -06:00
# Install runit services.
2021-07-01 10:34:46 -06:00
mkdir -p "$1/etc/sv/sshd"
cp -f sshd.run "$1/etc/sv/sshd/run"
ln -sf /run/runit/supervise.sshd "$1/etc/sv/sshd/supervise"