blob: bd9c30295bab22079a3f91fa34bf0940e137882b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# $Id: PKGBUILD 207452 2014-03-09 16:43:05Z bpiotrowski $
# Maintainer: Tom Gundersen <teg@jklm.no>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: ice-man <icemanf@gmail.com>
# Contributor: sergeantspoon <sergeantspoon@archlinux.us>
pkgname=libssh
pkgver=0.5.5
pkgrel=3
pkgdesc="Library for accessing ssh client services through C libraries"
url="http://www.libssh.org/"
license=('LGPL')
arch=('i686' 'x86_64')
depends=('zlib' 'openssl')
makedepends=('cmake' 'doxygen')
source=(https://red.libssh.org/attachments/download/51/${pkgname}-${pkgver}.tar.gz
0004-reset-global-request-status.patch
0005-multi-reverse-fwd.patch
CVE-2014-0017.patch)
md5sums=('bb308196756c7255c0969583d917136b'
'0d8c28906b07e31466157b1fda441f4a'
'6fa3a1a4f448e85a7eb39360f4a72ce9'
'2eddf36e41adf62e4094f17b64d466e0')
prepare() {
cd ${pkgname}-${pkgver}
# add multiple channels on a single SSH connection required by X2goclient
# see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=736231
patch -Np1 -i ${srcdir}/0004-reset-global-request-status.patch
patch -Np1 -i ${srcdir}/0005-multi-reverse-fwd.patch
patch -Np1 -i ${srcdir}/CVE-2014-0017.patch
}
build() {
mkdir build
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
make
}
package(){
cd build
make DESTDIR="${pkgdir}" install
}
|