~ubuntu-branches/ubuntu/feisty/libapache2-mod-python/feisty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2005-02-08 15:18:16 UTC
  • Revision ID: james.westby@ubuntu.com-20050208151816-d0wn4hmb0docvmu3
Tags: 3.1.3-2.2ubuntu4
* SECURITY UPDATE: fix information disclosure
* publisher.py: check object types to disallow access to
  non-classes/modules; this avoids access to
  .../module/function/func_globals which discloses private data
* References:
  CAN-2005-0088

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# debian/rules for Apache mod_python 3
 
3
# GNU copyright 1997 to 1999 by Joey Hess.
 
4
# Copyright (c) 2003 Peter Hawkins
 
5
 
 
6
# Uncomment this to turn on verbose mode.
 
7
#export DH_VERBOSE=1
 
8
 
 
9
# This is the debhelper compatability version to use.
 
10
export DH_COMPAT=3
 
11
 
 
12
configure: configure-stamp
 
13
configure-stamp:
 
14
        dh_testdir
 
15
        # Add here commands to configure the package.
 
16
        
 
17
        autoconf
 
18
        # Don't configure here (see install)
 
19
#       -./configure --enable-EAPI --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
 
20
        touch configure-stamp
 
21
 
 
22
build: configure-stamp build-stamp
 
23
build-stamp:
 
24
        dh_testdir
 
25
 
 
26
        # Add here commands to compile the package.
 
27
        # Don't build it here, see install
 
28
        #$(MAKE)
 
29
        #/usr/bin/docbook-to-man debian/libapache-mod-python.sgml > libapache-mod-python.1
 
30
 
 
31
        touch build-stamp
 
32
 
 
33
clean:
 
34
        dh_testdir
 
35
        dh_testroot
 
36
        rm -f build-stamp configure-stamp
 
37
 
 
38
        # Add here commands to clean up after the build process.
 
39
        -$(MAKE) distclean
 
40
        rm -f config.log
 
41
 
 
42
        dh_clean
 
43
 
 
44
install: build
 
45
        dh_testdir
 
46
        dh_testroot
 
47
        dh_clean -k
 
48
        dh_installdirs
 
49
 
 
50
        # Add here commands to install the package into debian/libapache-mod-python.
 
51
        #$(MAKE) install DESTDIR=$(CURDIR)/debian/libapache-mod-python
 
52
 
 
53
        # python 2.3
 
54
        rm -f config.cache config.status
 
55
        export PYTHON_BIN=/usr/bin/python2.3
 
56
        -env PYTHON_BIN=/usr/bin/python2.3 \
 
57
        ./configure --with-apxs=/usr/bin/apxs2 --prefix=/usr \
 
58
                --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \
 
59
                --with-python-version=2.3
 
60
        $(MAKE) clean && DEB_DEFINES="-DLONG_LONG=PY_LONG_LONG" $(MAKE)
 
61
        $(MAKE) install DESTDIR=$(CURDIR)/debian/libapache2-mod-python2.3
 
62
        cp debian/mod_python.load debian/libapache2-mod-python2.3/etc/apache2/mods-available/
 
63
        
 
64
        # python 2.4
 
65
        rm -f config.cache config.status
 
66
        export PYTHON_BIN=/usr/bin/python2.4
 
67
        -env PYTHON_BIN=/usr/bin/python2.4 \
 
68
        ./configure --with-apxs=/usr/bin/apxs2 --prefix=/usr \
 
69
                --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \
 
70
                --with-python-version=2.4
 
71
        $(MAKE) clean && DEB_DEFINES="-DLONG_LONG=PY_LONG_LONG" $(MAKE)
 
72
        $(MAKE) install DESTDIR=$(CURDIR)/debian/libapache2-mod-python2.4
 
73
        cp debian/mod_python.load debian/libapache2-mod-python2.4/etc/apache2/mods-available/
 
74
 
 
75
 
 
76
# Build architecture-independent files here.
 
77
binary-indep: build install
 
78
        dh_testdir -i
 
79
        dh_testroot -i
 
80
        dh_python -i
 
81
        dh_installdebconf -i    
 
82
        dh_installdocs -i
 
83
        dh_installexamples -i
 
84
        dh_installmenu -i
 
85
#       dh_installemacsen
 
86
#       dh_installpam
 
87
#       dh_installinit
 
88
        dh_installcron -i
 
89
        dh_installmanpages -i
 
90
        dh_installinfo -i
 
91
#       dh_undocumented
 
92
        dh_installchangelogs -i 
 
93
        dh_compress -i
 
94
        dh_fixperms -i
 
95
        dh_installdeb -i
 
96
        dh_shlibdeps -i
 
97
        dh_gencontrol -i
 
98
        dh_md5sums -i
 
99
        dh_builddeb -i
 
100
 
 
101
# Build architecture-dependent files here.
 
102
binary-arch: build install
 
103
        dh_testdir -a
 
104
        dh_testroot -a
 
105
        dh_python -plibapache2-mod-python2.3 /usr/lib/python2.3/site-packages
 
106
        dh_python -plibapache2-mod-python2.4 /usr/lib/python2.4/site-packages
 
107
        dh_installdebconf -a    
 
108
        dh_installdocs -a
 
109
        dh_installexamples -a
 
110
        dh_installmenu -a
 
111
#       dh_installemacsen
 
112
#       dh_installpam
 
113
#       dh_installinit
 
114
        dh_installcron -a
 
115
        dh_installmanpages -a
 
116
        dh_installinfo -a
 
117
#       dh_undocumented
 
118
        dh_installchangelogs -a
 
119
        dh_link -a
 
120
        dh_strip -a
 
121
        dh_compress -a
 
122
        dh_fixperms -a
 
123
        # You may want to make some executables suid here.
 
124
#       dh_suidregister
 
125
#       dh_makeshlibs
 
126
        dh_installdeb -a
 
127
        dh_shlibdeps -a
 
128
        dh_gencontrol -a
 
129
        dh_md5sums -a
 
130
        dh_builddeb -a
 
131
 
 
132
binary: binary-indep binary-arch
 
133
.PHONY: build clean binary-indep binary-arch binary install configure