2006-02-23 15:26:10 +00:00
|
|
|
# Description: Secure SHell server and client tools
|
2021-12-13 12:02:19 +01:00
|
|
|
# URL: https://www.openssh.org/
|
2021-04-19 14:49:28 +02:00
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
|
|
# Depends on: linux-pam openssl zlib
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=openssh
|
2023-12-19 10:02:42 +01:00
|
|
|
version=9.6p1
|
2023-03-17 19:17:06 +01:00
|
|
|
release=1
|
2023-08-14 09:40:41 +02:00
|
|
|
source=(https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/$name-$version.tar.gz
|
2021-04-19 14:49:28 +02:00
|
|
|
sshd.rc sshd.pam)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build() {
|
2021-04-19 14:49:28 +02:00
|
|
|
cd $name-$version
|
2019-01-14 15:10:57 +01:00
|
|
|
|
2021-04-19 14:49:28 +02:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--libexecdir=/usr/lib/ssh \
|
|
|
|
--sysconfdir=/etc/ssh \
|
|
|
|
--with-mantype=man \
|
|
|
|
--mandir=/usr/share/man \
|
2022-01-21 15:40:19 +01:00
|
|
|
--with-pid-dir=/run \
|
2021-04-19 14:49:28 +02:00
|
|
|
--with-pam \
|
|
|
|
--with-privsep-user=nobody \
|
|
|
|
--with-privsep-path=/var/empty \
|
2023-08-20 22:26:34 +02:00
|
|
|
--with-xauth=/usr/bin/xauth \
|
|
|
|
--without-zlib-version-check
|
2021-04-19 14:49:28 +02:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
install -D -m 755 $SRC/sshd.rc $PKG/etc/rc.d/sshd
|
|
|
|
install -D -m 644 $SRC/sshd.pam $PKG/etc/pam.d/sshd
|
|
|
|
rm -r $PKG/var
|
2017-08-08 14:29:58 -05:00
|
|
|
|
2021-04-19 14:49:28 +02:00
|
|
|
# enable PAM
|
|
|
|
sed '/^#UsePAM/aUsePAM yes' -i $PKG/etc/ssh/sshd_config
|
2019-11-22 15:41:40 +01:00
|
|
|
|
2021-04-19 14:49:28 +02:00
|
|
|
install -D -m 755 contrib/ssh-copy-id $PKG/usr/bin/ssh-copy-id
|
|
|
|
install -D -m 644 contrib/ssh-copy-id.1 $PKG/usr/share/man/man1/ssh-copy-id.1
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|