www-apps/wikijs: fix unpacking, remove stray debug, add postinst notice
This commit is contained in:
parent
228e8ba15a
commit
89b7a5b177
1 changed files with 14 additions and 6 deletions
|
@ -19,19 +19,27 @@ RDEPEND="
|
||||||
>=dev-db/postgresql-9.5
|
>=dev-db/postgresql-9.5
|
||||||
"
|
"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
mkdir "${P}"
|
||||||
|
cd "${P}"
|
||||||
|
unpack "${A}"
|
||||||
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
insinto /usr/share/${PN}
|
insinto /usr/share/${PN}
|
||||||
doins -r * /usr/share/${PN}
|
doins -r assets data node_modules server package.json
|
||||||
echo
|
|
||||||
echo "### In WD:"
|
|
||||||
ls -la
|
|
||||||
echo
|
|
||||||
|
|
||||||
insinto /etc/${PN}
|
insinto /etc/${PN}
|
||||||
mv config.sample.yml config.yml.example
|
mv config.sample.yml config.yml.example
|
||||||
doins config.yml.example
|
doins config.yml.example
|
||||||
|
|
||||||
dosym /etc/${PN}/config.yml /usr/share/${PN}/
|
dosym /etc/${PN}/config.yml /usr/share/${PN}/config.yml
|
||||||
|
|
||||||
systemd_dounit ${FILESDIR}/${PN}.service
|
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."
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue