busybox: Obey base_bindir, sysconfdir, etc. don't hardcode at /, /bin.

Signed-off-by: Paul Sokolovsky <pfalcon@users.sourceforge.net>
busybox: Make tool symlinking code obey base_bindir.

Link to ${base_bindir}/busybox and avoid relative symlink optimizations
based on fixed layout assumptions.

Signed-off-by: Paul Sokolovsky <pfalcon@users.sourceforge.net>
opkg: Obey sysconfdir.

Signed-off-by: Paul Sokolovsky <pfalcon@users.sourceforge.net>
opkg: Obey base_bindir in postinst script.

Signed-off-by: Paul Sokolovsky <pfalcon@users.sourceforge.net>
uclibc: Obey base_prefix & base_libdir, don't hardcode at / & /lib.

Signed-off-by: Paul Sokolovsky <pfalcon@users.sourceforge.net>
uclibc: Use base_prefix for ldconfig packaging.

Signed-off-by: Paul Sokolovsky <pfalcon@users.sourceforge.net>
uclibc: Package uclibc before uclibc-dev to get proper content.

uclibc-dev's patterns are not specific enough and work on assumption
base_libdir != libdir. If they are equal, actual .so's are pulled into
-dev package, so give them a chance to go into main package first.

Signed-off-by: Paul Sokolovsky <pfalcon@users.sourceforge.net>
uclibc: Rename uclibc-thread-db package to *-dev to fix QA issues.

uclibc-thread-db contains debugging support libs, both static and shared
variants with sumlinks, which generates QA errors "non -dev/-dbg/-nativesdk
package contains symlink .so". The easiest solution is to cast the package
-dev, which makes full sense.
-FILES_uclibc-thread-db = "${base_libdir}/libthread_db*"
+FILES_uclibc-thread-db-dev = "${base_libdir}/libthread_db*"

Signed-off-by: Paul Sokolovsky <pfalcon@users.sourceforge.net>
gcc: Extend patch to obey base_libdir for uclibc host.

For gcc 4.7, need also patch top-level config/linux.h, other arch-specific
patches are not enough.
libc-package.bbclass: Obey base_bindir for shell shebang.
package.bbclass: Obey base_bindir/base_sbindir (incl. shell shebang).
update-alternatives.bbclass: Obey base_bindir for shell shebang.
update-rc.d.bbclass: Obey base_bindir for shell shebang.
useradd.bbclass: Obey base_bindir for shell shebang.
shadow: Obey sysconfdir.
update-rc.d: Rewrite installed script to obey sysconfdir.