aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-05-05 16:52:19 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-05-05 17:20:07 +0200
commit5b415f1d637277bcfb2328d3e0022cde48514b3a (patch)
tree217e9ea1972641cc01a1762c378e83d40191d7c7
parent29f66f14149fd24fda9b80645890f1c74ba2a8ee (diff)
downloadlibpam-freerdp2-5b415f1d637277bcfb2328d3e0022cde48514b3a.tar.gz
libpam-freerdp2-5b415f1d637277bcfb2328d3e0022cde48514b3a.tar.bz2
libpam-freerdp2-5b415f1d637277bcfb2328d3e0022cde48514b3a.zip
debian/rules: Convert to CDBS.
-rw-r--r--debian/control4
-rwxr-xr-xdebian/rules25
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 <devs@lists.arctica-project.org>
Uploaders:
Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
-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