#!/usr/bin/make -f

client = conserver-client
clientd = debian/$(client)
server = conserver-server
serverd = debian/$(server)

%:
	dh $@

override_dh_auto_configure:
	cp -f /usr/share/misc/config.sub config.sub
	cp -f /usr/share/misc/config.guess config.guess

	./configure \
		--verbose \
		--sysconfdir=/etc/conserver \
		--with-openssl \
		--with-pam \
		--with-port=782 \
		--prefix=/usr \
		--mandir=\$${prefix}/share/man \
		--infodir=\$${prefix}/share/info \
		--with-logfile=/var/log/conserver/server.log \
		--with-pidfile=/run/conserver/conserver.pid \
		--with-libwrap \
		--with-ipv6

override_dh_installman:
	dh_installman --language=C

override_dh_installcron override_dh_pysupport override_dh_perl override_dh_ucf:
