Files
gentoo-overlay/www-apps/gotosocial-bin/gotosocial-bin-0.6.0_rc1.ebuild
2022-12-10 03:06:33 +01:00

48 lines
1020 B
Bash

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
}