File: rules

package info (click to toggle)
csync2 2.0-8-g175a01c-4%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 728 kB
  • sloc: ansic: 6,827; sh: 730; yacc: 456; perl: 277; makefile: 92; lex: 92; cs: 73; sql: 42
file content (28 lines) | stat: -rwxr-xr-x 669 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
#!/usr/bin/make -f
export DH_VERBOSE=1
export FORCE_SOURCE_DATE=1

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

%:
	dh $@ --with autotools_dev,autoreconf,systemd

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_installchangelogs:
	dh_installchangelogs
	rm debian/csync2/usr/share/doc/csync2/ChangeLog

override_dh_systemd_enable:
	dh_systemd_enable --no-enable csync2.socket