File: rules

package info (click to toggle)
tinyproxy 1.8.4-3~deb9u2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,552 kB
  • sloc: ansic: 5,841; sh: 4,366; perl: 347; makefile: 156
file content (35 lines) | stat: -rwxr-xr-x 801 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)

%:
	dh $@ --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- \
		--sysconfdir=/etc/tinyproxy \
		--enable-filter \
		--enable-transparent \
		--enable-regexcheck \
		--enable-reverse \
		--enable-upstream \
		--enable-xtinyproxy

override_dh_auto_install:
	dh_auto_install
	cp -a $(CURDIR)/debian/tinyproxy.conf $(CURDIR)/debian/tinyproxy/etc/tinyproxy

override_dh_install:
	dh_install --fail-missing

ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
# The testsuite currently fails on kFreeBSD, apparently due to different
# behaviour of loopback network interfaces.
override_dh_auto_test:
endif

override_dh_auto_clean:
	dh_auto_clean
	rm -rf $(CURDIR)/env