~ubuntu-core-dev/partman-base/lucid-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Colin Watson
  • Date: 2010-02-26 10:23:29 UTC
  • mfrom: (5.1.919)
  • Revision ID: cjwatson@canonical.com-20100226102329-s74v25z8p7unwvh2
merge from Debian 138

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/make -f
2
 
# Sample debian/rules that uses debhelper.
3
 
# GNU copyright 1997 to 1999 by Joey Hess.
4
 
 
5
 
# Uncomment this to turn on verbose mode.
6
 
#export DH_VERBOSE=1
7
 
 
8
 
ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)
 
1
#! /usr/bin/make -f
 
2
%:
 
3
        dh --with d-i $@
 
4
 
9
5
ARCH_OS=$(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
10
6
 
11
7
ifeq ($(ARCH_OS),linux)
15
11
DEFAULT_FS=ufs
16
12
endif
17
13
 
18
 
export PACKAGE=partman-base
19
 
 
20
14
PROVIDES=made-filesystems, mounted-partitions, partitioned-harddrives, created-fstab
21
15
 
22
16
MENUITEMNUM=4200
23
17
 
24
 
build: build-stamp
25
 
build-stamp:
26
 
        dh_testdir
27
 
        $(MAKE)
28
 
        cd test && ./conversions
29
 
        touch build-stamp
30
 
 
31
 
clean:
32
 
        dh_testdir
33
 
        dh_testroot
34
 
        rm -f build-stamp
35
 
        $(MAKE) clean
36
 
        rm -f `find . -name '*~'`
37
 
        dh_clean
38
 
 
39
 
install: build
40
 
        dh_testdir
41
 
        dh_testroot
42
 
        dh_clean -k
43
 
        # Install hooks into partman-base udeb
44
 
        debian/install-rc choose_partition
45
 
        debian/install-rc storage_device
46
 
        debian/install-rc active_partition
47
 
        debian/install-rc free_space
48
 
        debian/install-rc init.d
49
 
        debian/install-rc undo.d
50
 
        debian/install-rc commit.d
51
 
        debian/install-rc finish.d
52
 
        debian/install-rc update.d
53
 
        debian/install-rc visual.d
54
 
        debian/install-rc display.d
55
 
 
56
 
binary-arch: build install
57
 
        dh_testdir
58
 
        dh_testroot
59
 
        dh_install
 
18
override_dh_installdebconf:
60
19
        dh_installdebconf
61
20
        sed -i '/^Template: partman\/default_filesystem/,/^$$/s/^Default: .*/Default: $(DEFAULT_FS)/' \
62
 
                debian/${PACKAGE}/DEBIAN/templates
63
 
        cp debian/isinstallable debian/${PACKAGE}/DEBIAN/
64
 
        dh_strip
65
 
        dh_fixperms
66
 
        dh_installdeb
67
 
        dh_shlibdeps
 
21
                debian/partman-base/DEBIAN/templates
 
22
 
 
23
# TODO: This is a bit gratuitous since all the "variables" are constant
 
24
# right now. Do we still need this flexibility?
 
25
override_dh_gencontrol:
68
26
        dh_gencontrol -- -Vmenuitemnum=$(MENUITEMNUM) -Vprovides='$(PROVIDES)'
69
 
        dh_builddeb
70
 
 
71
 
binary-indep: build install
72
 
 
73
 
binary: binary-indep binary-arch
74
 
 
75
 
.PHONY: build clean binary-indep binary-arch binary install