1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
#!/usr/bin/make -f
# Verbose mode
#export DH_VERBOSE=1
%:
dh $@ --with python2
override_dh_auto_clean:
dh_auto_clean
rm -rf doc/doc/build tests.sqlite clean.sqlite
rm -rf debian/*.upstart
rm -f debian/nova-common.manpages
rm -f doc/doc/build/man/nova-manage.1
debian/nova-compute.postinst: debian/nova-compute.postinst.in
if dpkg-vendor --derives-from ubuntu ; then \
LIBVIRTGRP=libvirtd; \
else \
LIBVIRTGRP=libvirt; \
fi; \
sed -e "s/%LIBVIRTGRP%/$$LIBVIRTGRP/" < $< > $@
override_dh_auto_build: debian/nova-compute.postinst
dh_auto_build
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
python setup.py build_sphinx
cp $(CURDIR)/debian/nova-common.manpages.in $(CURDIR)/debian/nova-common.manpages
cp $(CURDIR)/doc/doc/build/man/novamanage.1 $(CURDIR)/doc/doc/build/man/nova-manage.1
else
mkdir -p $(CURDIR)/doc/doc/build/html
endif
get-orig-source:
uscan --verbose --force-download --rename --destdir=../build-area
override_dh_install:
dh_install
chmod 440 $(CURDIR)/debian/nova-common/etc/sudoers.d/nova_sudoers
install -D -m 0664 $(CURDIR)/debian/nova-volume.default $(CURDIR)/debian/nova-volume/etc/default/nova-volume
for hypervisor in kvm xen uml lxc; do \
install -D -m 0600 $(CURDIR)/debian/nova-compute-$${hypervisor}.conf $(CURDIR)/debian/nova-compute-$${hypervisor}/etc/nova/nova-compute.conf; \
done
override_dh_fixperms:
dh_fixperms -Xnova_sudoers
rm -f $(CURDIR)/debian/python-nova/usr/share/pyshared/nova/CA/.gitignore
rm -f $(CURDIR)/debian/python-nova/usr/share/pyshared/nova/CA/projects/.gitignore
rm -f $(CURDIR)/debian/python-nova/usr/share/pyshared/nova/CA/reqs/.gitignore
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
./run_tests.sh -N || true
endif
override_dh_installinit:
if dpkg-vendor --derives-from ubuntu ; then \
for i in debian/*.upstart.in ; do \
MYPKG=`echo $$i | cut -d. -f1` ; \
cp $$MYPKG.upstart.in $$MYPKG.upstart ; \
done ; \
fi
dh_installinit --error-handler=true
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
override_dh_installdocs:
dh_installdocs
rm -f $(CURDIR)/debian/nova-doc/usr/share/doc/nova-doc/html/_static/jquery.js
ln -s ../../../../javascript/jquery/jquery.js $(CURDIR)/debian/nova-doc/usr/share/doc/nova-doc/html/_static/jquery.js
endif
override_dh_gencontrol:
if dpkg-vendor --derives-from ubuntu ; then \
dh_gencontrol -- -T$(CURDIR)/debian/ubuntu_control_vars ; \
else \
dh_gencontrol -- -T$(CURDIR)/debian/debian_control_vars ; \
fi
|