mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 16:31:40 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			54 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
 | |
| # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
 | |
| pkgname=libssh
 | |
| pkgver=0.10.4
 | |
| pkgrel=0
 | |
| pkgdesc="Library for accessing ssh client services through C libraries"
 | |
| options="!check" # Tests require CLIENT_TESTING enabled which needs socket_wrapper
 | |
| url="https://www.libssh.org/"
 | |
| arch="all"
 | |
| license="LGPL-2.1-or-later BSD-2-Clause"
 | |
| depends_dev="openssl-dev>3 zlib-dev"
 | |
| makedepends="$depends_dev cmake samurai"
 | |
| checkdepends="cmocka-dev"
 | |
| subpackages="$pkgname-dev"
 | |
| source="https://www.libssh.org/files/${pkgver%.*}/libssh-$pkgver.tar.xz"
 | |
| 
 | |
| # secfixes:
 | |
| #   0.9.6-r0:
 | |
| #     - CVE-2021-3634
 | |
| #   0.9.5-r0:
 | |
| #     - CVE-2020-16135
 | |
| #   0.9.4-r0:
 | |
| #     - CVE-2020-1730
 | |
| #   0.9.3-r0:
 | |
| #     - CVE-2019-14889
 | |
| #   0.7.6-r0:
 | |
| #     - CVE-2018-10933
 | |
| 
 | |
| build() {
 | |
| 	cmake -B build -G Ninja \
 | |
| 		-DCMAKE_BUILD_TYPE=None \
 | |
| 		-DCMAKE_INSTALL_PREFIX=/usr \
 | |
| 		-DCMAKE_INSTALL_LIBDIR=lib \
 | |
| 		-DWITH_GSSAPI=OFF \
 | |
| 		-DUNIT_TESTING=OFF
 | |
| 	cmake --build build
 | |
| }
 | |
| 
 | |
| check() {
 | |
| 	case "$CARCH" in
 | |
| 		s390x) _disabled_tests="-E torture_threads_buffer"
 | |
| 	esac
 | |
| 	cd build
 | |
| 	CTEST_OUTPUT_ON_FAILURE=TRUE ctest $_disabled_tests
 | |
| }
 | |
| 
 | |
| package() {
 | |
| 	DESTDIR="$pkgdir" cmake --install build
 | |
| }
 | |
| 
 | |
| sha512sums="
 | |
| 01ee52d480201d9886c15e81137c185334b404d1c8e8b743ddf58e95fe8619c8c013616a49807bd1111fde72fa177cd35f3c22b66cbf5d720b5abfacdf7601ed  libssh-0.10.4.tar.xz
 | |
| "
 |