The default configuration file now contains listen unix+admin:// which defaults to /run/soju/admin, the directory thus needs to exist.
40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# Template file for 'soju'
|
|
pkgname=soju
|
|
version=0.9.0
|
|
revision=3
|
|
build_style=go
|
|
go_import_path="codeberg.org/emersion/soju"
|
|
go_package="./cmd/... ./contrib/..."
|
|
go_build_tags="libsqlite3"
|
|
go_ldflags="-X ${go_import_path}/config.DefaultPath=/etc/soju/config"
|
|
hostmakedepends="scdoc"
|
|
makedepends="sqlite-devel"
|
|
depends="libcap-progs"
|
|
short_desc="User-friendly IRC bouncer"
|
|
maintainer="classabbyamp <void@placeviolette.net>"
|
|
license="AGPL-3.0-or-later"
|
|
homepage="https://soju.im"
|
|
changelog="https://codeberg.org/emersion/soju/releases"
|
|
distfiles="https://codeberg.org/emersion/soju/archive/v${version}.tar.gz"
|
|
checksum=3ca05f741342f60a385e2c3c784824e81c122b05a909efe0fa62b94c414f92f1
|
|
conf_files="/etc/soju/config"
|
|
system_accounts="_soju"
|
|
_soju_homedir="/var/lib/soju"
|
|
make_dirs="/var/db/soju 0750 _soju _soju
|
|
/var/log/soju 0750 _soju _soju
|
|
/var/lib/soju 0750 _soju _soju"
|
|
|
|
post_install() {
|
|
for b in znc-import migrate-db migrate-logs; do
|
|
mv "${DESTDIR}"/usr/bin/{,soju-}"$b"
|
|
done
|
|
for f in doc/*.?.scd; do
|
|
scdoc <"${f}" >"${f%.scd}"
|
|
vman "${f%.scd}"
|
|
done
|
|
vlicense LICENSE
|
|
vinstall config.in 644 etc/soju config
|
|
vdoc "$FILESDIR"/README.voidlinux
|
|
vsv soju
|
|
}
|