File: rules

package info (click to toggle)
milter-greylist 4.6.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,876 kB
  • sloc: ansic: 16,965; yacc: 2,204; lex: 590; sh: 538; makefile: 158
file content (38 lines) | stat: -rwxr-xr-x 961 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
36
37
38
#!/usr/bin/make -f
%:
	dh $@

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

override_dh_installinit:
	dh_installinit --no-enable --no-start