db-move: moved seahorse from [testing] to [extra] (x86_64)
[arch-packages.git] / openssh / trunk / PKGBUILD
blobce1c247b36fd1a27435b4d79345e72d6afcfb5c5
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Maintainer: Giancarlo Razzolini <grazzolini@archlinux.org>
3 # Contributor: Gaetan Bisson <bisson@archlinux.org>
4 # Contributor: Aaron Griffin <aaron@archlinux.org>
5 # Contributor: judd <jvinet@zeroflux.org>
7 pkgname=openssh
8 pkgver=9.3p1
9 pkgrel=1
10 pkgdesc="SSH protocol implementation for remote login, command execution and file transfer"
11 arch=('x86_64')
12 url='https://www.openssh.com/portable.html'
13 license=('custom:BSD')
14 depends=(
15   'glibc'
16   'krb5' 'libkrb5.so' 'libgssapi_krb5.so'
17   'ldns'
18   'libedit'
19   'libxcrypt' 'libcrypt.so'
20   'openssl'
21   'pam' 'libpam.so'
22   'zlib'
24 makedepends=('libfido2' 'linux-headers')
25 optdepends=(
26   'libfido2: FIDO/U2F support'
27   'x11-ssh-askpass: input passphrase in X'
28   'xorg-xauth: X11 forwarding'
30 backup=(
31   'etc/pam.d/sshd'
32   'etc/ssh/ssh_config'
33   'etc/ssh/sshd_config'
35 source=(
36   "https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/${pkgname}-${pkgver}.tar.gz"{,.asc}
37   "$pkgname-9.0p1-sshd_config.patch"
38   'sshdgenkeys.service'
39   'sshd.service'
40   'sshd.conf'
41   'sshd.pam'
43 sha256sums=('e9baba7701a76a51f3d85a62c383a3c9dcd97fa900b859bc7db114c1868af8a8'
44             'SKIP'
45             '27e43dfd1506c8a821ec8186bae65f2dc43ca038616d6de59f322bd14aa9d07f'
46             'e5305767b2d317183ad1c5022a5f6705bd9014a8b22495a000fd482713738611'
47             'e40f8b7c8e5e2ecf3084b3511a6c36d5b5c9f9e61f2bb13e3726c71dc7d4fbc7'
48             '4effac1186cc62617f44385415103021f72f674f8b8e26447fc1139c670090f6'
49             '64576021515c0a98b0aaf0a0ae02e0f5ebe8ee525b1e647ab68f369f81ecd846')
50 b2sums=('45578edf98bba3d23c7cefe60d8a7d3079e7c6676459f7422ace7a2461ab96943fbcadb478633a80f40bc098f2435722850b563714adb78b14922be53cb5753d'
51         'SKIP'
52         '29e1a1c2744e0234830c6f93a46338ea8dc943370e20a24883d207d611025e54643da678f2826050c073a36be48dfdc7329d4cfb144c2ff90607a5f10f73dc59'
53         '09fad3648f48f13ee80195b90913feeba21240d121b1178e0ce62f4a17b1f7e58e8edc22c04403e377ab300f5022a804c848f5be132765d5ca26a38aab262e50'
54         '07ad5c7fb557411a6646ff6830bc9d564c07cbddc4ce819641d31c05dbdf677bfd8a99907cf529a7ee383b8c250936a6423f4b4b97ba0f1c14f627bbd629bd4e'
55         '27571f728c3c10834a81652f3917188436474b588f8b047462e44b6c7a424f60d06ce8cb74839b691870177d7261592207d7f35d4ae6c79af87d6a7ea156d395'
56         '557d015bca7008ce824111f235da67b7e0051a693aaab666e97b78e753ed7928b72274af03d7fde12033986b733d5f996faf2a4feb6ecf53f39accae31334930')
57 validpgpkeys=('7168B983815A5EEF59A4ADFD2A3F414E736060BA')  # Damien Miller <djm@mindrot.org>
59 prepare() {
60   patch -Np1 -d "$pkgname-$pkgver" -i ../$pkgname-9.0p1-sshd_config.patch
63 build() {
64   local configure_options=(
65     --prefix=/usr
66     --sbindir=/usr/bin
67     --libexecdir=/usr/lib/ssh
68     --sysconfdir=/etc/ssh
69     --disable-strip
70     --with-ldns
71     --with-libedit
72     --with-security-key-builtin
73     --with-ssl-engine
74     --with-pam
75     --with-privsep-user=nobody
76     --with-kerberos5=/usr
77     --with-xauth=/usr/bin/xauth
78     --with-pid-dir=/run
79     --with-default-path='/usr/local/sbin:/usr/local/bin:/usr/bin'
80   )
82   cd "${pkgname}-${pkgver}"
84   ./configure "${configure_options[@]}"
85   make
88 check() {
89   cd "${pkgname}-${pkgver}"
91   # NOTE: make t-exec does not work in our build environment
92   make file-tests interop-tests unit
95 package() {
96   cd "${pkgname}-${pkgver}"
98   make DESTDIR="${pkgdir}" install
100   ln -sf ssh.1.gz "${pkgdir}"/usr/share/man/man1/slogin.1.gz
101   install -Dm644 LICENCE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
103   install -Dm644 ../sshdgenkeys.service -t "${pkgdir}"/usr/lib/systemd/system/
104   install -Dm644 ../sshd.service -t "${pkgdir}"/usr/lib/systemd/system/
105   install -Dm644 ../sshd.conf -t "${pkgdir}"/usr/lib/tmpfiles.d/
106   install -Dm644 ../sshd.pam "${pkgdir}"/etc/pam.d/sshd
108   install -Dm755 contrib/findssl.sh -t "${pkgdir}"/usr/bin/
109   install -Dm755 contrib/ssh-copy-id -t "${pkgdir}"/usr/bin/
110   install -Dm644 contrib/ssh-copy-id.1 -t "${pkgdir}"/usr/share/man/man1/
113 # vim: ts=2 sw=2 et: