summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xuts/debian/rules14
1 files changed, 12 insertions, 2 deletions
diff --git a/uts/debian/rules b/uts/debian/rules
index 6c67097..9bfcfaf 100755
--- a/uts/debian/rules
+++ b/uts/debian/rules
@@ -1,6 +1,8 @@
#!/usr/bin/make -f
include /usr/share/dpkg/architecture.mk
+export DH_VERBOSE = 1
+VERSION := $(shell dpkg-parsechangelog | perl -ne '/Version:\s+(.+)-[^-]+/ && print $$1')
%:
dh $@
@@ -13,8 +15,8 @@ ILLUMOS_GATE = illumos-gate
$(ILLUMOS_GATE):
dh_illumos_gate --checkout --destdir=$(ILLUMOS_GATE)
-.PHONY: create-orig
-create-orig:
+.PHONY: create-orig test-orig
+create-orig: $(ILLUMOS_GATE)
dh_illumos_gate --create-orig --build \
-X /doc/ \
$(ILLUMOS_GATE)/usr/src/uts \
@@ -24,6 +26,14 @@ create-orig:
$(ILLUMOS_GATE)/usr/src/lib/gss_mechs/mech_krb5/include/autoconf.h \
$(ILLUMOS_GATE)/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/int-proto.h
+test-orig: create-orig
+ ./debian/rules clean
+ rm -rf usr .pc
+ tar xf ../uts_$(VERSION).orig.tar.xz --strip=1
+ quilt push -a
+ ./debian/rules build
+ fakeroot ./debian/rules binary
+
ifeq (illumos-amd64,$(DEB_HOST_ARCH))
libarch := amd64
kernelarch := amd64