16
16
package = landscape-client
17
17
root_dir = debian/tmp/
19
revision = $(shell dpkg-parsechangelog | grep ^Version | cut -f 2 -d " "| cut -f 2 -d "-")
21
landscape_substvars = debian/landscape-common.substvars
26
sed -i -e "s/^DEBIAN_REVISION = \"\"/DEBIAN_REVISION = \"-$(revision)\"/g" landscape/__init__.py
22
27
python setup.py build
45
53
install -D -o root -g root -m 644 dbus/landscape.conf $(root_dir)/etc/dbus-1/system.d/landscape.conf
46
54
install -D -o root -g root -m 755 debian/landscape-sysinfo.wrapper $(root_dir)/usr/share/landscape/landscape-sysinfo.wrapper
55
install -D -o root -g root -m 644 debian/cloud-default.conf $(root_dir)/usr/share/landscape/cloud-default.conf
56
install -D -o root -g root -m 755 smart-update/smart-update $(root_dir)/usr/lib/landscape/smart-update
54
binary-indep: build install
61
binary-arch: build install
55
62
# That's not present in Ubuntu releases we still support, so
56
63
# we're just installing the lintian overrides file by hand
62
69
dh_installman -p landscape-client man/landscape-client.1 man/landscape-config.1 man/landscape-message.1
63
70
dh_installchangelogs
64
71
dh_install --sourcedir debian/tmp/
65
dh_installinit -- start 25 2 3 4 5 . stop 15 1 .
72
dh_installinit -- start 45 2 3 4 5 . stop 15 1 .
66
73
dh_installlogrotate
78
ifneq (,$(findstring $(dist_release),"dapper"))
79
# We need python2.4-pysqlite2 and a non-buggy libcurl3-gnutls on dapper
80
echo "extra:Depends=python2.4-pysqlite2, libcurl3-gnutls (>= 7.15.1-1ubuntu3)" >> $(landscape_substvars)
82
ifneq (,$(findstring $(dist_release),"intrepid jaunty"))
83
# We want update-motd in intrepid and jaunty
84
echo "extra:Depends=update-motd" >> $(landscape_substvars)
86
ifneq (,$(findstring $(dist_release),"karmic"))
87
# We want libpam-modules in karmic
88
echo "extra:Depends=libpam-modules (>= 1.0.1-9ubuntu3)" >> $(landscape_substvars)
72
91
ifeq ($(use_pycentral),yes)
73
ifneq (,$(py_setup_install_args))
92
ifneq (,$(py_setup_install_args))
74
93
DH_PYCENTRAL=include-links dh_pycentral
76
95
DH_PYCENTRAL=nomove dh_pycentral