File: rules

package info (click to toggle)
tinyproxy 1.8.2-1squeeze3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,620 kB
  • ctags: 857
  • sloc: ansic: 5,641; sh: 4,067; perl: 347; makefile: 155
file content (34 lines) | stat: -rwxr-xr-x 1,015 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
#!/usr/bin/make -f

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

%:
	dh $@

override_dh_auto_configure:
	./configure --prefix=/usr --sysconfdir=/etc \
		--bindir=/usr/sbin --mandir=/usr/share/man \
		--enable-filter \
		--enable-transparent \
		--enable-regexcheck \
		--enable-reverse \
		--enable-upstream \
		--enable-xtinyproxy

override_dh_auto_install:
	$(MAKE) install DESTDIR=$(CURDIR)/debian/tinyproxy

	# Make sure /var/run/tinyproxy is writable by the tinyproxy user
	chmod 750 $(CURDIR)/debian/tinyproxy/var/log/tinyproxy
	chown nobody:adm $(CURDIR)/debian/tinyproxy/var/log/tinyproxy
	cp -a $(CURDIR)/debian/tinyproxy.conf $(CURDIR)/debian/tinyproxy/etc
	cp -a $(CURDIR)/data/templates/*.html $(CURDIR)/debian/tinyproxy/usr/share/tinyproxy

override_dh_fixperms:
	dh_fixperms -X var/log/tinyproxy

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