2011-08-24 20:13:28 +00:00
|
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
2011-07-29 19:38:58 -05:00
|
|
|
pkgname=libssh2
|
2024-10-16 13:05:19 +02:00
|
|
|
pkgver=1.11.1
|
|
|
|
pkgrel=0
|
2011-07-29 19:38:58 -05:00
|
|
|
pkgdesc="library for accessing ssh1/ssh2 protocol servers"
|
2017-11-19 14:05:22 +01:00
|
|
|
url="https://libssh2.org/"
|
2011-07-29 19:38:58 -05:00
|
|
|
arch="all"
|
2019-05-05 00:00:14 -03:00
|
|
|
license="BSD-3-Clause"
|
2022-03-31 16:04:15 +02:00
|
|
|
makedepends_host="openssl-dev>3 zlib-dev"
|
2023-12-22 13:50:57 +00:00
|
|
|
checkdepends="bash"
|
2019-05-05 00:00:14 -03:00
|
|
|
subpackages="$pkgname-dbg $pkgname-static $pkgname-dev $pkgname-doc"
|
2023-12-20 13:42:00 +00:00
|
|
|
source="https://www.libssh2.org/download/libssh2-$pkgver.tar.gz
|
2019-10-17 09:15:12 +00:00
|
|
|
"
|
2011-07-29 19:38:58 -05:00
|
|
|
|
2021-01-05 00:02:59 +01:00
|
|
|
# secfixes:
|
2023-12-20 13:42:00 +00:00
|
|
|
# 1.11.0-r1:
|
|
|
|
# - CVE-2023-48795
|
2019-10-17 09:15:12 +00:00
|
|
|
# 1.9.0-r1:
|
|
|
|
# - CVE-2019-17498
|
2019-10-16 14:08:32 +00:00
|
|
|
# 1.9.0-r0:
|
|
|
|
# - CVE-2019-13115
|
2019-03-19 21:45:49 +00:00
|
|
|
# 1.8.1-r0:
|
2020-12-08 09:41:11 -03:00
|
|
|
# - CVE-2019-3855
|
|
|
|
# - CVE-2019-3856
|
|
|
|
# - CVE-2019-3857
|
|
|
|
# - CVE-2019-3858
|
|
|
|
# - CVE-2019-3859
|
|
|
|
# - CVE-2019-3860
|
|
|
|
# - CVE-2019-3861
|
|
|
|
# - CVE-2019-3862
|
|
|
|
# - CVE-2019-3863
|
2019-03-19 21:45:49 +00:00
|
|
|
|
2011-07-29 19:38:58 -05:00
|
|
|
build() {
|
2013-07-30 08:51:11 +00:00
|
|
|
./configure \
|
|
|
|
--build=$CBUILD \
|
|
|
|
--host=$CHOST \
|
|
|
|
--prefix=/usr \
|
2011-07-29 19:38:58 -05:00
|
|
|
--sysconfdir=/etc \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--infodir=/usr/share/info \
|
2021-08-13 03:31:36 +02:00
|
|
|
--localstatedir=/var \
|
|
|
|
--with-crypto=openssl \
|
2023-12-21 13:36:17 +00:00
|
|
|
--with-libssl-prefix=$CBUILDROOT/ \
|
|
|
|
--disable-docker-tests
|
2017-04-18 07:06:50 +00:00
|
|
|
make
|
2011-07-29 19:38:58 -05:00
|
|
|
}
|
|
|
|
|
2019-05-05 00:00:14 -03:00
|
|
|
check() {
|
2023-12-21 13:36:17 +00:00
|
|
|
# with --disable-docker-tests above only mansyntax.sh and test_simple are
|
|
|
|
# run, other tests require docker and a running sshd
|
|
|
|
make check VERBOSE=1
|
2019-05-05 00:00:14 -03:00
|
|
|
}
|
|
|
|
|
2011-07-29 19:38:58 -05:00
|
|
|
package() {
|
2017-04-18 07:06:50 +00:00
|
|
|
make DESTDIR="$pkgdir" install
|
2011-07-29 19:38:58 -05:00
|
|
|
}
|
|
|
|
|
2021-08-13 03:31:36 +02:00
|
|
|
sha512sums="
|
2024-10-16 13:05:19 +02:00
|
|
|
8703636fc28f0b12c8171712f3d605e0466a5bb9ba06e136c3203548fc3408ab07defd71dc801d7009a337e1e02fd60e8933a2a526d5ef0ce53153058d201233 libssh2-1.11.1.tar.gz
|
2021-08-13 03:31:36 +02:00
|
|
|
"
|