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
include /usr/share/dpatch/dpatch.make
11
PYVER=$(shell pyversions -rv)
13
configure: configure-stamp
16
# 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.
39
[ ! -f Makefile ] || $(MAKE) distclean
40
rm -f config.log configure src/include/mod_python.h
50
# Add here commands to install the package into debian/libapache-mod-python.
51
#$(MAKE) install DESTDIR=$(CURDIR)/debian/libapache-mod-python
55
rm -f config.cache config.status
56
export PYTHON_BIN=/usr/bin/python
57
-env PYTHON_BIN=/usr/bin/python \
58
./configure --with-apxs=/usr/bin/apxs2 --prefix=/usr \
59
--mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \
60
--with-python-version=$(PYVER)
61
$(MAKE) clean && DEB_DEFINES="-DLONG_LONG=PY_LONG_LONG" $(MAKE)
62
$(MAKE) install DESTDIR=$(CURDIR)/debian/libapache2-mod-python
63
cp debian/python.load debian/libapache2-mod-python/etc/apache2/mods-available/
66
binary-indep: build install
74
dh_installchangelogs -i
83
binary-arch: build install
86
dh_pycentral -plibapache2-mod-python
92
dh_installchangelogs -a
97
# You may want to make some executables suid here.
106
binary: binary-indep binary-arch
107
.PHONY: build clean binary-indep binary-arch binary install configure unpatch
5
PYTHON=$(shell pyversions -d)
8
dh $@ --with autoreconf,python2,apache2
10
override_dh_auto_configure:
11
dh_auto_configure -- --with-apxs=/usr/bin/apxs2 --with-python=$(PYTHON)
13
override_dh_auto_clean:
15
rm -rf $(CURDIR)/src/include/mod_python.h