summaryrefslogtreecommitdiff
path: root/uts/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'uts/debian/rules')
-rwxr-xr-xuts/debian/rules21
1 files changed, 15 insertions, 6 deletions
diff --git a/uts/debian/rules b/uts/debian/rules
index 75d0698..7d7ab17 100755
--- a/uts/debian/rules
+++ b/uts/debian/rules
@@ -6,6 +6,8 @@ include /usr/share/dpkg/architecture.mk
dh $@
BUILD = build-tree
+ROOT = $(BUILD)/root
+
ILLUMOS_GATE = illumos-gate
$(ILLUMOS_GATE):
@@ -36,7 +38,7 @@ endif
make := -m 'sunmake'
override_dh_auto_configure:
- dh_illumos_gate --configure --destdir=$(BUILD)
+ dh_illumos_gate --configure --destdir=$(BUILD) --root=$(ROOT)
find $(BUILD)/usr/src/uts/common/sys/lvm -name \*.x \
-exec ./debian/fix.x.pl {} \;
@@ -76,19 +78,26 @@ else
$(error DEB_HOST_ARCH_BITS is not defined or holds something wrong)
endif
+override_dh_strip:
+ : # we don't strip the kernel
+
override_dh_auto_build:
mkdir -p \
- debian/tmp/etc \
- debian/tmp/etc/security \
- debian/tmp/boot \
- debian/tmp/boot/solaris
+ $(ROOT)/etc \
+ $(ROOT)/etc/security \
+ $(ROOT)/boot \
+ $(ROOT)/boot/solaris
dh_illumos_make $(BUILD)/usr/src/uts -t install_h $(make)
dh_illumos_make --ctf $(BUILD)/usr/src/uts $(make)
-override_dh_install:
+override_dh_auto_install:
+ rm -rf debian/tmp
+ cp -a $(ROOT) debian/tmp
set -x; for p in `grep -E -v '^(#|$$)' debian/notpacked`; do \
rm -rf debian/tmp/$$p || exit 1; \
done
+
+override_dh_install:
dh_install --fail-missing
override_dh_installdeb: