File: rules

package info (click to toggle)
solid-pop3d 0.15-26
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,712 kB
  • sloc: ansic: 6,364; sh: 2,084; makefile: 487
file content (65 lines) | stat: -rwxr-xr-x 1,799 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/usr/bin/make -f

BUILDDIR        := DEB-BUILD
DH_AUTO_OPTIONS := -v -Sautoconf -B$(BUILDDIR) --parallel

DESTDIR         := $(CURDIR)/debian/$(shell dh_listpackages)

CFLAGS          := $(shell dpkg-buildflags --get CFLAGS)
# The build system doesn't use CPPFLAGS, pass them to CFLAGS to enable the
# missing (hardening) flags.
CFLAGS          += $(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS          += -DDEBIAN -Wall

LDFLAGS         := $(shell dpkg-buildflags --get LDFLAGS)
LDFLAGS         += -Wl,-z,defs -Wl,--as-needed

%:
	dh "$@"

override_dh_auto_configure: $(BUILDDIR)/configure-stamp
$(BUILDDIR)/configure-stamp:
	 rm -f .pc/.*unapply # see bug#649521
	
	dh_autotools-dev_updateconfig
	
	CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
	dh_auto_configure $(DH_AUTO_OPTIONS) -- \
	        --localstatedir=/var/lib/solid-pop3d \
	        --program-transform-name="s/^spop3d$$/solid-pop3d/" \
	        --enable-pam \
	        --enable-apop \
	        --enable-mailbox \
	        --enable-maildir \
	        --enable-configfile \
	        --enable-expire \
	        --enable-userconfig \
	        --enable-bulletins \
	        --enable-last \
	        --enable-mapping \
	        --enable-nonip \
	        --enable-createmail \
	        --enable-ipv6 \
	        --enable-resolve \
	        --enable-connect \
	        --enable-logextend \
	        --enable-statistics \
	        --enable-standalone \
	        # --enable-allowroot
	touch "$@"

override_dh_auto_build:
	dh_auto_build $(DH_AUTO_OPTIONS)

override_dh_auto_clean:
	rm -f $(BUILDDIR)/configure-stamp
	
	dh_auto_clean $(DH_AUTO_OPTIONS)
	dh_autotools-dev_restoreconfig

override_dh_auto_install:
	dh_auto_install $(DH_AUTO_OPTIONS) --destdir="$(DESTDIR)"
	
	dh_install debian/spop3d.conf etc
	
	sh debian/fix_manpages.sh $(DESTDIR)