2
# Sample debian/rules that uses debhelper.
3
# GNU copyright 1997 to 1999 by Joey Hess.
5
# Uncomment this to turn on verbose mode.
8
ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)
9
5
ARCH_OS=$(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
11
7
ifeq ($(ARCH_OS),linux)
18
export PACKAGE=partman-base
20
14
PROVIDES=made-filesystems, mounted-partitions, partitioned-harddrives, created-fstab
28
cd test && ./conversions
36
rm -f `find . -name '*~'`
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
56
binary-arch: build install
18
override_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/
21
debian/partman-base/DEBIAN/templates
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)'
71
binary-indep: build install
73
binary: binary-indep binary-arch
75
.PHONY: build clean binary-indep binary-arch binary install