mirror of
https://github.com/rfc1036/whois.git
synced 2026-08-31 07:30:22 +00:00
Switch to dh
This commit is contained in:
parent
7c9e990253
commit
f0baf729f7
52
debian/rules
vendored
52
debian/rules
vendored
@ -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
|
||||
|
||||
1
debian/whois.docs
vendored
Normal file
1
debian/whois.docs
vendored
Normal file
@ -0,0 +1 @@
|
||||
README
|
||||
2
debian/whois.manpages
vendored
Normal file
2
debian/whois.manpages
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
mkpasswd.1
|
||||
whois.1
|
||||
Loading…
x
Reference in New Issue
Block a user