summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco d'Itri <md@linux.it>2019-11-14 04:27:31 +0100
committerMarco d'Itri <md@linux.it>2019-11-14 04:27:31 +0100
commitf0baf729f7972125d4bdbfc8c5a7ed13b75aea6c (patch)
treee024d1d232e01dc9486c9c094c941471a3db6047
parent7c9e99025323e3994532b7414d26c821b82c8192 (diff)
downloadwhois-f0baf729f7972125d4bdbfc8c5a7ed13b75aea6c.tar.gz
Switch to dh
-rwxr-xr-xdebian/rules52
-rw-r--r--debian/whois.docs1
-rw-r--r--debian/whois.manpages2
3 files changed, 6 insertions, 49 deletions
diff --git a/debian/rules b/debian/rules
index fa9c899..1f4c033 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,54 +1,8 @@
#!/usr/bin/make -f
-SHELL+= -e
--include /usr/share/dpkg/architecture.mk
-DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+%:
+ dh $@
-ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
- export CC := $(DEB_HOST_GNU_TYPE)-gcc
-endif
-
-DPKG_EXPORT_BUILDFLAGS = 1
--include /usr/share/dpkg/buildflags.mk
-
-D := $(CURDIR)/debian/whois
-
-build:
- dh_testdir
+override_dh_auto_build:
$(MAKE) CONFIG_FILE="/etc/whois.conf" HAVE_ICONV=1
- touch $@
-
-clean:
- dh_testdir
- -rm -f build
- $(MAKE) distclean
- dh_clean
-
-binary-arch: build
- dh_testdir
- dh_testroot
- dh_prep
-
- dh_installdirs usr/bin
- $(MAKE) install BASEDIR=$D
- dh_installman whois.1 mkpasswd.1
- dh_installdocs README
- dh_installchangelogs
- dh_strip
- dh_compress
- dh_fixperms
- dh_shlibdeps
- dh_installdeb
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-binary: binary-arch
-
-binary-indep:
-
-build-arch: build
-build-indep: build
-.PHONY: binary binary-arch binary-indep build build-arch build-indep clean
diff --git a/debian/whois.docs b/debian/whois.docs
new file mode 100644
index 0000000..e845566
--- /dev/null
+++ b/debian/whois.docs
@@ -0,0 +1 @@
+README
diff --git a/debian/whois.manpages b/debian/whois.manpages
new file mode 100644
index 0000000..c9f6daf
--- /dev/null
+++ b/debian/whois.manpages
@@ -0,0 +1,2 @@
+mkpasswd.1
+whois.1