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 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
|
#! /usr/bin/make -f
# Generated automatically from debian/packages
# by yada v0.9.7, of Tue, 07 Dec 1999
# Modified by Piotr Roszatycki <dexter@debian.org>, Mon, 9 Apr 2001 23:41:30 +0200
DEB_HOST_GNU_CPU := $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_HOST_GNU_SYSTEM := $(shell dpkg-architecture -qDEB_HOST_GNU_SYSTEM)
DEB_BUILD_GNU_CPU := $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU)
DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_BUILD_GNU_SYSTEM := $(shell dpkg-architecture -qDEB_BUILD_GNU_SYSTEM)
VERSION:=$(shell LC_ALL=C dpkg-parsechangelog | sed -ne 's/^Version: *\([^2]*\)/\1/p')
.PHONY: default
default:
@echo "Specify a target:"; \
echo " build compile the package"; \
echo " binary make all binary packages"; \
echo " binary-arch make all architecture-dependent binary packages"; \
echo " binary-indep make all architecture-independent binary packages"; \
echo " clean clean up the source package"; \
echo; \
echo " depends check build-time dependencies"; \
echo " install-tree compile the package and create the install trees"; \
echo " clean-install-tree clean up only under debian/"; \
echo
# Check build dependencies and conflicts
.PHONY: depends
depends: debian/depends-stamp
debian/depends-stamp:
@echo 'Checking build conflicts and dependencies; just a minute...'
@echo -n 'grep-dctrl...'; v=$$(grep-status -X -F Package 'grep-dctrl' | grep Version | head -1 | sed -e 's/^Version: //'); \
if test ! "$$v"; then echo -n 'grep-dctrl (virtual package)...'; v=$$(grep-status -e -F Provides '(^grep-dctrl, |, grep-dctrl$$|^grep-dctrl$$)' | grep Version | head -1 | sed -e 's/^Version: //'); fi; \
if test "$$v"; then \
exit 0; \
fi; \
echo 'Build depends on `grep-dctrl'\'' (any version), which is not satisfied' | fmt; exit 1
@echo -n 'apache-dev...'; v=$$(grep-status -X -F Package 'apache-dev' | grep Version | head -1 | sed -e 's/^Version: //'); \
if test ! "$$v"; then echo -n 'apache-dev (virtual package)...'; v=$$(grep-status -e -F Provides '(^apache-dev, |, apache-dev$$|^apache-dev$$)' | grep Version | head -1 | sed -e 's/^Version: //'); fi; \
if test "$$v"; then \
exit 0; \
fi; \
echo 'Build depends on `apache-dev'\'' (any version), which is not satisfied' | fmt; exit 1
@echo -n 'yada...'; v=$$(grep-status -X -F Package 'yada' | grep Version | head -1 | sed -e 's/^Version: //'); \
if test ! "$$v"; then echo -n 'yada (virtual package)...'; v=$$(grep-status -e -F Provides '(^yada, |, yada$$|^yada$$)' | grep Version | head -1 | sed -e 's/^Version: //'); fi; \
if test "$$v"; then \
if dpkg --compare-versions "$$v" '>=' '0.9.7'; then \
exit 0; \
fi; \
fi; \
echo 'Build depends on `yada'\'' (version >= 0.9.7), which is not satisfied' | fmt; exit 1
@echo
@echo 'Conflicts and dependencies all satisfied!'
touch debian/depends-stamp
# Build the package and prepare the install tree
.PHONY: build-only build
build-only: debian/build-stamp
build: build-only
# Make sure these rules and the control file are up-to-date
.PHONY: rules control
rules: debian/rules
debian/rules: $(shell which yada) debian/packages
$(shell which yada) rebuild rules
control: debian/control
debian/control: $(shell which yada) debian/packages
$(shell which yada) rebuild control
debian/build-stamp: debian/depends-stamp
@[ -f $(shell which yada) -a -f debian/rules ]
@umask 022 \
&& export PACKAGE="libapache-mod-proxy-add-forward" \
&& export VERSION="$(VERSION)" \
&& export DEB_HOST_GNU_CPU="$(DEB_HOST_GNU_CPU)" \
&& export DEB_HOST_GNU_TYPE="$(DEB_HOST_GNU_TYPE)" \
&& export DEB_HOST_GNU_SYSTEM="$(DEB_HOST_GNU_SYSTEM)" \
&& export DEB_BUILD_GNU_CPU="$(DEB_BUILD_GNU_CPU)" \
&& export DEB_BUILD_GNU_TYPE="$(DEB_BUILD_GNU_TYPE)" \
&& export DEB_BUILD_GNU_SYSTEM="$(DEB_BUILD_GNU_SYSTEM)" \
&& (\
echo -E 'eval "yada () { perl $$(which yada) \"\$$@\"; }"; set -e; set -v';\
echo -E 'CC=gcc';\
echo -E 'EXTRA_CFLAGS="-O2 -Wall"';\
echo -E 'if [ "$${DEB_BUILD_OPTIONS#*debug}" != "$$DEB_BUILD_OPTIONS" ]; then';\
echo -E ' EXTRA_CFLAGS="$$EXTRA_CFLAGS -g"';\
echo -E 'fi';\
echo -E 'make -f debian/mod_proxy_add_forward.mk EXTRA_CFLAGS="$$EXTRA_CFLAGS" CC="$$CC"') | /bin/sh
touch debian/build-stamp
.PHONY: install-tree
install-tree: install-tree-any
install-tree-any: \
debian/tmp-libapache-mod-proxy-add-forward/DEBIAN/control
debian/tmp-libapache-mod-proxy-add-forward/DEBIAN/control: debian/build-stamp debian/control
rm -rf debian/tmp-libapache-mod-proxy-add-forward
umask 022 && install -d debian/tmp-libapache-mod-proxy-add-forward/DEBIAN
install -d debian/tmp-libapache-mod-proxy-add-forward/usr/share/doc/libapache-mod-proxy-add-forward
umask 022; $(shell which yada) generate copyright \
>debian/tmp-libapache-mod-proxy-add-forward/usr/share/doc/libapache-mod-proxy-add-forward/copyright
install -m 644 -p debian/changelog \
debian/tmp-libapache-mod-proxy-add-forward/usr/share/doc/libapache-mod-proxy-add-forward/changelog.Debian
@umask 022 \
&& export PACKAGE="libapache-mod-proxy-add-forward" \
&& export ROOT="$$(pwd)/debian/tmp-libapache-mod-proxy-add-forward" \
&& export CONTROL="$$(pwd)/debian/tmp-libapache-mod-proxy-add-forward/DEBIAN" \
&& export VERSION="$(VERSION)" \
&& export DEB_HOST_GNU_CPU="$(DEB_HOST_GNU_CPU)" \
&& export DEB_HOST_GNU_TYPE="$(DEB_HOST_GNU_TYPE)" \
&& export DEB_HOST_GNU_SYSTEM="$(DEB_HOST_GNU_SYSTEM)" \
&& export DEB_BUILD_GNU_CPU="$(DEB_BUILD_GNU_CPU)" \
&& export DEB_BUILD_GNU_TYPE="$(DEB_BUILD_GNU_TYPE)" \
&& export DEB_BUILD_GNU_SYSTEM="$(DEB_BUILD_GNU_SYSTEM)" \
&& (\
echo -E 'eval "yada () { perl $$(which yada) \"\$$@\"; }"; set -e; set -v';\
echo -E 'yada install -lib -into /usr/lib/apache/1.3 mod_proxy_add_forward.so';\
echo -E 'yada install -data -into /usr/lib/apache/1.3 debian/500proxy_add_forward.info';\
echo -E 'yada dpkg-shlibdeps';\
echo -E 'echo "apache:Depends=apache-common (>= $$(dpkg -s apache-dev|grep ^Version|sed '\''s/^Version: //'\''))" \';\
echo -E ' >> debian/substvars') | /bin/sh
$(shell which yada) compress libapache-mod-proxy-add-forward
$(shell which yada) generate maintscripts libapache-mod-proxy-add-forward
find debian/tmp-libapache-mod-proxy-add-forward -type f -print \
| sed -n 's/^debian\/tmp-libapache-mod-proxy-add-forward\(\/etc\/.*\)$$/\1/p' \
> debian/tmp-libapache-mod-proxy-add-forward/DEBIAN/conffiles
if test ! -s debian/tmp-libapache-mod-proxy-add-forward/DEBIAN/conffiles; then rm -f debian/tmp-libapache-mod-proxy-add-forward/DEBIAN/conffiles; fi
$(shell which yada) rebuild control
$(shell which yada) generate substvars libapache-mod-proxy-add-forward
umask 022 && dpkg-gencontrol -isp -plibapache-mod-proxy-add-forward -Pdebian/tmp-libapache-mod-proxy-add-forward
# Build package files
.PHONY: binary binary-arch binary-indep
binary: binary-arch binary-indep
binary-arch: binary-arch-any
.PHONY: binary-arch-any
binary-arch-any: \
binary-package-libapache-mod-proxy-add-forward
binary-indep:
.PHONY: binary-package-libapache-mod-proxy-add-forward
binary-package-libapache-mod-proxy-add-forward: check-root debian/tmp-libapache-mod-proxy-add-forward/DEBIAN/control
@[ -f $(shell which yada) -a -f debian/rules ]
chown -R 0.0 debian/tmp-libapache-mod-proxy-add-forward
chmod -R u=rwX,go=rX debian/tmp-libapache-mod-proxy-add-forward
@if [ -d debian/tmp-libapache-mod-proxy-add-forward/usr/doc/libapache-mod-proxy-add-forward ]; then \
echo "*** Yada warning: /usr/doc/libapache-mod-proxy-add-forward should be /usr/share/doc/libapache-mod-proxy-add-forward";\
fi
dpkg-deb --build debian/tmp-libapache-mod-proxy-add-forward ..
.PHONY: check-root
check-root:
@[ `id -u` = 0 ] || (echo "You must be root to do this!"; false)
# Clean up afterwards
.PHONY: clean clean-install-tree clean-build
clean: clean-install-tree clean-build debian/control debian/rules
clean-build:
@[ -f $(shell which yada) -a -f debian/rules ]
rm -f debian/build-stamp debian/depends-stamp
@umask 022 && (\
echo -E 'eval "yada () { perl $$(which yada) \"\$$@\"; }"; set -e; set -v';\
echo -E 'make -f debian/mod_proxy_add_forward.mk clean || true') | /bin/sh
clean-install-tree: debian/rules
@[ -f $(shell which yada) -a -f debian/rules ]
rm -f debian/install-tree-stamp
rm -rf debian/tmp* debian/files* debian/substvars
|