debian: package crypto plugins only on amd64

currently, only plugin based on isa-l is installed. archs other than
amd64 will not have this directory or the plugin(s) residing in it.
hence dh_install will fail when trying to copy nonexistence file/dir.

* debian/ceph-common.install: chmod +x, and only install crypto on amd64
  so dh_install can filter the install list using dh-exec
* debian/control: depends on dh-exec now. dh-exec v0.13 introduces support
  for filtering based on architecture. see dh-exec's changelog for more
  details. but trusty only offers dh-exec v0.12. so do not require ">=
  0.13) at this moment.

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2017-04-27 13:25:58 +08:00
parent 53726b8ed2
commit cd4dbaea3a
2 changed files with 4 additions and 1 deletions

4
debian/ceph-common.install vendored Normal file → Executable file
View File

@ -1,3 +1,5 @@
#! /usr/bin/dh-exec --with=install
etc/bash_completion.d/rados
etc/bash_completion.d/rbd
usr/bin/ceph
@ -18,7 +20,7 @@ usr/bin/ceph-post-file
usr/bin/ceph-brag
usr/sbin/mount.ceph sbin
usr/lib/ceph/compressor/*
usr/lib/ceph/crypto/*
usr/lib/ceph/crypto/* [amd64]
usr/share/man/man8/ceph-authtool.8
usr/share/man/man8/ceph-conf.8
usr/share/man/man8/ceph-dencoder.8

1
debian/control vendored
View File

@ -15,6 +15,7 @@ Build-Depends: bc,
cython,
cython3,
debhelper (>= 9),
dh-exec,
dh-python,
dh-systemd,
default-jdk,