| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/dpkg/pkg-info.mk |
| 4 |
|
| 5 |
NEXT_VERSION_ID=14 |
| 6 |
|
| 7 |
DEBIAN_VERSION ?= $(shell cat /etc/debian_version | grep '[0-9.]' | cut -d. -f1) |
| 8 |
ifeq (,$(DEBIAN_VERSION)) |
| 9 |
DEBIAN_VERSION=$(NEXT_VERSION_ID) |
| 10 |
endif |
| 11 |
|
| 12 |
%: |
| 13 |
dh $@ |
| 14 |
|
| 15 |
override_dh_clean: |
| 16 |
dh_clean |
| 17 |
-rm man/check-support-status.*1 |
| 18 |
-rm check-support-status |
| 19 |
debconf-updatepo |
| 20 |
make -C po clean |
| 21 |
|
| 22 |
override_dh_auto_install: |
| 23 |
dh_auto_install --destdir=debian/tmp |
| 24 |
# compile and install catalogs |
| 25 |
make -C po update-mo |
| 26 |
make -C po install |
| 27 |
|
| 28 |
override_dh_install: |
| 29 |
mkdir -p debian/debian-security-support/usr/share/debian-security-support/ |
| 30 |
cp security-support.deb* debian/debian-security-support/usr/share/debian-security-support/ |
| 31 |
dh_install |
| 32 |
|
| 33 |
override_dh_installman: |
| 34 |
for man in man/check-support-status.txt.* ; do \ |
| 35 |
[ -f "$$man" ] || continue ; \ |
| 36 |
lang="$$(basename "$$man" | sed -e 's/^check-support-status\.txt\.//')" ; \ |
| 37 |
a2x --format=manpage --no-xmllint "$$man" ; \ |
| 38 |
mv man/check-support-status.1 "man/check-support-status.$$lang.1" ; \ |
| 39 |
sed -i -e "s/\[% VERSION %\]/$(DEB_VERSION)/" "man/check-support-status.$$lang.1" ; \ |
| 40 |
done |
| 41 |
a2x --format=manpage --no-xmllint man/check-support-status.txt |
| 42 |
sed -i -e "s/\[% VERSION %\]/$(DEB_VERSION)/" man/check-support-status.1 |
| 43 |
# ignore an empty manpage created during build |
| 44 |
-rm -f debian/debian-security-support/usr/share/man/man1/check-support-status.1p |
| 45 |
dh_installman |
| 46 |
|
| 47 |
override_dh_missing: |
| 48 |
dh_missing --fail-missing |