diff --git a/debian/rules b/debian/rules
index fcb4d11dc0f1babf2bfb74e41e95589e917f58ae..5c1409c61b82b697d58f59bae6a51e56af1ea8d9 100755 (executable)
--- a/debian/rules
+++ b/debian/rules
#!/usr/bin/make -f
# debian/rules for liboping
#
-# Written by Sebastian Harl <sh@tokkee.org>
+# Written by Sebastian Harl <tokkee@debian.org>
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
CFLAGS += -O2
endif
-include /usr/share/dpatch/dpatch.make
-
# $srcver-$perlver-$debrev
LIBPERL_VERSION := $(shell pm_ver=`perl -MExtUtils::MM -e \
'print MM->parse_version("bindings/perl/lib/Net/Oping.pm");'`; \
pkg_ver=`dpkg-parsechangelog | egrep '^Version:' | cut -d' ' -f2`; \
echo -n "$${pkg_ver%-*}-$$pm_ver-$${pkg_ver\#\#*-}")
-config.status: configure $(DPATCH_STAMPFN)
+config.status: configure
dh_testdir
for file in config.guess config.sub; do \
ln -s /usr/share/misc/$$file .; \
done
- CFLAGS="$(CFLAGS)" ./configure \
+ ./configure \
--host=$(DEB_HOST_GNU_TYPE) \
--build=$(DEB_BUILD_GNU_TYPE) \
--prefix=/usr \
--mandir=\$${prefix}/share/man \
- --with-perl-bindings="INSTALLDIRS=vendor"
+ --with-perl-bindings="INSTALLDIRS=vendor" \
+ CFLAGS="$(CFLAGS)"
build: build-stamp
touch build-stamp
-clean: unpatch
+clean:
dh_testdir
dh_testroot
- rm -f build-stamp
+ rm -f build-stamp
[ ! -f Makefile ] || $(MAKE) distclean
fi \
done
- dh_clean
+ dh_clean
install: build
dh_testdir
dh_testroot
- dh_clean -k
+ dh_clean -k
dh_installdirs
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
dh_testroot
dh_installchangelogs -Nlibnet-oping-perl ChangeLog
dh_installchangelogs -plibnet-oping-perl bindings/perl/Changes
+ dh_installdocs -A AUTHORS
dh_installdocs -A -Nlibnet-oping-perl README
dh_installdocs -plibnet-oping-perl bindings/perl/README
dh_installman
- dh_install --sourcedir=debian/tmp --list-missing
+ dh_install --sourcedir=debian/tmp --fail-missing
dh_perl -plibnet-oping-perl
dh_link
dh_strip
dh_builddeb
binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
+.PHONY: build clean binary-indep binary-arch binary install