From 134ceae06e2004cb7cc838df70960cc34c94fa65 Mon Sep 17 00:00:00 2001 From: Michael Aldridge Date: Mon, 27 Jul 2020 22:53:16 -0700 Subject: [PATCH] New package: shinit-0.1.2 --- srcpkgs/shinit/files/shinit/run | 11 +++++++++++ srcpkgs/shinit/template | 20 ++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 srcpkgs/shinit/files/shinit/run create mode 100644 srcpkgs/shinit/template diff --git a/srcpkgs/shinit/files/shinit/run b/srcpkgs/shinit/files/shinit/run new file mode 100644 index 0000000000..f51d6a9e2c --- /dev/null +++ b/srcpkgs/shinit/files/shinit/run @@ -0,0 +1,11 @@ +#!/bin/sh + +export SHINIT_USER=void + +[ -r ./conf ] && . ./conf + +shinit + +# This is a strange thing to do, but this service should generally +# speaking only ever run once in the life of a machine. +rm -f /var/service/shinit diff --git a/srcpkgs/shinit/template b/srcpkgs/shinit/template new file mode 100644 index 0000000000..893361cd38 --- /dev/null +++ b/srcpkgs/shinit/template @@ -0,0 +1,20 @@ +# Template file for 'shinit' +pkgname=shinit +version=0.1.2 +revision=1 +depends="curl" +make_dirs="/var/lib/shinit 0755 root root" +short_desc="Minimalist approach to cloud-init style provisioning" +maintainer="Michael Aldridge " +license="MIT" +homepage="https://github.com/the-maldridge/shinit/" +distfiles="https://github.com/the-maldridge/shinit/archive/v$version.tar.gz" +checksum=04bb0f154acbc11a7271d53569bcb89c598e9e28cdca39c61e281dd38f88f482 + +do_install() { + vlicense LICENSE.md + vbin shinit + vmkdir usr/libexec/shinit + vcopy libexec/* usr/libexec/shinit + vsv shinit +}