File: rules

package info (click to toggle)
gnupg1 1.4.21-4+deb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 21,244 kB
  • sloc: ansic: 127,974; sh: 7,727; asm: 4,610; makefile: 1,110; yacc: 291; perl: 196; pascal: 72; sed: 16
file content (33 lines) | stat: -rwxr-xr-x 1,486 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export SOURCE_DATE_EPOCH = \
       $(shell date -d "$$(dpkg-parsechangelog -c 1 -S Date)" +%s)

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

CONFARGS  = --prefix=/usr --libexecdir=/usr/lib/ --enable-noexecstack --disable-card-support

CONFARGS_FULL    = --enable-mailto --with-mailprog=/usr/sbin/sendmail --enable-large-secmem
CONFARGS_MINIMAL = --enable-minimal --enable-rsa --disable-nls --disable-regex --disable-gnupg-iconv --disable-gettext --without-iconv --without-readline --without-zlib --enable-sha256

override_dh_auto_configure:
	dh_auto_configure --builddirectory=build-udeb -- \
		$(CONFARGS) $(CONFARGS_MINIMAL)
	dh_auto_configure --builddirectory=build-deb -- --libexecdir=\$${prefix}/lib/gnupg1 \
		$(CONFARGS) $(CONFARGS_FULL) --without-libcurl
	dh_auto_configure --builddirectory=build-deb-curl -- --libexecdir=\$${prefix}/lib/gnupg1 \
		$(CONFARGS) $(CONFARGS_FULL)

override_dh_auto_build-arch:
	dh_auto_build --builddirectory=build-udeb
	dh_auto_build --builddirectory=build-deb-curl
	dh_auto_build --builddirectory=build-deb
	cp build-deb/doc/gpgv.1 build-deb/doc/gpgv1.1
	cp build-deb/doc/gpg.1 build-deb/doc/gpg1.1
	chmod a+x build-deb/keyserver/gpgkeys_mailto

override_dh_shlibdeps:
# Make ldap a recommends rather than a hard dependency.
	dh_shlibdeps -a -X debian/gnupg1/usr/lib/gnupg1/gpgkeys_ldap -- -dRecommends $(CURDIR)/debian/gnupg1/usr/lib/gnupg1/gpgkeys_ldap -dDepends