core/openssh/Pkgfile

39 lines
1.0 KiB
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: Secure SHell server and client tools
2021-12-13 12:02:19 +01:00
# URL: https://www.openssh.org/
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: linux-pam openssl zlib
2006-02-23 16:26:10 +01:00
name=openssh
2023-10-05 10:41:18 +02:00
version=9.5p1
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
sshd.rc sshd.pam)
2006-02-23 16:26:10 +01:00
build() {
cd $name-$version
./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 \
--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
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
# enable PAM
sed '/^#UsePAM/aUsePAM yes' -i $PKG/etc/ssh/sshd_config
2019-11-22 15:41:40 +01: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 16:26:10 +01:00
}