1 # Contributor: Gaetan Bisson <bisson@archlinux.org>
2 # Contributor: Aaron Griffin <aaron@archlinux.org>
3 # Contributor: judd <jvinet@zeroflux.org>
4 # Maintainer: Dan Vratil <dan@progdan.cz>
10 pkgdesc='A Secure Shell server/client with LPK patch'
11 arch=('i686' 'x86_64')
12 license=('custom:BSD')
13 url='http://www.openssh.org/portable.html'
14 backup=('etc/ssh/ssh_config' 'etc/ssh/sshd_config' 'etc/pam.d/sshd' 'etc/conf.d/sshd')
15 depends=('tcp_wrappers' 'krb5' 'openssl' 'libedit')
18 source=("ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/${_srcname}-${pkgver}.tar.gz"
19 "http://gentoo.mirrors.tera-byte.com/distfiles/openssh-lpk-5.8p2-0.3.14.patch.gz"
26 cd "${srcdir}/${_srcname}-${pkgver}"
28 patch -p1 -i ../openssh-lpk-5.8p2-0.3.14.patch
29 patch -p1 -i ../authfile.c.patch # fix FS#24693 using http://anoncvs.mindrot.org/index.cgi/openssh/authfile.c?revision=1.95
33 --libexecdir=/usr/lib/ssh \
34 --sysconfdir=/etc/ssh \
36 --with-privsep-user=nobody \
37 --with-md5-passwords \
40 --mandir=/usr/share/man \
41 --with-xauth=/usr/bin/xauth \
42 --with-kerberos5=/usr \
44 --with-libedit=/usr/lib \
45 --disable-strip # stripping is done by makepkg
51 cd "${srcdir}/${_srcname}-${pkgver}"
52 make DESTDIR="${pkgdir}" install
54 install -Dm755 ../sshd "${pkgdir}"/etc/rc.d/sshd
55 install -Dm644 ../sshd.pam "${pkgdir}"/etc/pam.d/sshd
56 install -Dm644 ../sshd.confd "${pkgdir}"/etc/conf.d/sshd
57 install -Dm644 LICENCE "${pkgdir}/usr/share/licenses/${_srcname}/LICENCE"
59 rm "${pkgdir}"/usr/share/man/man1/slogin.1
60 ln -sf ssh.1.gz "${pkgdir}"/usr/share/man/man1/slogin.1.gz
62 # additional contrib scripts that we like
63 install -Dm755 contrib/findssl.sh "${pkgdir}"/usr/bin/findssl.sh
64 install -Dm755 contrib/ssh-copy-id "${pkgdir}"/usr/bin/ssh-copy-id
65 install -Dm644 contrib/ssh-copy-id.1 "${pkgdir}"/usr/share/man/man1/ssh-copy-id.1
67 # PAM is a common, standard feature to have
68 sed -i -e '/^#ChallengeResponseAuthentication yes$/c ChallengeResponseAuthentication no' \
69 -e '/^#UsePAM no$/c UsePAM yes' \
70 "${pkgdir}"/etc/ssh/sshd_config
72 md5sums=('0541579adf9d55abb15ef927048d372e'
73 '8bec4d7496719f0bd890ac0a306163cb'
74 'fbddd47a6abc3b90a86970e2486d6f03'
75 'e2cea70ac13af7e63d40eb04415eacd5'
76 '479b47d750ef6f62703ec75144eb9701'
77 '0f286945d846f2ddd02bc4a4e14b0b85')