www-apps/mattermost: bump to 5.22.0

This commit is contained in:
nemunaire 2020-04-16 17:55:06 +02:00
parent 05ffac4b57
commit 003c5f0a93
2 changed files with 117 additions and 0 deletions

View File

@ -23,6 +23,8 @@ DIST mattermost-5.20.2-webapp.tar.gz 22885037 BLAKE2B 445cd4bdbe1df20ed45c0ba908
DIST mattermost-5.20.2.tar.gz 16783228 BLAKE2B 7e6396941960e7d78ca62f18b9069ca80507763dd8ca4cafc492307c7b7abd00eeb9e1d4b36e94d278818520728b364ca1028695090507a6bba575436278438b SHA512 78f0461439fbfb29ea73275017b0a4390fd75fe190274c95cef5eb3cb089d01aaaa8f77c551488a04a6eb57384af8bf833dae58725d3862363981129ea5afa0c
DIST mattermost-5.21.0-webapp.tar.gz 22896015 BLAKE2B 755dbd08cdedc84eb3ef8824a8fd743428d508b6709cb8411688034dbb1349ce6a85c936c1eb00c90ae9aecacdd6ed3a6ced1b6847afac30e93e942deda5c147 SHA512 b5b2abf7578089a49758cbc6d4652c91032c12eea3f3ccf4f5a6c369509d52103b6484d638e7faad848ed6928913d328a0b0bec10c1cc9ad0d66a0f019a908de
DIST mattermost-5.21.0.tar.gz 16785271 BLAKE2B 589be4f9900b33d6c25faa124f6c64f229abf688de276018d969c4ae94548c0cd40308184a9d6636794a7f7ec6659b00b240cd275af4cc17db1df1b945ad6c6b SHA512 9e09a0ed7c5f9d12871d7009f7dd2b49eaf8ff2657cd9d04212a42d20b217f553326e739122e86ed0525713c6c1f70b118d5f9964c1f1e7f94956596466d186e
DIST mattermost-5.22.0-webapp.tar.gz 23153849 BLAKE2B 90535ad2e5d4c7685a6c843b8d8aa3dc60b68b502354cf3230a3abbdadb3ab7928f47234cf3359a8a3f1ba8c012965b0a75c23623db275d71b4383a05a4cbcda SHA512 e6d34439ffbee44d1f521c1558b30c3e8653904487597750dbd8c6e8247e188e4363d25c61dac53130b82c5eec1cd4c281ca828ef882708d73d243fc1f1cead7
DIST mattermost-5.22.0.tar.gz 17743879 BLAKE2B 329db9637c09f1349ac793516af7f7e9adcfea7cd6121739a6c33f9e1345ba293209bcd096c0a1220abd52e9724f7218335a7ce226b4cced7e10a8f8ec9cf7bc SHA512 f75edcc4c29ce689a84ef09c8e4c5db848c332270b830b4998f8b40efdc495c42dbb7145acc3f932990a7b63a2598e01a333bc525860d561c15457e5124d6d5f
DIST mattermost-5.7.3-webapp.tar.gz 21030492 BLAKE2B 5e279bd32bf8f091cd7b32376f475d32132a2c42c9f36b5c0f81bb280e83678d7ce2e554385149ad06a8bf48979d90d0ce9055bdb732f19289636e86f609fcc8 SHA512 8393c7759fc1e570236fecba0eaefb3d3822d4b9268be90699f088d84719e1b35339ebeb93d4a1fd96ad750fdca551e149ce156517dd1c551889dd8c51c299f4
DIST mattermost-5.7.3.tar.gz 10294270 BLAKE2B ce24c07cb5681830ccb8d50583c67b3696aac02a8c4c8b99c1f69253994aeb6fe0c589e3450e5ad386cf145e10da954420b2c7ca856e47f9c385c939339d6fd3 SHA512 b820f63724d19f00be000ce9997a5e56900ceadbee4986028f2a4d78279cbfbc68b328cf96148fc246ba402ceb191b8f46d092b3cb4d9289ae262ba03d440540
DIST mattermost-5.8.2-webapp.tar.gz 21064090 BLAKE2B 1db786cc27522a85919ea9bfa3dfaa78d59a86d35218015239576395e263957a214af84d0300769c0f6019bb4a532972f27ab59e61faa98a82efd9f52cef5af2 SHA512 8683148797821f73d69c6184417af5d9bfe4bab57c4dc8fd9a588f6be2cd037b5bc5f09a4ae757688e3a89d2904d97eb9df996fc95a14b8ac03c37ca08e8c556
@ -41,6 +43,7 @@ DIST mattermost-team-5.18.2-linux-amd64.tar.gz 152977829 BLAKE2B cef07d07ae9a419
DIST mattermost-team-5.19.1-linux-amd64.tar.gz 152980299 BLAKE2B c2ba8ed2883663ddf945d7484dc9689dc317229e8824056b15788f18d1019aefa7a1038dc109b029a45ea06aa688be06c3ace7e2fda842ee583cf9486ce78250 SHA512 12984e1ee6f18a3a370c561a3c7c951594b77a2f2c457fb0c8b8a36e8576a5bc2d99e98bdaf57ae73c23b80cd69e8fe5365659cb74f07a0f0e18b405bb71a8d4
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.22.0-linux-amd64.tar.gz 165377401 BLAKE2B 5bef1310bd34fbbd58fa96694b0b36fc38dcb2d18779d33a96d2cbb5493f69a146ab0bb1e66a99d059d73bb9bd565bda04c849597c9d0ad590e5e9128cb61bae SHA512 53aca15a1b7c4bf75c4f5a214fcc54c82b114cd4ab055d47897d04c057fb31840fe972c36eccda78d05b6daa0e213c6bf3bee921760c990ef772605982122884
DIST mattermost-team-5.7.3-linux-amd64.tar.gz 100498232 BLAKE2B 3dceb5e5b0f46136bdd75d2f9cdc5d401d636d413e0ee4fa1b95be4be4eac5d592db3e406624eba997db878c5629633eeec0bf988f12b2550863a1e84db01a4e SHA512 2235b2cfafb9045f09c25303e1b549cda1c86bff2353fdb4bb8508a312594205ac03d439acf7c0256ab8011dd9e489b5b1123d0c481ea042dcd44b294cc27c8a
DIST mattermost-team-5.8.2-linux-amd64.tar.gz 96603708 BLAKE2B 6995d51e08052d9e99f42b92f44e2d36bec2f498b7347994ffa71dd0e904536b56a137f8e76582da78ffa412c09c96947c29844d95777ec6074703ccc403142c SHA512 ec5aa8070cf128d4c167cc77b6b7802505cd5a63cc002a40eaebdfafa4faf9bc6c4b6dbee6a787ded58a45f19d4780b93144a1fa365076f1ed704b644ef1da03
DIST mattermost-team-5.9.8-linux-amd64.tar.gz 103252676 BLAKE2B d4c49d1a9d5150417ca4be8ae875bdd115473e4dcae05768e74a27f3ee6d9d3e2167d281df21fc72cac0f2b5a654ca1340aab2fd3ca1e463a594745c4f5611de SHA512 b65d57e881e6447db788d5af67db7321867487a7fd2f41d8846284c4cdb9103e324026a7cdeb1e6faed0726bd7554ca36ee4311ed545f69b3926bc4ec9379941
@ -56,6 +59,7 @@ EBUILD mattermost-5.18.2.ebuild 3652 BLAKE2B c5f84e1b236af5452af4ffa06560c1d0e94
EBUILD mattermost-5.19.1.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.22.0.ebuild 3652 BLAKE2B c5f84e1b236af5452af4ffa06560c1d0e94cde43fc4915dab65fcafada10231cc61922e4dec67fd3f7ad3c09aee44f8bdcbab3284a58a20964bc41215c63ffba SHA512 9b60837ed47101b93afa5a6942f297500acdfe057f993315ebe652bee90949e58bc855b63a59fb58b89f37ab240721ecb1501c6cc8dc1e799f3dfe45ab1bfdc8
EBUILD mattermost-5.7.3.ebuild 3884 BLAKE2B a84f7de64f9dbc46b26885027bb141cc3d668c8743e95263dea50f2b4e7cdc48dd01b13e789d2930606ed7163f22347b55bdd8d4719d5004df5a1f52e6afd810 SHA512 b3feaa2c8ecae3044ce414ccabdf0887756fd31a07a1e130802a0fc7bd4a9142219b10b528b0d2def3381e6da80e4f63f06e12e33194bfaea475976b6b351662
EBUILD mattermost-5.8.2.ebuild 3884 BLAKE2B a84f7de64f9dbc46b26885027bb141cc3d668c8743e95263dea50f2b4e7cdc48dd01b13e789d2930606ed7163f22347b55bdd8d4719d5004df5a1f52e6afd810 SHA512 b3feaa2c8ecae3044ce414ccabdf0887756fd31a07a1e130802a0fc7bd4a9142219b10b528b0d2def3381e6da80e4f63f06e12e33194bfaea475976b6b351662
EBUILD mattermost-5.9.8.ebuild 3884 BLAKE2B a84f7de64f9dbc46b26885027bb141cc3d668c8743e95263dea50f2b4e7cdc48dd01b13e789d2930606ed7163f22347b55bdd8d4719d5004df5a1f52e6afd810 SHA512 b3feaa2c8ecae3044ce414ccabdf0887756fd31a07a1e130802a0fc7bd4a9142219b10b528b0d2def3381e6da80e4f63f06e12e33194bfaea475976b6b351662

View File

@ -0,0 +1,113 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
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}/bin/" "${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 "${WORKDIR}/bin/${PN}"
newinitd "${FILESDIR}/${PN}.init" "${PN}"
}