3
DEB_PYTHON_SYSTEM = pycentral
4
3
DEB_BUILD_PARALLEL = yes
6
ifneq (,$(findstring $(DEB_HOST_ARCH), i386 amd64))
9
BUILD_XEN = --without-xen
12
ifneq (,$(findstring $(DEB_HOST_ARCH), ia64))
13
BUILD_LXC = --without-lxc
15
BUILD_LXC = --with-lxc
4
DEB_MAKE_CHECK_TARGET = check
18
6
include /usr/share/cdbs/1/rules/debhelper.mk
19
7
include /usr/share/cdbs/1/class/autotools.mk
20
8
include /usr/share/cdbs/1/class/python-distutils.mk
10
ifneq (,$(findstring $(DEB_HOST_ARCH), i386 amd64))
13
WITH_XEN = --without-xen
16
ifneq (,$(findstring $(DEB_HOST_ARCH_OS), linux))
17
WITH_STORAGE_LVM = --with-storage-lvm
18
WITH_STORAGE_ISCSI = --with-storage-iscsi
19
WITH_STORAGE_DISK = --with-storage-disk
20
WITH_UDEV = --with-udev --without-hal
21
WITH_CAPNG = --with-capng
22
WITH_POLKIT = --with-polkit
23
WITH_MACVTAP = --with-macvtap
24
WITH_NETWORK = --with-network
25
WITH_QEMU = --with-qemu
26
ifneq (,$(findstring $(DEB_HOST_ARCH), ia64))
27
WITH_LXC = --without-lxc
32
WITH_STORAGE_LVM = --without-storage-lvm
33
WITH_STORAGE_ISCSI = --without-storage-iscsi
34
WITH_STORAGE_DISK = --without-storage-disk
35
WITH_UDEV = --without-udev --with-hal
36
WITH_CAPNG = --without-capng
37
WITH_POLKIT = --without-polkit
38
WITH_MACVTAP = --without-macvtap
39
WITH_NETWORK = --without-network
40
WITH_QEMU = --without-qemu
41
WITH_LXC = --without-lxc
22
44
DEB_CONFIGURE_EXTRA_FLAGS := \
25
47
--with-qemu-user=libvirt-qemu \
26
48
--with-qemu-group=kvm \
33
54
--with-storage-fs \
35
--with-storage-iscsi \
56
$(WITH_STORAGE_ISCSI) \
57
$(WITH_STORAGE_DISK) \
37
58
--with-init-script=none \
40
59
--without-numactl \
41
60
--without-selinux \
43
62
--without-libssh2 \
51
73
DEB_COMPRESS_EXCLUDE = .o event-test hellolibvirt info1 suspend
52
74
DEB_PYTHON_SETUP_CMD = /dev/null
53
75
DEB_DH_MAKESHLIBS_ARGS_libvirt0 += -V 'libvirt0 (>= 0.5.0)'
54
76
DEB_DH_INSTALLINIT_ARGS = --upstart-only
55
77
DEB_DH_INSTALLLOGROTATE_ARGS = --name=libvirtd
56
DEB_MAKE_CHECK_TARGET := check
58
79
EXAMPLES_DIR = $(CURDIR)/debian/libvirt-doc/usr/share/doc/libvirt-doc/examples/
82
# Add empty dir so dh_install doesn't fail on kFreebsd until we have Polkit support
83
mkdir -p debian/tmp/usr/share/polkit-1
60
85
binary-install/libvirt-doc::
61
86
find $(EXAMPLES_DIR) -name "*.o" -type f -delete -o -name .libs -type d -exec rm -rf {} \;
62
87
rm -f $(EXAMPLES_DIR)domain-events/events-c/event-test