add www-apps/wikijs and associated acct-*
This commit is contained in:
parent
e182433fd4
commit
228e8ba15a
5 changed files with 79 additions and 2 deletions
10
acct-group/wikijs/wikijs-0.ebuild
Normal file
10
acct-group/wikijs/wikijs-0.ebuild
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit acct-group
|
||||||
|
|
||||||
|
DESCRIPTION="A group for Wiki.js"
|
||||||
|
|
||||||
|
ACCT_GROUP_ID="-1"
|
14
acct-user/wikijs/wikijs-0.ebuild
Normal file
14
acct-user/wikijs/wikijs-0.ebuild
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit acct-user
|
||||||
|
|
||||||
|
DESCRIPTION="A user for Wiki.js"
|
||||||
|
|
||||||
|
ACCT_USER_GROUPS=( "wikijs" )
|
||||||
|
ACCT_USER_HOME="/var/lib/${PN}"
|
||||||
|
ACCT_USER_ID="-1"
|
||||||
|
|
||||||
|
acct-user_add_deps
|
|
@ -24,11 +24,11 @@ src_install() {
|
||||||
insinto /etc/${PN}
|
insinto /etc/${PN}
|
||||||
doins config.json.example
|
doins config.json.example
|
||||||
|
|
||||||
systemd_dounit fand.service
|
systemd_dounit ${PN}.service
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst() {
|
pkg_postinst() {
|
||||||
elog "Before enabling the service, create a configuration file:"
|
elog "Before enabling ${PN}.service, create a configuration file:"
|
||||||
elog "# cp /etc/${PN}/config.json.example /etc/${PN}/config.json"
|
elog "# cp /etc/${PN}/config.json.example /etc/${PN}/config.json"
|
||||||
elog "and edit its contents to match your hardware."
|
elog "and edit its contents to match your hardware."
|
||||||
}
|
}
|
||||||
|
|
16
www-apps/wikijs/files/wikijs.service
Normal file
16
www-apps/wikijs/files/wikijs.service
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Wiki.js
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/usr/bin/node server
|
||||||
|
User=wikijs
|
||||||
|
Group=wikijs
|
||||||
|
Environment=NODE_ENV=production
|
||||||
|
WorkingDirectory=/usr/share/wikijs
|
||||||
|
Restart=always
|
||||||
|
RestartSec=25
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
37
www-apps/wikijs/wikijs-2.2.51.ebuild
Normal file
37
www-apps/wikijs/wikijs-2.2.51.ebuild
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
# 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
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue