evolution-packages/srcpkgs/evolution-patches/template

45 lines
3.4 KiB
Bash
Raw Normal View History

2023-08-05 21:19:04 +01:00
pkgname=evolution-patches
version=1.0
2023-09-01 00:38:35 +01:00
revision=15
2023-08-05 21:19:04 +01:00
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"
2023-09-01 00:38:35 +01:00
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"
2023-08-05 21:19:04 +01:00
provides="awk-0_1"
2023-08-12 22:52:59 +01:00
conf_files="/etc/shadow /etc/doas.conf /etc/sv/agetty-tty1/conf"
2023-08-05 21:19:04 +01:00
do_install() {
#!/bin/bash
# Get the list of commands from busybox
2023-09-01 00:38:35 +01:00
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"
2023-08-05 21:19:04 +01:00
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
2023-08-12 22:52:59 +01:00
touch ${DESTDIR}/etc/shadow
2023-08-05 21:19:04 +01:00
ln -sf /bin/doas ${DESTDIR}/usr/bin/sudo
2023-09-01 00:38:35 +01:00
ln -sf /bin/dinit ${DESTDIR}/usr/bin/init
2023-08-05 21:19:04 +01:00
}