thxtex
Dabbler
- Joined
- Dec 8, 2017
- Messages
- 27
Based on this resource I wrote a script that will create a jail with mono 5.10 and patch it up to 6.8.0.96. Put the code into a text file e.g. mono_patch.run and run it with "sh mono_patch.run".
It will run for half an hour. You will need to press enter once. At the end you will have a mono package in the root inside the jail. Copy it to the other jails requiring it and delete the mono_patch jail after use.
Thanks to ChaosBlade for the resource.
It will run for half an hour. You will need to press enter once. At the end you will have a mono package in the root inside the jail. Copy it to the other jails requiring it and delete the mono_patch jail after use.
Thanks to ChaosBlade for the resource.
Code:
echo '{"pkgs":["mono","llvm80","libepoxy-1.5.2"]}' > /tmp/pkg.json iocage create -n "mono_patch" -p /tmp/pkg.json -r 11.3-RELEASE dhcp="on" vnet="on" bpf="yes" boot="on" rm /tmp/pkg.json iocage exec mono_patch "ln -s /usr/local/bin/mono /usr/bin/mono" iocage exec mono_patch "fetch 'https://bz-attachments.freebsd.org/attachment.cgi?id=211011' -o /tmp/mono-patch-6.8.0.96" iocage exec mono_patch "mkdir -p /usr/local/etc/pkg/repos" iocage exec mono_patch "echo -e 'FreeBSD: { url: \"pkg+http://pkg.FreeBSD.org/\${ABI}/latest\" }' > /usr/local/etc/pkg/repos/FreeBSD.conf" iocage update mono_patch iocage upgrade mono_patch iocage exec mono_patch "portsnap fetch extract" iocage exec mono_patch "pkg delete -y '*proto'" iocage exec mono_patch "echo -e 'cd /usr/ports/lang/mono' > /tmp/mono_patch.sh" iocage exec mono_patch "echo -e 'patch -E < /tmp/mono-patch-6.8.0.96' >> /tmp/mono_patch.sh" iocage exec mono_patch "echo -e 'make -DBATCH install clean' >> /tmp/mono_patch.sh" iocage exec mono_patch "echo -e 'make -DBATCH deinstall reinstall' >> /tmp/mono_patch.sh" iocage exec mono_patch "echo -e 'make package' >> /tmp/mono_patch.sh" iocage exec mono_patch "echo -e 'mv /usr/ports/lang/mono/work/pkg/mono-6.8.0.96.txz /' >> /tmp/mono_patch.sh" iocage exec mono_patch "sh /tmp/mono_patch.sh"