summaryrefslogtreecommitdiff
path: root/debian
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-18 09:56:37 +0200
commitf23ca86fe037f13f744c588b07e4c9140a534894 (patch)
tree393394af4a0cd2ecca2862db35b83a98c73721ef /debian
parent43670e2ef8b689d9efba633d11d2a5fc6f9968a0 (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.
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/rules3
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules
index b6dfc96ea..1ea0e872b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -19,7 +19,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