This repository has been archived on 2024-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
evolution-packages/srcpkgs/evolution-patches/template

45 lines
3.4 KiB
Bash

pkgname=evolution-patches
version=1.0
revision=15
build_style=meta
maintainer="Tracker-Friendly <jliwin98@danwin1210.de>"
short_desc="Simple patches that enable an usable OS out of the box"
license="GPL-3.0"
homepage="https://evolutionos.codeberg.page"
makedepends="busybox-evolution opendoas"
depends="busybox-evolution opendoas zzz"
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/shadow /etc/doas.conf /etc/sv/agetty-tty1/conf"
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 ls lsof lsscsi lzcat md5sum mkdir mkfifo 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 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 less which mktemp grep xargs cmp egrep fgrep lspci lsusb mpstat tree tsort zcat add-shell addgroup adduser adjtimex ar arp ash awk bc beep bunzip2 bzcat chat cksum conspy crond crontab cryptpw delgroup deluser depmod 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 insmod ipcalc klogd linux32 linux64 loadfont logger logname logread lpd lpq lpr lsmod lzma lzop lzopcat makedevs makemime man mdev microcom mim minips mkdosfs mkfs.ext2 mkfs.vfat mkpasswd modinfo modprobe mt nameif nanddump nandwrite nbd-client netcat nmeter ntpd nuke ping ping6 popmaildir pscan raidautorun rdate rdev readahead reformime remove-shell reset resize resume rmmod 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
ls ${DESTDIR}
echo ${DESTDIR}
echo done
mkdir -p ${DESTDIR}/etc/sv/agetty-tty1
cp ${FILESDIR}/conf ${DESTDIR}/etc/sv/agetty-tty1/conf
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
ln -sf /bin/dinit ${DESTDIR}/usr/bin/init
}