File: rules

package info (click to toggle)
analog 2%3A6.0.17-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 8,976 kB
  • sloc: ansic: 45,762; makefile: 282; perl: 249; sh: 46
file content (37 lines) | stat: -rwxr-xr-x 962 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
#!/usr/bin/make -f
#export DH_VERBOSE = 1

include /usr/share/dpkg/architecture.mk
include  /usr/share/dpkg/pkg-info.mk
export BUILD_DATE = $(SOURCE_DATE_EPOCH)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

ifeq ($(origin CC),default)
CC := $(DEB_HOST_GNU_TYPE)-gcc
endif

%:
	dh $@

override_dh_auto_build:
	# NOTE: settting things to "" makes analog look for config files
	# in the current directory if no path is specified. See anlghead.h
	$(MAKE) DEFS='-DHOSTNAME=\"Debian\ Linux\ System\" \
		-DHOSTURL=\"/\" \
		-DLOGSDIR=\"/var/log/apache/\" \
		-DLOGFILE=\"access.log\" \
		-DIMAGEDIR=\"/analog/\" \
		-DLANGDIR=\"/usr/share/analog/lang/\" \
		-DCACHEDIR=\"/var/cache/analog/\" \
		-DDNSDIR=\"/var/cache/analog/dns/\" \
		-DCONFIGDIR=\"\" \
		-DOUTDIR=\"\" \
		-DERRDIR=\"\" \
		-DHEADERDIR=\"\" \
		-DLOCKDIR=\"/var/lock/\" \
		-DDEFAULTCONFIGFILE=\"/etc/analog.cfg\"' \
		CC=$(CC) \
		analog

override_dh_installdocs:
	dh_installdocs -X Licence.txt