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
|