File: rules

package info (click to toggle)
csync2 2.0-25-gc0faaf9-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 844 kB
  • sloc: ansic: 6,860; sh: 832; yacc: 458; perl: 277; lex: 92; makefile: 82; cs: 73; sql: 42
file content (35 lines) | stat: -rwxr-xr-x 769 bytes parent folder | download | duplicates (3)
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

# make pdf build reproducible
export FORCE_SOURCE_DATE=1

# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

CFLAGS = $(shell dpkg-buildflags --get CFLAGS) -I$(shell pg_config --includedir)

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure \
	-- CFLAGS="$(CFLAGS)" LIBGNUTLS_CONFIG="/usr/bin/pkg-config gnutls" \
	--prefix=/usr \
	--localstatedir=/var \
	--sysconfdir=/etc \
	--enable-postgres \
	--enable-sqlite3 \
	--enable-mysql

override_dh_autoreconf:
	dh_autoreconf ./autogen.sh

override_dh_installman:
	dh_installman
	rm -rf debian/csync2/usr/share/man/man1

override_dh_installinit:
	dh_installinit --no-enable --no-start

override_dh_installsystemd:
	dh_installsystemd --no-enable --no-start