remove www-apps/taskcafe
This commit is contained in:
parent
eda5889569
commit
1e84f1386a
5 changed files with 0 additions and 160 deletions
|
@ -1,10 +0,0 @@
|
||||||
# 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 Taskcafé"
|
|
||||||
|
|
||||||
ACCT_GROUP_ID="-1"
|
|
|
@ -1,14 +0,0 @@
|
||||||
# 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 Taskcafé"
|
|
||||||
|
|
||||||
ACCT_USER_GROUPS=( "${PN}" )
|
|
||||||
ACCT_USER_HOME="/var/lib/${PN}"
|
|
||||||
ACCT_USER_ID="-1"
|
|
||||||
|
|
||||||
acct-user_add_deps
|
|
|
@ -1,16 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=Taskcafé
|
|
||||||
After=network.target
|
|
||||||
ConditionPathExists=/etc/taskcafe/taskcafe.toml
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
ExecStart=/usr/bin/taskcafe --config /etc/taskcafe/taskcafe.toml web
|
|
||||||
User=taskcafe
|
|
||||||
Group=taskcafe
|
|
||||||
WorkingDirectory=/var/lib/taskcafe
|
|
||||||
Restart=always
|
|
||||||
RestartSec=25
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
|
@ -1,60 +0,0 @@
|
||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit systemd
|
|
||||||
|
|
||||||
DESCRIPTION="An open source project management tool with Kanban boards"
|
|
||||||
HOMEPAGE="https://github.com/JordanKnott/${PN}"
|
|
||||||
SRC_URI="https://github.com/JordanKnott/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="*"
|
|
||||||
IUSE="+acct"
|
|
||||||
|
|
||||||
RESTRICT="network-sandbox"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
acct? ( acct-user/taskcafe )
|
|
||||||
dev-lang/go
|
|
||||||
sys-apps/yarn
|
|
||||||
dev-db/postgresql
|
|
||||||
"
|
|
||||||
|
|
||||||
src_compile () {
|
|
||||||
ewarn "This is a preliminary ebuild. It downloads over 2000 npm and go packages during src_compile."
|
|
||||||
|
|
||||||
go run cmd/mage/main.go install
|
|
||||||
go run cmd/mage/main.go build
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin dist/${PN}
|
|
||||||
|
|
||||||
keepdir /var/lib/${PN}/uploads
|
|
||||||
chown -R ${PN}:${PN} "${D}/var/lib/${PN}/uploads"
|
|
||||||
|
|
||||||
insinto /etc/${PN}
|
|
||||||
doins conf/${PN}.example.toml
|
|
||||||
|
|
||||||
systemd_dounit ${FILESDIR}/${PN}.service
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "There are a few things to do before enabling the service:"
|
|
||||||
elog "- Create a PostgreSQL role and database for ${PN}"
|
|
||||||
elog "- Create a configuration file:"
|
|
||||||
elog " # cp /etc/${PN}/${PN}.example.toml /etc/${PN}/${PN}.toml"
|
|
||||||
elog " and edit its contents to match your needs. It has to be"
|
|
||||||
elog " owned by and readable only by ${PN}."
|
|
||||||
elog "- Run database migration (emerge --config ${PNV})"
|
|
||||||
elog ""
|
|
||||||
elog "Note that ${PN} is under heavy development. Backup your data often."
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_config() {
|
|
||||||
einfo "Running database migrations..."
|
|
||||||
/usr/bin/${PN} --config /etc/${PN}/${PN}.toml migrate
|
|
||||||
}
|
|
|
@ -1,60 +0,0 @@
|
||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit systemd git-r3
|
|
||||||
|
|
||||||
DESCRIPTION="An open source project management tool with Kanban boards"
|
|
||||||
HOMEPAGE="https://github.com/JordanKnott/${PN}"
|
|
||||||
EGIT_REPO_URI="https://github.com/JordanKnott/${PN}.git"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS=""
|
|
||||||
IUSE="+acct"
|
|
||||||
|
|
||||||
RESTRICT="network-sandbox"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
acct? ( acct-user/taskcafe )
|
|
||||||
dev-lang/go
|
|
||||||
sys-apps/yarn
|
|
||||||
dev-db/postgresql
|
|
||||||
"
|
|
||||||
|
|
||||||
src_compile () {
|
|
||||||
ewarn "This is a preliminary ebuild. It downloads over 2000 npm and go packages during src_compile."
|
|
||||||
|
|
||||||
go run cmd/mage/main.go install
|
|
||||||
go run cmd/mage/main.go build
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin dist/${PN}
|
|
||||||
|
|
||||||
keepdir /var/lib/${PN}/uploads
|
|
||||||
chown -R ${PN}:${PN} "${D}/var/lib/${PN}/uploads"
|
|
||||||
|
|
||||||
insinto /etc/${PN}
|
|
||||||
doins conf/${PN}.example.toml
|
|
||||||
|
|
||||||
systemd_dounit ${FILESDIR}/${PN}.service
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "There are a few things to do before enabling the service:"
|
|
||||||
elog "- Create a PostgreSQL role and database for ${PN}"
|
|
||||||
elog "- Create a configuration file:"
|
|
||||||
elog " # cp /etc/${PN}/${PN}.example.toml /etc/${PN}/${PN}.toml"
|
|
||||||
elog " and edit its contents to match your needs. It has to be"
|
|
||||||
elog " owned by and readable only by ${PN}."
|
|
||||||
elog "- Run database migration (emerge --config ${PNV})"
|
|
||||||
elog ""
|
|
||||||
elog "Note that ${PN} is under heavy development. Backup your data often."
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_config() {
|
|
||||||
einfo "Running database migrations..."
|
|
||||||
/usr/bin/${PN} --config /etc/${PN}/${PN}.toml migrate
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue