gotosocial-bin: Bump to 0.17.1

Signed-off-by: Stefan Knoblich <stkn@bitplumber.de>
This commit is contained in:
2024-10-15 21:11:15 +02:00
parent a61bdbcefe
commit 0d0eeca8e9
2 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
EAPI="7"
inherit systemd
MY_PN="gotosocial"
MY_PV="${PV/_/-}"
DESCRIPTION="Single Sign-On Multi-Factor portal for web apps"
HOMEPAGE="https://github.com/superseriousbusiness/gotosocial"
SRC_URI="https://github.com/superseriousbusiness/gotosocial/releases/download/v${MY_PV}/${MY_PN}_${MY_PV}_linux_amd64.tar.gz -> ${P}-linux-amd64.tar.gz"
SLOT="0"
LICENSE="AGPL-3"
KEYWORDS="amd64"
S="${WORKDIR}"
QA_PRESTRIPPED="usr/bin/gotosocial"
DEPEND="
acct-group/gotosocial
acct-user/gotosocial
"
src_install() {
dobin gotosocial
newinitd "${FILESDIR}/${MY_PN}.initd" ${MY_PN}
newconfd "${FILESDIR}/${MY_PN}.confd" ${MY_PN}
systemd_dounit "${FILESDIR}/${MY_PN}.service"
diropts -m 0750 -o ${MY_PN} -g ${MY_PN}
dodir /etc/${MY_PN}
dodir /etc/${MY_PN}/keys.d
dodir /etc/${MY_PN}/certs.d
keepdir /etc/${MY_PN}/keys.d
keepdir /etc/${MY_PN}/certs.d
keepdir /var/lib/${MY_PN}
keepdir /var/log/${MY_PN}
insinto /etc/${MY_PN}
doins example/config.yaml
insinto /var/lib/${MY_PN}
doins -r web
}