~ubuntu-branches/debian/sid/mailman/sid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Thijs Kinkhorst
  • Date: 2011-10-08 17:27:51 UTC
  • Revision ID: james.westby@ubuntu.com-20111008172751-ruznpbshfvmuzabq
Tags: 1:2.1.14-3
* Make man page descruptions match more keywords (closes: #597112).
* Add cull_bad_shunt command to default cron job (closes: #615204)
  and improve cron job handling in the package.
* Import dpkg buildflags, also enabling hardening features.
* Remove gate_news debconf question.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 
15
15
SHELL=/bin/bash
16
16
 
 
17
# the '-include' is for compatibility with squeeze.
 
18
# replace with 'include' after squeeze support is over, or
 
19
# replace with 'include /usr/share/dpkg/default.mk' to replace vars above
 
20
DPKG_EXPORT_BUILDFLAGS = 1
 
21
-include /usr/share/dpkg/buildflags.mk
 
22
 
17
23
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
18
24
CFLAGS += -g
19
25
endif
33
39
        @debconf-updatepo
34
40
 
35
41
Makefile:
36
 
        cp configure configure.orig
37
 
        autoconf
38
42
        ./configure --prefix=/var/lib/$(package) --with-username=list \
39
43
                --with-groupname=list \
40
44
                --with-mail-gid=daemon --with-cgi-gid=www-data \
50
54
        rm -f debian/preinst
51
55
        dh_clean
52
56
        chmod +x debian/{prerm,postinst}
53
 
        [ ! -f configure.orig ] || mv -f configure.orig configure
54
57
 
55
58
binary-indep:   build
56
59
        dh_testdir
86
89
                mv $$i ../../../usr/lib/$(package); \
87
90
           done
88
91
 
89
 
 
90
92
        # link them back to /var/lib/mailman
91
93
        for i in debian/mailman/usr/lib/$(package)/*; do \
92
94
           dh_link usr/lib/$(package)/`basename $$i` var/lib/$(package)/`basename $$i`; \
112
114
        echo "$(VERSION)" > debian/mailman/var/lib/$(package)/.version
113
115
 
114
116
        dh_installlogrotate
115
 
 
 
117
        dh_installcron
 
118
        
116
119
        install -m 0644 debian/mm_cfg.py debian/mailman/usr/lib/mailman/Mailman/mm_cfg.py.dist
117
120
 
118
121
        rm debian/$(package)/usr/lib/$(package)/Mailman/mm_cfg.py