www-apps/mattermost: bump to 5.20.0
This commit is contained in:
parent
1e4a50eb8b
commit
cb21b9b24b
@ -19,6 +19,8 @@ DIST mattermost-5.18.2-webapp.tar.gz 21285722 BLAKE2B b9dfa870220180f04408591bed
|
|||||||
DIST mattermost-5.18.2.tar.gz 16589579 BLAKE2B 124f88643d3994bcce0fe302c4c9e6e00f5c54e194a06dff1eb9822438e6c2a73d19cf320faa667787a806f6db817445a05c4e0518bdfe2ef04f4ef5ffb77f33 SHA512 651044b03b3528605a1d80e0e23c6563aa0a7601a1b65ec88614f8b8d03e3a9929b080c55e6668a55282aa9180b38365dbb6c561604d888855133530d9f9b6fa
|
DIST mattermost-5.18.2.tar.gz 16589579 BLAKE2B 124f88643d3994bcce0fe302c4c9e6e00f5c54e194a06dff1eb9822438e6c2a73d19cf320faa667787a806f6db817445a05c4e0518bdfe2ef04f4ef5ffb77f33 SHA512 651044b03b3528605a1d80e0e23c6563aa0a7601a1b65ec88614f8b8d03e3a9929b080c55e6668a55282aa9180b38365dbb6c561604d888855133530d9f9b6fa
|
||||||
DIST mattermost-5.19.1-webapp.tar.gz 21289292 BLAKE2B 4c9a24eef2d273c2dc06da30697f397537304a891c135c9f1f255ea15007111cb774f5fd838661e7bcbe3e8dc301da9478afb6a6c8e5c3ff91edeb4d7e403edd SHA512 5c79b9cc108a26a6ae057064347ea5e4672bfcc39124ad38c97e7d6c8ca3a33a95b9aff2dfc0f567cc4f8fa698dfe82b834f808a9459cba02839642622d0d6e5
|
DIST mattermost-5.19.1-webapp.tar.gz 21289292 BLAKE2B 4c9a24eef2d273c2dc06da30697f397537304a891c135c9f1f255ea15007111cb774f5fd838661e7bcbe3e8dc301da9478afb6a6c8e5c3ff91edeb4d7e403edd SHA512 5c79b9cc108a26a6ae057064347ea5e4672bfcc39124ad38c97e7d6c8ca3a33a95b9aff2dfc0f567cc4f8fa698dfe82b834f808a9459cba02839642622d0d6e5
|
||||||
DIST mattermost-5.19.1.tar.gz 16589601 BLAKE2B c77d0837677f0ce11a2a9f9e68675145a1518bb912c31b0b749d399130baa988777e5ec9901b4b15b232914c5ba2265ccaab4094d05629c8a32973b8963c34c0 SHA512 6fa7b9b1a007b62242e3d6d4b92e346301a3bc8134cf97cb51329a71ca203a7acf0eb3c806af6d6516875be32e678dc46efc2a0d4e83cbcc8537e6f1a03f132f
|
DIST mattermost-5.19.1.tar.gz 16589601 BLAKE2B c77d0837677f0ce11a2a9f9e68675145a1518bb912c31b0b749d399130baa988777e5ec9901b4b15b232914c5ba2265ccaab4094d05629c8a32973b8963c34c0 SHA512 6fa7b9b1a007b62242e3d6d4b92e346301a3bc8134cf97cb51329a71ca203a7acf0eb3c806af6d6516875be32e678dc46efc2a0d4e83cbcc8537e6f1a03f132f
|
||||||
|
DIST mattermost-5.20.0-webapp.tar.gz 22885626 BLAKE2B 0472fc8a26444773cca789a920166367ce07c49147caafe621f79339b7af8fd37b063f7d9cee72e95c9697076e96cea11a946061dc14b6f28c5c15c4eec0f082 SHA512 55f1a090429105993e88971651c51fe2da5d83249fd3e15ce109731cc63f451685eac4e355e7f25fef61f164274264e867a7140776ef6262f534c3791b6a804f
|
||||||
|
DIST mattermost-5.20.0.tar.gz 16781383 BLAKE2B f0c9014cfe9e9151bd3b2ac48051363410d18dbea3b3a7ea4124e1eb872f453870d9ae573bf88f7b6c9c34f1d2d232577fb5ddc010a624b9816de0e35e391a59 SHA512 803d8569f5c4b5edc84be57f901e543985040106ab43a686bd9b0c2ac3dcc4727ce047557c4cc7d2d145ba591946af1eb83dc487ddb73a2e7096b176301dffc7
|
||||||
DIST mattermost-5.7.3-webapp.tar.gz 21030492 BLAKE2B 5e279bd32bf8f091cd7b32376f475d32132a2c42c9f36b5c0f81bb280e83678d7ce2e554385149ad06a8bf48979d90d0ce9055bdb732f19289636e86f609fcc8 SHA512 8393c7759fc1e570236fecba0eaefb3d3822d4b9268be90699f088d84719e1b35339ebeb93d4a1fd96ad750fdca551e149ce156517dd1c551889dd8c51c299f4
|
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.7.3.tar.gz 10294270 BLAKE2B ce24c07cb5681830ccb8d50583c67b3696aac02a8c4c8b99c1f69253994aeb6fe0c589e3450e5ad386cf145e10da954420b2c7ca856e47f9c385c939339d6fd3 SHA512 b820f63724d19f00be000ce9997a5e56900ceadbee4986028f2a4d78279cbfbc68b328cf96148fc246ba402ceb191b8f46d092b3cb4d9289ae262ba03d440540
|
||||||
DIST mattermost-5.8.2-webapp.tar.gz 21064090 BLAKE2B 1db786cc27522a85919ea9bfa3dfaa78d59a86d35218015239576395e263957a214af84d0300769c0f6019bb4a532972f27ab59e61faa98a82efd9f52cef5af2 SHA512 8683148797821f73d69c6184417af5d9bfe4bab57c4dc8fd9a588f6be2cd037b5bc5f09a4ae757688e3a89d2904d97eb9df996fc95a14b8ac03c37ca08e8c556
|
DIST mattermost-5.8.2-webapp.tar.gz 21064090 BLAKE2B 1db786cc27522a85919ea9bfa3dfaa78d59a86d35218015239576395e263957a214af84d0300769c0f6019bb4a532972f27ab59e61faa98a82efd9f52cef5af2 SHA512 8683148797821f73d69c6184417af5d9bfe4bab57c4dc8fd9a588f6be2cd037b5bc5f09a4ae757688e3a89d2904d97eb9df996fc95a14b8ac03c37ca08e8c556
|
||||||
@ -35,6 +37,7 @@ DIST mattermost-team-5.16.5-linux-amd64.tar.gz 152459667 BLAKE2B 8662cea204da0c3
|
|||||||
DIST mattermost-team-5.17.3-linux-amd64.tar.gz 152511203 BLAKE2B 6317f59b039149c4a2b2cc2bf6ebc9594bd488da219990e136c9459ae1b6c435482aba9e83ac9c0a70767c2239174dbd810ca967d40a7a7ffccb6570bc26de8f SHA512 9a09904a2ca985b3a08d7ee560845dea26ac5c7f698ac3f229d8a5dafb79f9ee3d2d7a36cce1683d5794569c764f5250c47a2144bf487bc2ef0ca1ece0ddda40
|
DIST mattermost-team-5.17.3-linux-amd64.tar.gz 152511203 BLAKE2B 6317f59b039149c4a2b2cc2bf6ebc9594bd488da219990e136c9459ae1b6c435482aba9e83ac9c0a70767c2239174dbd810ca967d40a7a7ffccb6570bc26de8f SHA512 9a09904a2ca985b3a08d7ee560845dea26ac5c7f698ac3f229d8a5dafb79f9ee3d2d7a36cce1683d5794569c764f5250c47a2144bf487bc2ef0ca1ece0ddda40
|
||||||
DIST mattermost-team-5.18.2-linux-amd64.tar.gz 152977829 BLAKE2B cef07d07ae9a4195aba27624e06b00b3751d3010f839a178020c21e00ffebac096b0f3e3221f6e9684db4880d861b507b58c73d2a43ae5c5bf6250b4fad10803 SHA512 9e461098620b4a6eee27ea1a656b1fd435bb541f3a11db9787bd3ad68b6b0f11513924954da81137440d4dc5665d0961e95b0803c61e9aeca6bc9577cd70baf5
|
DIST mattermost-team-5.18.2-linux-amd64.tar.gz 152977829 BLAKE2B cef07d07ae9a4195aba27624e06b00b3751d3010f839a178020c21e00ffebac096b0f3e3221f6e9684db4880d861b507b58c73d2a43ae5c5bf6250b4fad10803 SHA512 9e461098620b4a6eee27ea1a656b1fd435bb541f3a11db9787bd3ad68b6b0f11513924954da81137440d4dc5665d0961e95b0803c61e9aeca6bc9577cd70baf5
|
||||||
DIST mattermost-team-5.19.1-linux-amd64.tar.gz 152980299 BLAKE2B c2ba8ed2883663ddf945d7484dc9689dc317229e8824056b15788f18d1019aefa7a1038dc109b029a45ea06aa688be06c3ace7e2fda842ee583cf9486ce78250 SHA512 12984e1ee6f18a3a370c561a3c7c951594b77a2f2c457fb0c8b8a36e8576a5bc2d99e98bdaf57ae73c23b80cd69e8fe5365659cb74f07a0f0e18b405bb71a8d4
|
DIST mattermost-team-5.19.1-linux-amd64.tar.gz 152980299 BLAKE2B c2ba8ed2883663ddf945d7484dc9689dc317229e8824056b15788f18d1019aefa7a1038dc109b029a45ea06aa688be06c3ace7e2fda842ee583cf9486ce78250 SHA512 12984e1ee6f18a3a370c561a3c7c951594b77a2f2c457fb0c8b8a36e8576a5bc2d99e98bdaf57ae73c23b80cd69e8fe5365659cb74f07a0f0e18b405bb71a8d4
|
||||||
|
DIST mattermost-team-5.20.0-linux-amd64.tar.gz 162481309 BLAKE2B b97bedf829f85918305d36aa97fba2a6f205bc39bc1fa29e6a75d4022301d9049021eb457e2e24a0f4cde181db9f43fb70fa9a3c6d83e6b2f0e4a1766b6e4e06 SHA512 b55097db564357e268cd47436de5027d47187af455b0f259cf37f4f4def0271142f2be74f9a89817218018700b7d77c945180307d5185f7f9ef01afce2e9d96e
|
||||||
DIST mattermost-team-5.7.3-linux-amd64.tar.gz 100498232 BLAKE2B 3dceb5e5b0f46136bdd75d2f9cdc5d401d636d413e0ee4fa1b95be4be4eac5d592db3e406624eba997db878c5629633eeec0bf988f12b2550863a1e84db01a4e SHA512 2235b2cfafb9045f09c25303e1b549cda1c86bff2353fdb4bb8508a312594205ac03d439acf7c0256ab8011dd9e489b5b1123d0c481ea042dcd44b294cc27c8a
|
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.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
|
DIST mattermost-team-5.9.8-linux-amd64.tar.gz 103252676 BLAKE2B d4c49d1a9d5150417ca4be8ae875bdd115473e4dcae05768e74a27f3ee6d9d3e2167d281df21fc72cac0f2b5a654ca1340aab2fd3ca1e463a594745c4f5611de SHA512 b65d57e881e6447db788d5af67db7321867487a7fd2f41d8846284c4cdb9103e324026a7cdeb1e6faed0726bd7554ca36ee4311ed545f69b3926bc4ec9379941
|
||||||
@ -48,6 +51,7 @@ EBUILD mattermost-5.16.5.ebuild 3645 BLAKE2B c65ceec27a81969d6e69670df5bd728af48
|
|||||||
EBUILD mattermost-5.17.3.ebuild 3645 BLAKE2B c65ceec27a81969d6e69670df5bd728af48e650d638375abe796460c616d7a7654ada89102f0e996ecb100214296e937246656399f3d3f5833f734d182e403c6 SHA512 08ab48a7527c8d551f4844f0b043046e9bda8ad982869ffae64b7a90c08e911923d58b6d0d3fe07ebeff1de8f960a1c1d2e7db7f7fd64acc1dd3b3fbeea575e9
|
EBUILD mattermost-5.17.3.ebuild 3645 BLAKE2B c65ceec27a81969d6e69670df5bd728af48e650d638375abe796460c616d7a7654ada89102f0e996ecb100214296e937246656399f3d3f5833f734d182e403c6 SHA512 08ab48a7527c8d551f4844f0b043046e9bda8ad982869ffae64b7a90c08e911923d58b6d0d3fe07ebeff1de8f960a1c1d2e7db7f7fd64acc1dd3b3fbeea575e9
|
||||||
EBUILD mattermost-5.18.2.ebuild 3652 BLAKE2B c5f84e1b236af5452af4ffa06560c1d0e94cde43fc4915dab65fcafada10231cc61922e4dec67fd3f7ad3c09aee44f8bdcbab3284a58a20964bc41215c63ffba SHA512 9b60837ed47101b93afa5a6942f297500acdfe057f993315ebe652bee90949e58bc855b63a59fb58b89f37ab240721ecb1501c6cc8dc1e799f3dfe45ab1bfdc8
|
EBUILD mattermost-5.18.2.ebuild 3652 BLAKE2B c5f84e1b236af5452af4ffa06560c1d0e94cde43fc4915dab65fcafada10231cc61922e4dec67fd3f7ad3c09aee44f8bdcbab3284a58a20964bc41215c63ffba SHA512 9b60837ed47101b93afa5a6942f297500acdfe057f993315ebe652bee90949e58bc855b63a59fb58b89f37ab240721ecb1501c6cc8dc1e799f3dfe45ab1bfdc8
|
||||||
EBUILD mattermost-5.19.1.ebuild 3652 BLAKE2B c5f84e1b236af5452af4ffa06560c1d0e94cde43fc4915dab65fcafada10231cc61922e4dec67fd3f7ad3c09aee44f8bdcbab3284a58a20964bc41215c63ffba SHA512 9b60837ed47101b93afa5a6942f297500acdfe057f993315ebe652bee90949e58bc855b63a59fb58b89f37ab240721ecb1501c6cc8dc1e799f3dfe45ab1bfdc8
|
EBUILD mattermost-5.19.1.ebuild 3652 BLAKE2B c5f84e1b236af5452af4ffa06560c1d0e94cde43fc4915dab65fcafada10231cc61922e4dec67fd3f7ad3c09aee44f8bdcbab3284a58a20964bc41215c63ffba SHA512 9b60837ed47101b93afa5a6942f297500acdfe057f993315ebe652bee90949e58bc855b63a59fb58b89f37ab240721ecb1501c6cc8dc1e799f3dfe45ab1bfdc8
|
||||||
|
EBUILD mattermost-5.20.0.ebuild 3652 BLAKE2B c5f84e1b236af5452af4ffa06560c1d0e94cde43fc4915dab65fcafada10231cc61922e4dec67fd3f7ad3c09aee44f8bdcbab3284a58a20964bc41215c63ffba SHA512 9b60837ed47101b93afa5a6942f297500acdfe057f993315ebe652bee90949e58bc855b63a59fb58b89f37ab240721ecb1501c6cc8dc1e799f3dfe45ab1bfdc8
|
||||||
EBUILD mattermost-5.7.3.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.8.2.ebuild 3884 BLAKE2B a84f7de64f9dbc46b26885027bb141cc3d668c8743e95263dea50f2b4e7cdc48dd01b13e789d2930606ed7163f22347b55bdd8d4719d5004df5a1f52e6afd810 SHA512 b3feaa2c8ecae3044ce414ccabdf0887756fd31a07a1e130802a0fc7bd4a9142219b10b528b0d2def3381e6da80e4f63f06e12e33194bfaea475976b6b351662
|
||||||
EBUILD mattermost-5.9.8.ebuild 3884 BLAKE2B a84f7de64f9dbc46b26885027bb141cc3d668c8743e95263dea50f2b4e7cdc48dd01b13e789d2930606ed7163f22347b55bdd8d4719d5004df5a1f52e6afd810 SHA512 b3feaa2c8ecae3044ce414ccabdf0887756fd31a07a1e130802a0fc7bd4a9142219b10b528b0d2def3381e6da80e4f63f06e12e33194bfaea475976b6b351662
|
EBUILD mattermost-5.9.8.ebuild 3884 BLAKE2B a84f7de64f9dbc46b26885027bb141cc3d668c8743e95263dea50f2b4e7cdc48dd01b13e789d2930606ed7163f22347b55bdd8d4719d5004df5a1f52e6afd810 SHA512 b3feaa2c8ecae3044ce414ccabdf0887756fd31a07a1e130802a0fc7bd4a9142219b10b528b0d2def3381e6da80e4f63f06e12e33194bfaea475976b6b351662
|
||||||
|
113
www-apps/mattermost/mattermost-5.20.0.ebuild
Normal file
113
www-apps/mattermost/mattermost-5.20.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-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}"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user