Hack for arm/armhf (#22)

* Hack for arm/armhf

* typos and layout
This commit is contained in:
Miek Gieben 2017-11-11 15:20:31 +00:00 committed by GitHub
parent aaf5dae5dd
commit fd57cf8510
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -4,7 +4,7 @@
.PHONY: debian
debian:
dpkg-buildpackage -us -uc -b --target-arch amd64
dpkg-buildpackage -us -uc -b --target-arch arm
dpkg-buildpackage -us -uc -b --target-arch armhf
dpkg-buildpackage -us -uc -b --target-arch arm64
# debs are one up
ls ../*.deb

8
debian/rules vendored
View file

@ -6,7 +6,13 @@ DEB_HOST_ARCH := $(DEB_TARGET_ARCH)
DISTRIBUTION := $(shell lsb_release -sr)
PACKAGEVERSION := $(VERSION)-0~$(DISTRIBUTION)0
TARBALL := coredns_$(VERSION)_linux_$(DEB_TARGET_ARCH).tgz
URL := https://github.com/coredns/coredns/releases/download/v$(VERSION)/$(TARBALL)
# Debian calls it armhf, we call it arm.
ifeq ($(DEB_TARGET_ARCH),armhf)
TARBALL := coredns_$(VERSION)_linux_arm.tgz
endif
URL := https://github.com/coredns/coredns/releases/download/v$(VERSION)/$(TARBALL)
%:
dh_clean