diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2012-07-01 18:42:52 +0000 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2012-07-01 18:42:52 +0000 |
commit | a72a96203255d0ae5ae6b312f3ad6d61b1ea20f8 (patch) | |
tree | 9084c9f6cb8584344444d34d232b4883959df627 | |
parent | c72eb9432e1a767f3411b44e4724e1ad220a25ef (diff) | |
download | illumos-packaging-a72a96203255d0ae5ae6b312f3ad6d61b1ea20f8.tar.gz |
Use dh-illumos
-rw-r--r-- | uts/debian/control | 2 | ||||
-rwxr-xr-x | uts/debian/rules | 16 |
2 files changed, 5 insertions, 13 deletions
diff --git a/uts/debian/control b/uts/debian/control index e2bf90a..6c7fdc0 100644 --- a/uts/debian/control +++ b/uts/debian/control @@ -3,7 +3,7 @@ Section: kernel Priority: optional Maintainer: Igor Pashev <pashev.igor@gmail.com> Build-Depends: - debhelper ( >= 8 ), illumos-source, patch, quilt, sunmake, libc-dev-bin, ksh93 + debhelper ( >= 8 ), illumos-source, patch, quilt, dh-illumos Standards-Version: 3.9.3 Homepage: http://illumos.org/ diff --git a/uts/debian/rules b/uts/debian/rules index 92265a5..e0724f7 100755 --- a/uts/debian/rules +++ b/uts/debian/rules @@ -1,7 +1,5 @@ #!/usr/bin/make -f -illtar = /usr/src/illumos-gate/illumos-gate.tar.xz - DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU) CODEMGR_WS = $(CURDIR)/illumos-gate @@ -10,17 +8,12 @@ CODEMGR_WS = $(CURDIR)/illumos-gate unpack: unpack-stamp unpack-stamp: $(illtar) dh_testdir - tar xf $(illtar) \ + dh_illumos_gate \ --exclude=usr/src/cmd \ --exclude=usr/src/lib \ --exclude=usr/src/head touch $@ -illumos-gate/illumos.sh: unpack-stamp - cd illumos-gate && \ - sed -r '/export\s+CODEMGR_WS=/ s,CODEMGR_WS=.*,CODEMGR_WS="$(CODEMGR_WS)",' \ - usr/src/tools/env/illumos.sh > illumos.sh - patch: unpack dh_testdir [ ! -f debian/patches/series ] || QUILT_PATCHES=debian/patches quilt push -a @@ -30,9 +23,8 @@ unpatch: [ ! -f debian/patches/series ] || QUILT_PATCHES=debian/patches quilt pop -a build build-arch build-indep: build-stamp -build-stamp: patch illumos-gate/illumos.sh - cd illumos-gate && \ - ksh93 usr/src/tools/scripts/bldenv.sh -d illumos.sh -c "cd usr/src/uts && /usr/bin/sunmake install_h" +build-stamp: patch + dh_illumos_make -t install_h usr/src/uts touch $@ install: install-stamp @@ -46,4 +38,4 @@ clean: unpatch dh_testroot dh_clean rm -rf illumos-gate - rm -f *-stamp + |