~ubuntu-branches/ubuntu/karmic/update-manager/karmic-updates

« back to all changes in this revision

Viewing changes to utils/base-installer-1.102ubuntu1/debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2009-09-24 18:41:22 UTC
  • Revision ID: james.westby@ubuntu.com-20090924184122-4lowduwf0xiqmfnl
Tags: 1:0.125.3
* DistUpgrade/DistUpgrade.cfg.hardy:
  - fix upgrades from hardy by allowing the removal of sysvutils
* data/glade/UpdateManager.ui:
  - remove dialog title for cache open progress (LP: #435653)
* DistUpgrade/DistUpgradeQuirks.py:
  - add translators hints for some strings (LP: #433116)
* UpdateManager/Core/DistUpgradeFetcherCore.py:
  - fixed typo (thanks to Henrique P. Machado)
* UpdateManager/UpdateManager.py:
  - fix i18n issues with gtkbuilder
* DistUpgrade/DistUpgradeQuirks.py:
  - stop kblueplugd kbluetooth when the upgrade starts to
    avoid them crashing during the upgrade 
    (thanks to Jonathan Riddell)
* UpdateManager/backend/InstallBackendAptdaemon.py
  - setup correct window icon
* data/glade/UpdateManager.ui:
  - switch from unicode … to "..." until the issues with
    gettext is resolved (LP: #434107)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /usr/bin/make -f
 
2
 
 
3
ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
 
4
 
 
5
build: build-stamp debian/templates.gen
 
6
build-stamp:
 
7
        dh_testdir
 
8
ifeq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
 
9
        $(MAKE) small
 
10
else
 
11
        $(MAKE) DEBUG=1
 
12
endif
 
13
        touch $@
 
14
 
 
15
debian/templates.gen: debian/templates-arch
 
16
        debian/templates-build.pl $(ARCH) < $< > $@
 
17
        # give the new templates file the same mtime as the input file, so
 
18
        # that po2debconf doesn't decide that it needs to run
 
19
        # debconf-updatepo
 
20
        touch -mr $< $@
 
21
 
 
22
clean:
 
23
        dh_testdir
 
24
        rm -f build-stamp
 
25
        $(MAKE) clean    
 
26
        dh_clean debian/templates.gen
 
27
 
 
28
test:
 
29
        $(MAKE) -C kernel test
 
30
 
 
31
binary-indep:
 
32
        dh_testdir
 
33
        dh_testroot
 
34
        dh_clean -k
 
35
        
 
36
        dh_install library.sh usr/lib/base-installer
 
37
        dh_installdirs usr/lib/finish-install.d
 
38
        install -m755 finish-install debian/base-installer/usr/lib/finish-install.d/90base-installer
 
39
        
 
40
        dh_installdebconf -i -n
 
41
        dh_strip -i
 
42
        dh_compress -i
 
43
        dh_fixperms -i
 
44
        dh_installdeb -i
 
45
        dh_shlibdeps -i
 
46
        dh_gencontrol -i
 
47
        dh_builddeb -i
 
48
 
 
49
binary-arch: build test
 
50
        dh_testdir
 
51
        dh_testroot
 
52
        
 
53
        dh_install -p bootstrap-base run-debootstrap usr/sbin
 
54
        dh_install -p bootstrap-base pkgdetails usr/lib/debootstrap
 
55
        if [ -e "kernel/$(ARCH).sh" ]; then \
 
56
                dh_installdirs -p bootstrap-base usr/lib/base-installer; \
 
57
                install -m644 "kernel/$(ARCH).sh" \
 
58
                              debian/bootstrap-base/usr/lib/base-installer/kernel.sh; \
 
59
        fi
 
60
ifeq ($(ARCH),i386)
 
61
        dh_install -p bootstrap-base dmi-available-memory usr/lib/base-installer
 
62
endif
 
63
        
 
64
        dh_installdebconf -a -n
 
65
        (echo ; cat debian/templates.gen) >> debian/bootstrap-base/DEBIAN/templates
 
66
        cp debian/bootstrap-base.isinstallable debian/bootstrap-base/DEBIAN/isinstallable
 
67
        dh_strip -a
 
68
        dh_compress -a
 
69
        dh_fixperms -a
 
70
        dh_installdeb -a
 
71
        dh_shlibdeps -a
 
72
        dh_gencontrol -a
 
73
        dh_builddeb -a
 
74
 
 
75
binary: binary-indep binary-arch
 
76
.PHONY: clean binary-indep binary-arch binary install