~free.ekanayaka/landscape-client/jaunty-updates-1.4.4-0ubuntu0.9.04

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Free Ekanayaka
  • Date: 2009-09-21 17:59:31 UTC
  • mfrom: (1.2.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090921175931-4ucv40j9ro26i3lm
Tags: 1.3.2.3-0ubuntu0.9.04.0
* New upstream release (LP: #347983):
  - Don't clear the hash_id_requests table upon resynchronize (LP #417122)
  - Include the README file in landscape-client (LP: #396260)
  - Fix client capturing stderr from run_command when constructing
    hash-id-databases url (LP: #397480)
  - Use substvars to conditionally depend on update-motd or
    libpam-modules (LP: #393454)
  - Fix reporting wrong version to the server (LP: #391225)
  - The init script does not wait for the network to be available
    before checking for EC2 user data (LP: #383336)
  - When the broker is restarted by the watchdog, the state of the client
    is inconsistent (LP: #380633)
  - Package stays unknown forever in the client with hash-id-databases
    support (LP: #381356)
  - Standard error not captured when calling smart-update (LP: #387441)
  - Changer calls reporter without switching groups, just user (LP: #388092)
  - Run smart update in the package-reporter instead of having a cronjob (LP: #362355)
  - Package changer does not inherit proxy settings (LP: #381241)
  - The ./test script doesn't work in landscape-client (LP: #381613)
  - The source package should build on all supported releases (LP: #385098)
  - Strip smart update's output (LP: #387331)
  - The fetch() timeout isn't based on activity (#389224)
  - Client can use a UUID of "None" when fetching the hash-id-database (LP: #381291)
  - Registration should use the fqdn rather than just the hostname (LP: #385730)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
package = landscape-client
17
17
root_dir = debian/tmp/
18
18
 
 
19
revision = $(shell dpkg-parsechangelog | grep ^Version | cut -f 2 -d " "| cut -f 2 -d "-")
 
20
 
 
21
landscape_substvars = debian/landscape-common.substvars
 
22
 
19
23
build: build-stamp
20
24
build-stamp:
21
25
        dh_testdir
 
26
        sed -i -e "s/^DEBIAN_REVISION = \"\"/DEBIAN_REVISION = \"-$(revision)\"/g" landscape/__init__.py
22
27
        python setup.py build
 
28
        make -C smart-update
23
29
        touch build-stamp
24
30
 
25
31
clean:
27
33
        dh_testroot
28
34
        rm -f build-stamp
29
35
        rm -rf build
 
36
        make -C smart-update clean
30
37
        dh_clean
31
38
        debconf-updatepo
 
39
        sed -i -e "s/^DEBIAN_REVISION = .*/DEBIAN_REVISION = \"\"/g" landscape/__init__.py
32
40
 
33
41
install: build
34
42
        dh_testdir
44
52
 
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
47
 
 
48
 
 
49
 
        dh_installcron
50
 
 
51
 
binary-arch:
 
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
 
57
 
 
58
binary-indep:
52
59
# do nothing
53
60
#
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
57
64
        # for now.
58
 
        dh_lintian
 
65
        #dh_lintian
59
66
        dh_testdir
60
67
        dh_testroot
61
68
        dh_installdocs
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
67
74
        dh_installdebconf
68
75
        dh_compress
69
76
        dh_fixperms
70
77
 
 
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)
 
81
endif
 
82
ifneq (,$(findstring $(dist_release),"intrepid jaunty"))
 
83
        # We want update-motd in intrepid and jaunty
 
84
        echo "extra:Depends=update-motd" >> $(landscape_substvars)
 
85
endif
 
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)
 
89
endif
71
90
 
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
75
 
  else
 
94
   else
76
95
        DH_PYCENTRAL=nomove dh_pycentral
77
 
  endif
 
96
   endif
78
97
else
79
98
        dh_python
80
99
endif