File: rules

package info (click to toggle)
clock-setup 0.106
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 640 kB
  • ctags: 13
  • sloc: sh: 169; ansic: 28; makefile: 19
file content (20 lines) | stat: -rwxr-xr-x 403 bytes parent folder | download
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 $@

ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)

RDATE_DEPENDS =
ifneq ($(ARCH), s390)
RDATE_DEPENDS = configured-network, rdate-udeb
endif

override_dh_install:
	dh_install
# On s390 we're not allowed to change the system clock
ifneq ($(ARCH), s390)
	dh_install finish-install.d usr/lib
endif

override_dh_gencontrol:
	dh_gencontrol -- -Vrdate:Depends="$(RDATE_DEPENDS)"