blob: d19642962f312fab52eb6ee756a7f1ecc3393232 (
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
47
48
49
50
51
52
53
54
55
56
57
58
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libssh
pkgver=0.7.6
pkgrel=0
pkgdesc="Library for accessing ssh client services through C libraries"
url="http://www.libssh.org/"
arch="all"
license="LGPL"
depends=
makedepends="zlib-dev libressl-dev cmake doxygen"
subpackages="$pkgname-dev"
source="https://www.libssh.org/files/0.7/libssh-$pkgver.tar.xz
fix-includes.patch
libressl.patch"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch)
msg "Applying $i"
patch -p1 -i "$srcdir"/$i || return 1
;;
esac
done
}
# secfixes:
# 0.7.6-r0:
# - CVE-2018-10933
build() {
cd "$srcdir"
mkdir build && cd build
cmake "$srcdir"/${pkgname}-${pkgver} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
make || return 1
}
package() {
cd "$srcdir"/build
make DESTDIR="$pkgdir" install
}
md5sums="a1cc59079abc707d182f761ca5b6ac08 libssh-0.7.6.tar.xz
8257f5a2a6be16b158a83d76b5eed4fd fix-includes.patch
77703cb8398ec003f2379d4ed315aaaa libressl.patch"
sha256sums="1d607d3859274f755942324afb0f887ee22edd157f9596a2e69e3a28ec6d1092 libssh-0.7.6.tar.xz
d1798cd15d8682464a0b1b1853a9e17e63fed2fa732849570e595347d91b160c fix-includes.patch
e48893f225be683f013e09e16edb24db89fece94831c56f5571222e72a6dcf26 libressl.patch"
sha512sums="2a01402b5a9fab9ecc29200544ed45d3f2c40871ed1c8241ca793f8dc7fdb3ad2150f6a522c4321affa9b8778e280dc7ed10f76adfc4a73f0751ae735a42f56c libssh-0.7.6.tar.xz
055a8f6b97c65384a5a3ab8fe00c69d94cc30092fe926093dbbc122ce301fbe9d76127aa07b5e6107d7fa9dd2aad6b165fa0958b56520253b5d64428ff42a318 fix-includes.patch
c544406b353303f0569cb8ae63c88e58af68fbe065ad8076a2bb85662d4f5828832db0c97b015163ebf54b417ca883274d95ad0faec0100c80655d97bd64e297 libressl.patch"
|