File: rules

package info (click to toggle)
milter-greylist 4.5.11-1.1
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 1,828 kB
  • ctags: 1,830
  • sloc: ansic: 17,049; yacc: 2,158; lex: 585; sh: 536; makefile: 156
file content (35 lines) | stat: -rwxr-xr-x 917 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
34
35
#!/usr/bin/make -f
%:
	dh $@ --with autotools_dev

override_dh_auto_configure:
	dh_auto_configure -- \
	--with-user=greylist \
	--sysconfdir=/etc/milter-greylist \
	--with-conffile=/etc/milter-greylist/greylist.conf \
	--with-dumpfile=/var/lib/milter-greylist/greylist.db \
	--with-libspf2=/usr \
	--with-libcurl=/usr \
	--with-libmilter=/usr \
	--with-libopendkim=/usr \
	--with-libGeoIP=/usr \
	--with-libbind=/usr \
	--enable-dnsrbl \
	--disable-rpath \
	LDFLAGS=" -Wl,-z,defs -L/usr/lib/libmilter $(LDFLAGS) " \
	CFLAGS=" -fno-strict-aliasing $(CFLAGS) "
	
override_dh_auto_install:
	cp rc-debian.sh debian/milter-greylist.init
	DESTDIR=$(CURDIR)/debian/milter-greylist make install-sbin install-man

override_dh_auto_clean:
	dh_auto_clean

	rm -f debian/milter-greylist.init

	# The following keeps lintian happy
	rm -f milter-greylist.spec

	# Sometimes autoconf doesn't clean up after itself
	rm -f config.log