summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 21:21:05 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 21:21:05 +0000
commit307d0f3ba61c1526f991c202087e9d0f961acdab (patch)
tree0b15a34683565d6389862f7c8751a68e32a6268d /debian/rules
parentMerging upstream version 2.2.43. (diff)
downloadgnupg2-307d0f3ba61c1526f991c202087e9d0f961acdab.tar.xz
gnupg2-307d0f3ba61c1526f991c202087e9d0f961acdab.zip
Adding debian version 2.2.43-1.debian/2.2.43-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules37
1 files changed, 28 insertions, 9 deletions
diff --git a/debian/rules b/debian/rules
index b6aba08..bf8fe12 100755
--- a/debian/rules
+++ b/debian/rules
@@ -31,6 +31,10 @@ else
AUTOTEST_FLAGS = "--no-parallel"
endif
+ifneq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
+ NODOC = --disable-doc
+endif
+
%:
dh $@ --with=autoreconf --builddirectory=build
@@ -38,21 +42,35 @@ GPGV_UDEB_UNNEEDED = gpgtar bzip2 gpgsm scdaemon dirmngr doc tofu exec ldap gnut
WIN32_FLAGS=LDFLAGS="-Xlinker --no-insert-timestamp -static" CFLAGS="-g -Os" CPPFLAGS=
-override_dh_auto_configure:
- dh_auto_configure --builddirectory=build-gpgv-udeb -- \
- $(foreach x, $(GPGV_UDEB_UNNEEDED), --disable-$(x))
- dh_auto_configure --builddirectory=build-maintainer -- \
- --enable-maintainer-mode \
- $(foreach x, $(GPGV_UDEB_UNNEEDED), --disable-$(x))
- dh_auto_configure --builddirectory=build -- --libexecdir=\$${prefix}/lib/gnupg \
+# runs for both arch-all and arch-indep builds
+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
+ --enable-large-secmem \
+ --with-mailprog=/usr/sbin/sendmail \
+ $(NODOC)
+
+override_dh_auto_configure-arch:
+ dh_auto_configure --builddirectory=build-maintainer -- \
+ --enable-maintainer-mode \
+ $(foreach x, $(GPGV_UDEB_UNNEEDED), --disable-$(x)) \
+ $(NODOC)
+ dh_auto_configure --builddirectory=build-gpgv-udeb -- \
+ $(NODOC) \
+ $(foreach x, $(GPGV_UDEB_UNNEEDED), --disable-$(x))
+
+override_dh_auto_configure-indep:
+ # nothing to do
+
+# needed for both arch-all and -indep builds
+execute_after_dh_auto_build:
+ dh_auto_build --builddirectory=build
override_dh_auto_build-arch:
dh_auto_build --builddirectory=build-gpgv-udeb
- dh_auto_build --builddirectory=build
dh_auto_build --builddirectory=build-maintainer
cp -a build-gpgv-udeb build-gpgv-static
rm -f build-gpgv-static/g10/gpgv
@@ -64,6 +82,7 @@ override_dh_auto_build-indep:
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) \
+ $(NODOC) \
--enable-gpg2-is-gpg \
--with-zlib=/usr/i686-w64-mingw \
--prefix=/usr/i686-w64-mingw32 \