#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/dpkg/default.mk
DEB_VERSION_REVISION = $(call dpkg_late_eval,DEB_VERSION_REVISION,echo '$(DEB_VERSION)' | sed -e 's/^.*-//')

%:
	dh $@ 

override_dh_auto_build:
	dh_auto_build -- EXTRAVERSION="-$(DEB_VERSION_REVISION) ($(DEB_VENDOR))"

override_dh_auto_install:
	dh_auto_install
	ln -sf 2ping $(CURDIR)/debian/2ping/usr/bin/2ping6
	ln -sf 2ping.1p $(CURDIR)/debian/2ping/usr/share/man/man1/2ping6.1p
