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
|
#!/usr/bin/make -f
#export DH_VERBOSE=1
include /usr/share/dpkg/pkg-info.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
# upstream's version tag and download script
VER ?= $(DEB_VERSION_UPSTREAM)
GETVER ?= get-upstream-tarball
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- --prefix=/usr \
--host=$(DEB_HOST_GNU_TYPE) \
--build=$(DEB_BUILD_GNU_TYPE) \
--without-openssl \
--with-gnutls \
--with-sasl \
--with-poll \
--enable-lmdb \
--enable-unstrict-syntax
# HACK to avoid rpath in library
sed -i 's/^hardcode_into_libs=yes$$/hardcode_into_libs=no/' libtool
# End HACK
execute_before_dh_auto_build:
$(MAKE) -C doc doc
override_dh_compress:
dh_compress -Xtests
get-orig-source:
@test -x ./$(GETVER) || { echo "Error: working dir is not 'debian' dir" && exit 1; }
@echo "Downloading..." && ./$(GETVER) $(VER)
.PHONY: get-orig-source
|