Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
db sqlite3 /var/db/soju/main.db | ||
log fs /var/log/soju/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
[ -r conf ] && . ./conf | ||
exec chpst -u _soju soju ${OPTS:- -config /etc/soju/config} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |