From b004a37f419202071117a1aa050ef9790531af7e Mon Sep 17 00:00:00 2001 From: Bruno Rodriguez Date: Sat, 6 Jan 2024 11:04:59 +0100 Subject: [PATCH] New package: opennebula-context-voidlinux-0.0.2 --- .../opennebula-context-voidlinux/INSTALL.msg | 15 +++++++++ srcpkgs/opennebula-context-voidlinux/template | 31 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 srcpkgs/opennebula-context-voidlinux/INSTALL.msg create mode 100644 srcpkgs/opennebula-context-voidlinux/template diff --git a/srcpkgs/opennebula-context-voidlinux/INSTALL.msg b/srcpkgs/opennebula-context-voidlinux/INSTALL.msg new file mode 100644 index 0000000000000..8297f6f1a27cf --- /dev/null +++ b/srcpkgs/opennebula-context-voidlinux/INSTALL.msg @@ -0,0 +1,15 @@ +# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # + +To enable opennebula contextualization in a clean installation: + +- Enable service `one-contextd`: + # ln -s /etc/sv/one-contextd /var/service + +- Enable service `qemu-ga`: + # ln -s /etc/sv/one-contextd /var/service + +- Execute onesysprep + +Contextualized network config is stored in `/etc/network_config` + +# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # diff --git a/srcpkgs/opennebula-context-voidlinux/template b/srcpkgs/opennebula-context-voidlinux/template new file mode 100644 index 0000000000000..1ce7a134a6f27 --- /dev/null +++ b/srcpkgs/opennebula-context-voidlinux/template @@ -0,0 +1,31 @@ +# Template file for 'opennebula-context' +pkgname=opennebula-context-voidlinux +version=0.0.2 +revision=1 +build_style=gnu-makefile +short_desc="Contextualization scripts for opennebula" +depends="curl jq qemu-ga ruby" +maintainer="brodriguez " +license="Apache-2.0" +homepage="https://github.com/brodriguez-opennebula/opennebula-context-voidlinux" +distfiles="${homepage}/archive/refs/tags/${version}.tar.gz" +checksum=d5f46e318fb1d01cf70d2868bf3528646021d4e6f12440955853a38a747b4314 + +do_build() { + make install +} + +do_install() { + vinstall /usr/bin/onesysprep 540 /usr/bin + vinstall /usr/bin/growpart 540 /usr/bin + vinstall /usr/bin/one-contextd 540 /usr/bin + vinstall /usr/bin/onegate.rb 540 /usr/bin + vinstall /usr/bin/onegate 540 /usr/bin + + vmkdir /etc/one-context.d + vcopy /etc/one-context.d/* /etc/one-context.d + vinstall /usr/lib/udev/rules.d/65-context.rules 0444 usr/lib/udev/rules.d/ + vinstall /etc/sv/one-contextd/run 0544 etc/sv/one-contextd + vinstall /etc/sv/one-contextd/log/run 0544 etc/sv/one-contextd/log +} +