~ubuntu-branches/ubuntu/quantal/suphp/quantal

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Emmanuel Lacour
  • Date: 2012-06-26 15:30:52 UTC
  • mfrom: (8.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20120626153052-ufgvx4axunpfo23t
Tags: 0.7.1-3
Remove support for apache 2.4 debian package (stalled in
experimental)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
2
3
# Sample debian/rules that uses debhelper.
3
 
# GNU copyright 1997 to 1999 by Joey Hess.
 
4
# This file was originally written by Joey Hess and Craig Small.
 
5
# As a special exception, when this file is copied by dh-make into a
 
6
# dh-make output file, you may use that output file without restriction.
 
7
# This special exception was added by Craig Small in version 0.37 of dh-make.
4
8
 
5
9
# Uncomment this to turn on verbose mode.
6
10
#export DH_VERBOSE=1
7
11
 
8
 
# These are used for cross-compiling and for saving the configure script
9
 
# from having to guess our platform (since we know it already)
10
 
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
11
 
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
12
 
 
13
 
 
14
 
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
15
 
        CFLAGS += -g
16
 
endif
17
 
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
18
 
        INSTALL_PROGRAM += -s
19
 
endif
20
 
 
21
 
patch:
22
 
        dpatch apply-all
23
 
 
24
 
configure-apache2: patch
25
 
        dh_testdir
26
 
        CPPFLAGS="`pkg-config --cflags apr-1`" ./configure --prefix=/usr \
 
12
%:
 
13
        dh $@  --with quilt,autotools-dev,autoreconf
 
14
 
 
15
override_dh_auto_configure:
 
16
        CFLAGS="$(CFLAGS) `pkg-config --cflags apr-1`" ./configure --prefix=/usr \
27
17
        --sysconfdir=/etc/suphp \
28
18
        --with-apxs=/usr/bin/apxs2 \
29
19
        --with-apache-user=www-data \
30
 
        --with-php=/usr/bin/php-cgi \
31
20
        --sbindir=/usr/lib/suphp \
32
21
        --with-setid-mode=owner \
33
22
        --with-logfile=/var/log/suphp/suphp.log
34
23
 
35
24
 
36
 
build-apache2: configure-apache2
37
 
        dh_testdir
38
 
        $(MAKE)
39
 
 
40
 
build:
41
 
 
42
 
clean:
43
 
        dh_testdir
44
 
        dh_testroot
45
 
        [ ! -f Makefile ] || $(MAKE) clean
46
 
        rm -f config.log config.status src/config.h
47
 
        rm -f libtool src/stamp-h
48
 
        find . -name .libs | xargs rm -rf
49
 
        find . -name .deps | xargs rm -rf
50
 
        rm -f src/apache/mod_suphp.o src/apache/mod_suphp.lo src/apache/mod_suphp.la src/stamp-h1
51
 
        find . -name Makefile | xargs rm -f
52
 
        dh_clean
53
 
        dpatch deapply-all
54
 
        rm -rf debian/patched
55
 
 
56
 
install: build-apache2
57
 
        dh_testdir
58
 
        dh_testroot
59
 
        dh_prep
60
 
        find -name ".svn" -type d | xargs rm -rf
61
 
        find -name ".git" -type d | xargs rm -rf
62
 
        dh_installdirs
 
25
override_dh_install:
63
26
        dh_install
64
27
        docbook-to-man debian/suphp-common.manpage.sgml > debian/suphp-common/usr/share/man/man8/suphp.8
65
28
        install -m 644 debian/suphp-common.lintian-override debian/suphp-common/usr/share/lintian/overrides/suphp-common
67
30
        mv debian/libapache2-mod-suphp/usr/lib/apache2/modules/mod_suphp.so.0.0.0 debian/libapache2-mod-suphp/usr/lib/apache2/modules/mod_suphp.so
68
31
 
69
32
 
70
 
# Build architecture-independent files here.
71
 
binary-indep: 
72
 
# We have nothing to do by default.
73
 
 
74
 
# Build architecture-dependent files here.
75
 
binary-arch: install
76
 
        dh_testdir
77
 
        dh_testroot
78
 
#       dh_installdebconf       
 
33
override_dh_installdocs:
79
34
        dh_installdocs
80
35
        mv debian/libapache2-mod-suphp/usr/share/doc/libapache2-mod-suphp/INSTALL debian/libapache2-mod-suphp/usr/share/doc/libapache2-mod-suphp/README
81
 
#       dh_installexamples
82
 
#       dh_installmenu
83
 
        dh_installlogrotate
84
 
#       dh_installemacsen
85
 
#       dh_installpam
86
 
#       dh_installmime
87
 
#       dh_installinit
88
 
#       dh_installcron
89
 
#       dh_installman
90
 
#       dh_installinfo
 
36
 
 
37
override_dh_installchangelogs:
91
38
        dh_installchangelogs ChangeLog
92
 
        dh_link
93
 
        dh_strip
94
 
        dh_compress
 
39
 
 
40
override_dh_fixperms:
95
41
        dh_fixperms
96
42
        chmod u+s debian/suphp-common/usr/lib/suphp/suphp
97
 
#       dh_makeshlibs
98
 
        dh_installdeb
99
 
#       dh_perl
100
 
        dh_shlibdeps
101
 
        dh_gencontrol
102
 
        dh_md5sums
103
 
        dh_builddeb
104
43
 
105
 
binary: binary-indep binary-arch
106
 
.PHONY: configure build build-apache2 clean binary-indep binary-arch binary install patch unpatch
 
44
override_dh_makeshlibs:
 
45
        # Not needed here, not a dynamic lib