1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
#! /usr/bin/make -f
clean:
dh_testdir
dh_testroot
dh_clean
$(RM) -r build-tree/
$(RM) -r apache2.2/
$(RM) build-stamp
build: build-stamp
build-arch: build-stamp
build-stamp:
dh_testdir
mkdir build-tree/
mkdir apache2.2/
cd apache2.2/ && tar zxf /usr/src/apache2.tar.gz
# workaround for apache2-src 2.2.3-3
if [ -d apache2.2/apache2 ]; then \
mv apache2.2/apache2/* apache2.2/; \
rmdir apache2.2/apache2/; \
fi
cd apache2.2/ && patch -p1 < ../apache2.2-mpm-itk.patch
cd apache2.2/ && patch -p1 < ../bad_file_descriptor_PR42829.patch
cd apache2.2/ && autoconf
sed 's,prefork,itk,;s,^".*/configure",../apache2.2/configure,;s,^"--srcdir=.*",--srcdir=../apache2.2/,' < /usr/share/apache2/build/config.nice > build-tree/config.nice
chmod +x build-tree/config.nice
cd build-tree/ && ./config.nice
cd build-tree/ && $(MAKE)
touch build-stamp
binary: binary-arch
binary-indep:
binary-arch: build-arch
dh_testdir
dh_testroot
dh_installdirs
install -m 0755 build-tree/apache2 debian/apache2-mpm-itk/usr/sbin/
dh_fixperms
dh_strip
dh_installdocs README
dh_installchangelogs
dh_installdeb
dh_compress
dh_shlibdeps
echo "apache:Depends=apache2.2-common (= `dpkg -s apache2.2-common | grep ^Version: | cut -d" " -f2`)" >> debian/apache2-mpm-itk.substvars
dh_gencontrol
dh_md5sums
dh_builddeb
.PHONY: clean build build-arch binary binary-arch binary-indep
|