diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 17:06:05 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 17:06:05 +0000 |
commit | 1aa22fd5afd692a2411ab2ffd42bdd96db3e2b9f (patch) | |
tree | ccc43985c0c11bc84e775e54f4aab6b6545bcf7e /debian/initramfs-tools/hooks/klibc-utils | |
parent | Adding upstream version 2.0.13. (diff) | |
download | klibc-debian.tar.xz klibc-debian.zip |
Adding debian version 2.0.13-4.debian/2.0.13-4debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/initramfs-tools/hooks/klibc-utils')
-rwxr-xr-x | debian/initramfs-tools/hooks/klibc-utils | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/debian/initramfs-tools/hooks/klibc-utils b/debian/initramfs-tools/hooks/klibc-utils new file mode 100755 index 0000000..3a3afca --- /dev/null +++ b/debian/initramfs-tools/hooks/klibc-utils @@ -0,0 +1,37 @@ +#!/bin/sh + +prereqs() +{ + if [ "${BUSYBOX}" = "n" ] || [ -z "${BUSYBOXDIR}" ]; then + echo '' + else + # Ensure busybox installs all its commands before + # checking what we should provide + echo zz-busybox + fi +} + +case $1 in +# get pre-requisites +prereqs) + prereqs + exit 0 + ;; +esac + +for src in /usr/lib/klibc/bin/*; do + command="$(basename "$src")" + case "$command" in + gzip | kinit | zcat) + # Don't install; these will not be needed + ;; + *) + # Don't install commands that already exist in /bin or /sbin + if ! [ -e "${DESTDIR}/sbin/$command" ] \ + && ! [ -e "${DESTDIR}/bin/$command" ]; then + cp -pL "$src" "${DESTDIR}/bin" + fi + ;; + esac +done +cp -pL /usr/lib/klibc-*.so "${DESTDIR}/lib" |