diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-10-14 07:00:30 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-10-14 07:01:34 +0000 |
commit | e48e174b78c131afad3f9dfe6b47bf0f7fa80f52 (patch) | |
tree | 7fb88c23509939c4e55914696310d5984873cc7e /main/openssh | |
parent | 52c59852e1be59984a384b7f086b38bdc0e2daea (diff) | |
download | aports-e48e174b78c131afad3f9dfe6b47bf0f7fa80f52.tar.bz2 aports-e48e174b78c131afad3f9dfe6b47bf0f7fa80f52.tar.xz |
main/openssh: apply HPN patches for speed improvement
http://www.psc.edu/networking/projects/hpn-ssh/faq.php
fixes #441
Diffstat (limited to 'main/openssh')
-rw-r--r-- | main/openssh/APKBUILD | 34 |
1 files changed, 29 insertions, 5 deletions
diff --git a/main/openssh/APKBUILD b/main/openssh/APKBUILD index 9ac4abd75f..a4c9df1a4a 100644 --- a/main/openssh/APKBUILD +++ b/main/openssh/APKBUILD @@ -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" |