Commit e48e174b authored by Natanael Copa's avatar Natanael Copa
Browse files

main/openssh: apply HPN patches for speed improvement

http://www.psc.edu/networking/projects/hpn-ssh/faq.php

fixes #441
parent 52c59852
......@@ -2,7 +2,7 @@
pkgname=openssh
pkgver=5.6_p1
_myver=${pkgver%_*}${pkgver#*_}
pkgrel=0
pkgrel=1
pkgdesc="Port of OpenBSD's free SSH release"
url="http://www.openssh.org/portable.html"
license="as-is"
......@@ -10,16 +10,38 @@ depends="openssh-client"
makedepends="openssl-dev zlib-dev"
subpackages="$pkgname-doc $pkgname-client"
source="ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/$pkgname-$_myver.tar.gz
http://www.psc.edu/networking/projects/hpn-ssh/openssh5.6-dynwindow_noneswitch.diff.gz
http://www.psc.edu/networking/projects/hpn-ssh/openssh5.6-peaktput.diff
sshd.initd
sshd.confd
"
build ()
{
cd $startdir/src/$pkgname-$_myver
_builddir="$srcdir"/$pkgname-$_myver
prepare() {
cd "$_builddir"
for i in $source; do
case "$i" in
*.diff.gz)
msg "Applying $i"
gunzip -c "$srcdir"/"${i##*/}" | patch -p1 -N || return 1
;;
*.diff)
msg "Applying $i"
patch -p1 -N -i "$srcdir"/${i##*/}
if [ $? -gt 1 ]; then
return 1
fi
;;
esac
done
sed -i -e '/_PATH_XAUTH/s:/usr/X11R6/bin/xauth:/usr/bin/xauth:' \
pathnames.h || return 1
}
build ()
{
cd "$_builddir"
./configure --prefix=/usr \
--with-mantype=man \
--mandir=/usr/share/man \
......@@ -40,7 +62,7 @@ build ()
}
package() {
cd $startdir/src/$pkgname-$_myver
cd "$_builddir"
make DESTDIR="$pkgdir" install
mkdir -p "$pkgdir"/var/empty
install -D -m755 "$srcdir"/sshd.initd "$pkgdir"/etc/init.d/sshd
......@@ -63,5 +85,7 @@ client() {
}
md5sums="e6ee52e47c768bf0ec42a232b5d18fb0 openssh-5.6p1.tar.gz
375f84b195352378e5cd4c5d54c9017a openssh5.6-dynwindow_noneswitch.diff.gz
53251529642df68b0207728d0df638fa openssh5.6-peaktput.diff
d993cc91e9fab6c6012390874c28af0a sshd.initd
b35e9f3829f4cfca07168fcba98749c7 sshd.confd"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment