File: rules

package info (click to toggle)
s-nail 14.9.24-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,824 kB
  • sloc: ansic: 75,554; sh: 14,365; cpp: 4,300; perl: 562; makefile: 144; php: 5
file content (22 lines) | stat: -rwxr-xr-x 521 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f

# https://wiki.debian.org/HardeningWalkthrough
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Needed to pass the dh-generated buildflags to the configure script
export EXTRA_CFLAGS=$(CFLAGS) $(CPPFLAGS)
export EXTRA_LDFLAGS=$(LDFLAGS)

%:
	dh $@

override_dh_auto_configure:
	$(MAKE) config \
	        VERBOSE=1 \
	        VAL_PREFIX=/usr \
	        VAL_SYSCONFDIR=/etc \
	        VAL_MTA=/usr/sbin/sendmail \
	        VAL_MAIL=/var/mail

override_dh_installchangelogs:
	dh_installchangelogs NEWS