www-apps/mattermost: bump to 5.21.0
This commit is contained in:
parent
f4228e9f16
commit
561370e4fc
@ -21,6 +21,8 @@ DIST mattermost-5.19.1-webapp.tar.gz 21289292 BLAKE2B 4c9a24eef2d273c2dc06da3069
|
|||||||
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.2-webapp.tar.gz 22885037 BLAKE2B 445cd4bdbe1df20ed45c0ba908b5909823e53fa38402c342a67832c39c3612deb7324a5c44cff4be1f03af344cf2c28e7bcacec5ac4c9491997692de3ac7b6ca SHA512 a80b37b2c8d9e881ffdddf242e84fbf4b4bb25b5df511d15d79d5a06d989725c6bcf03e59e4ca3cae45440fa86adeecc9abcce61c95f836db12a0347db5d4078
|
DIST mattermost-5.20.2-webapp.tar.gz 22885037 BLAKE2B 445cd4bdbe1df20ed45c0ba908b5909823e53fa38402c342a67832c39c3612deb7324a5c44cff4be1f03af344cf2c28e7bcacec5ac4c9491997692de3ac7b6ca SHA512 a80b37b2c8d9e881ffdddf242e84fbf4b4bb25b5df511d15d79d5a06d989725c6bcf03e59e4ca3cae45440fa86adeecc9abcce61c95f836db12a0347db5d4078
|
||||||
DIST mattermost-5.20.2.tar.gz 16783228 BLAKE2B 7e6396941960e7d78ca62f18b9069ca80507763dd8ca4cafc492307c7b7abd00eeb9e1d4b36e94d278818520728b364ca1028695090507a6bba575436278438b SHA512 78f0461439fbfb29ea73275017b0a4390fd75fe190274c95cef5eb3cb089d01aaaa8f77c551488a04a6eb57384af8bf833dae58725d3862363981129ea5afa0c
|
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.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
|
||||||
@ -38,6 +40,7 @@ DIST mattermost-team-5.17.3-linux-amd64.tar.gz 152511203 BLAKE2B 6317f59b039149c
|
|||||||
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.2-linux-amd64.tar.gz 162474471 BLAKE2B bb15e61901bd2a714a2249d1d08c8f5dbf2c4566395e2aa31b87453ce642c020808f8858bffaaadaa9046b0afe8bd60973ec8bd7d7b1738008f03d744e2a92c7 SHA512 03cc4c2f1ae9f5ff9c62638fceb239dc5d8045456b3182d35590dee2e4837643c7459774eff9492c2a2214c22f4e7e8f7b439b8f3b2e2440832009884ec1cf77
|
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.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
|
||||||
@ -52,6 +55,7 @@ EBUILD mattermost-5.17.3.ebuild 3645 BLAKE2B c65ceec27a81969d6e69670df5bd728af48
|
|||||||
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.2.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.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.21.0.ebuild
Normal file
113
www-apps/mattermost/mattermost-5.21.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