2022-03-20 13:19:37 +01:00
|
|
|
#!/usr/bin/bash
|
|
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
|
2022-10-10 23:18:04 +02:00
|
|
|
# Website : https://pozol.eu
|
2022-03-20 13:19:37 +01:00
|
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
|
|
|
|
pkgname=openssh
|
2023-03-16 20:50:50 +01:00
|
|
|
pkgver=9.3p1
|
2023-02-03 02:49:13 +01:00
|
|
|
pkgrel=01
|
2022-10-30 21:04:21 +01:00
|
|
|
pkgdesc='SSH protocol implementation for remote login, command execution and file transfer w/o systemd'
|
2022-10-10 23:18:04 +02:00
|
|
|
url='https://www.openssh.com/portable.html'
|
2022-10-30 21:04:21 +01:00
|
|
|
depends=(
|
|
|
|
'glibc'
|
|
|
|
'krb5'
|
|
|
|
'ldns'
|
|
|
|
'libedit'
|
|
|
|
'libxcrypt'
|
|
|
|
'openssl'
|
|
|
|
'pam'
|
|
|
|
'zlib')
|
|
|
|
makedepends=(linux-lts-headers libfido2 autoconf automake)
|
|
|
|
optdepends=(
|
|
|
|
'libfido2: FIDO/U2F support'
|
|
|
|
'x11-ssh-askpass: input passphrase in X'
|
|
|
|
'xorg-xauth: X11 forwarding')
|
|
|
|
# old source
|
2022-03-20 13:19:37 +01:00
|
|
|
#source=("git://anongit.mindrot.org/openssh.git?signed#tag=V_8_2_P1"
|
2022-10-10 23:18:04 +02:00
|
|
|
backup=('etc/ssh/ssh_config' 'etc/ssh/sshd_config' 'etc/pam.d/sshd')
|
|
|
|
|
|
|
|
#options=('debug') ## uncomment this to have the debug pkg produced
|
2022-03-20 13:19:37 +01:00
|
|
|
source=("https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/${pkgname}-${pkgver}.tar.gz"{,.asc}
|
2022-10-30 21:04:21 +01:00
|
|
|
"$pkgname-9.0p1-sshd_config.patch"
|
|
|
|
'sshd.conf'
|
|
|
|
'sshd.pam')
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
|
2022-10-30 21:04:21 +01:00
|
|
|
#install=install ### systemd autostart crap
|
2022-10-10 23:18:04 +02:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
patch -Np1 -d "$pkgname-$pkgver" -i ../$pkgname-9.0p1-sshd_config.patch
|
|
|
|
}
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
#prepare() {
|
|
|
|
# cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
# # patch goes here
|
|
|
|
# patch -p1 -i ../glibc-2.31.patch
|
|
|
|
#
|
|
|
|
# autoreconf
|
|
|
|
#}
|
|
|
|
|
|
|
|
build() {
|
2022-10-30 21:04:21 +01:00
|
|
|
cd "${pkgname}-${pkgver}"
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sbindir=/usr/bin \
|
|
|
|
--libexecdir=/usr/lib/ssh \
|
|
|
|
--sysconfdir=/etc/ssh \
|
|
|
|
--disable-strip \
|
|
|
|
--with-ldns \
|
|
|
|
--with-libedit \
|
|
|
|
--with-security-key-builtin \
|
|
|
|
--with-ssl-engine \
|
|
|
|
--with-pam \
|
|
|
|
--with-privsep-user=nobody \
|
|
|
|
--with-kerberos5=/usr \
|
|
|
|
--with-xauth=/usr/bin/xauth \
|
|
|
|
--with-pid-dir=/run \
|
2022-10-30 21:04:21 +01:00
|
|
|
--with-default-path='/usr/local/sbin:/usr/local/bin:/usr/bin'
|
2022-10-10 23:18:04 +02:00
|
|
|
|
2022-03-20 13:19:37 +01:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2022-10-30 21:04:21 +01:00
|
|
|
cd "${pkgname}-${pkgver}"
|
2022-10-10 23:18:04 +02:00
|
|
|
# NOTE: make t-exec does not work in our build environment
|
|
|
|
make file-tests interop-tests unit
|
2022-03-20 13:19:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2022-10-30 21:04:21 +01:00
|
|
|
cd "${pkgname}-${pkgver}"
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
|
|
|
ln -sf ssh.1.gz "${pkgdir}"/usr/share/man/man1/slogin.1.gz
|
2022-10-10 23:18:04 +02:00
|
|
|
install -Dm644 LICENCE -t "${pkgdir}/usr/share/licenses/${pkgname}/LICENCE"
|
|
|
|
|
|
|
|
# install -Dm644 ../sshdgenkeys.service -t "${pkgdir}"/usr/lib/systemd/system/sshdgenkeys.service
|
|
|
|
# install -Dm644 ../sshd.service -t "${pkgdir}"/usr/lib/systemd/system/sshd.service
|
|
|
|
install -Dm644 ../sshd.conf -t "${pkgdir}"/usr/lib/tmpfiles.d/sshd.conf
|
2022-10-30 21:04:21 +01:00
|
|
|
install -Dm644 ../sshd.pam "${pkgdir}"/etc/pam.d/sshd
|
2022-10-10 23:18:04 +02:00
|
|
|
|
|
|
|
install -Dm755 contrib/findssl.sh -t "${pkgdir}"/usr/bin/findssl.sh
|
|
|
|
install -Dm755 contrib/ssh-copy-id -t "${pkgdir}"/usr/bin/ssh-copy-id
|
|
|
|
install -Dm644 contrib/ssh-copy-id.1 -t "${pkgdir}"/usr/share/man/man1/ssh-copy-id.1
|
|
|
|
|
2022-03-20 13:19:37 +01:00
|
|
|
}
|
|
|
|
|
2023-03-16 20:50:50 +01:00
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
|
|
|
|
arch=(x86_64)
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
license=('custom:BSD')
|
|
|
|
|
|
|
|
validpgpkeys=('7168B983815A5EEF59A4ADFD2A3F414E736060BA') # "Damien Miller <djm@mindrot.org>"
|
|
|
|
|
2023-03-16 20:50:50 +01:00
|
|
|
sha256sums=(e9baba7701a76a51f3d85a62c383a3c9dcd97fa900b859bc7db114c1868af8a8 # openssh-9.3p1.tar.gz
|
|
|
|
6d96d2ff60d8d3545f0fa1709cb4c273d9a2fe086afa90f70951cffc01c8fa68 # openssh-9.3p1.tar.gz.asc
|
2023-02-03 02:49:13 +01:00
|
|
|
27e43dfd1506c8a821ec8186bae65f2dc43ca038616d6de59f322bd14aa9d07f # openssh-9.0p1-sshd_config.patch
|
|
|
|
4effac1186cc62617f44385415103021f72f674f8b8e26447fc1139c670090f6 # sshd.conf
|
2022-03-20 13:19:37 +01:00
|
|
|
64576021515c0a98b0aaf0a0ae02e0f5ebe8ee525b1e647ab68f369f81ecd846) # sshd.pam
|
2022-10-10 23:18:04 +02:00
|
|
|
|
2023-03-16 20:50:50 +01:00
|
|
|
## 6ae4d0f937036bb0abac62ae5cde0d4cfd550b7c81e7c2abd57b152e8c645a6b openssh-9.3p1-01-x86_64.pkg.tar.lz
|
|
|
|
|
|
|
|
|