New package: soju-0.3.0

This commit is contained in:
flupe 2021-10-03 23:37:05 +02:00 committed by Toyam Cox
parent 52f4c08c1c
commit 92e6bc0f9c
4 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,8 @@
The system service /etc/sv/soju runs soju as system user _soju.
By default, the database will be stored in /var/db/soju/ and logs will be in
/var/log/soju/. Both directories are owned by user _soju.
To initialize the database, make sure you run sojuctl as the _soju user:
$ sudo -u _soju sojuctl -config /etc/soju/config create-user <username> -admin

View file

@ -0,0 +1,2 @@
db sqlite3 /var/db/soju/main.db
log fs /var/log/soju/

3
srcpkgs/soju/files/soju/run Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
[ -r conf ] && . ./conf
exec chpst -u _soju soju ${OPTS:- -config /etc/soju/config}

28
srcpkgs/soju/template Normal file
View file

@ -0,0 +1,28 @@
# Template file for 'soju'
pkgname=soju
version=0.3.0
revision=1
build_style=go
go_import_path="git.sr.ht/~emersion/soju"
go_package="./cmd/soju ./cmd/sojuctl"
hostmakedepends="scdoc"
short_desc="User-friendly IRC bouncer"
maintainer="flupe <lucas@escot.me>"
license="AGPL-3.0-or-later"
homepage="https://soju.im"
changelog="https://git.sr.ht/~emersion/soju/refs/v${version}"
distfiles="https://git.sr.ht/~emersion/soju/refs/download/v${version}/soju-${version}.tar.gz"
checksum=c1b77e87e42eb12bdc57a8c308b0d0f2b3dd367a2a8f9093a3983fa692c6aa01
conf_files="/etc/soju/config"
system_accounts="_soju"
make_dirs="/var/db/soju 0750 _soju _soju
/var/log/soju 0750 _soju _soju"
post_install() {
scdoc <doc/soju.1.scd >doc/soju.1
vman doc/soju.1
vlicense LICENSE
vinstall $FILESDIR/config 644 etc/soju
vdoc $FILESDIR/README.voidlinux
vsv soju
}