Name libssh-4
Description tiny C SSH library (OpenSSL flavor)
Version 0.11.2-1+deb13u1
Package Base libssh
Homepage https://www.libssh.org/
Maintainers ['Laurent Bigonville <bigon@debian.org>']
Contributors ['Martin Pitt <mpitt@debian.org>', 'Mike Gabriel <sunweaver@debian.org>']
Distro-repo https://salsa.debian.org/debian/libssh
Sources ['https://sources.debian.org/data/main/libs/libssh/0.11.2-1+deb13u1/debian/watch', 'https://sources.debian.org/src/libssh/0.11.2-1+deb13u1/debian/patches/1003-custom-lib-names.patch', 'https://sources.debian.org/src/libssh/0.11.2-1+deb13u1/debian/patches/2003-disable-expand_tilde_unix-test.patch', 'https://sources.debian.org/src/libssh/0.11.2-1+deb13u1/debian/patches/2004-install-static-lib.patch', 'https://sources.debian.org/src/libssh/0.11.2-1+deb13u1/debian/patches/CVE-2025-8114.patch', 'https://sources.debian.org/src/libssh/0.11.2-1+deb13u1/debian/patches/CVE-2025-8277.patch', 'https://sources.debian.org/src/libssh/0.11.2-1+deb13u1/debian/patches/README', 'https://sources.debian.org/src/libssh/0.11.2-1+deb13u1/debian/patches/series']
Dependencies ['libc6', 'libgssapi-krb5-2', 'libssl3t64', 'zlib1g']
Optional-Dependencies []
Build-Dependencies ['cmake', 'debhelper-compat', 'libcmocka-dev <!nocheck>', 'libkrb5-dev | heimdal-dev', 'libssl-dev', 'zlib1g-dev | libz-dev', 'openssh-client <!nocheck>', 'openssh-server <!nocheck>', 'pkgconf', 'python3']
Provides []
Builddate
Architecture amd64
Distro-Version trixie
Licenses []
Hash 6b0f7d26c69bf9b18ebed6b77b4cbc57835f7ba956abb8ae00ef866372296ae2
#!/usr/bin/make -f

DEB_CMAKE_EXTRA_FLAGS := -DBUILD_STATIC_LIB=ON -DLIB_INSTALL_DIR=/usr/lib/$(DEB_HOST_MULTIARCH) -DUNIT_TESTING=$(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),OFF,ON) -DWITH_GSSAPI=ON

export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs -Wl,-O1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_clean:
	rm -rf debian/home-openssl
	dh_clean

override_dh_auto_clean:
	dh_auto_clean -Bbuild-openssl

override_dh_auto_configure:
	dh_auto_configure -Bbuild-openssl -- \
		$(DEB_CMAKE_EXTRA_FLAGS)

override_dh_auto_build:
	dh_auto_build -Bbuild-openssl
# only build documentation if doxygen is installed and the nodoc profile is not set
ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
ifneq ($(shell which doxygen),)
	$(MAKE) -Cbuild-openssl docs
endif
endif

override_dh_auto_install:
	dh_auto_install -Bbuild-openssl

override_dh_auto_test:
	mkdir debian/home-openssl
	HOME=debian/home-openssl dh_auto_test -Bbuild-openssl --no-parallel