www-apps/mattermost: bump to 5.24.0

This commit is contained in:
nemunaire 2020-06-17 23:58:48 +02:00
parent 246f09d09a
commit 2019386470
2 changed files with 117 additions and 0 deletions

View File

@ -9,14 +9,18 @@ DIST mattermost-5.22.3-webapp.tar.gz 23154282 BLAKE2B 47f4c7c7e23cc481e9ab6c5b83
DIST mattermost-5.22.3.tar.gz 17748319 BLAKE2B 60878c3512a39a56d556ccdca633f8ccb4037c7253072cdec9fb16dcea7b4774a46930f8858dcaef8b294b8732269028aa3823440a32ce970003be047276c282 SHA512 89cad13639164bfebd5ab43740998918e9c74a7a1ad302173a691f2873bfafbeeddbdc9c5aa34f8cf1f1e355992852d8962d130d64830306728d713de41d8de3 DIST mattermost-5.22.3.tar.gz 17748319 BLAKE2B 60878c3512a39a56d556ccdca633f8ccb4037c7253072cdec9fb16dcea7b4774a46930f8858dcaef8b294b8732269028aa3823440a32ce970003be047276c282 SHA512 89cad13639164bfebd5ab43740998918e9c74a7a1ad302173a691f2873bfafbeeddbdc9c5aa34f8cf1f1e355992852d8962d130d64830306728d713de41d8de3
DIST mattermost-5.23.1-webapp.tar.gz 23155758 BLAKE2B 15f057f458144b77aac46c16a7e82f2deddef4e1c017847e2164c6c6ca04d442a8beb4f7108ae9c8b1504585a54fdb9ce0abcd2ddcb59eae7930421ddd726e4f SHA512 079e8e51371764d04517c02831d0d64c04eaa4866c77e56844d6be3ad4cb4ea3361d31067d3b9bddcb72919b00bc163541ec1bb6d185052f8bb25a24d90f884d DIST mattermost-5.23.1-webapp.tar.gz 23155758 BLAKE2B 15f057f458144b77aac46c16a7e82f2deddef4e1c017847e2164c6c6ca04d442a8beb4f7108ae9c8b1504585a54fdb9ce0abcd2ddcb59eae7930421ddd726e4f SHA512 079e8e51371764d04517c02831d0d64c04eaa4866c77e56844d6be3ad4cb4ea3361d31067d3b9bddcb72919b00bc163541ec1bb6d185052f8bb25a24d90f884d
DIST mattermost-5.23.1.tar.gz 17771996 BLAKE2B 5a374ad2bfb40e3791ef3e5c0ba23fee65779f501fe048561937999cbab1eeffa29821d0f58bfc3c7ba6ddfb8b5bd01d113a83403ad68331dab1c54fe039391b SHA512 4b892069930269ec82a8c9f13158e46d0ce04ef58328e98a15dab3a3c38c1689e5cc1554111c3db0755795b437947c31cb086468162c5d476add8524360041ef DIST mattermost-5.23.1.tar.gz 17771996 BLAKE2B 5a374ad2bfb40e3791ef3e5c0ba23fee65779f501fe048561937999cbab1eeffa29821d0f58bfc3c7ba6ddfb8b5bd01d113a83403ad68331dab1c54fe039391b SHA512 4b892069930269ec82a8c9f13158e46d0ce04ef58328e98a15dab3a3c38c1689e5cc1554111c3db0755795b437947c31cb086468162c5d476add8524360041ef
DIST mattermost-5.24.0-webapp.tar.gz 23381645 BLAKE2B acc6a9d7c5510d3437f8e537b0491da3b6627e954a6268d3c32d6b1450f5b8d44014284696e1323c982969a9962dca741698b17aa0c20cf54906ee898ecfdf3d SHA512 0954a9282fca743c7a67a231f58624901b682e670029e8779793af155caadfb7bdc651a13cb644229712ed91b1f6f687e6a967e64438dc52902509db8d51a2a1
DIST mattermost-5.24.0.tar.gz 18639233 BLAKE2B efe64f42d2a9cb64c0d1092e09e97e232f105b5f290fb902a28217bb6c3a054026b5156a9f0c62385f9a305f5e57cb5bde608cd14b7c069508155470d482d370 SHA512 c219b910b85a70c2327d62e82307ed9df27970165b7f1e4cdd241a2a6fa7fd9af9b051250d11a19c64454611adbe5c621c8e55cc2a950063dbb33abda20b576a
DIST mattermost-team-5.19.2-linux-amd64.tar.gz 152977593 BLAKE2B a081fcd4b790ccfa93092d38b56eb15d23026ea142474b0b802548f84e0c470e04798dad7d084d079e515567aabc34f4db839c1f677993751d989bc2c33a220a SHA512 d15b1aa5b21389038854f9a369105b2b7f48d3aa21d090990db7724321bf5f373e1700c0675771dce2fe045e9c365a2da3a65fe0a47e3c944dc9c12ea83809ef DIST mattermost-team-5.19.2-linux-amd64.tar.gz 152977593 BLAKE2B a081fcd4b790ccfa93092d38b56eb15d23026ea142474b0b802548f84e0c470e04798dad7d084d079e515567aabc34f4db839c1f677993751d989bc2c33a220a SHA512 d15b1aa5b21389038854f9a369105b2b7f48d3aa21d090990db7724321bf5f373e1700c0675771dce2fe045e9c365a2da3a65fe0a47e3c944dc9c12ea83809ef
DIST mattermost-team-5.20.2-linux-amd64.tar.gz 162474471 BLAKE2B bb15e61901bd2a714a2249d1d08c8f5dbf2c4566395e2aa31b87453ce642c020808f8858bffaaadaa9046b0afe8bd60973ec8bd7d7b1738008f03d744e2a92c7 SHA512 03cc4c2f1ae9f5ff9c62638fceb239dc5d8045456b3182d35590dee2e4837643c7459774eff9492c2a2214c22f4e7e8f7b439b8f3b2e2440832009884ec1cf77 DIST mattermost-team-5.20.2-linux-amd64.tar.gz 162474471 BLAKE2B bb15e61901bd2a714a2249d1d08c8f5dbf2c4566395e2aa31b87453ce642c020808f8858bffaaadaa9046b0afe8bd60973ec8bd7d7b1738008f03d744e2a92c7 SHA512 03cc4c2f1ae9f5ff9c62638fceb239dc5d8045456b3182d35590dee2e4837643c7459774eff9492c2a2214c22f4e7e8f7b439b8f3b2e2440832009884ec1cf77
DIST mattermost-team-5.21.0-linux-amd64.tar.gz 162489701 BLAKE2B a47c9f402c5c955a8e0cc6c3062e42c5287b9a2f35b458a5d519ad6986010eca5aa2038472f0dbfb0b6b4254a034dd9e4e4852d2d46e91f9d8a79448369447b3 SHA512 c3029794137873486439dcf3dbecd4ec3e32ee80e429ea6fc95cb396c987431365aba7a374f09830198fcf76856240fe2c24324618122be534b7774f12eb1521 DIST mattermost-team-5.21.0-linux-amd64.tar.gz 162489701 BLAKE2B a47c9f402c5c955a8e0cc6c3062e42c5287b9a2f35b458a5d519ad6986010eca5aa2038472f0dbfb0b6b4254a034dd9e4e4852d2d46e91f9d8a79448369447b3 SHA512 c3029794137873486439dcf3dbecd4ec3e32ee80e429ea6fc95cb396c987431365aba7a374f09830198fcf76856240fe2c24324618122be534b7774f12eb1521
DIST mattermost-team-5.22.3-linux-amd64.tar.gz 165408432 BLAKE2B 5e44daf3bf8973d07f1bffd5dd2fffabe35ada08bbd2167088c762b31a3f3f0699fed0c324f4179e55b1c815106b7d3cf2ba0c5a4c312178f89546113ec9703c SHA512 4018ffafd2f698be3407de9bd1d44b1b214d5699b8d8842e890c13b8277ba73a36a5bc65ec8b2ca82b2fce52eb9337220ceb04077429085b60641af68fd00dec DIST mattermost-team-5.22.3-linux-amd64.tar.gz 165408432 BLAKE2B 5e44daf3bf8973d07f1bffd5dd2fffabe35ada08bbd2167088c762b31a3f3f0699fed0c324f4179e55b1c815106b7d3cf2ba0c5a4c312178f89546113ec9703c SHA512 4018ffafd2f698be3407de9bd1d44b1b214d5699b8d8842e890c13b8277ba73a36a5bc65ec8b2ca82b2fce52eb9337220ceb04077429085b60641af68fd00dec
DIST mattermost-team-5.23.1-linux-amd64.tar.gz 165684247 BLAKE2B 2f29d9fcbb985d80bf574247b23de2e32ea98f31b3a31eb60cdbf9de560756ce14152fe89d2c042bb2938de74bc97df80f9f692dbe0d6d18a39bfb6114b039aa SHA512 522c550eac58122b78a85407c29999f240181ba0f407c33abd07efc37bac61ad89575b7a6f7459b24ab980ded1660519cfd017855d3db65499c4eb84b31d6f97 DIST mattermost-team-5.23.1-linux-amd64.tar.gz 165684247 BLAKE2B 2f29d9fcbb985d80bf574247b23de2e32ea98f31b3a31eb60cdbf9de560756ce14152fe89d2c042bb2938de74bc97df80f9f692dbe0d6d18a39bfb6114b039aa SHA512 522c550eac58122b78a85407c29999f240181ba0f407c33abd07efc37bac61ad89575b7a6f7459b24ab980ded1660519cfd017855d3db65499c4eb84b31d6f97
DIST mattermost-team-5.24.0-linux-amd64.tar.gz 171540391 BLAKE2B d2f0ae2effb47b248da5dea42866481bba7a3bdbc63d65a4616c2b61b7d6dd2df319d04902dafa56e8a2d0d8423581b9085652e6d1862290c569336e3f2a7eb5 SHA512 9d364f97bb08a229c7d763595136c8c21d00b421d141fe307dcfbf8cc65e18f3b0b533fba2e5f5abeb6b17504376a93a52ad7abcc62b937b39fda6b6c775d266
EBUILD mattermost-5.19.2.ebuild 3652 BLAKE2B c5f84e1b236af5452af4ffa06560c1d0e94cde43fc4915dab65fcafada10231cc61922e4dec67fd3f7ad3c09aee44f8bdcbab3284a58a20964bc41215c63ffba SHA512 9b60837ed47101b93afa5a6942f297500acdfe057f993315ebe652bee90949e58bc855b63a59fb58b89f37ab240721ecb1501c6cc8dc1e799f3dfe45ab1bfdc8 EBUILD mattermost-5.19.2.ebuild 3652 BLAKE2B c5f84e1b236af5452af4ffa06560c1d0e94cde43fc4915dab65fcafada10231cc61922e4dec67fd3f7ad3c09aee44f8bdcbab3284a58a20964bc41215c63ffba SHA512 9b60837ed47101b93afa5a6942f297500acdfe057f993315ebe652bee90949e58bc855b63a59fb58b89f37ab240721ecb1501c6cc8dc1e799f3dfe45ab1bfdc8
EBUILD mattermost-5.20.2.ebuild 3652 BLAKE2B c5f84e1b236af5452af4ffa06560c1d0e94cde43fc4915dab65fcafada10231cc61922e4dec67fd3f7ad3c09aee44f8bdcbab3284a58a20964bc41215c63ffba SHA512 9b60837ed47101b93afa5a6942f297500acdfe057f993315ebe652bee90949e58bc855b63a59fb58b89f37ab240721ecb1501c6cc8dc1e799f3dfe45ab1bfdc8 EBUILD mattermost-5.20.2.ebuild 3652 BLAKE2B c5f84e1b236af5452af4ffa06560c1d0e94cde43fc4915dab65fcafada10231cc61922e4dec67fd3f7ad3c09aee44f8bdcbab3284a58a20964bc41215c63ffba SHA512 9b60837ed47101b93afa5a6942f297500acdfe057f993315ebe652bee90949e58bc855b63a59fb58b89f37ab240721ecb1501c6cc8dc1e799f3dfe45ab1bfdc8
EBUILD mattermost-5.21.0.ebuild 3652 BLAKE2B c5f84e1b236af5452af4ffa06560c1d0e94cde43fc4915dab65fcafada10231cc61922e4dec67fd3f7ad3c09aee44f8bdcbab3284a58a20964bc41215c63ffba SHA512 9b60837ed47101b93afa5a6942f297500acdfe057f993315ebe652bee90949e58bc855b63a59fb58b89f37ab240721ecb1501c6cc8dc1e799f3dfe45ab1bfdc8 EBUILD mattermost-5.21.0.ebuild 3652 BLAKE2B c5f84e1b236af5452af4ffa06560c1d0e94cde43fc4915dab65fcafada10231cc61922e4dec67fd3f7ad3c09aee44f8bdcbab3284a58a20964bc41215c63ffba SHA512 9b60837ed47101b93afa5a6942f297500acdfe057f993315ebe652bee90949e58bc855b63a59fb58b89f37ab240721ecb1501c6cc8dc1e799f3dfe45ab1bfdc8
EBUILD mattermost-5.22.3.ebuild 3646 BLAKE2B f607208c29de96e7a1df58ddc968d622c1f9c5e029c66bd4a3a8713561af897a147dade43752e66a548a51270f775ac65b1600192147814f72e6d07307a06db9 SHA512 9ed1e66094939fd4c11d31c0c30aa0f063190aba82da6055fa38d6753ce5604bf7f280972c56fafe74291441c4dea6f3336a8a0ebbe3715e50923852b7693205 EBUILD mattermost-5.22.3.ebuild 3646 BLAKE2B f607208c29de96e7a1df58ddc968d622c1f9c5e029c66bd4a3a8713561af897a147dade43752e66a548a51270f775ac65b1600192147814f72e6d07307a06db9 SHA512 9ed1e66094939fd4c11d31c0c30aa0f063190aba82da6055fa38d6753ce5604bf7f280972c56fafe74291441c4dea6f3336a8a0ebbe3715e50923852b7693205
EBUILD mattermost-5.23.1.ebuild 3628 BLAKE2B 89dce25b3db7af3f363b5ca3d1c07407afdb0bf7ad2e610e0cef8eae053dcd22ae00cbdafac024284f053fe85ffd8375df00843b79e55f35c1e533867fafe0bd SHA512 4dea8995e0c08d95b8b0fa3b1875c85296e5bde693aef3b4c2f50e4a524f5323121306d31c2890551d80c9fefe04a3b40157e9e8edb9ccb6313f28d9098cc326 EBUILD mattermost-5.23.1.ebuild 3628 BLAKE2B 89dce25b3db7af3f363b5ca3d1c07407afdb0bf7ad2e610e0cef8eae053dcd22ae00cbdafac024284f053fe85ffd8375df00843b79e55f35c1e533867fafe0bd SHA512 4dea8995e0c08d95b8b0fa3b1875c85296e5bde693aef3b4c2f50e4a524f5323121306d31c2890551d80c9fefe04a3b40157e9e8edb9ccb6313f28d9098cc326
EBUILD mattermost-5.24.0.ebuild 3628 BLAKE2B 89dce25b3db7af3f363b5ca3d1c07407afdb0bf7ad2e610e0cef8eae053dcd22ae00cbdafac024284f053fe85ffd8375df00843b79e55f35c1e533867fafe0bd SHA512 4dea8995e0c08d95b8b0fa3b1875c85296e5bde693aef3b4c2f50e4a524f5323121306d31c2890551d80c9fefe04a3b40157e9e8edb9ccb6313f28d9098cc326
MISC metadata.xml 511 BLAKE2B 072d543a0ca6f8b747549d6802bc2089a2e6d59640a18ee7de6d98e40f4323d7710b5934d710fb93082f06f1ea871711bfccdb3b9dd493c5d16577c1782301a7 SHA512 16203ac2d505933f68efd3f4d137646f1593210b37f0e1cd05420b92f1c64b6235231559f1917075287c85c0a1944f8abd45d2c727502b904e5e229c8238c361 MISC metadata.xml 511 BLAKE2B 072d543a0ca6f8b747549d6802bc2089a2e6d59640a18ee7de6d98e40f4323d7710b5934d710fb93082f06f1ea871711bfccdb3b9dd493c5d16577c1782301a7 SHA512 16203ac2d505933f68efd3f4d137646f1593210b37f0e1cd05420b92f1c64b6235231559f1917075287c85c0a1944f8abd45d2c727502b904e5e229c8238c361

View File

@ -0,0 +1,113 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EGO_PN=github.com/mattermost/mattermost-server
KEYWORDS="~amd64 ~arm"
SRC_URI="https://github.com/mattermost/mattermost-server/archive/v${PV}.tar.gz -> ${P}.tar.gz
build-client? ( https://github.com/mattermost/mattermost-webapp/archive/v${PV}.tar.gz -> ${P}-webapp.tar.gz )
!build-client? ( https://releases.mattermost.com/${PV}/mattermost-team-${PV}-linux-amd64.tar.gz )"
DESCRIPTION="Open source Slack-alternative in Golang and React"
HOMEPAGE="https://mattermost.com"
LICENSE="Apache-2.0"
SLOT="0"
IUSE="+build-client"
DEPEND=">=dev-lang/go-1.13
build-client? ( sys-apps/yarn )"
RDEPEND=""
S="${WORKDIR}/src/github.com/mattermost/mattermost-server"
src_unpack() {
mkdir -p "${WORKDIR}/src/github.com/mattermost/"
default
mv "${WORKDIR}/mattermost-server-${PV}" "${WORKDIR}/src/github.com/mattermost/mattermost-server"
use build-client && mv "${WORKDIR}/mattermost-webapp-${PV}" "${WORKDIR}/src/github.com/mattermost/mattermost-webapp"
}
src_prepare() {
# We are not using docker, no need to stop it.
sed -r -i "${S}/Makefile" \
-e 's/^clean: stop-docker/clean:/'
# Enforce build hash to Gentoo (Enterprise hash is already set to
# none), instead of the official git hash value.
sed -r -i "${S}/Makefile" \
-e "s/^(\s*)BUILD_HASH(_ENTERPRISE)? =.*/\1BUILD_HASH\2 = Gentoo \(${CHOST}\)/"
# The Go programming language only supports 8 instruction sets, therefore
# we cannot rely on ${CARCH} and need to cast manually.
# src.: https://golang.org/doc/install/source#introduction
case "${CHOST}" in
i686*)
sed -r -i "${S}/build/release.mk" \
-e "s/amd64/386/"
;;
armv8*|aarch64*)
sed -r -i "${S}/build/release.mk" \
-e "s/amd64/arm64/"
;;
arm*)
sed -r -i "${S}/build/release.mk" \
-e "s/amd64/arm/"
;;
esac
# Remove platform specific lines from the Makefile from the line beginning
# with that statement to the end of file (we do not care of the additional
# file copy, nor the tar compression defined below the file).
sed '/# ----- PLATFORM SPECIFIC -----/,//d' -i "${S}/build/release.mk"
eapply_user
}
src_compile() {
export BUILD_NUMBER="${PVR}"
export LANG=C
export GOPATH="${WORKDIR}"
export LDFLAGS=""
emake build-linux
use build-client && emake build-client && emake package
emake config-reset
}
src_install() {
install -dm755 \
"${D}/usr/share/webapps" \
"${D}/var/log/${PN}" \
"${D}/usr/share/doc/${PN}" || die
if use build-client; then
cp -a "${S}/dist/${PN}" "${D}"/usr/share/webapps/ || die
else
install -dm755 "${D}/usr/share/webapps/${PN}" || die
cp -a "${WORKDIR}/${PN}/client" "${WORKDIR}/${PN}/fonts" "${WORKDIR}/${PN}/i18n" "${WORKDIR}/${PN}/templates" "${D}/usr/share/webapps/${PN}" || die
fi
rm -rf \
"${D}/usr/share/webapps/${PN}/logs" \
"${D}/usr/share/webapps/${PN}/plugins" \
"${D}/usr/share/webapps/${PN}/MIT-COMPILED-LICENSE.md" \
"${D}/usr/share/webapps/${PN}/NOTICE.txt" \
"${D}/usr/share/webapps/${PN}/README.md" || die
keepdir "/var/log/${PN}/"
keepdir "/var/lib/${PN}/plugins/"
ln -s "/var/log/${PN}/" "${D}/usr/share/webapps/${PN}/logs" || die
ln -s "/var/lib/${PN}/plugins/" "${D}/usr/share/webapps/${PN}/plugins" || die
insinto /etc/
sed -e 's@"Directory": ".*"@"Directory": "/var/lib/mattermost/"@g' \
-e 's@tcp(dockerhost:3306)@unix(/run/mysqld/mysqld.sock)@g' \
-i "${S}/config/config.json" || die
newins "${S}/config/config.json" mattermost.json
dodoc NOTICE.txt README.md
dobin "${S}/bin/${PN}"
newinitd "${FILESDIR}/${PN}.init" "${PN}"
}