summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-08-12 01:36:55 +0200
committerJulian Andres Klode <jak@debian.org>2016-08-12 01:55:29 +0200
commit4530f2d886c4124461ec1feeae4842b52d398c90 (patch)
tree69272b27a88ce9d27e07ccf3db357ce30125acfd
parent281383ce1b020013737b28d87988bdf477a90477 (diff)
debian: Install etc/apt if present (e.g., on Ubuntu)
On Ubuntu, cmake installs are vendor-specific apt.conf.d snippet, causing the build to fail.
-rwxr-xr-xdebian/rules3
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules
index c1dba72af..48518bb70 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,7 +17,8 @@ override_dh_install-indep:
override_dh_install-arch:
dh_movefiles
- dh_install --fail-missing
+ if [ -e debian/tmp/etc/apt ]; then dh_install -papt etc/apt/* etc/apt; fi
+ dh_install --list-missing
install -m 644 debian/apt.conf.autoremove debian/apt/etc/apt/apt.conf.d/01autoremove
install -m 755 debian/apt.auto-removal.sh debian/apt/etc/kernel/postinst.d/apt-auto-removal