...
 
Commits (3)
AUX rocket-chat-conf.d 83 BLAKE2B 27729f417514f46ccd8e7b6e223f4bd8e2557e01d193b9cc95a6ae1573f0fab69e6d6b2de2d22c148b823c7f20337686b1b87d5e74a444f54af737194e8e20d5 SHA512 8fd21b3ee9c1c4300cd7febffd87265ba369849ee1f5a8d23cf19656d8c87a1974a2698a56ca7e121e040b2a31be08aefd5e8038863bdf94d41fc6bef40b644b
AUX rocket-chat-init.d 1117 BLAKE2B df8bc1e90017bd326d5b59613044a83eb553984870e87c491ab58abbe2f0d57da83d6f526c0ce42c7bbcb34db84eccaa781898e1ff110fddb6bd5cb5b449d33d SHA512 2a5e61bd0fceda54272694dae954995ce55dd510c0d79023eaa090a51ba099ddfcea863b4cd0386b9b210d7375965f6c6c27b72982ec8cdda8634c66886cba86
DIST rocket-chat-1.2.4.tar.gz 141072439 BLAKE2B cd2eb473901b03ff999a515d54f6eb42fc8cac45f930f25b70dc41d987418340d92a34424eb41c41ac8eee0183a7465223271279990f4fce6e471858e85b659b SHA512 992f52b78af60901d087997d228bc03a754f697b31f62f3ce60ee6649970da2cbfa97a138a508907bb05d880e42ff3feebd7b7ca1ea99ee8ead73225b12b0876
DIST rocket-chat-1.3.2.tar.gz 143000743 BLAKE2B 1839672626a7a78cf1d3fc404bc4fee2d5aec8d6b90a24790b1e139580ff9a3868e78d171071cd74dd7b4a922901408a8573e89f9808783c77d0dd77862a7118 SHA512 e8f721a299b8a345d26c371e5ffef1f99b18b64e40639a13ca9f65cd414d6a29e580aaebd319fd8af218794586570f6ab3381fdd81c0cab94c57527712a14d5c
DIST rocket-chat-2.0.0.tar.gz 144688598 BLAKE2B 43e31b4821c6ed8dee012df512ec3db8e653a06a55e4a5fef4489ca1b82522fed91cd161e93acd95fb0a6ccfd62fe94278686e2324e8044415ad29f1eb618e32 SHA512 442a6a48dd18dc3b28f5fc00e79195b4604bdc4353d3289372cca87f2b54af56df8326fd79a5eae0982dc20ce0626b9359d5d9a5f24e2490399fed5533febf90
EBUILD rocket-chat-1.2.4.ebuild 1800 BLAKE2B 15de442a5d5c2c7233e25d07038e88a910942753eda8fb017426ba549d9b08578c8686b3116ce1a274ddafcd95f87d5c4afdbde530b41baea9f1973a49412c7d SHA512 297324e319451ee151e98c15d3da3acfe1e45cd6b687f658872526fcf78e0164d306840ced74c0b9fa487bcad48c7379d67abfb59d5d8120c6fa94b620ac7635
EBUILD rocket-chat-1.3.2.ebuild 1800 BLAKE2B 15de442a5d5c2c7233e25d07038e88a910942753eda8fb017426ba549d9b08578c8686b3116ce1a274ddafcd95f87d5c4afdbde530b41baea9f1973a49412c7d SHA512 297324e319451ee151e98c15d3da3acfe1e45cd6b687f658872526fcf78e0164d306840ced74c0b9fa487bcad48c7379d67abfb59d5d8120c6fa94b620ac7635
EBUILD rocket-chat-2.0.0.ebuild 1800 BLAKE2B 15de442a5d5c2c7233e25d07038e88a910942753eda8fb017426ba549d9b08578c8686b3116ce1a274ddafcd95f87d5c4afdbde530b41baea9f1973a49412c7d SHA512 297324e319451ee151e98c15d3da3acfe1e45cd6b687f658872526fcf78e0164d306840ced74c0b9fa487bcad48c7379d67abfb59d5d8120c6fa94b620ac7635
DIST rocket-chat-2.1.1.tar.gz 141493243 BLAKE2B 682aa2a67121e714dacfea31084f154c5ec6b346d79bba74927131a87f5212f6cc7214c09cf9e60448da016e6a19854bbdc2d0649aea68f7d1e5447fafafad36 SHA512 9508b760e9aa1b5bcbf860d8372d3f93f06da999db2ef711120a9bb09ff4f618c5aa79e227856f301197435e80f2d3f1565606c349713f80849df12184c2834a
DIST rocket-chat-2.2.0.tar.gz 143870966 BLAKE2B 9b8f6735bb86257c0f847418711088ead66fa8596fdacd4241e4e4c628bd4b7c25d9c38eb9599f2336219d14b03d60c591ff4c0101802f712a2d0804387e3a6c SHA512 56adaa068f9a2cc4797cecbb13a52c3e3275a4db9a303f8b8abdab10660d7470ff5eb999a8b1343b0d044f00d7861451a02ef03cbc21f7866e8649a446b8eb98
EBUILD rocket-chat-2.0.0.ebuild 1804 BLAKE2B f046b082cf45d42cad9306f4406ac2a2129267adfb47f7f7ed8ff4dbc3e87d1b8f3d5cffceac143fd99aa59698bbb2171f59e3e584b390dab996c40e6e06e26d SHA512 0fe5a1004e045c562f2f05f3cdf79bb950d84721d861d10cc3babbe655ab647545572836577442ab06b76d87e7692d1b1e9c5789d8b1cc836df5656fcadecd93
EBUILD rocket-chat-2.1.1.ebuild 1804 BLAKE2B f046b082cf45d42cad9306f4406ac2a2129267adfb47f7f7ed8ff4dbc3e87d1b8f3d5cffceac143fd99aa59698bbb2171f59e3e584b390dab996c40e6e06e26d SHA512 0fe5a1004e045c562f2f05f3cdf79bb950d84721d861d10cc3babbe655ab647545572836577442ab06b76d87e7692d1b1e9c5789d8b1cc836df5656fcadecd93
EBUILD rocket-chat-2.2.0.ebuild 1804 BLAKE2B f046b082cf45d42cad9306f4406ac2a2129267adfb47f7f7ed8ff4dbc3e87d1b8f3d5cffceac143fd99aa59698bbb2171f59e3e584b390dab996c40e6e06e26d SHA512 0fe5a1004e045c562f2f05f3cdf79bb950d84721d861d10cc3babbe655ab647545572836577442ab06b76d87e7692d1b1e9c5789d8b1cc836df5656fcadecd93
......@@ -14,9 +14,9 @@ SLOT="0"
KEYWORDS="~amd64"
IUSE=""
RDEPEND="dev-db/mongodb
net-libs/nodejs
media-gfx/imagemagick[jpeg,png]"
RDEPEND=">=dev-db/mongodb-3.6
net-libs/nodejs
media-gfx/imagemagick[jpeg,png]"
DEPEND="${RDEPEND}"
RESTRICT="network-sandbox"
......
......@@ -14,9 +14,9 @@ SLOT="0"
KEYWORDS="~amd64"
IUSE=""
RDEPEND="dev-db/mongodb
net-libs/nodejs
media-gfx/imagemagick[jpeg,png]"
RDEPEND=">=dev-db/mongodb-3.6
net-libs/nodejs
media-gfx/imagemagick[jpeg,png]"
DEPEND="${RDEPEND}"
RESTRICT="network-sandbox"
......
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit user
DESCRIPTION="The ultimate open source web chat platform"
HOMEPAGE="https://rocket.chat/"
SRC_URI="https://cdn-download.rocket.chat/build/rocket.chat-${PV}.tgz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
RDEPEND=">=dev-db/mongodb-3.6
net-libs/nodejs
media-gfx/imagemagick[jpeg,png]"
DEPEND="${RDEPEND}"
RESTRICT="network-sandbox"
NODEJS_VERSION="8.12.0"
ROCKET_DEST="/usr/share/${PN}"
ROCKET_LOG="/var/log/${PN}"
ROCKET_USER="rocket"
ROCKET_GROUP="daemon"
pkg_setup() {
enewgroup ${ROCKET_GROUP}
enewuser ${ROCKET_USER} -1 -1 ${ROCKET_DEST} "${ROCKET_GROUP}"
}
src_unpack()
{
default
mv "$WORKDIR/"* "$WORKDIR/$P"
}
src_prepare()
{
default
npm install n || die "Error installing n"
N_PREFIX="${WORKDIR}/${P}/node"
elog "Installing node v${NODEJS_VERSION} in $N_PREFIX ..."
N_PREFIX=$N_PREFIX ./node_modules/n/bin/n -q ${NODEJS_VERSION} &>/dev/null || die "Error installing node v${NODEJS_VERSION}"
PATH=$N_PREFIX/n/versions/node/$NODEJS_VERSION/bin:$PATH
elog "Using $(which node) $(node --version) ..."
elog "Installing rocker-chat ..."
pushd programs/server &>/dev/null || die "Cannot find programs/server"
npm install || die "Error in npm install in programs/server"
popd
}
src_install()
{
mkdir -p "${D}${ROCKET_DEST}"
cp -a . "${D}${ROCKET_DEST}"
keepdir "${ROCKET_LOG}"
fowners "${ROCKET_USER}:${ROCKET_GROUP}" "${ROCKET_LOG}"
# This is to enable webhook integration with script support
keepdir "${ROCKET_DEST}/.babel-cache"
fowners "${ROCKET_USER}:${ROCKET_GROUP}" "${ROCKET_DEST}/.babel-cache"
newconfd "${FILESDIR}/${PN}-conf.d" "rocket-chat"
newinitd "${FILESDIR}/${PN}-init.d" "rocket-chat"
}