Skip to content

Commit

Permalink
New package: soju-0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
flupe committed Oct 4, 2021
1 parent d90126b commit 253fe4c
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
8 changes: 8 additions & 0 deletions srcpkgs/soju/files/README.voidlinux
@@ -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
2 changes: 2 additions & 0 deletions srcpkgs/soju/files/config
@@ -0,0 +1,2 @@
db sqlite3 /var/db/soju/main.db
log fs /var/log/soju/
3 changes: 3 additions & 0 deletions srcpkgs/soju/files/soju/run
@@ -0,0 +1,3 @@
#!/bin/sh
[ -r conf ] && . ./conf
exec chpst -u _soju soju ${OPTS:- -config /etc/soju/config}
29 changes: 29 additions & 0 deletions srcpkgs/soju/template
@@ -0,0 +1,29 @@
# Template file for 'soju'
pkgname=soju
version=0.2.1
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=3558db9f78da3d0311b45e42307ef01af3218156b0370d85a1d7eef4d2811559
conf_files="/etc/soju/config"
system_accounts="_soju"
make_dirs="/var/db/soju 0750 _soju _soju
/var/log/soju 0750 _soju _soju
/etc/soju 0755 root root"

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
}

0 comments on commit 253fe4c

Please sign in to comment.