www-apps/yarnd: add pertinent system group and account
Signed-off-by: Shin'ya Minazuki <shinyoukai@chaotic.ninja>
This commit is contained in:
parent
1cb1391367
commit
8d9992d814
4 changed files with 46 additions and 3 deletions
18
www-apps/yarnd/files/yarnd.service
Normal file
18
www-apps/yarnd/files/yarnd.service
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
[Unit]
|
||||
Description=Yarn.social is an open-source, self-hosted, de-centralised micro-blogging platform
|
||||
Documentation=https://git.mills.io/yarnsocial/yarn
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
StartLimitBurst=5
|
||||
StartLimitInterval=100
|
||||
User=yarnd
|
||||
Group=yarnd
|
||||
ExecStart=/usr/sbin/yarnd -OR
|
||||
EnvironmentFile=/etc/conf.d/yarnd
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
# Copyright 2026 Shin'ya Minazuki
|
||||
EAPI=8
|
||||
|
||||
inherit git-r3 go-module
|
||||
inherit git-r3 go-module systemd
|
||||
|
||||
DESCRIPTION="Self-hosted non-social social media (daemon)"
|
||||
HOMEPAGE="https://yarn.social"
|
||||
|
|
@ -14,7 +14,15 @@ KEYWORDS="~amd64 ~arm64 ~x86"
|
|||
# There's also other two build dependencies,
|
||||
# but they are not required for building, and no user
|
||||
# I know gives a crap.
|
||||
BDEPEND="dev-util/minify"
|
||||
BDEPEND="
|
||||
>=dev-lang/go-1.25.0
|
||||
dev-util/minify
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
acct-group/yarnd
|
||||
acct-user/yarnd
|
||||
"
|
||||
|
||||
DOCS=( AUTHORS README.md )
|
||||
|
||||
|
|
@ -32,7 +40,7 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
export VERSION="0.15.1-${EGIT_COMMIT}"
|
||||
export VERSION="LIVE-${EGIT_COMMIT}"
|
||||
export COMMIT="${EGIT_COMMIT}"
|
||||
export BUILD="$(date +%Y-%m-%d)"
|
||||
export CGO_ENABLED="0"
|
||||
|
|
@ -49,5 +57,6 @@ src_install() {
|
|||
dosbin yarnd
|
||||
newinitd "${FILESDIR}/yarnd.initd-r1" "${PN}"
|
||||
newconfd "${FILESDIR}/yarnd.confd-r1" "${PN}"
|
||||
systemd_dounit "${FILESDIR}/yarnd.service"
|
||||
einstalldocs
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue