summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-02-24 11:21:46 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-02-24 18:37:38 +0000
commit0c6570606101becb4709a7f985941c58535b9a4d (patch)
tree34e1bbc5c7d1ff1c7ed27d6ea186259f57c72587
parent30b8a15423fe7eab6a3a70e1cdb6eb635850485f (diff)
downloaddefinitions-0c6570606101becb4709a7f985941c58535b9a4d.tar.gz
busybox: usrmerge
-rw-r--r--strata/build-essential/busybox.morph24
1 files changed, 24 insertions, 0 deletions
diff --git a/strata/build-essential/busybox.morph b/strata/build-essential/busybox.morph
index 85327648..82128e4a 100644
--- a/strata/build-essential/busybox.morph
+++ b/strata/build-essential/busybox.morph
@@ -84,3 +84,27 @@ install-commands:
MANDATORY_MANPATH /usr/share/man
MANDATORY_MANPATH /usr/local/share/man
EOF
+
+post-install-commands:
+# Avoid the creation of /sbin /lib /lib64
+- |
+ mkdir -p "$DESTDIR"/usr/bin
+ mkdir -p "$DESTDIR"/usr/sbin
+ mkdir -p "$DESTDIR"/usr/lib
+ mkdir -p "$DESTDIR"/usr/lib64
+ if test -e "$DESTDIR/bin"; then
+ mv "$DESTDIR"/bin/* "$DESTDIR"/usr/bin/
+ rm -r "$DESTDIR/bin"
+ fi
+ if test -e "$DESTDIR/sbin"; then
+ mv "$DESTDIR"/sbin/* "$DESTDIR"/usr/sbin/
+ rm -r "$DESTDIR/sbin"
+ fi
+ if test -e "$DESTDIR/lib"; then
+ mv "$DESTDIR"/lib/* "$DESTDIR"/usr/lib/
+ rm -r "$DESTDIR/lib"
+ fi
+ if test -e "$DESTDIR/lib64"; then
+ mv "$DESTDIR"/lib64/* "$DESTDIR"/usr/lib64/
+ rm -r "$DESTDIR/lib64"
+ fi