1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
include /usr/share/dpkg/architecture.mk
include /usr/share/dpkg/pkg-info.mk
export DEB_CFLAGS_MAINT_APPEND=-Wno-error=deprecated-declarations
export DH_VERBOSE=1
%:
dh $@ --with autoreconf
override_dh_auto_test:
ifneq ($(filter amd64 i386 kfreebsd-amd64,$(DEB_HOST_ARCH)),)
dh_auto_test
endif
override_dh_clean:
dh_clean
rm -f tests/test.elf
DOWNLOAD_VERSION?=$(DEB_VERSION_UPSTREAM)
get-orig-source:
rm -rf debian/sbsigntool-*
git clone -b v$(DOWNLOAD_VERSION) https://git.kernel.org/pub/scm/linux/kernel/git/jejb/sbsigntools.git debian/sbsigntool-$(DOWNLOAD_VERSION)
cd debian/sbsigntool-$(DOWNLOAD_VERSION) && awk '/automagic/ { exit } {print}' autogen.sh | sh -x
cd debian/ && tar --sort=name \
--mtime="@`git -C sbsigntool-$(DOWNLOAD_VERSION) log -1 --pretty=%ct`" \
--owner=0 --group=0 --numeric-owner \
--pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime \
--exclude=.git --exclude=lib/ccan.git \
-c sbsigntool-$(DOWNLOAD_VERSION) | xz > ../../sbsigntool_$(DOWNLOAD_VERSION).orig.tar.xz
rm -rf debian/sbsigntool-$(DOWNLOAD_VERSION)
|