#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

-include /usr/share/dpkg/buildtools.mk
export CC

DEB=debian/tmp
SCORES=$(DEB)/var/games/xbill.scores.default

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --bindir=\$${prefix}/games --disable-gtk --disable-motif --enable-athena

override_dh_fixperms:
	dh_fixperms
	chown root:games $(CURDIR)/debian/xbill/usr/games/xbill
	chown root:games $(CURDIR)/debian/xbill/var/games/xbill.scores.default
	chmod 2755 $(CURDIR)/debian/xbill/usr/games/xbill
	chmod 0664 $(CURDIR)/debian/xbill/var/games/xbill.scores.default
