diff --git a/srcpkgs/matterircd/files/matterircd/run b/srcpkgs/matterircd/files/matterircd/run new file mode 100644 index 00000000000000..565623a60c4158 --- /dev/null +++ b/srcpkgs/matterircd/files/matterircd/run @@ -0,0 +1,5 @@ +#!/bin/sh +exec 2>&1 +[ -r ./conf ] && . ./conf + +exec chpst -u _matterircd:_matterircd -C /var/lib/matterircd matterircd --conf "${CONFIG:-/etc/matterircd/matterircd.toml}" diff --git a/srcpkgs/matterircd/template b/srcpkgs/matterircd/template new file mode 100644 index 00000000000000..b857e9440bc0d5 --- /dev/null +++ b/srcpkgs/matterircd/template @@ -0,0 +1,24 @@ +# Template file for 'matterircd' +pkgname=matterircd +version=0.28.0 +revision=1 +build_style=go +go_import_path=github.com/42wim/matterircd +short_desc="Connect to your mattermost or slack using your IRC-client of choice" +maintainer="Felix Van der Jeugt " +license="MIT" +homepage="https://github.com/42wim/matterircd" +changelog="https://github.com/42wim/matterircd/releases" +distfiles="https://github.com/42wim/matterircd/archive/refs/tags/v${version}.tar.gz" +checksum=a23a1ac6a5dda8aa0a25261b6a5ce1084b63b626fe65cb94e8581c8bb0482c64 + +system_accounts="_matterircd" +_matterircd_homedir="/var/lib/matterircd" +make_dirs="/var/lib/matterircd 0700 _matterircd _matterircd + /etc/matterircd 0755 root root" + +post_install() { + vsconf matterircd.toml.example matterircd.toml + vlicense LICENSE + vsv matterircd +}