File: rules

package info (click to toggle)
wims 1%3A4.15d~dfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 142,064 kB
  • sloc: xml: 367,528; java: 119,440; ansic: 62,236; sh: 6,957; perl: 3,784; yacc: 3,138; lex: 1,791; cpp: 1,604; makefile: 1,283; lisp: 914; php: 366; pascal: 223; python: 191; asm: 51; sql: 10
file content (52 lines) | stat: -rwxr-xr-x 1,566 bytes parent folder | download
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
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

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
	# those directories seem to be necessary for the build
	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
	# create a directory for wims configuration
	mkdir -p $(CURDIR)/debian/wims/etc/wims