1 # Maintainer: Oleg Smirnov <oleg.smirnov@gmail.com>
7 pkgdesc='Free version of the SSH connectivity tools smart card support'
10 url='http://www.openssh.org/portable.html'
11 backup=('etc/ssh/ssh_config' 'etc/ssh/sshd_config' 'etc/pam.d/sshd' 'etc/conf.d/sshd')
12 depends=('tcp_wrappers' 'krb5' 'openssl' 'libedit')
13 source=("ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/${_pkgname}-${pkgver}.tar.gz"
18 sha1sums=('64798328d310e4f06c9f01228107520adbc8b3e5'
19 '3669cb5ca6149f69015df5ce8e60b82c540eb0a4'
20 'ec102deb69cad7d14f406289d2fc11fee6eddbdd'
21 '07fecd5880b1c4fdd8c94ddb2e89ddce88effdc1'
22 '6b7f8ebf0c1cc37137a7d9a53447ac8a0ee6a2b5')
25 cd "${srcdir}/${_pkgname}-${pkgver}"
27 patch -p1 -i ../authfile.c.patch # fix FS#24693 using http://anoncvs.mindrot.org/index.cgi/openssh/authfile.c?revision=1.95
31 --libexecdir=/usr/lib/ssh \
32 --sysconfdir=/etc/ssh \
34 --with-privsep-user=nobody \
35 --with-md5-passwords \
38 --mandir=/usr/share/man \
39 --with-xauth=/usr/bin/xauth \
40 --with-kerberos5=/usr \
42 --with-libedit=/usr/lib \
44 --disable-strip # stripping is done by makepkg
50 cd "${srcdir}/${_pkgname}-${pkgver}"
51 make DESTDIR="${pkgdir}" install
53 install -Dm755 ../sshd "${pkgdir}"/etc/rc.d/sshd
54 install -Dm644 ../sshd.pam "${pkgdir}"/etc/pam.d/sshd
55 install -Dm644 ../sshd.confd "${pkgdir}"/etc/conf.d/sshd
56 install -Dm644 LICENCE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENCE"
58 rm "${pkgdir}"/usr/share/man/man1/slogin.1
59 ln -sf ssh.1.gz "${pkgdir}"/usr/share/man/man1/slogin.1.gz
61 # additional contrib scripts that we like
62 install -Dm755 contrib/findssl.sh "${pkgdir}"/usr/bin/findssl.sh
63 install -Dm755 contrib/ssh-copy-id "${pkgdir}"/usr/bin/ssh-copy-id
64 install -Dm644 contrib/ssh-copy-id.1 "${pkgdir}"/usr/share/man/man1/ssh-copy-id.1
66 # PAM is a common, standard feature to have
67 sed -i -e '/^#ChallengeResponseAuthentication yes$/c ChallengeResponseAuthentication no' \
68 -e '/^#UsePAM no$/c UsePAM yes' \
69 "${pkgdir}"/etc/ssh/sshd_config