46 lines
901 B
Bash
46 lines
901 B
Bash
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit systemd
|
|
|
|
DESCRIPTION=""
|
|
HOMEPAGE=""
|
|
SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${PN}_${PV}.tar.gz"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
KEYWORDS="~arm64"
|
|
|
|
RDEPEND="
|
|
acct-user/facette
|
|
net-libs/nodejs
|
|
dev-lang/go
|
|
|
|
"
|
|
|
|
src_unpack() {
|
|
mkdir "${P}"
|
|
cd "${P}"
|
|
unpack "${A}"
|
|
}
|
|
|
|
src_install() {
|
|
insinto /usr/share/${PN}
|
|
doins -r assets data node_modules server package.json
|
|
|
|
insinto /etc/${PN}
|
|
mv config.sample.yml config.yml.example
|
|
doins config.yml.example
|
|
|
|
dosym /etc/${PN}/config.yml /usr/share/${PN}/config.yml
|
|
|
|
systemd_dounit ${FILESDIR}/${PN}.service
|
|
}
|
|
|
|
pkg_postinst() {
|
|
elog "Before enabling ${PN}.service, create a configuration file:"
|
|
elog "# cp /etc/${PN}/config.yml.example /etc/${PN}/config.yml"
|
|
elog "and edit its contents to match your needs."
|
|
}
|