#!/usr/bin/env beesh

# BEE_VERSION usrlinks-1.0-1

# more info: https://foo.bar.com

SRCURL[0]=""

# PATCHURL+=()

# build_in_sourcedir

# sourcesubdir_append src

#mee_extract() {
#    bee_extract "${@}"
#}

#mee_patch() {
#    bee_patch "${@}"
#}

#mee_configure() {
#    bee_configure
#}

#mee_build() {
#    bee_build
#}

mee_install() {

    # list generated 7.5.2021
    # all files /bin/$f -> /usr/bin/$f which are unknown to bee
    mkdir -p $D/bin
    for f in \
            tcsh more gzip grep echo arch sed pwd csh sh ps ls cp bashbug umount loadkeys \
            openvt hostname gunzip findmnt os-release setfont kbd_mode \
            uname rmdir ping6 mount mknod mkdir lsmod lsblk login fuser fgrep false \
            egrep dmesg chown chmod chgrp killall zcat true sync stty sort ping kill \
            gtar date bash env cat rm mv ln df dd \
            ; do
        ln -s /usr/bin/$f $D/bin/$f
    done

    # list generated 7.5.2021
    # all files /sbin/$f -> /usr/sbin/$f which are unknown to bee
    mkdir -p $D/sbin
    for f in \
            raw ss mkfs pam_tally fdisk chcpu fsck ifcfg genl blkid tc insmod.static \
            depmod blockdev agetty make-automaps,v ping-till-reachable rtmon fsck.cramfs \
            pivot_root ctrlaltdel lnstat insmod ifstat findfs ctstat cfdisk losetup rmmod \
            rtpr nstat ifup ip nvidiactl installkernel mkfs.minix tune3ware.pl fsck.minix \
            startup-hostname make-automaps hwclock xfs_repair mkfs.xfs mkfs.bfs fsfreeze \
            wipefs fsck.xfs mkfs.cramfs sysctl swapon rtstat rtacct sfdisk routel routef \
            mkswap swaplabel fstrim modinfo swapoff modprobe switch_root \
            ; do
        ln -s /usr/sbin/$f $D/sbin/$f
    done
}

#mee_install_post() {
#    exit
#}