File: rules

package info (click to toggle)
gnupg1 1.4.23-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 20,804 kB
  • sloc: ansic: 127,968; sh: 7,756; asm: 4,610; makefile: 1,102; yacc: 291; perl: 196; pascal: 72; sed: 16
file content (23 lines) | stat: -rwxr-xr-x 849 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
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

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

override_dh_auto_configure:
	dh_auto_configure --builddirectory=build-deb -- --libexecdir=\$${prefix}/lib/gnupg1 \
		--prefix=/usr --libexecdir=/usr/lib/ --enable-noexecstack --disable-card-support \
		--enable-mailto --with-mailprog=/usr/sbin/sendmail --enable-large-secmem

override_dh_auto_build-arch:
	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