tmp = $(CURDIR)/debian/xinetd
srcpkg = $(shell dpkg-parsechangelog | sed -ne 's/Source: *//p')
-srcver = $(shell dpkg-parsechangelog | sed -ne 's/Version: *\(.*\)-[0-9]*$$/\1/p')
+srcver = $(shell dpkg-parsechangelog | sed -ne 's/Version: *\(.*:\)\?\(.*\)-[0-9.]*$$/\2/p')
pkgdir = '$(CURDIR)'/debian/xinetd
#{{{ generic rules
rm -f patch-stamp
configure: configure-stamp
-configure-stamp:
+configure-stamp: patch
dh_testdir
- chmod -R a=rX,u=rwX .
- CFLAGS="-O2" ./configure --prefix=/usr \
- --mandir=\$${prefix}/share/man \
- --infodir=\$${prefix}/share/info \
- --host=$(DEB_HOST_GNU_TYPE) \
- --build=$(DEB_BUILD_GNU_TYPE) \
+ CFLAGS="-O2" ./configure --prefix=/usr \
+ --mandir=\$${prefix}/share/man \
+ --infodir=\$${prefix}/share/info \
+ --host=$(DEB_HOST_GNU_TYPE) \
+ --build=$(DEB_BUILD_GNU_TYPE) \
\
--with-loadavg \
--with-libwrap
dh_testroot
dh_clean -k
dh_installdirs
- $(MAKE) install prefix=$(pkgdir)
- mv $(pkgdir)/etc/xinetd.d/xinetd.conf $(pkgdir)/etc/
+ $(MAKE) install prefix=$(pkgdir)/usr
binary-indep: build install
binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+.PHONY: patch build clean binary-indep binary-arch binary install configure