2023-08-05 21:19:04 +01:00
|
|
|
pkgname=evolution-patches
|
2023-10-29 15:34:13 +00:00
|
|
|
version=1.2
|
2023-11-13 22:52:31 +00:00
|
|
|
revision=1
|
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"
|
2023-10-06 00:26:32 +01:00
|
|
|
homepage="https://hectabit.org/evolutionos/pkg"
|
2023-09-01 00:38:35 +01:00
|
|
|
makedepends="busybox-evolution opendoas"
|
2023-11-13 22:52:31 +00:00
|
|
|
depends="busybox-evolution opendoas zzz shadow"
|
2023-09-01 00:38:35 +01:00
|
|
|
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-09-12 23:32:34 +01:00
|
|
|
conf_files="/etc/doas.conf /etc/shadow"
|
2023-08-05 21:19:04 +01:00
|
|
|
|
|
|
|
do_install() {
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Get the list of commands from busybox
|
|
|
|
|
2023-10-29 15:34:13 +00: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 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"
|
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}/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-12 23:07:20 +01:00
|
|
|
|
|
|
|
mkdir -p ${DESTDIR}/etc/dinit.d/boot.d
|
|
|
|
|
2023-10-29 15:34:13 +00:00
|
|
|
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"
|
2023-09-12 23:32:34 +01:00
|
|
|
done
|
2023-08-05 21:19:04 +01:00
|
|
|
}
|