#!/usr/bin/make -f
# Farpd debian/rules

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

# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
include /usr/share/dpkg/architecture.mk

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_auto_install:
	dh_auto_install
	# Change from arpd to farpd
	for file in `find $(CURDIR)/debian/farpd -type f -name "arpd*"` ; \
	do \
		name=`basename $$file`; \
		dir=`dirname $$file` ; \
		mv $$file $$dir/f$$name ; \
	done

override_dh_installinit:
	dh_installinit -pfarpd --no-start -r -- stop 20 0 6 .
