mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-17 22:52:40 +01:00
59 lines
1.2 KiB
Plaintext
59 lines
1.2 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=libssh2
|
|
pkgver=1.8.2
|
|
pkgrel=1
|
|
pkgdesc="library for accessing ssh1/ssh2 protocol servers"
|
|
url="https://libssh2.org/"
|
|
arch="all"
|
|
license="BSD-3-Clause"
|
|
makedepends="openssl-dev zlib-dev"
|
|
subpackages="$pkgname-dbg $pkgname-static $pkgname-dev $pkgname-doc"
|
|
source="http://www.libssh2.org/download/libssh2-$pkgver.tar.gz"
|
|
builddir="$srcdir"/libssh2-$pkgver
|
|
|
|
# security fixes:
|
|
# 1.8.1-r0:
|
|
# - 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
|
|
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--infodir=/usr/share/info \
|
|
--localstatedir=/var
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
static() {
|
|
depends=""
|
|
pkgdesc="$pkgdesc (static library)"
|
|
|
|
mkdir -p "$subpkgdir"/usr/lib
|
|
mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib
|
|
}
|
|
|
|
sha512sums="390ab4ad93bb738415ec11a6eb92806c9b9e9e5d8ee7c442d841a58b4292c1c447a9bc99e153ba464e2e11f9c0d1913469303598c3046722d1ae821991e8cb93 libssh2-1.8.2.tar.gz"
|