From 76346626d1cb764cee008f23d6cb9d61ffcaad17 Mon Sep 17 00:00:00 2001 From: statzitz Date: Tue, 23 Jul 2024 14:18:55 +0200 Subject: [PATCH] add a PKGBUILD --- PKGBUILD | 38 +++++++++++++++++++ proc-xen/proc-xen.check => proc-xen.check | 0 proc-xen/proc-xen.finish => proc-xen.finish | 0 proc-xen/proc-xen.run => proc-xen.run | 0 proc-xen/proc-xen.sysinit => proc-xen.sysinit | 0 xen-runit.install | 6 +++ 6 files changed, 44 insertions(+) create mode 100644 PKGBUILD rename proc-xen/proc-xen.check => proc-xen.check (100%) rename proc-xen/proc-xen.finish => proc-xen.finish (100%) rename proc-xen/proc-xen.run => proc-xen.run (100%) rename proc-xen/proc-xen.sysinit => proc-xen.sysinit (100%) create mode 100755 xen-runit.install diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..ed83253 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Statzitz + +pkgname=xen-runit +pkgver=20230723 +pkgrel=1 +pkgdesc='runit service for xen' +arch=(any) +url='https://sex.viyurz.fr' +license=(WTFPL) +depends=(runit xen xen-qemu seabios edk2-ovmf xen-pvhgrub xen-docs) +provides=(xen-runit) +conflicts=(xen-runit) +install=xen-runit.install +source=(xen-init-dom0.run xenconsoled.run xendomains.run xenstored.run proc-xen.check proc-xen.finish proc-xen.run proc-xen.sysinit) +sha256sums=('d54a38de5f19fb37a064f247938b1c496d6f6aad6bf3641358e57bacf420e926' + '3ee10a7280750c4ffc032e3aaa50b89a91869e7ab8b46b6c0ddcca7ed80bbbe8' + '38037f89433ad43e0624b77cc8f16a574896c604e37a2b4c1a6a441d6bd13c2d' + '4fbfd708b576f6a0c0a7c4dab622818d7eeeebdfdac71882d5567f056c6443ad' + '8f8ffb10f4933b8d50a1631d6124dd79358c599cdd68e600cb01b7fc7d0bc376' + '12b894727ee44e26936fd3b830fcd76f375b1e42cb0b7ab8bb37465e0c458532' + '3a2aa6320dd3f316b5534b6f8127d5d0cd27ff3704434620e7a832274df39cde' + '29a0c0d7e37e57dd59db569707aca93689be51f6fe665a7e3d70d144347f0a9b') + +package() { + cd "$srcdir" + install -Dm755 xen-init-dom0.run "$pkgdir/etc/runit/sv/xen-init-dom0/run" + install -Dm755 xenconsoled.run "$pkgdir/etc/runit/sv/xenconsoled/run" + install -Dm755 xendomains.run "$pkgdir/etc/runit/sv/xendomains/run" + install -Dm755 xenstored.run "$pkgdir/etc/runit/sv/xenstored/run" + install -Dm755 proc-xen.check "$pkgdir/etc/runit/sv/proc-xen/check" + install -Dm755 proc-xen.finish "$pkgdir/etc/runit/sv/proc-xen/finish" + install -Dm755 proc-xen.run "$pkgdir/etc/runit/sv/proc-xen/run" + install -Dm755 proc-xen.sysinit "$pkgdir/usr/lib/rc/sv.d/proc-xen" + + install -d ${pkgdir}/etc/rc/sysinit + + ln -sf "$pkgdir/usr/lib/rc/sv.d/proc-xen" "$pkgdir/etc/rc/sysinit/06-proc-xen" +} diff --git a/proc-xen/proc-xen.check b/proc-xen.check similarity index 100% rename from proc-xen/proc-xen.check rename to proc-xen.check diff --git a/proc-xen/proc-xen.finish b/proc-xen.finish similarity index 100% rename from proc-xen/proc-xen.finish rename to proc-xen.finish diff --git a/proc-xen/proc-xen.run b/proc-xen.run similarity index 100% rename from proc-xen/proc-xen.run rename to proc-xen.run diff --git a/proc-xen/proc-xen.sysinit b/proc-xen.sysinit similarity index 100% rename from proc-xen/proc-xen.sysinit rename to proc-xen.sysinit diff --git a/xen-runit.install b/xen-runit.install new file mode 100755 index 0000000..e3e5d2b --- /dev/null +++ b/xen-runit.install @@ -0,0 +1,6 @@ +#!/bin/sh + +#post_upgrade() { +# echo -e "run ln -s /etc/runit/sv/service /etc/runit/runsvdir/default to add a servcie" +# echo -e "new services prox-xen xenstrored xenconsoled xen-init-dom0" +#}