summaryrefslogtreecommitdiff
path: root/uts
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2015-10-19 17:25:30 +0300
committerIgor Pashev <pashev.igor@gmail.com>2015-10-19 17:25:30 +0300
commitad9b4f0587a52b1973b77a51183d8c1f2d4b26ac (patch)
treef29532bc9fd91e1b88db020f5cc83bf55a3e267a /uts
parent385c0c6b58cc9e4db434ea5e3017e51acebdd73b (diff)
downloadillumos-packaging-ad9b4f0587a52b1973b77a51183d8c1f2d4b26ac.tar.gz
Added test-orig
Diffstat (limited to 'uts')
-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