2009-11-16 19:07:36 +00:00
|
|
|
# Maintainer: Aaron Griffin <aaron@archlinux.org>
|
|
|
|
# Contributor: judd <jvinet@zeroflux.org>
|
2009-10-08 03:40:19 +00:00
|
|
|
|
|
|
|
pkgname=openssh
|
2009-11-16 19:07:36 +00:00
|
|
|
pkgver=5.3p1
|
|
|
|
pkgrel=1
|
|
|
|
#_gsskexver=20080404
|
2009-10-08 03:40:19 +00:00
|
|
|
pkgdesc='A Secure SHell server/client'
|
2009-11-16 19:07:36 +00:00
|
|
|
arch=('arm')
|
2009-10-08 03:40:19 +00:00
|
|
|
license=('custom')
|
|
|
|
url="http://www.openssh.org/portable.html"
|
|
|
|
backup=('etc/ssh/ssh_config' 'etc/ssh/sshd_config' 'etc/pam.d/sshd')
|
2009-11-16 19:07:36 +00:00
|
|
|
depends=('openssl>=0.9.8k' 'zlib' 'pam' 'tcp_wrappers' 'heimdal>=1.2.1')
|
2009-10-08 03:40:19 +00:00
|
|
|
source=(ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/$pkgname-$pkgver.tar.gz
|
2009-11-16 19:07:36 +00:00
|
|
|
sshd
|
|
|
|
sshd.confd
|
|
|
|
sshd.pam)
|
|
|
|
md5sums=('fc4389fb090deb2a52a3b0da5cba4d80'
|
|
|
|
'd9ee5e0a0d143689b3d6f11454a2a892'
|
|
|
|
'e2cea70ac13af7e63d40eb04415eacd5'
|
|
|
|
'1c7c2ea8734ec7e3ca58d820634dc73a')
|
2009-10-08 03:40:19 +00:00
|
|
|
|
|
|
|
build() {
|
2009-11-16 19:07:36 +00:00
|
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
#patch -up0 < $srcdir/$pkgname-$pkgver-gsskex-$_gsskexver.patch
|
2009-10-08 03:40:19 +00:00
|
|
|
|
|
|
|
#NOTE we disable-strip so that makepkg can decide whether to strip or not
|
|
|
|
./configure --prefix=/usr --libexecdir=/usr/lib/ssh \
|
|
|
|
--sysconfdir=/etc/ssh --with-tcp-wrappers --with-privsep-user=nobody \
|
2009-11-16 19:07:36 +00:00
|
|
|
--with-md5-passwords --with-pam --with-mantype=man --mandir=/usr/share/man \
|
|
|
|
--with-xauth=/usr/bin/xauth --with-kerberos5=/usr --with-ssl-engine \
|
|
|
|
--disable-strip
|
2009-10-08 03:40:19 +00:00
|
|
|
make || return 1
|
2009-11-16 19:07:36 +00:00
|
|
|
make DESTDIR=$pkgdir install
|
2009-10-08 03:40:19 +00:00
|
|
|
|
2009-11-16 19:07:36 +00:00
|
|
|
install -Dm755 $srcdir/sshd $pkgdir/etc/rc.d/sshd
|
2009-10-08 03:40:19 +00:00
|
|
|
|
2009-11-16 19:07:36 +00:00
|
|
|
install -Dm644 LICENCE $pkgdir/usr/share/licenses/$pkgname/LICENCE
|
|
|
|
install -Dm644 $srcdir/sshd.pam $pkgdir/etc/pam.d/sshd
|
|
|
|
install -Dm644 $srcdir/sshd.confd $pkgdir/etc/conf.d/sshd
|
2009-10-08 03:40:19 +00:00
|
|
|
|
2009-11-16 19:07:36 +00:00
|
|
|
rm $pkgdir/usr/share/man/man1/slogin.1
|
|
|
|
ln -sf ssh.1.gz $pkgdir/usr/share/man/man1/slogin.1.gz
|
2009-10-08 03:40:19 +00:00
|
|
|
|
|
|
|
#additional contrib scripts that we like
|
2009-11-16 19:07:36 +00:00
|
|
|
install -Dm755 contrib/findssl.sh $pkgdir/usr/bin/findssl.sh
|
|
|
|
install -Dm755 contrib/ssh-copy-id $pkgdir/usr/bin/ssh-copy-id
|
|
|
|
install -Dm644 contrib/ssh-copy-id.1 $pkgdir/usr/share/man/man1/ssh-copy-id.1
|
2009-10-08 03:40:19 +00:00
|
|
|
|
|
|
|
# sshd_config
|
|
|
|
sed -i \
|
|
|
|
-e 's|^#ListenAddress 0.0.0.0|ListenAddress 0.0.0.0|g' \
|
|
|
|
-e 's|^#UsePAM no|UsePAM yes|g' \
|
|
|
|
-e 's|^#ChallengeResponseAuthentication yes|ChallengeResponseAuthentication no|g' \
|
2009-11-16 19:07:36 +00:00
|
|
|
$pkgdir/etc/ssh/sshd_config
|
|
|
|
echo "HashKnownHosts yes" >> $pkgdir/etc/ssh/ssh_config
|
|
|
|
echo "StrictHostKeyChecking ask" >> $pkgdir/etc/ssh/ssh_config
|
2009-10-08 03:40:19 +00:00
|
|
|
|
|
|
|
#ssh_config
|
|
|
|
sed -i \
|
|
|
|
-e 's|^# Host \*|Host *|g' \
|
2009-11-16 19:07:36 +00:00
|
|
|
$pkgdir/etc/ssh/ssh_config
|
2009-10-08 03:40:19 +00:00
|
|
|
}
|