aboutsummaryrefslogtreecommitdiffstats
path: root/main/openssh/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/openssh/APKBUILD')
-rw-r--r--main/openssh/APKBUILD34
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"