diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2015-10-17 23:08:17 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2015-10-17 23:08:17 +0300 |
commit | fe4fd3cf9f0dfe889bc2981a71e3d2c78f655945 (patch) | |
tree | ce523a7f92eabb0e961a731ea346336bb295d10b /uts | |
parent | 708a8737a62adbfac4a2b2c837f62f521e12572d (diff) | |
download | illumos-packaging-fe4fd3cf9f0dfe889bc2981a71e3d2c78f655945.tar.gz |
Set install root
Diffstat (limited to 'uts')
-rwxr-xr-x | uts/debian/rules | 21 |
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: |