File: rules

package info (click to toggle)
opentracker 0.0~git20240622.c854b3d-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 604 kB
  • sloc: ansic: 5,825; perl: 176; makefile: 70; sh: 62
file content (55 lines) | stat: -rwxr-xr-x 1,469 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS += hardening=+all

# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
CFLAGS+=$(CPPFLAGS)
CXXFLAGS+=$(CPPFLAGS)

# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
export DEB_CFLAGS_MAINT_APPEND  += -Wall -pedantic

#FEATURES+=-DWANT_ACCESSLIST_BLACK
FEATURES+=-DWANT_ACCESSLIST_WHITE
#FEATURES+=-DWANT_IP_FROM_QUERY_STRING
#FEATURES+=-DWANT_IP_FROM_PROXY
#FEATURES+=-DWANT_LOG_NUMWANT -DWANT_MODEST_FULLSCRAPES
#FEATURES+=-DWANT_SPOT_WOODPECKER
FEATURES+=-DWANT_SYSLOGS
#FEATURES+=-DWANT_DEV_RANDOM
FEATURES+=-DWANT_RESTRICT_STATS

# You need libowfat version 0.34 to allow for automatic release of chunks during
# full scrape transfer, if you rely on an older versions, enable this flag
FEATURES+=-DWANT_NO_AUTO_FREE

export FEATURES
export LIBOWFAT_LIBRARY=/usr/lib
export LIBOWFAT_HEADERS=/usr/include/libowfat
export PREFIX=/usr

ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
  STRIP = :
else
  ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
    STRIP = $(DEB_HOST_GNU_TYPE)-strip
  else
    STRIP = strip
  endif
endif
export STRIP

# main packaging script based on dh7 syntax
%:
	dh $@

override_dh_auto_install:
	dh_auto_install

	rm -rf debian/opentracker-common/usr/bin/