File: rules

package info (click to toggle)
partman-target 96
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,144 kB
  • ctags: 13
  • sloc: sh: 489; makefile: 16
file content (20 lines) | stat: -rwxr-xr-x 435 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /usr/bin/make -f
%:
	dh $@ --with d-i

ARCH_OS=$(shell dpkg-architecture -qDEB_HOST_ARCH_OS)

ifeq ($(ARCH_OS),linux)
DEFAULT_STYLE=uuid
endif
ifeq ($(ARCH_OS),kfreebsd)
DEFAULT_STYLE=uuid
endif
ifeq ($(ARCH_OS),hurd)
DEFAULT_STYLE=traditional
endif

override_dh_installdebconf:
	dh_installdebconf
	sed -i '/^Template: partman\/mount_style/,/^$$/s/^Default: .*/Default: $(DEFAULT_STYLE)/' \
		debian/partman-target/DEBIAN/templates