diff --git a/srcpkgs/sv-helper/template b/srcpkgs/sv-helper/template new file mode 100644 index 00000000000..338808fc8cc --- /dev/null +++ b/srcpkgs/sv-helper/template @@ -0,0 +1,26 @@ +# Template file for 'sv-helper' +pkgname=sv-helper +version=1.0.2 +revision=1 +depends="bash runit" +noarch="yes" +short_desc="Utilities to help administer a runit-as-pid1 system" +maintainer="bougyman " +license="MIT" +homepage="https://github.com/rubyists/sv-helper" +distfiles="https://github.com/rubyists/sv-helper/archive/${version}.tar.gz" +checksum=772669ba116c4004c394c7f259b15859a520e36170b35f8b5a4103ed2f69e7d0 + +system_accounts="rsvlog" +rsvlog_homedir="/var/log" +rsvlog_descr="User for logging" + +do_install() { + _commands="sv-list svls sv-find sv-enable sv-disable" + vbin sv-helper.sh sv-helper + vbin rsvlog.sh rsvlog + for cmd in $_commands; do + ln -s sv-helper $DESTDIR/usr/bin/$cmd + done + vdoc README.md +}