File: rules

package info (click to toggle)
procmail 3.24%2Breally3.22-4
  • links: PTS
  • area: main
  • in suites: sid, trixie
  • size: 2,260 kB
  • sloc: ansic: 9,889; sh: 1,963; makefile: 105
file content (39 lines) | stat: -rwxr-xr-x 1,089 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
39
#!/usr/bin/make -f
%:
	dh $@

CC = gcc
CFLAGS := $(shell dpkg-buildflags --get CFLAGS) $$(getconf LFS_CFLAGS)
LDFLAGS := `dpkg-buildflags --get LDFLAGS`
CPPFLAGS := `dpkg-buildflags --get CPPFLAGS`
SEARCHLIBS = -lm

override_dh_auto_build:
	$(MAKE) CC="$(CC)" CFLAGS0="" \
		LDFLAGS0="$(LDFLAGS)" SEARCHLIBS="$(SEARCHLIBS)" autoconf.h
	$(MAKE) CC="$(CC)" CFLAGS0="$(CFLAGS) $(CPPFLAGS)" \
		LDFLAGS0="$(LDFLAGS)" SEARCHLIBS="$(SEARCHLIBS)"

override_dh_auto_clean:
	$(MAKE) realclean SEARCHLIBS=""
	dh_auto_clean

override_dh_auto_install:
	$(MAKE) BASENAME=`pwd`/debian/tmp/usr MANDIR=`pwd`/debian/tmp/usr/share/man \
		install.man install-suid

override_dh_installchangelogs:
	dh_installchangelogs --no-trim -XHISTORY

override_dh_installexamples:
	dh_installexamples -Xdirname -Xmailstat -Xprocmail-rpm.spec

override_dh_compress:
	dh_compress -XFAQ -XFEATURES -XREADME

override_dh_fixperms:
	dh_fixperms
	chgrp mail debian/procmail/usr/bin/procmail
	chgrp mail debian/procmail/usr/bin/lockfile
	chmod 6755 debian/procmail/usr/bin/procmail
	chmod 2755 debian/procmail/usr/bin/lockfile