From 3ffcc4b36ceb1321d1e8f28c2a4fb24af6d288d8 Mon Sep 17 00:00:00 2001 From: Gui Chen Date: Thu, 5 Dec 2013 03:45:56 -0500 Subject: [PATCH] fix right install location in debian packaging Change-Id: If6a75da2e5b838fd384c460745438c7d289e6f08 Signed-off-by: Gui Chen --- debian/mic-native.install | 2 +- debian/mic.install | 8 +++++--- debian/rules | 16 ++++++++++------ 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/debian/mic-native.install b/debian/mic-native.install index dfb6146..29caf35 100644 --- a/debian/mic-native.install +++ b/debian/mic-native.install @@ -1 +1 @@ -debian/mic/usr/bin/mic-native +usr/bin/mic-native diff --git a/debian/mic.install b/debian/mic.install index 499f595..759a2c3 100644 --- a/debian/mic.install +++ b/debian/mic.install @@ -1,3 +1,5 @@ -debian/mic/usr/bin/mic -debian/mic/usr/lib/* -debian/mic/etc/* +usr/bin/mic +usr/lib/* +usr/share/* +usr/share/* +etc/* diff --git a/debian/rules b/debian/rules index 9049449..8617a17 100755 --- a/debian/rules +++ b/debian/rules @@ -31,12 +31,16 @@ install: build dh_installdirs # Installing package - mkdir -p $(CURDIR)/debian/mic $(CURDIR)/debian/mic/usr/bin $(CURDIR)/debian/mic/usr/share/man/man1 $(CURDIR)/debian/mic/etc/bash_completion.d $(CURDIR)/debian/mic/etc/zsh_completion.d - install -m644 doc/mic.1 $(CURDIR)/debian/mic/usr/share/man/man1 - install -m755 etc/mic.bash $(CURDIR)/debian/mic/etc/bash_completion.d/mic.sh - install -m755 etc/_mic $(CURDIR)/debian/mic/etc/zsh_completion.d/_mic - install -m755 tools/mic $(CURDIR)/debian/mic/usr/bin/mic-native - python setup.py install --root=$(CURDIR)/debian/mic + mkdir -p $(CURDIR)/debian/tmp/ + mkdir -p $(CURDIR)/debian/tmp/usr/bin + mkdir -p $(CURDIR)/debian/tmp/usr/share/man/man1 + mkdir -p $(CURDIR)/debian/tmp/etc/bash_completion.d + mkdir -p $(CURDIR)/debian/tmp/etc/zsh_completion.d + install -m644 doc/mic.1 $(CURDIR)/debian/tmp/usr/share/man/man1 + install -m755 etc/mic.bash $(CURDIR)/debian/tmp/etc/bash_completion.d/mic.sh + install -m755 etc/_mic $(CURDIR)/debian/tmp/etc/zsh_completion.d/_mic + install -m755 tools/mic $(CURDIR)/debian/tmp/usr/bin/mic-native + python setup.py install --root=$(CURDIR)/debian/tmp binary-indep: build install dh_testdir -- 2.7.4