2
# debian/rules for Apache mod_python 3
3
# GNU copyright 1997 to 1999 by Joey Hess.
4
# Copyright (c) 2003 Peter Hawkins
6
# Uncomment this to turn on verbose mode.
9
# This is the debhelper compatability version to use.
12
configure: configure-stamp
15
# Add here commands to configure the package.
18
# Don't configure here (see install)
19
# -./configure --enable-EAPI --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
22
build: configure-stamp build-stamp
26
# Add here commands to compile the package.
27
# Don't build it here, see install
29
#/usr/bin/docbook-to-man debian/libapache-mod-python.sgml > libapache-mod-python.1
36
rm -f build-stamp configure-stamp
38
# Add here commands to clean up after the build process.
50
# Add here commands to install the package into debian/libapache-mod-python.
51
#$(MAKE) install DESTDIR=$(CURDIR)/debian/libapache-mod-python
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/
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/
76
# Build architecture-independent files here.
77
binary-indep: build install
92
dh_installchangelogs -i
101
# Build architecture-dependent files here.
102
binary-arch: build install
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
109
dh_installexamples -a
115
dh_installmanpages -a
118
dh_installchangelogs -a
123
# You may want to make some executables suid here.
132
binary: binary-indep binary-arch
133
.PHONY: build clean binary-indep binary-arch binary install configure