File: rules

package info (click to toggle)
libapache2-mod-log-slow 1.0.8-3
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, jessie, jessie-kfreebsd, sid, stretch, trixie
  • size: 128 kB
  • ctags: 105
  • sloc: ansic: 824; makefile: 33
file content (22 lines) | stat: -rwxr-xr-x 699 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
#!/usr/bin/make -f

CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)

%:
	dh $@

override_dh_auto_build:
	$(MAKE) ap_basedir=/usr/share/apache2 CFLAGS="$(CFLAGS)"

override_dh_auto_clean:
	$(MAKE) ap_basedir=/usr/share/apache2 clean

override_dh_auto_install:
	$(MAKE) ap_basedir=/usr/share/apache2 DESTDIR=$(CURDIR)/debian/libapache2-mod-log-slow install
	mkdir -p debian/libapache2-mod-log-slow/etc/apache2/mods-available
	cp debian/log_slow.conf debian/libapache2-mod-log-slow/etc/apache2/mods-available
	cp debian/log_slow.load debian/libapache2-mod-log-slow/etc/apache2/mods-available

# Do not execute the 'test' target from upstream because it tries to restart
# Apache
override_dh_auto_test: ;