blob: 68ffc5d191560477fc37ffbf8ea95520d59d140e (
plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# debian version rule:
# 0.0 < 0.5 < 0.10 < 0.99 < 1 < 1.0~rc1 < 1.0 < 1.0+b1 < 1.0+nmu1 < 1.1 < 2.0
VERSION = 1
PACKAGEVERSION = $(VERSION)+$(shell date +%Y%m%d%H%M%S)
LIBEXEC=$(shell echo usr/lib/$(shell dpkg-architecture -q DEB_HOST_MULTIARCH 2>/dev/null) | sed 's,/$$,,')
HOOKPATH=debian/dhcpcd/$(LIBEXEC)/dhcpcd-hooks
export prefix=/usr
export DBDIR=/var/lib/dhcpcd
%:
dh $@ -D upstream
override_dh_gencontrol:
dh_gencontrol -- -v$(PACKAGEVERSION)
# do not use "install" file since 50-ntp.conf needs a variable and dhcpcd.conf
# has to be overriden and the "install" file is used *before* the
# dh_auto_install rule.
override_dh_install:
dh_install
install -o root -g root -m 0644 debian/install_files/50-ntp.conf $(HOOKPATH)/
# install -o root -g root -m 0644 debian/install_files/dhcpcd.conf \
# debian/dhcpcd/etc/
override_dh_installsystemd:
dh_installsystemd --no-start --no-enable
## avoid errors on stretch and sid builds. Kind of Error:
## dpkg-shlibdeps: error: no dependency information found for
## /usr/lib/ld-linux-armhf.so.3 (used >by debian/meh/bin/meh)
## fix by telling dh_shlibdeps it should ignore not found libs:
#override_dh_shlibdeps:
# dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
#
## note for build:
## Delete manpages installed from upstream since not gzipped, and let debian
## helper do it instead.
#override_dh_auto_clean:
#override_dh_auto_test:
#override_dh_auto_build:
#override_dh_auto_install:
# (cd upstream && dh_auto_configure)
# make -C upstream
# make -C upstream install DESTDIR="$(PWD)/debian/dhcpcd"
# echo "debug: `pwd`"
# echo $(PWD)
# find debian/dhcpcd
|