1 # Maintainer: Dhruv Desai <svenskaparadox@gmail.com>
2 # Maintainer: Michael Lass <bevan@bi-co.net>
3 # Contributor: Aaron Griffin <aaron@archlinux.org>
4 # Contributor: judd <jvinet@zeroflux.org>
6 pkgname=openssh-mit-krb5
9 pkgdesc='A Secure SHell server/client, linked against mit-krb5 (AUR)'
10 arch=('i686' 'x86_64')
12 url="http://www.openssh.org/portable.html"
13 backup=('etc/ssh/ssh_config' 'etc/ssh/sshd_config' 'etc/pam.d/sshd')
14 depends=('openssl>=0.9.8k' 'zlib' 'pam' 'tcp_wrappers' 'mit-krb5>=1.7.0')
15 provides=('openssh=$pkgver')
17 source=(ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-$pkgver.tar.gz
18 sshd sshd.confd sshd.pam)
20 md5sums=('86f5e1c23b4c4845f23b9b7b493fb53d'
21 'e8a3b7a3e3ace43eeb1f28a7c93fa15d'
22 'e2cea70ac13af7e63d40eb04415eacd5'
23 '1c7c2ea8734ec7e3ca58d820634dc73a')
26 cd $srcdir/openssh-$pkgver
28 #NOTE we disable-strip so that makepkg can decide whether to strip or not
29 ./configure --prefix=/usr --libexecdir=/usr/lib/ssh \
30 --sysconfdir=/etc/ssh --with-tcp-wrappers --with-privsep-user=nobody \
31 --with-md5-passwords --with-pam --with-mantype=man --mandir=/usr/share/man \
32 --with-xauth=/usr/bin/xauth --with-kerberos5=/opt/mit-krb5 --with-ssl-engine \
35 make DESTDIR=$pkgdir install
37 install -Dm755 $srcdir/sshd $pkgdir/etc/rc.d/sshd
39 install -Dm644 LICENCE $pkgdir/usr/share/licenses/$pkgname/LICENCE
40 install -Dm644 $srcdir/sshd.pam $pkgdir/etc/pam.d/sshd
41 install -Dm644 $srcdir/sshd.confd $pkgdir/etc/conf.d/sshd
43 rm $pkgdir/usr/share/man/man1/slogin.1
44 ln -sf ssh.1.gz $pkgdir/usr/share/man/man1/slogin.1.gz
46 #additional contrib scripts that we like
47 install -Dm755 contrib/findssl.sh $pkgdir/usr/bin/findssl.sh
48 install -Dm755 contrib/ssh-copy-id $pkgdir/usr/bin/ssh-copy-id
49 install -Dm644 contrib/ssh-copy-id.1 $pkgdir/usr/share/man/man1/ssh-copy-id.1
53 -e 's|^#ListenAddress 0.0.0.0|ListenAddress 0.0.0.0|g' \
54 -e 's|^#UsePAM no|UsePAM yes|g' \
55 -e 's|^#ChallengeResponseAuthentication yes|ChallengeResponseAuthentication no|g' \
56 $pkgdir/etc/ssh/sshd_config
57 echo "HashKnownHosts yes" >> $pkgdir/etc/ssh/ssh_config
58 echo "StrictHostKeyChecking ask" >> $pkgdir/etc/ssh/ssh_config
62 -e 's|^# Host \*|Host *|g' \
63 $pkgdir/etc/ssh/ssh_config