www-apps/mattermost: bump to 5.16.0

This commit is contained in:
nemunaire 2019-10-17 10:05:36 +02:00
parent d9dc0ba917
commit db21c9c9ff
2 changed files with 117 additions and 0 deletions

View File

@ -11,6 +11,8 @@ DIST mattermost-5.14.4-webapp.tar.gz 20894342 BLAKE2B 228172103c89dd0632078661ce
DIST mattermost-5.14.4.tar.gz 16070985 BLAKE2B e3dd95f864cdcf6b3ebfc882208778278d3e9879ce01d31e06ad3a028cb68f21fc4e204db2e0e31e77d5a792e37a81aa621ea1c87a72a5ffbaba09345a275aa8 SHA512 1e425da8fd8c45f58c0e1c06200d3cd03e6e4f6e87153f5f740ac9a7251cd84224ac79f286894800479f2586e9f3d2f402d50e425b2c678b240284c74cab740d
DIST mattermost-5.15.1-webapp.tar.gz 20905510 BLAKE2B e1bcebb01f5775b0acbc4517ce092a5b7ed623d05161fbed7b796966e269572cc2ecd77b4541b92d35beb7255ac42882327f2ba2e43ab2f9ea3c7a4356aa3145 SHA512 e8cfad95f861368cf3611df16094e02a0f7c5c380efad8efec60de831b0cbe3ded85b8992cc6910d7fbdda0cac3d60718cc26d68fdd1dc4bdd2432846d070085
DIST mattermost-5.15.1.tar.gz 16075207 BLAKE2B 0831a6d3c3671114ebd162a072ff04e16862bf77a67be4ec9bd5c495afe508dee01bc7b3ab5376863705a1923a980c6334e73c33f104d30d3a749a5a9f312d66 SHA512 eedaf0f6a1ee23e6a208239a07d223e5d858407dccf834de76af78798ff39d9fd84f554d2fa092f00d960c2142b0aed1399694afc835354ba4e08f3f1f33e90c
DIST mattermost-5.16.0-webapp.tar.gz 21161612 BLAKE2B 84dc025c5ff35bed515d7a76f3461b42b3af2e86dc9b3d4f0c65f85cdb02c40161b5c5810ed3b40db83c58328511ea6cb10734a98c6584f2661bde48f0851d41 SHA512 869dde16ceae6cd1137c08e4a96f91615236e81ae73991afe1b19d79d521ca29469e41ed490cf225a32e4ab4adfdc075d2075be59668ec9a2dc1720f075ae5fb
DIST mattermost-5.16.0.tar.gz 16449472 BLAKE2B d9d4467d93031d3fee6b7929eae236564d07ef2c3284dae309925552377fe87f9cc884047403fa376d1dd13b90af2699f4f853fc62c30294e3f314ba9cd42c8c SHA512 a96adb1aa3c0b1ca75e3a9ffe3455558081d2e62745de791bd4c5ae594efe7cacf53190ab03052536177da7a928ebb1f5e4588b57a839bc72c97f653ac38e273
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
@ -23,6 +25,7 @@ DIST mattermost-team-5.12.6-linux-amd64.tar.gz 124442653 BLAKE2B ce2cc4a961e4ca4
DIST mattermost-team-5.13.3-linux-amd64.tar.gz 124695532 BLAKE2B e2233d06e91c86b60f106ff9b1ce05ee147cfefc29faf88204e95220451c73326152272ee42880c1b9a11354b12bb8f72f22836b649e6e4af04474bcb6c9cf74 SHA512 6c74a503350650f69fa66a06dabeb076ae1d694544b1a9261825cb846d6bb22d86db0a550be27cd7243f6a04b1a7eaa812d8995b779f01ead8d36bfa63292520
DIST mattermost-team-5.14.4-linux-amd64.tar.gz 152144930 BLAKE2B de958f8804fb4a3d2f3d6cced79be6e3b58de66c9f7969d5bd290185d7cc1ab1406f937b746e68f889ce59a57a0c98081321473657e7697eef70e479c0259ce8 SHA512 985e8a5e78a9b2da3a52980f5931485251554d45eb8e420feb0527bd4f97b6632911a8a2042b31f036d98550ffb93e317fff56f86bf5e6151bc91bbd120fcd37
DIST mattermost-team-5.15.1-linux-amd64.tar.gz 152169674 BLAKE2B afbc2e0ae7362d8e9df52181bfbeddc569ab5db8dada9a3e86209a6b9efd82be18a73b72479eeda061c25b872f673d24287ee6204077d1478394a491fc2a9c07 SHA512 f22fdb7905a45947ad6626f43c5af779e4677124b2cbd4f80ac27752cb0ce055399fbb2c7b611e26caede3fbf6dc0ebea2ef7b6e0fadb6f457cd5386458681f1
DIST mattermost-team-5.16.0-linux-amd64.tar.gz 152451974 BLAKE2B a1872d0809ba70d1291fb70ed7677650f03cb2b2175736ff36ca77aaa2d8f26c759ce7b7377c2978fa83676d67110e0b116cc98af695431043a7715520a1ccab SHA512 cbd5848b05a500fcb75a4094bcb2f09ee033b89301ed6b135b8698bda9a1151613eb36409f3593d1035b406db5b8b7268a92136a06b7006bd67245412dd5c2f5
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.5-linux-amd64.tar.gz 101875122 BLAKE2B 8370d153686bf493366d2b2ef197266ece1882813ee9fdee02841dfa9a42286f099a2b45fb626dc38b746d48861840fc6edaddef92aee32083d1a4fada0ca100 SHA512 9f597b859609b57c26c95abbd8f90b6843efd41c5ec9d92800dd54a1dba5b0b022995db9ffc916678ac7a23e99dae33ee0e15fb3def0f2c3eb2f45a40cabdd84
@ -32,6 +35,7 @@ EBUILD mattermost-5.12.6.ebuild 3829 BLAKE2B 916acbf4b0d8705c825908b55d2bd58291e
EBUILD mattermost-5.13.3.ebuild 3829 BLAKE2B 916acbf4b0d8705c825908b55d2bd58291ef458accbd61a8c11a01660e47147c55e49be2eb9104da13b9f62d00250ebff51472806bc4b1fb07e45dd0af0f3fe1 SHA512 0a69053d8071d0d8597bfd89d65fa0a01902772293ff4db16b929639613faeae0b06140b547e58641c3effd536b4c8fc85def4e60ba4dcbf27cbaff3274d0194
EBUILD mattermost-5.14.4.ebuild 3645 BLAKE2B c65ceec27a81969d6e69670df5bd728af48e650d638375abe796460c616d7a7654ada89102f0e996ecb100214296e937246656399f3d3f5833f734d182e403c6 SHA512 08ab48a7527c8d551f4844f0b043046e9bda8ad982869ffae64b7a90c08e911923d58b6d0d3fe07ebeff1de8f960a1c1d2e7db7f7fd64acc1dd3b3fbeea575e9
EBUILD mattermost-5.15.1.ebuild 3645 BLAKE2B c65ceec27a81969d6e69670df5bd728af48e650d638375abe796460c616d7a7654ada89102f0e996ecb100214296e937246656399f3d3f5833f734d182e403c6 SHA512 08ab48a7527c8d551f4844f0b043046e9bda8ad982869ffae64b7a90c08e911923d58b6d0d3fe07ebeff1de8f960a1c1d2e7db7f7fd64acc1dd3b3fbeea575e9
EBUILD mattermost-5.16.0.ebuild 3645 BLAKE2B c65ceec27a81969d6e69670df5bd728af48e650d638375abe796460c616d7a7654ada89102f0e996ecb100214296e937246656399f3d3f5833f734d182e403c6 SHA512 08ab48a7527c8d551f4844f0b043046e9bda8ad982869ffae64b7a90c08e911923d58b6d0d3fe07ebeff1de8f960a1c1d2e7db7f7fd64acc1dd3b3fbeea575e9
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.5.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
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}"
}