37 lines
723 B
Bash
37 lines
723 B
Bash
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit systemd
|
|
|
|
DESCRIPTION="Powerful and extensible open source Wiki software"
|
|
HOMEPAGE="https://wiki.js.org"
|
|
SRC_URI="https://github.com/Requarks/wiki/releases/download/${PV}/wiki-js.tar.gz"
|
|
|
|
LICENSE="AGPL-3"
|
|
SLOT="0"
|
|
KEYWORDS="*"
|
|
|
|
RDEPEND="
|
|
acct-user/wikijs
|
|
>=net-libs/nodejs-10.12
|
|
>=dev-db/postgresql-9.5
|
|
"
|
|
|
|
src_install() {
|
|
insinto /usr/share/${PN}
|
|
doins -r * /usr/share/${PN}
|
|
echo
|
|
echo "### In WD:"
|
|
ls -la
|
|
echo
|
|
|
|
insinto /etc/${PN}
|
|
mv config.sample.yml config.yml.example
|
|
doins config.yml.example
|
|
|
|
dosym /etc/${PN}/config.yml /usr/share/${PN}/
|
|
|
|
systemd_dounit ${FILESDIR}/${PN}.service
|
|
}
|