File: rules

package info (click to toggle)
libapache2-mod-qos 11.76-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 2,364 kB
  • sloc: ansic: 16,601; sh: 997; makefile: 34
file content (28 lines) | stat: -rwxr-xr-x 864 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS := hardening=+bindnow

%:
	dh ${@} --sourcedirectory=tools --with=apache2

execute_after_dh_auto_clean:
	rm -f apache2/mod_qos.*l* apache2/mod_qos.o
	rm -rf apache2/.libs/

execute_after_dh_auto_build:
	LTFLAGS="--no-silent" apxs2 \
		  -S CFLAGS="$(CFLAGS) \
		  -D_LARGEFILE64_SOURCE $(CPPFLAGS)" \
		  -lcrypto -DHAVE_OPENSSL -c apache2/mod_qos.c

execute_after_dh_auto_install:
	# install documentation
	mkdir -p debian/libapache2-mod-qos/usr/share/doc/libapache2-mod-qos
	cp -a doc debian/libapache2-mod-qos/usr/share/doc/libapache2-mod-qos/html

	# remove unneeded files
	rm -f debian/libapache2-mod-qos/usr/share/doc/libapache2-mod-qos/html/CHANGES.txt
	rm -f debian/libapache2-mod-qos/usr/share/doc/libapache2-mod-qos/html/LICENSE.txt

override_dh_installchangelogs:
	dh_installchangelogs doc/CHANGES.txt