| 1 |
#! /usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/dpkg/default.mk |
| 4 |
|
| 5 |
%: |
| 6 |
dh $@ |
| 7 |
|
| 8 |
ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) |
| 9 |
override_dh_auto_build: |
| 10 |
dh_auto_build -- CC=$(DEB_HOST_GNU_TYPE)-gcc |
| 11 |
endif |
| 12 |
|
| 13 |
override_dh_install: |
| 14 |
dh_install |
| 15 |
install -m755 netcfg-static debian/netcfg-static/usr/bin/netcfg |
| 16 |
|
| 17 |
override_dh_installdebconf: |
| 18 |
dh_installdebconf |
| 19 |
ifneq (,$(shell dh_listpackages | grep '^netcfg-static$$')) |
| 20 |
(echo; po2debconf debian/netcfg-common.templates) \ |
| 21 |
>> debian/netcfg-static/DEBIAN/templates |
| 22 |
endif |
| 23 |
ifneq (,$(shell dh_listpackages | grep '^netcfg$$')) |
| 24 |
(echo ; po2debconf debian/netcfg-common.templates) \ |
| 25 |
>> debian/netcfg/DEBIAN/templates |
| 26 |
(echo ; po2debconf debian/netcfg-dhcp.templates) \ |
| 27 |
>> debian/netcfg/DEBIAN/templates |
| 28 |
(echo ; po2debconf debian/netcfg-static.templates) \ |
| 29 |
>> debian/netcfg/DEBIAN/templates |
| 30 |
endif |