~ubuntu-branches/ubuntu/saucy/apache2/saucy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Robie Basak
  • Date: 2012-06-08 11:37:31 UTC
  • mfrom: (14.3.39 sid)
  • Revision ID: package-import@ubuntu.com-20120608113731-lapfog4y8do2sdfv
Tags: 2.2.22-6ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - debian/{control, rules}: Enable PIE hardening.
  - debian/{control, rules, apache2.2-common.ufw.profile}: Add ufw profiles.
  - debian/apache2.py, debian/apache2.2-common.install: Add apport hook.
  - debian/control, debian/ask-for-passphrase, debian/config-dir/mods-available/ssl.conf:
    Plymouth aware passphrase dialog program ask-for-passphrase.
* Dropped changes:
  - debian/control: Add bzr tag and point it to our tree; this is not 
    really required and just increases the delta.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
                      --with-suexec-uidmin=100 \
52
52
                      --enable-suexec=shared \
53
53
                      --enable-log-config=static --enable-logio=static \
 
54
                      --enable-version=static \
54
55
                      --with-apr=/usr/bin/apr-1-config \
55
56
                      --with-apr-util=/usr/bin/apu-1-config \
56
57
                      --with-pcre=yes \
80
81
                      --enable-expires=shared --enable-headers=shared \
81
82
                      --enable-ident=shared --enable-usertrack=shared \
82
83
                      --enable-unique-id=shared --enable-setenvif=shared \
83
 
                      --enable-version=shared --enable-status=shared \
 
84
                      --enable-status=shared \
84
85
                      --enable-autoindex=shared --enable-asis=shared \
85
86
                      --enable-info=shared --enable-cgid=shared \
86
87
                      --enable-dav=shared --enable-dav-fs=shared \
120
121
        rm -rf $(INSTALL_DIR)
121
122
        rm -f debian/tmp
122
123
 
123
 
build-%:
 
124
mpm-build-%:
124
125
        mkdir "$(BUILD_DIR)/$*"
125
126
        cp -a `find . -maxdepth 1 -mindepth 1 -not -name debian` $(BUILD_DIR)/$*
126
127
        set -ex ;                                                                               \
150
151
        install -m 755 $(BUILD_DIR)/$*/apache2 debian/apache2.2-bin/usr/lib/apache2/mpm-$*/apache2
151
152
 
152
153
 
153
 
install-dev: build-worker build-prefork
 
154
install-dev: mpm-build-worker mpm-build-prefork
154
155
        set -ex ; \
155
156
        for i in worker prefork; do \
156
157
                if [ "$$i" = "prefork" ]; then \
189
190
 
190
191
 
191
192
%:
192
 
        dh $@ --parallel
 
193
        dh $@ --parallel --with autotools_dev
193
194
 
194
195
override_dh_auto_configure: prepare-custom-suexec $(patsubst %, mpm-%-maintainer-scripts, $(MPMS))
195
196
        mkdir $(BUILD_DIR)
199
200
override_dh_auto_build override_dh_auto_install:
200
201
 
201
202
override_dh_install-arch:
202
 
        $(MAKE) $(BUILDMAKEFLAGS) -f $(CURDIR)/debian/rules $(patsubst %, build-%, $(MPMS)) install-dev
 
203
        $(MAKE) $(BUILDMAKEFLAGS) -f $(CURDIR)/debian/rules $(patsubst %, mpm-build-%, $(MPMS)) install-dev
203
204
        for mpm in $(filter-out worker, $(MPMS)) ; do \
204
205
                if ! diff -u $(BUILD_DIR)/$$mpm/mods.list $(BUILD_DIR)/worker/mods.list ; then \
205
206
                        echo Different modules built into httpd binaries, will not proceed ;\
274
275
 
275
276
override_dh_strip:
276
277
        dh_strip --dbg-package=apache2-dbg -Napache2-dbg -Xusr/lib/apache2/mpm
277
 
        set -e \
 
278
        set -e && \
278
279
        if [ "$(LSB_RELEASE)" != "Ubuntu" ] && [ -n "$(DEB_BUILD_STRIP)" ] ; then \
279
280
                for i in $(MPMS); do \
280
281
                        MPM=usr/lib/apache2/mpm-$$i/apache2 ;\
302
303
override_dh_clean: $(patsubst %, undo-mpm-%-maintainer-scripts, $(MPMS))
303
304
        dh_clean
304
305
 
305
 
.PHONY: configure-% build-%-tree prepare-custom-suexec unapply-custom-suexec
 
306
.PHONY: configure-% mpm-build-% prepare-custom-suexec unapply-custom-suexec