Use architecture specific dependencies to depends on dmidecode
Otavio Salvador
16 years ago
|
0 |
laptop-detect (0.13.2) UNRELEASED; urgency=low
|
|
1 |
|
|
2 |
* Drop the hack used during the package building and use dependencies
|
|
3 |
architeture specific handling for it.
|
|
4 |
|
|
5 |
-- Otavio Salvador <otavio@debian.org> Mon, 28 May 2007 09:00:23 -0300
|
|
6 |
|
0 | 7 |
laptop-detect (0.13.1) unstable; urgency=low
|
1 | 8 |
|
2 | 9 |
* Change package priority to important to match override.
|
7 | 7 |
|
8 | 8 |
Package: laptop-detect
|
9 | 9 |
Architecture: any
|
10 | |
Depends: ${dmidecode-depends}
|
|
10 |
Depends: dmidecode [amd64 i386]
|
11 | 11 |
Description: attempt to detect a laptop
|
12 | 12 |
Laptop mode attempts to determine whether it is being run on a laptop or a
|
13 | 13 |
desktop and appraises its caller of this.
|
0 | 0 |
#!/usr/bin/make -f
|
1 | 1 |
|
2 | 2 |
include /usr/share/cdbs/1/rules/debhelper.mk
|
3 | |
|
4 | |
# FIXME: Drop this ugly hack and convert to arch all once dpkg
|
5 | |
# supports architecture specific dependencies.
|
6 | |
DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
|
7 | |
ifeq ($(DEB_HOST_ARCH),i386)
|
8 | |
DEB_DH_GENCONTROL_ARGS := -- -Vdmidecode-depends=dmidecode
|
9 | |
endif
|
10 | |
ifeq ($(DEB_HOST_ARCH),amd64)
|
11 | |
DEB_DH_GENCONTROL_ARGS := -- -Vdmidecode-depends=dmidecode
|
12 | |
endif
|
13 | 3 |
|
14 | 4 |
VERSION=$(shell dpkg-parsechangelog \
|
15 | 5 |
| grep Version: \
|