www-apps/mattermost: bump to 5.18.0
This commit is contained in:
parent
38139edd2d
commit
daecfcbd57
@ -15,6 +15,8 @@ DIST mattermost-5.16.3-webapp.tar.gz 21161095 BLAKE2B 7ba201754f77dbb6dca3a83223
|
||||
DIST mattermost-5.16.3.tar.gz 16450650 BLAKE2B a0b2bf57d0ddeb6a7b4bece073daaa33f11fbe20c098adafcf95010b26f91cc17e1e37fe9c0540af4b5deea41fc7aceb2bb6a65c2008af5c915d76ef59448f61 SHA512 3a1a3d39af28bb251cadd09ac360c68f493072e55438c5ac0b8b5c7bad66b5f1245ed4ef3adf8ea01ad8bbe5f56b31f3ca5c5eec4ab31ef75f18022e69d498ab
|
||||
DIST mattermost-5.17.1-webapp.tar.gz 21170274 BLAKE2B acab0bd3ee4bd596c8c9308d230e35c635cdf00a53b8f839f69851609aaea55f58cb788ce451545fe912f5fd03a11b9310a7da096e7bf14da3b1d861bbbfe18e SHA512 f764cf0f222156bf2ef3b2f6a195a302d8f63e51adda2d8a35c4859ef297b2e5b5800b4f5104889d4f3ffa6fa94178f0b80756919d831b46c96ba093fc673c49
|
||||
DIST mattermost-5.17.1.tar.gz 16454803 BLAKE2B 1616b881eb6a310572196d8182c6e3563519b4b13998a7161c46625e4441572c7bb3381759643e4e4de8465b98b0ab6f54a46b03ce71c1ce95db3137220ef320 SHA512 baa031ec4eb420178faec7cb2f34d21bbc551605a230319c3612add294de42f900a14c2523bf0d7f70b3391d6d664ddb0e1dfbe1878941c835d1a2879ab6e279
|
||||
DIST mattermost-5.18.0-webapp.tar.gz 21286604 BLAKE2B 0c1ba753c7fa78351553be720bac27f82a3c60371bb6328c51fad17e22576c5f26319b9f65fbeab010e14b4394261cfe2074ca7bbed83226795667eec87c4bfa SHA512 667df6943d4e870eba2f0e5826a8aab0e6f3ea79d1ce7b81ac31f7ccbcc21ace45a0f2b56b3d229079daf83d13ef28abb000b605ad1adfc091002a8939bd33ba
|
||||
DIST mattermost-5.18.0.tar.gz 16588029 BLAKE2B c28eca21e447d8ef8dd285dbef002f0352ea308b951e0ece60a99ad69755ff6e7a28ac1eedff6432e19789fbbc8586d3d03c762e2d8be0b43c68ac7da0d771ef SHA512 842c326dad16d2a625b372b4c8c8a39e036dd02b714b25b73be0b511eeba55f844f1f7784bcaec37a45a24fe870a00d9b87ba51891e544389483bfcae1bdd04c
|
||||
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
|
||||
@ -29,6 +31,7 @@ DIST mattermost-team-5.14.5-linux-amd64.tar.gz 152144968 BLAKE2B 93be5c02959dac1
|
||||
DIST mattermost-team-5.15.3-linux-amd64.tar.gz 152165822 BLAKE2B c2ffe9ca453784486a123151356891294042bac6eea0f4ef54b71f230b9dfe48cbe16183450b578ec0c83a5dcfe0dc924c6a69f6876c39d396a396399679c7fd SHA512 9bb27ce35d1058a9b649e29a03ae8cbad29d14ff56fc675062fbb04f33fbba4607c878a6d5da5cceb9e3772a081d29f9924d335ce8000f826f9e7afcb38e92de
|
||||
DIST mattermost-team-5.16.3-linux-amd64.tar.gz 152455364 BLAKE2B 459a1d39ba723b20ff877b1b2d7be95a8cf42017dfdddb3c9f3a00fb519416f45a3f0f1264bb425b76459c7a7e6a449cb460f597d542d578a7cb852c16cbdbcd SHA512 ae84d3e6acb2f40d7c9dc7d2499a893b351d63dcfc5a1cf3a9bdcf355f6f06f9ddc58a09a8e885682b28aa96477f4fdf7ccd5c74318858b692fcb375c3cea542
|
||||
DIST mattermost-team-5.17.1-linux-amd64.tar.gz 152513450 BLAKE2B 4e361dc455e2276a4bf18f6cd5158d9fb5efc8edb3f66d655a7853c752d6a8494088543db3e4ece8999fe4d6846c1e470e2c644f42dc58ddc8569f267398e6c8 SHA512 0a767e929d8a8ac07422550cd774127eeda7aad5668b23c57b19793c43ead368b51a18d9d07e09efbbb218e620bf65ba1ef3599926d77e402ef4b6cd71ef83e1
|
||||
DIST mattermost-team-5.18.0-linux-amd64.tar.gz 152978438 BLAKE2B 07e6e72ed9a3da6be425057d49acbb40fa11501f47b82e24f35c7bb7afaceafa3429969aa377ba6d74b58873b9855e82a055b184a84eb307273cdfddf11da564 SHA512 e5502a444cab3d16bde09a900dede62319228c22f4981cd0c15c7bd5d1c1a13f44276b0b0475eddca713e233fedf7b20a3890b62542bbd6bdba39350e01af23c
|
||||
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.6-linux-amd64.tar.gz 101873419 BLAKE2B 96841024729513b66fef5ef862e897f10f5922c1d76c8214aa80a426fd1b2d5658004dec8eb5140135629b16c578da0b37979f940dd46570702782e6a2957430 SHA512 654efa85178aab9d5c49b05f8cf35d139db9a5c7686cfee73def23f72d9fd0c3445e5c851b19b366e174a4a597405fa85691331ec3a35a962327dc129ca66fb9
|
||||
@ -40,6 +43,7 @@ EBUILD mattermost-5.14.5.ebuild 3645 BLAKE2B c65ceec27a81969d6e69670df5bd728af48
|
||||
EBUILD mattermost-5.15.3.ebuild 3645 BLAKE2B c65ceec27a81969d6e69670df5bd728af48e650d638375abe796460c616d7a7654ada89102f0e996ecb100214296e937246656399f3d3f5833f734d182e403c6 SHA512 08ab48a7527c8d551f4844f0b043046e9bda8ad982869ffae64b7a90c08e911923d58b6d0d3fe07ebeff1de8f960a1c1d2e7db7f7fd64acc1dd3b3fbeea575e9
|
||||
EBUILD mattermost-5.16.3.ebuild 3645 BLAKE2B c65ceec27a81969d6e69670df5bd728af48e650d638375abe796460c616d7a7654ada89102f0e996ecb100214296e937246656399f3d3f5833f734d182e403c6 SHA512 08ab48a7527c8d551f4844f0b043046e9bda8ad982869ffae64b7a90c08e911923d58b6d0d3fe07ebeff1de8f960a1c1d2e7db7f7fd64acc1dd3b3fbeea575e9
|
||||
EBUILD mattermost-5.17.1.ebuild 3645 BLAKE2B c65ceec27a81969d6e69670df5bd728af48e650d638375abe796460c616d7a7654ada89102f0e996ecb100214296e937246656399f3d3f5833f734d182e403c6 SHA512 08ab48a7527c8d551f4844f0b043046e9bda8ad982869ffae64b7a90c08e911923d58b6d0d3fe07ebeff1de8f960a1c1d2e7db7f7fd64acc1dd3b3fbeea575e9
|
||||
EBUILD mattermost-5.18.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.6.ebuild 3884 BLAKE2B a84f7de64f9dbc46b26885027bb141cc3d668c8743e95263dea50f2b4e7cdc48dd01b13e789d2930606ed7163f22347b55bdd8d4719d5004df5a1f52e6afd810 SHA512 b3feaa2c8ecae3044ce414ccabdf0887756fd31a07a1e130802a0fc7bd4a9142219b10b528b0d2def3381e6da80e4f63f06e12e33194bfaea475976b6b351662
|
||||
|
113
www-apps/mattermost/mattermost-5.18.0.ebuild
Normal file
113
www-apps/mattermost/mattermost-5.18.0.ebuild
Normal 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}"
|
||||
}
|
Loading…
Reference in New Issue
Block a user