File: rules

package info (click to toggle)
partman-base 184
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,988 kB
  • ctags: 214
  • sloc: sh: 2,292; ansic: 2,231; makefile: 35
file content (37 lines) | stat: -rwxr-xr-x 947 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#! /usr/bin/make -f
%:
	dh $@ --with autoreconf,d-i

DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)

ifeq ($(DEB_HOST_ARCH_OS),linux)
DEFAULT_FS=ext4
endif
ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
DEFAULT_FS=ufs
endif
ifeq ($(DEB_HOST_ARCH_OS),hurd)
DEFAULT_FS=ext2
endif

PROVIDES=made-filesystems, mounted-partitions, partitioned-harddrives, created-fstab

MENUITEMNUM=4200

export DEB_CFLAGS_MAINT_APPEND := -Wall -Os

override_dh_auto_configure:
	dh_auto_configure -- --prefix=/

override_dh_install:
	dh_install --fail-missing

override_dh_installdebconf:
	dh_installdebconf
	sed -i '/^Template: partman\/default_filesystem/,/^$$/s/^Default: .*/Default: $(DEFAULT_FS)/' \
		debian/partman-base/DEBIAN/templates

# TODO: This is a bit gratuitous since all the "variables" are constant
# right now. Do we still need this flexibility?
override_dh_gencontrol:
	dh_gencontrol -- -Vmenuitemnum=$(MENUITEMNUM) -Vprovides='$(PROVIDES)'