pkgname=evolution-patches version=1.2 revision=4 build_style=meta maintainer="Tracker-Friendly " short_desc="Simple patches that enable an usable OS out of the box" license="GPL-3.0" homepage="https://hectabit.org/evolutionos/pkg" makedepends="busybox-evolution opendoas" depends="busybox-evolution opendoas zzz shadow" replaces="util-linux runit runit-void grep which gzip tar diffutils coreutils findutils xz wget sed gawk pciutils usbutils tree shadowfix" provides="awk-0_1" conf_files="/etc/doas.conf /etc/shadow" do_install() { #!/bin/bash # Get the list of commands from busybox commands="[ [[ arch ascii base32 base64 basename brctl cat chgrp chmod chown chroot comm cp crc32 cttyhack cut date dc dd df dirname dnsdomainname du dumpkmap echo ed env expand expr factor false fatattr fbset fold fsync fuser getty groups head hexedit i2cdetect i2cdump i2cget i2cset i2ctransfer id ifconfig ifenslave install iostat ipaddr iplink ipneigh iproute iprule iptunnel killall killall5 link ln loadkmap login ls lsof lsscsi lzcat md5sum mkdir mkfifo mount mknod mkstat mv nc netstat nice nl nohup nproc nslookup od partprobe paste patch pipe_progress powertop printenv printf pstree pwd readlink realpath rm rmdir seq setfattr sha1sum sha256sum sha3sum sha512sum shred shuf sleep sort split ssl_client stat strings stty su sum svok sync tac tail tee telnet test time touch tr true truncate ts tty uevent uname unexpand uniq unlink unxz unzip uudecode uuencode wc wget whoami whois xxd xz xzcat yes sh find diff gunzip tar gzip sed which mktemp grep xargs cmp egrep fgrep lspci lsusb mpstat tree tsort zcat add-shell addgroup adduser adjtimex ar arp ash awk bc beep chat cksum conspy crond crontab cryptpw delgroup deluser devmem dhcprelay dnsd dos2unix dpkg dpkg-deb dumpleases ether-wake fakeidentd fbsplash fdflush fdformat freeramdisk ftpd ftpget ftpput hd hdparm hostid hostname httpd hush ifdown ifplugd ifup inetd ipcalc klogd linux32 linux64 loadfont logger logname logread lpd lpq lpr lzma lzop lzopcat makedevs makemime mdev microcom mim minips mkpasswd mt nameif nanddump nandwrite nbd-client netcat nmeter ntpd nuke ping ping6 popmaildir pscan raidautorun rdate rdev readahead reformime remove-shell resize resume route rpm rpm2cpio run-init runlevel rx seedrng sendmail setconsole setlogcons setserial slattach smemcap start-stop-daemon syslogd tcpsvd telnetd tftp tftpd timeout traceroute traceroute6 ttysize tunctl ubiattach ubidetach ubimkvol ubirename ubirmvol ubirsvol ubiupdatevol udhcpc udhcpc6 udhcpd udpsvd uncompress unix2dos unlzma unlzop users usleep vconfig vi volname w watchdog who zcip" mkdir -p ${DESTDIR}/usr/bin/ # Loop through each command for cmd in $commands; do echo $PWD busybox ln -sf /bin/busybox ${DESTDIR}/usr/bin/$cmd chmod +x ${DESTDIR}/usr/bin/$cmd ls -l ${DESTDIR}/usr/bin/$cmd done chmod u+s ${DESTDIR}/usr/bin/su ls ${DESTDIR} echo ${DESTDIR} echo done mkdir -p ${DESTDIR}/usr/share/xbps.d cp ${FILESDIR}/main.conf ${DESTDIR}/usr/share/xbps.d/*-0-evolution-main.conf mkdir -p ${DESTDIR}/etc/ cp ${FILESDIR}/doas.conf ${DESTDIR}/etc/doas.conf touch ${DESTDIR}/etc/shadow ln -sf /bin/doas ${DESTDIR}/usr/bin/sudo mkdir -p ${DESTDIR}/etc/dinit.d/boot.d for i in $(echo "tty1-agetty tty2-agetty tty3-agetty tty4-agetty tty5-agetty tty6-agetty tty7-agetty dbus dbus-log dhcpcd dhcpcd-log ead ead-log iwd iwd-log loginready ntpd runitb.d splash sshd sshd-log udevd"); do ln -sf "/etc/dinit.d/$i" "${DESTDIR}/etc/dinit.d/boot.d/$i" done }