]> git.donarmstrong.com Git - deb_pkgs/spamass-milter.git/blob - debian/rules
do not remove the socket if spamass milter is already running
[deb_pkgs/spamass-milter.git] / debian / rules
1 #!/usr/bin/make -f
2
3 DH_VERBOSE = 1
4 # enable hardening
5 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
6
7 %: 
8         dh $@ --parallel --with autotools_dev
9
10 override_dh_auto_configure:
11          SPAMC="/usr/bin/spamc" SENDMAIL="/usr/sbin/sendmail" \
12                 dh_auto_configure;
13
14 override_dh_auto_clean:
15         dh_auto_clean;
16         rm -f config.log config.status config.h Makefile stamp-h1 spamass-milter.1
17
18 # PREFIX=$(shell pwd)/debian/spamass-milter/usr
19
20 # patch: patch-stamp
21 # patch-stamp:
22 #       dh_testdir
23
24 #       if [ -e debian/patches ]; then \
25 #               for a in `ls debian/patches/*.diff`; do \
26 #                       patch -f -p0 < $$a; \
27 #               done; \
28 #       fi;
29
30 #       rm -f unpatch-stamp;
31 #       touch $@
32
33 # unpatch: unpatch-stamp
34 # unpatch-stamp:
35 #       dh_testdir
36
37 #       if [ -e debian/patches ]; then \
38 #               for a in `ls debian/patches/*.diff`; do \
39 #                       patch -f -p0 -R < $$a; \
40 #               done; \
41 #       fi;
42
43 #       rm -f patch-stamp
44 #       touch $@
45
46
47 # configure: configure-stamp
48 # configure-stamp:
49
50 # # SPAMC and SENDMAIL are the location of the spamc and sendmail binary, respectively. PREFIX is the location to install to.
51 # # We must specify --mandir because for some ungodly reason, it's being installed into /usr/man by default
52 #       LDFLAGS="-L/usr/lib/libmilter" SPAMC="/usr/bin/spamc" SENDMAIL="/usr/sbin/sendmail" \
53 #               ./configure --prefix=$(PREFIX) --mandir=$(PREFIX)/share/man
54 #       touch $@
55
56 # build: configure build-stamp
57 # build-stamp:
58 #       dh_testdir
59
60 #       $(MAKE)
61
62 #       touch $@
63
64 # clean:
65 #       dh_testdir
66 #       dh_testroot
67
68 #       rm -f build-stamp
69 #       rm -f patch-stamp
70 #       rm -f unpatch-stamp
71 #       rm -f configure-stamp
72
73 #       if [ -e Makefile -a -e config.status ]; then \
74 #               $(MAKE) clean; \
75 #       fi
76 # # the clean target doesn't nuke these, so we kill them here.
77 #       rm -f config.log config.h config.status
78 #       dh_clean
79
80 # install: build
81 #       dh_testdir
82 #       dh_testroot
83 #       dh_clean -k
84 #       dh_installdirs
85
86 #       $(MAKE) install
87
88 # binary-indep:
89
90 # binary-arch: build install
91 #       dh_testdir
92 #       dh_testroot
93 #       dh_installchangelogs ChangeLog
94 #       dh_installdocs NEWS README
95 #       dh_installman
96 #       dh_installinit
97 #       dh_link
98 #       dh_strip
99 #       dh_compress
100 #       dh_fixperms
101 #       dh_installdeb
102 #       dh_shlibdeps
103 #       dh_gencontrol
104 #       dh_md5sums
105 #       dh_builddeb
106
107 # binary: binary-arch
108 # .PHONY: build clean binary-arch binary-indep binary install