Name gpgsm
Description GNU privacy guard - S/MIME version
Version 2.4.4-2ubuntu17.4
Package Base gnupg2
Homepage https://www.gnupg.org/
Maintainers ['Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>']
Contributors [' Eric Dorland <eric@debian.org>', 'Daniel Kahn Gillmor <dkg@fifthhorseman.net>,']
Distro-repo https://git.launchpad.net/ubuntu/+source/gnupg2/tree/?h=ubuntu/noble
Sources ['https://git.launchpad.net/ubuntu/+source/gnupg2/plain/debian/patches/../?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gnupg2/plain/debian/patches/Use-hkps-keys.openpgp.org-as-the-default-keyserver.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gnupg2/plain/debian/patches/add-option-assert-pubkey_algo.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gnupg2/plain/debian/patches/block-ptrace-on-secret-daemons?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gnupg2/plain/debian/patches/debian-packaging?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gnupg2/plain/debian/patches/dirmngr-Only-use-SKS-pool-CA-for-SKS-pool.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gnupg2/plain/debian/patches/dirmngr-idling?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gnupg2/plain/debian/patches/from-master?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gnupg2/plain/debian/patches/gpg-drop-import-clean-from-default-keyserver-import-optio.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gnupg2/plain/debian/patches/import-merge-without-userid?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gnupg2/plain/debian/patches/no-keyboxd.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gnupg2/plain/debian/patches/series?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gnupg2/plain/debian/patches/spelling-fixes.diff?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gnupg2/plain/debian/patches/update-defaults?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/gpgsm/plain/debian/watch?h=ubuntu/noble']
Dependencies ['gpgconf', 'libassuan0', 'libc6', 'libgcrypt20', 'libgpg-error0', 'libksba8', 'libnpth0t64', 'libreadline8t64']
Optional-Dependencies ['dirmngr', 'gnupg', 'gpg-agent', 'keyboxd']
Build-Dependencies ['automake', 'autopoint', 'debhelper-compat', 'file', 'gettext', 'gpgrt-tools', 'libassuan-dev', 'libbz2-dev', 'libgcrypt20-dev', 'libgnutls28-dev', 'libgpg-error-dev', 'libksba-dev', 'libldap2-dev', 'libnpth0-dev', 'libreadline-dev', 'libsqlite3-dev', 'libusb-1.0-0-dev [!hurd-any]', 'openssh-client <!nocheck>', 'pkg-config', 'texinfo', 'zlib1g-dev | libz-dev']
Provides []
Builddate
Architecture amd64
Distro-Version noble
Licenses []
Hash 47cdea6a8d2c35aea4ceb62e54e981b92309bd68fe517650637f68a634a2970f
#!/usr/bin/make -f
# debian/rules file - for GnuPG
# Copyright 1994,1995 by Ian Jackson.
# Copyright 1998-2003 by James Troup.
# Copyright 2003-2004 by Matthias Urlichs.
#
# I hereby give you perpetual unlimited permission to copy,
# modify and relicense this file, provided that you do not remove
# my name from the file itself.  (I assert my moral right of
# paternity under the Copyright, Designs and Patents Act 1988.)
# This file may have to be extensively modified

include /usr/share/dpkg/architecture.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# avoid -pie for gpgv-static on kfreebsd-amd64, and x32
# platforms, which cannot support it by default:
ifeq (,$(filter $(DEB_HOST_ARCH), kfreebsd-amd64 x32))
GPGV_STATIC_HARDENING = "-pie"
else
GPGV_STATIC_HARDENING = ""
endif

# Avoid parallel tests on hppa and riscv64 architecture.
# Parallel tests generates high load on machine which causes timeouts and thus
# triggers unexpected failures.
ifeq (,$(filter $(DEB_HOST_ARCH), hppa riscv64))
AUTOTEST_FLAGS = "--parallel"
else
AUTOTEST_FLAGS = "--no-parallel"
endif

%:
	dh $@ --with=autoreconf --builddirectory=build

GPGV_UDEB_UNNEEDED = gpgtar bzip2 gpgsm scdaemon dirmngr doc tofu exec ldap gnutls sqlite libdns keyboxd

WIN32_FLAGS=LDFLAGS="-Xlinker --no-insert-timestamp -static" CFLAGS="-g -Os" CPPFLAGS=

execute_after_dh_auto_configure:
	dh_auto_configure --builddirectory=build --verbose -- \
		--libexecdir=\$${prefix}/lib/gnupg \
		--enable-wks-tools \
		--enable-all-tests \
		--with-agent-s2k-calibration=300 \
		--enable-large-secmem \
		--with-mailprog=/usr/sbin/sendmail

override_dh_auto_configure-arch:
	dh_auto_configure --builddirectory=build-gpgv-udeb -- \
		$(foreach x, $(GPGV_UDEB_UNNEEDED), --disable-$(x))

override_dh_auto_configure-indep:
	# nothing to do

execute_after_dh_auto_build:
	dh_auto_build --builddirectory=build

override_dh_auto_build-arch:
	dh_auto_build --builddirectory=build-gpgv-udeb
	cp -a build-gpgv-udeb build-gpgv-static
	rm -f build-gpgv-static/g10/gpgv
	cd build-gpgv-static/g10 && $(MAKE) LDFLAGS="$$LDFLAGS $(GPGV_STATIC_HARDENING) -static" gpgv
	mv build-gpgv-static/g10/gpgv build-gpgv-static/g10/gpgv-static

override_dh_auto_build-indep:
	mkdir -p build-gpgv-win32
	cd build-gpgv-win32 && $(WIN32_FLAGS) ../configure \
	   	$(foreach x, $(GPGV_UDEB_UNNEEDED), --disable-$(x)) \
		$(foreach x, libgpg-error libgcrypt libassuan ksba npth, --with-$x-prefix=/usr/i686-w64-mingw32) \
		--enable-gpg2-is-gpg \
		--with-zlib=/usr/i686-w64-mingw \
		--prefix=/usr/i686-w64-mingw32 \
		--host i686-w64-mingw32
	cd build-gpgv-win32/common && $(WIN32_FLAGS) $(MAKE) libgpgrl.a
	cd build-gpgv-win32/common && $(WIN32_FLAGS) $(MAKE) libsimple-pwquery.a
	cd build-gpgv-win32/common && $(WIN32_FLAGS) $(MAKE) libcommonpth.a
	cd build-gpgv-win32/kbx && $(WIN32_FLAGS) $(MAKE) libkeybox.a
	cd build-gpgv-win32/regexp && $(WIN32_FLAGS) $(MAKE) libregexp.a
	cd build-gpgv-win32/g10 && $(WIN32_FLAGS) $(MAKE) gpgv.exe
	strip build-gpgv-win32/g10/gpgv.exe


override_dh_auto_test:
	dh_auto_test --builddirectory=build -- verbose=3 TESTFLAGS=$(AUTOTEST_FLAGS)

override_dh_shlibdeps:
# Make ldap a recommends rather than a hard dependency.
	dpkg-shlibdeps -Tdebian/dirmngr.substvars -dRecommends debian/dirmngr/usr/lib/gnupg/dirmngr_ldap -dDepends debian/dirmngr/usr/bin/dirmngr*
	dh_shlibdeps -Ndirmngr

override_dh_installsystemduser:
	dh_installsystemduser
	dh_installsystemduser --name=gpg-agent-ssh
	dh_installsystemduser --name=gpg-agent-extra
	dh_installsystemduser --name=gpg-agent-browser

# visualizations of package dependencies:
debian/%.png: debian/%.dot
	dot -T png -o $@ $<