3 # Debian build rules for dma, the DragonFly mail agent
8 BUILDDEFS
= DESTDIR
=$D PREFIX
=/usr CONFDIR
=/etc
10 CFLAGS
:= $(shell dpkg-buildflags
--get CFLAGS
)
11 CPPFLAGS
:= $(shell dpkg-buildflags
--get CPPFLAGS
)
12 LDFLAGS
:= $(shell dpkg-buildflags
--get LDFLAGS
)
14 CONFFILES
= dma.conf auth.conf
16 ifneq (,$(filter werror
,$(DEB_BUILD_OPTIONS
)))
19 ifneq (,$(filter nostrip
,$(DEB_BUILD_OPTIONS
)))
22 ifneq (,$(filter hardening
,$(DEB_BUILD_OPTIONS
)))
23 export DEB_BUILD_HARDENING
=1
25 export DEB_BUILD_HARDENING
=0
28 export CFLAGS CPPFLAGS LDFLAGS
30 override_dh_auto_build
:
31 $(MAKE
) -f Makefile
${BUILDDEFS}
32 $(MAKE
) -C
$(DDIR
)/migrate
34 override_dh_auto_clean
:
35 $(MAKE
) -f Makefile
clean
36 $(MAKE
) -C
$(DDIR
)/migrate
clean
38 override_dh_auto_install
:
39 $(MAKE
) -f Makefile
${BUILDDEFS} install sendmail-link mailq-link install-spool-dirs
40 install -o root
-g mail
-m
644 dma.conf
$D/etc
/dma
41 install -o root
-g mail
-m
640 auth.conf
$D/etc
/dma
44 dh_fixperms
-Xusr
/sbin
/dma
-Xusr
/lib
/dma-mbox-create
-Xvar
/spool
/dma
-Xetc
/dma
46 override_dh_installchangelogs
:
47 dh_installchangelogs
-p dma
48 dh_installchangelogs
-p dma-migrate debian
/migrate
/NEWS