Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions srcpkgs/matterircd/files/matterircd/run
Original file line number Diff line number Diff line change
@@ -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}"
24 changes: 24 additions & 0 deletions srcpkgs/matterircd/template
Original file line number Diff line number Diff line change
@@ -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 <felixvdj+github@posteo.be>"
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
}