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
|
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
%:
dh $@ --with apache2
DESTDIR = $(CURDIR)/debian/tmp
MAKE = make -f Makefile.for.debian
override_dh_auto_clean:
dh_auto_clean
[ ! -f Makefile.for.debian ] || $(MAKE) clean
override_dh_auto_build-indep:
$(MAKE) all-indep
override_dh_auto_build-arch:
$(MAKE) all-arch
override_dh_auto_configure:
cd wims/src; autoreconf && ./configure --without-units --without-chemeq --without-wimsd
mkdir -p wims/lib
mkdir -p wims/tmp/log
override_dh_auto_install-indep:
$(MAKE) install-indep DESTDIR=$(DESTDIR)
for f in $$(grep -l "deny from all" $$(find $(DESTDIR) -name ".htaccess")); do \
echo "# syntax for Apache2.4" > $$f; \
echo "Require all denied" >> $$f; \
done
override_dh_auto_install-arch:
$(MAKE) install-arch DESTDIR=$(DESTDIR)
for f in $$(grep -l "deny from all" $$(find $(DESTDIR) -name ".htaccess")); do \
echo "# syntax for Apache2.4" > $$f; \
echo "Require all denied" >> $$f; \
done
mkdir -p $(CURDIR)/debian/wims/etc/wims
|