www-apps/mattermost: bump to 5.12.0

This commit is contained in:
nemunaire 2019-06-15 13:27:06 +02:00
parent 2b3d5af960
commit aab5129b2c
2 changed files with 120 additions and 0 deletions

View File

@ -3,6 +3,8 @@ DIST mattermost-5.10.1-webapp.tar.gz 21210100 BLAKE2B 5b212e057bce5d34e3072cc482
DIST mattermost-5.10.1.tar.gz 16743881 BLAKE2B 2880330cf27deae253f3308a4d379c74eceb199145232f870dc5b026993c214e837631eaf0559c3a5eb813a6ed426177628e6ab58d8b6c6a4562bdee201c42c4 SHA512 722dc8566813ac7f2f1376f07f01b4144e16eeeafca65c883a3b4f62c2628aa78dad52bd0a571c65d9b9ca995db2fee1931290a1df0c0493ebd2553abb98ebc4
DIST mattermost-5.11.0-webapp.tar.gz 21213645 BLAKE2B bad50a9c477f42e796a15c928d745db2d5febc6686bbced9ae9bbe9a03e136c66633079dbb251274bedb6ed698c6338d4af4e1d0619d3f22a64fda84e3200130 SHA512 9b394d76a78299c35c1faea5fda8633c9ccc105ced21ee2fbc61721e5c1c3f240ffd799b020a099bcab053ee2298e7e9278ed1a1db992bc81f8d243cfc795cb1
DIST mattermost-5.11.0.tar.gz 16751524 BLAKE2B 5d395f3d4f301e968966d9c917705a9829efd1642a9eb5e804ad5d187189d40e000a81a7b85ccd233e605d7c5d6b15c93427e452156e5db73d54ef613577cbcd SHA512 4828b5c165aea11b72e3d77e2836ef143047a5399c267bf2c87318911961945ef299bd96f2f989fa05fa222197cea83a3aa9e4ca9fd1f6d0086b92f43876f33e
DIST mattermost-5.12.0-webapp.tar.gz 21295263 BLAKE2B cab3bf119a83fbb556b5a4da1c39a190414ffaa5a718b344289dced98551bf46c4b1a015da786f2e15ae5336e57b60d06fecc183db6f38db0aeb31eaac4e306b SHA512 eed102df35d8e825e352decf7606beb3e2d3d3437b1598216f7637c56f9c14c35e958609b34929c369628ee3c1fa0559d1153642fcb858983f50e91b70cea005
DIST mattermost-5.12.0.tar.gz 15998564 BLAKE2B a7f56dad81c15c9e67f89fdc61bd96090c060adbe74c11fba68e2fe90cd993bbac86e4bd3e621ec641e395a1874cb01282f950d2b594346659214f809a49e5ae SHA512 d5682e375744ef0f6c61bbcd89e880d9e7757c3aa15141e56eea180d820c3e2a961d291ec7a2ea3df9cf34934efaeaba550ea1b3caf14e69eaebf14dcacf2fea
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
@ -11,11 +13,13 @@ DIST mattermost-5.9.1-webapp.tar.gz 21059847 BLAKE2B 99da64774a7abcb13e04a329c97
DIST mattermost-5.9.1.tar.gz 16559368 BLAKE2B 5fc5b6631172614bc36d23498d080aca2699036638f0e8a38a372afd6cba186ee32f243ca1365738d013208ce143dcb14123316dac6cba6ac1cbcc37d5aa130f SHA512 9f91526b6ccbc84dafb887a50c258c5c8d98463554960ef2f8a0cf23fc0100f9ad8984568512f01e409208924a27a39ba9a38ebb6311c4c44dee595aaaa2d9c7
DIST mattermost-team-5.10.1-linux-amd64.tar.gz 99235128 BLAKE2B c8b12bd0f776c6017044760c8ee368be514441012df60bc304689ba459812f00796bb811c71f5634b2e273ab258cbe5de7c183f71d94a2cbf7e6aa026033787d SHA512 0e4e1ab72ca8be31d5876fd07376eab4635390c28636a496e5832186c42fef597c5737409ad360ccffe3ed465b8284c393224d59f39cb8d0d4d8a9e9e3d42951
DIST mattermost-team-5.11.0-linux-amd64.tar.gz 99270511 BLAKE2B d4303a8c428ea99da18cf4ef314e5b01a828fcf8f1ad4244c048b34ae7088730c5ef4399edbb941b857c8045647b9893aa17ca80789d2e006b37ddc1a9a89f9c SHA512 e38c1c9b16c99cebb816054b0cdb05172b442427e6a6b8bf4c1f91cd6b1dffdb361ffdad9794176342a4f2ca14686e54df939c2b09fc66194b9eb00984be71af
DIST mattermost-team-5.12.0-linux-amd64.tar.gz 124430276 BLAKE2B f2bd6be09608dcd5c55667b34e575cde4a948ff7fff34de813ab01885cf9fc22ec2e581168168be5eff3dc1ed57d952c83ac9793f89a1df926435fe5ebfe8196 SHA512 d1efccfeabf51b18175e4a4fc818aebf3640611a740dd83cd966c4333b1574437384221ddb5571bd924addd279af774a5ffc7a429a68a0604506e6ffe1ea996e
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.1-linux-amd64.tar.gz 96620177 BLAKE2B c95a1f916fc94dcae17368e2ba859367b8eec765f2282abadf8fa34e8f1fe850b08522d1e2ee82225a1d0649a4e69053c0aa07eb7c133054cb9ade32d9eff248 SHA512 b93905f983efa68442ae3ae584413f30e1e929177354d5d613e5804f9708a9d91ae6bc6a22c12c0bad2c95555a7e4899841904927ea10cea7d7b036a5fdc2514
EBUILD mattermost-5.10.1.ebuild 3884 BLAKE2B a84f7de64f9dbc46b26885027bb141cc3d668c8743e95263dea50f2b4e7cdc48dd01b13e789d2930606ed7163f22347b55bdd8d4719d5004df5a1f52e6afd810 SHA512 b3feaa2c8ecae3044ce414ccabdf0887756fd31a07a1e130802a0fc7bd4a9142219b10b528b0d2def3381e6da80e4f63f06e12e33194bfaea475976b6b351662
EBUILD mattermost-5.11.0.ebuild 3884 BLAKE2B a84f7de64f9dbc46b26885027bb141cc3d668c8743e95263dea50f2b4e7cdc48dd01b13e789d2930606ed7163f22347b55bdd8d4719d5004df5a1f52e6afd810 SHA512 b3feaa2c8ecae3044ce414ccabdf0887756fd31a07a1e130802a0fc7bd4a9142219b10b528b0d2def3381e6da80e4f63f06e12e33194bfaea475976b6b351662
EBUILD mattermost-5.12.0.ebuild 3884 BLAKE2B a84f7de64f9dbc46b26885027bb141cc3d668c8743e95263dea50f2b4e7cdc48dd01b13e789d2930606ed7163f22347b55bdd8d4719d5004df5a1f52e6afd810 SHA512 b3feaa2c8ecae3044ce414ccabdf0887756fd31a07a1e130802a0fc7bd4a9142219b10b528b0d2def3381e6da80e4f63f06e12e33194bfaea475976b6b351662
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.1.ebuild 3884 BLAKE2B a84f7de64f9dbc46b26885027bb141cc3d668c8743e95263dea50f2b4e7cdc48dd01b13e789d2930606ed7163f22347b55bdd8d4719d5004df5a1f52e6afd810 SHA512 b3feaa2c8ecae3044ce414ccabdf0887756fd31a07a1e130802a0fc7bd4a9142219b10b528b0d2def3381e6da80e4f63f06e12e33194bfaea475976b6b351662

View File

@ -0,0 +1,116 @@
# Copyright 1999-2018 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 Arch Linux (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}\)/" \
-e 's/-X (.*)(\$\(BUILD_HASH(_ENTERPRISE)?\))(.*)/-X '\''\1\2'\''\4/'
# The configuration isn't available at this time yet, modify the default.
sed -r -i "${S}/build/release.mk" \
-e 's/\$\(DIST_PATH\)\/config\/config.json/\$\(DIST_PATH\)\/config\/default.json/'
# 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}"
emake build-linux
use build-client && emake build-client && emake package
}
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/default.json" || die
newins "${S}/config/default.json" mattermost.json
dodoc NOTICE.txt README.md
dobin "${WORKDIR}/bin/${PN}"
newinitd "${FILESDIR}/${PN}.init" "${PN}"
}