From 5b415f1d637277bcfb2328d3e0022cde48514b3a Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sat, 5 May 2018 16:52:19 +0200 Subject: debian/rules: Convert to CDBS. --- debian/control | 4 ++-- debian/rules | 25 ++++++++++++++----------- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/debian/control b/debian/control index a43b051..c6f5ade 100644 --- a/debian/control +++ b/debian/control @@ -4,8 +4,8 @@ Priority: optional Maintainer: Artica Project Uploaders: Mike Gabriel -Build-Depends: debhelper (>= 9), - dh-autoreconf, +Build-Depends: cdbs, + debhelper (>= 9), mate-common, freerdp2-dev (>= 2~), libgtest-dev, diff --git a/debian/rules b/debian/rules index 038db7d..19ce1e8 100755 --- a/debian/rules +++ b/debian/rules @@ -1,19 +1,22 @@ #!/usr/bin/make -f -# -*- makefile -*- -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 export DEB_BUILD_MAINT_OPTIONS = hardening=+all DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk -override_dh_install: - find debian/libpam-freerdp2 -name '*.a' -delete - find debian/libpam-freerdp2 -name '*.la' -delete - dh_install --fail-missing +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/autoreconf.mk +include /usr/share/cdbs/1/class/autotools.mk +include /usr/share/cdbs/1/rules/utils.mk -override_dh_auto_test: - # disabled for now +#DEB_MAKE_CHECK_TARGET = check -%: - dh $@ --with autoreconf +# Remove .a and .la files from /lib/security +remove-cruft:: + find $(DEB_DESTDIR)/lib/security -type f \ + \( -name '*.a' -o -name '*.la' \) \ + -exec rm '{}' + + +common-install-indep:: remove-cruft +common-install-arch:: remove-cruft +common-binary-post-install-arch:: list-missing -- cgit v1.2.3