~free.ekanayaka/landscape-client/lucid-1.5.2.1-0ubuntu0.10.04.0

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug, Free Ekanayaka
  • Date: 2009-07-22 14:54:50 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090722145450-pvbp13gh8734c8ft
Tags: 1.3.2.2-0ubuntu0.9.10.1
[ Free Ekanayaka ]
* New upstream release:
  - 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
 
19
21
build: build-stamp
20
22
build-stamp:
21
23
        dh_testdir
 
24
        sed -i -e "s/^DEBIAN_REVISION = \"\"/DEBIAN_REVISION = \"-$(revision)\"/g" landscape/__init__.py
22
25
        python setup.py build
 
26
        make -C smart-update
23
27
        touch build-stamp
24
28
 
25
29
clean:
27
31
        dh_testroot
28
32
        rm -f build-stamp
29
33
        rm -rf build
 
34
        make -C smart-update clean
30
35
        dh_clean
31
36
        debconf-updatepo
 
37
        sed -i -e "s/^DEBIAN_REVISION = .*/DEBIAN_REVISION = \"\"/g" landscape/__init__.py
32
38
 
33
39
install: build
34
40
        dh_testdir
44
50
 
45
51
        install -D -o root -g root -m 644 dbus/landscape.conf $(root_dir)/etc/dbus-1/system.d/landscape.conf
46
52
        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:
 
53
        install -D -o root -g root -m 644 debian/cloud-default.conf $(root_dir)/usr/share/landscape/cloud-default.conf
 
54
        install -D -o root -g root -m 755 smart-update/smart-update $(root_dir)/usr/lib/landscape/smart-update
 
55
 
 
56
binary-indep:
52
57
# do nothing
53
58
#
54
 
binary-indep: build install
 
59
binary-arch: build install
55
60
        # That's not present in Ubuntu releases we still support, so
56
61
        # we're just installing the lintian overrides file by hand
57
62
        # for now.
58
 
        dh_lintian
 
63
        #dh_lintian
59
64
        dh_testdir
60
65
        dh_testroot
61
66
        dh_installdocs
62
67
        dh_installman -p landscape-client man/landscape-client.1 man/landscape-config.1 man/landscape-message.1
63
68
        dh_installchangelogs
64
69
        dh_install --sourcedir debian/tmp/
65
 
        dh_installinit -- start 25 2 3 4 5 . stop 15 1 .
 
70
        dh_installinit -- start 45 2 3 4 5 . stop 15 1 .
66
71
        dh_installlogrotate
67
72
        dh_installdebconf
68
73
        dh_compress
69
74
        dh_fixperms
70
75
 
 
76
ifneq (,$(findstring $(dist_release),"intrepid jaunty"))
 
77
        # We want update-motd in intrepid and jaunty
 
78
        echo "extra:Depends=update-motd" >> debian/landscape-common.substvars
 
79
endif
 
80
ifneq (,$(findstring $(dist_release),"karmic"))
 
81
        # We want libpam-modules in karmic
 
82
        echo "extra:Depends=libpam-modules (>= 1.0.1-9ubuntu3)" >> debian/landscape-common.substvars
 
83
endif
71
84
 
72
85
ifeq ($(use_pycentral),yes)
73
 
  ifneq (,$(py_setup_install_args))
 
86
   ifneq (,$(py_setup_install_args))
74
87
        DH_PYCENTRAL=include-links dh_pycentral
75
 
  else
 
88
   else
76
89
        DH_PYCENTRAL=nomove dh_pycentral
77
 
  endif
 
90
   endif
78
91
else
79
92
        dh_python
80
93
endif