[oe-commits] [openembedded-core] 24/65: net-tools: Place package content as per bitbake environment.

git at git.openembedded.org git at git.openembedded.org
Wed Mar 22 10:13:58 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 8be0740f8cc8d909a8983b499f200b99261124c4
Author: Amarnath Valluri <amarnath.valluri at intel.com>
AuthorDate: Wed Feb 8 11:21:52 2017 +0200

    net-tools: Place package content as per bitbake environment.
    
    net-tools Makefile was hardcoded sbin, bin installation paths to /bin and /sbin
    respectively.  This change moves the installed files to appropriate location as
    per configured bitbake environment.
    
    This might be solved much better way by patching Makefile, but that causing
    build issues, as net-tools recipe is using pre-generated config.{h/status}.
    
    Signed-off-by: Amarnath Valluri <amarnath.valluri at intel.com>
---
 meta/recipes-extended/net-tools/net-tools_1.60-26.bb | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/meta/recipes-extended/net-tools/net-tools_1.60-26.bb b/meta/recipes-extended/net-tools/net-tools_1.60-26.bb
index 99a4235..be26735 100644
--- a/meta/recipes-extended/net-tools/net-tools_1.60-26.bb
+++ b/meta/recipes-extended/net-tools/net-tools_1.60-26.bb
@@ -93,6 +93,17 @@ do_install() {
 	unset CFLAGS
 	unset LDFLAGS
 	oe_runmake 'BASEDIR=${D}' install
+
+	if [ "${base_bindir}" != "/bin" ]; then
+		mkdir -p ${D}/${base_bindir}
+		mv ${D}/bin/* ${D}/${base_bindir}/
+		rmdir ${D}/bin
+	fi
+	if [ "${base_sbindir}" != "/sbin" ]; then
+		mkdir ${D}/${base_sbindir}
+		mv ${D}/sbin/* ${D}/${base_sbindir}/
+		rmdir ${D}/sbin
+	fi
 }
 
 inherit update-alternatives

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list