deleted ebuild for gitlab-6.6, as that one won't compile due to missing modernizr gem
This commit is contained in:
		
							parent
							
								
									a32d7bbcee
								
							
						
					
					
						commit
						58ca942d9b
					
				
					 4 changed files with 3 additions and 368 deletions
				
			
		|  | @ -23,17 +23,15 @@ AUX gitlabhq-6.5.1-fix-ldap-dn-case.patch 649 SHA256 37b217c56ccbed79a13e7d65757 | ||||||
| AUX gitlabhq-6.5.1-fix-project-name-regex.patch 997 SHA256 a9e321bf7a986d86dbb87f1af3360ce71d60de5a9d6d3e23b12e469240ecd8bd SHA512 d0883c30b1d542e20908c8efa46cacab337fc70e902894a01707468b033be88ce6af865d78d5bc8830c74fbca55fc1c70286a4a95b9b6c82f06f0d0720e40b35 WHIRLPOOL 16f89f870d5b317015f08e415db323baac6f99ad789c7555f16c37ca918a9706c05b4ff527661d8399814fc7847895f5079a621d98c8c427da59deaaa2a3bd89 | AUX gitlabhq-6.5.1-fix-project-name-regex.patch 997 SHA256 a9e321bf7a986d86dbb87f1af3360ce71d60de5a9d6d3e23b12e469240ecd8bd SHA512 d0883c30b1d542e20908c8efa46cacab337fc70e902894a01707468b033be88ce6af865d78d5bc8830c74fbca55fc1c70286a4a95b9b6c82f06f0d0720e40b35 WHIRLPOOL 16f89f870d5b317015f08e415db323baac6f99ad789c7555f16c37ca918a9706c05b4ff527661d8399814fc7847895f5079a621d98c8c427da59deaaa2a3bd89 | ||||||
| AUX gitlabhq-6.5.1-ldap-custom-mapping.patch 3276 SHA256 d335fc980a891a7a24cbb96ec7a4109bb3fc3a89ebc8c797d787e69fff74e7d2 SHA512 7cb523db97986eb94d0feda7be0eb8f400b9df744f25a44a783925059ae97671400bebfbe75b6d803640e4eb828abea193dcde26a2e6d5f103dc9d0913772365 WHIRLPOOL 76d81fd7075bb6dd52b622c6f2147393dd5fcf8e42addb82e9431a019c445f5703a77f31db71a62e05561eb05be8195bf05da0be83cd20db57659a057f7b0481 | AUX gitlabhq-6.5.1-ldap-custom-mapping.patch 3276 SHA256 d335fc980a891a7a24cbb96ec7a4109bb3fc3a89ebc8c797d787e69fff74e7d2 SHA512 7cb523db97986eb94d0feda7be0eb8f400b9df744f25a44a783925059ae97671400bebfbe75b6d803640e4eb828abea193dcde26a2e6d5f103dc9d0913772365 WHIRLPOOL 76d81fd7075bb6dd52b622c6f2147393dd5fcf8e42addb82e9431a019c445f5703a77f31db71a62e05561eb05be8195bf05da0be83cd20db57659a057f7b0481 | ||||||
| AUX gitlabhq-6.6.5-email-custom-reply_to.patch 1617 SHA256 320405e34892d5fc3f1e6ccc9ed043623e540b0d2daa18184c01a038d3bb558c SHA512 5117743fd42dafa2ebf107b9c25ca0d5b79e02aa987cfc9380aef6270ab5417db69b2d59740fd59d4d828a128d1ae4cb26eef895387e89cabb3581c855ef9254 WHIRLPOOL 4634491c9611b97e0d2203b3656ef3ceb175b21c0cad0bb564ac728884cc983a39f5a68f84b9a387c60e36524e8c58efcc563f6590527e768b68b3218c84c762 | AUX gitlabhq-6.6.5-email-custom-reply_to.patch 1617 SHA256 320405e34892d5fc3f1e6ccc9ed043623e540b0d2daa18184c01a038d3bb558c SHA512 5117743fd42dafa2ebf107b9c25ca0d5b79e02aa987cfc9380aef6270ab5417db69b2d59740fd59d4d828a128d1ae4cb26eef895387e89cabb3581c855ef9254 WHIRLPOOL 4634491c9611b97e0d2203b3656ef3ceb175b21c0cad0bb564ac728884cc983a39f5a68f84b9a387c60e36524e8c58efcc563f6590527e768b68b3218c84c762 | ||||||
| AUX gitlabhq-6.6.5-fix-gemfile.patch 2161 SHA256 7f1f6fef287a00a0f794ad31a81cced87a5ac6a31e79e27be6530f92d66a2598 SHA512 24bb78ea36886764911af7825c0ade796dbd24ee99ee19e418d4478bc4d4dcbdb4ffcfd63b615a842a320234c4e6b0b851094abdd0c5be0a5cd80308a00d380a WHIRLPOOL 6345e2ec96c52f79545f21fb330e8517925c04f162dc2cbad959c1eb59fd65e89be4cc45d1510ef662e43a26541e840e02742adb9474569a44e80771df773d7f |  | ||||||
| AUX gitlabhq-6.6.5-ldap-custom-mapping.patch 3052 SHA256 64e47278393ba4442037bb684a44c1538e671683cfaa9dfcb9bf61e5265da03a SHA512 f1e9ad71e4b95e6cb4f56179d1a9f92b5a2b7c59a425f4c9620c3bb6cd68c9bd2ae4e443f8a29d84455b029d99ba248517b44b1b8e9ddeeca249a6e749bf095f WHIRLPOOL c2045af7b8b766a3e154a1a8fa83a469df4111b352973533f902c16abfeee161d1f4cf88861847f64dad36e39ca65a796598e9d75ddad5a8e9f160707af349a3 | AUX gitlabhq-6.6.5-ldap-custom-mapping.patch 3052 SHA256 64e47278393ba4442037bb684a44c1538e671683cfaa9dfcb9bf61e5265da03a SHA512 f1e9ad71e4b95e6cb4f56179d1a9f92b5a2b7c59a425f4c9620c3bb6cd68c9bd2ae4e443f8a29d84455b029d99ba248517b44b1b8e9ddeeca249a6e749bf095f WHIRLPOOL c2045af7b8b766a3e154a1a8fa83a469df4111b352973533f902c16abfeee161d1f4cf88861847f64dad36e39ca65a796598e9d75ddad5a8e9f160707af349a3 | ||||||
| AUX gitlabhq-6.7.5-email-custom-reply_to.patch 1628 SHA256 0a5e1043a453395cc552626072677b6ad6de843980d3f480f6b98469c2f7ccc2 SHA512 7fe754dcfb3e8fb15daad059b4582dcbefb61da2bd12fe73ec5eee4b77ac9a2116e25365fbb3503b76f6048ae707230333a5439a63b59f946e2da37a8cecf92e WHIRLPOOL fca02b390e5edee5a58538f620fc7f5ff7632dcfd3d2b31befc4dcd46338e2345db337ee888dc2b6d7d456bcb426d44989a8a01f4176ac05491712012bc98b23 | AUX gitlabhq-6.7.5-email-custom-reply_to.patch 1628 SHA256 0a5e1043a453395cc552626072677b6ad6de843980d3f480f6b98469c2f7ccc2 SHA512 7fe754dcfb3e8fb15daad059b4582dcbefb61da2bd12fe73ec5eee4b77ac9a2116e25365fbb3503b76f6048ae707230333a5439a63b59f946e2da37a8cecf92e WHIRLPOOL fca02b390e5edee5a58538f620fc7f5ff7632dcfd3d2b31befc4dcd46338e2345db337ee888dc2b6d7d456bcb426d44989a8a01f4176ac05491712012bc98b23 | ||||||
| AUX gitlabhq-6.7.5-fix-gemfile-lock.patch 830 SHA256 11fccb5c51e49e7994cfce5b9e478625642b8ad23ea301b3989e9e69cf29dff8 SHA512 8578f5651e10dda68c16a7e9065dd86eb5db6278b8a08342d93854a2a8b259782887d6afedf35d61def12190d10f588c4fb5f279b09a5c86ea0fa58f9d3a5df5 WHIRLPOOL 5ca8afa60cd3c86463103b3a5acea236d584ffc662fe07775620b9d656bb37b09dea95523b6edbfa02052aa5983cec70551eec7e213ff5fbac56256f9f1ad180 | AUX gitlabhq-6.7.5-fix-gemfile-lock.patch 830 SHA256 11fccb5c51e49e7994cfce5b9e478625642b8ad23ea301b3989e9e69cf29dff8 SHA512 8578f5651e10dda68c16a7e9065dd86eb5db6278b8a08342d93854a2a8b259782887d6afedf35d61def12190d10f588c4fb5f279b09a5c86ea0fa58f9d3a5df5 WHIRLPOOL 5ca8afa60cd3c86463103b3a5acea236d584ffc662fe07775620b9d656bb37b09dea95523b6edbfa02052aa5983cec70551eec7e213ff5fbac56256f9f1ad180 | ||||||
|  | AUX gitlabhq-6.7.5-fix-gemfile.patch 2161 SHA256 7f1f6fef287a00a0f794ad31a81cced87a5ac6a31e79e27be6530f92d66a2598 SHA512 24bb78ea36886764911af7825c0ade796dbd24ee99ee19e418d4478bc4d4dcbdb4ffcfd63b615a842a320234c4e6b0b851094abdd0c5be0a5cd80308a00d380a WHIRLPOOL 6345e2ec96c52f79545f21fb330e8517925c04f162dc2cbad959c1eb59fd65e89be4cc45d1510ef662e43a26541e840e02742adb9474569a44e80771df773d7f | ||||||
| AUX gitlabhq-6.7.5-fix-project-name-regex.patch 1148 SHA256 bb0e175e56412aaef647fb0a3cc31f0e1dfdc12983d4195ab9375b2ecd929c46 SHA512 7b9db9068edbf99c9226fecf4ac3154110481a7b69020ee05d1318ee6f4105d53c45ca14317f917825c9769d317a8815830638a371fd8f5d6af031b361bef65a WHIRLPOOL 0c333f523230ec49089017087dce328e79e646efeaec5c9520f541775d717c45cabf3173199405b55b836285d0fa9c27764f250eb7f19fe4f1909514caf879e9 | AUX gitlabhq-6.7.5-fix-project-name-regex.patch 1148 SHA256 bb0e175e56412aaef647fb0a3cc31f0e1dfdc12983d4195ab9375b2ecd929c46 SHA512 7b9db9068edbf99c9226fecf4ac3154110481a7b69020ee05d1318ee6f4105d53c45ca14317f917825c9769d317a8815830638a371fd8f5d6af031b361bef65a WHIRLPOOL 0c333f523230ec49089017087dce328e79e646efeaec5c9520f541775d717c45cabf3173199405b55b836285d0fa9c27764f250eb7f19fe4f1909514caf879e9 | ||||||
| AUX gitlabhq-6.7.5-ldap-custom-mapping.patch 2992 SHA256 0fa8d8225552b0a2305f2876399272ced64ae7c3c7af1fed9b59a4b74448d5b7 SHA512 d62c7560c4472faf2c08c5a6700f0dfe58e945f376c0bccef4593849c16d30c8adf3ce8b856fe69c944afbaf75b1d957ae411bba766d87b0fdbba8c8c8172d2d WHIRLPOOL 8e0e2165adb5d3a87ca254550d8072829c74e3bdb34e86bcbb47af3009bb0a2d21e24cda91e489148d20d543c4d8310267527233d57dcc4fe94770167f4fef11 | AUX gitlabhq-6.7.5-ldap-custom-mapping.patch 2992 SHA256 0fa8d8225552b0a2305f2876399272ced64ae7c3c7af1fed9b59a4b74448d5b7 SHA512 d62c7560c4472faf2c08c5a6700f0dfe58e945f376c0bccef4593849c16d30c8adf3ce8b856fe69c944afbaf75b1d957ae411bba766d87b0fdbba8c8c8172d2d WHIRLPOOL 8e0e2165adb5d3a87ca254550d8072829c74e3bdb34e86bcbb47af3009bb0a2d21e24cda91e489148d20d543c4d8310267527233d57dcc4fe94770167f4fef11 | ||||||
| AUX gitlabhq-6.8.2-fix-gemfile.patch 2073 SHA256 6cccaba8d4483e4e8390ec518e474e2137985d490163cfcc0cef090fc80e0277 SHA512 75c21c7c5103d13009427739d591a268b7d9d43add0a3d0c2f3188a054c0963a4b525c024664732ad6ff5429adddfde49d98b74285a0de21c351143692839b73 WHIRLPOOL 4ec488ae566c5781eff17cead6c83002ef4a5055c02f3bf07ed8955985a8e3b7fe61fd4b5b116e4cb74787fb4b3f9caa820a9c67b297c007eed7f0be2d461261 | AUX gitlabhq-6.8.2-fix-gemfile.patch 2073 SHA256 6cccaba8d4483e4e8390ec518e474e2137985d490163cfcc0cef090fc80e0277 SHA512 75c21c7c5103d13009427739d591a268b7d9d43add0a3d0c2f3188a054c0963a4b525c024664732ad6ff5429adddfde49d98b74285a0de21c351143692839b73 WHIRLPOOL 4ec488ae566c5781eff17cead6c83002ef4a5055c02f3bf07ed8955985a8e3b7fe61fd4b5b116e4cb74787fb4b3f9caa820a9c67b297c007eed7f0be2d461261 | ||||||
| AUX gitlabhq-6.8.2-ldap-custom-mapping.patch 2579 SHA256 82aaae2c64554e9c00dfb8f1d66884512f509752c74b03fe430d3ba7e7a5c18d SHA512 82e1900473b96d0067b477f76fae7445dc000a520bebe0f9cbdd7e02063b146005aa63594f508e3a592e89b04ac26b425b8a186bbd474b538c918d74c6abb9a7 WHIRLPOOL 953ddf4b70a9caf29afeaee50939c3bc3ec4a4f53cb484f50f151e7a8d6ab2d03303deb4c26c931fa836fa84b5935522630ffed7d266fcd9cb6982a6148e6882 | AUX gitlabhq-6.8.2-ldap-custom-mapping.patch 2579 SHA256 82aaae2c64554e9c00dfb8f1d66884512f509752c74b03fe430d3ba7e7a5c18d SHA512 82e1900473b96d0067b477f76fae7445dc000a520bebe0f9cbdd7e02063b146005aa63594f508e3a592e89b04ac26b425b8a186bbd474b538c918d74c6abb9a7 WHIRLPOOL 953ddf4b70a9caf29afeaee50939c3bc3ec4a4f53cb484f50f151e7a8d6ab2d03303deb4c26c931fa836fa84b5935522630ffed7d266fcd9cb6982a6148e6882 | ||||||
| DIST gitlabhq-6.6.5.tar.gz 10240388 SHA256 70c2c50ab903b7173ccbb32d2c7f3db9a89a4a005d5515ef9ed5d935193dca2e SHA512 38d2395eabb4607b40798de0c6e9aa7fb6ecfe482b6f7d1a5cc2350c1cf04d939ae2487834d159419d01c24e82b818920f7b1999df444cb473c99d9fc40244da WHIRLPOOL ce684cac1ca27ae51f25277cba1c62fa389150ccd83ae83d5d91a17cf4e183e8af7928431000924f0dcb03505045cad850a05e6b2ac4fa001a488e73a4b09971 |  | ||||||
| DIST gitlabhq-6.7.5.tar.gz 10229484 SHA256 547ed2807cccf08c11450a9df035dad8db66ab9f9d693db29e3aa1ee65edbae0 SHA512 a90c0cd3954bf20ece9e98626216a42afcb0cc07e0cb23874ab2065757805ac38a8dcf4e93d804a33caeecaf2c6e94d8566f5700cd4161ef9a0aaac089b9ded8 WHIRLPOOL 4d8f5ff3a1245c5e13fc3ff8f819160017dd4dba9f6a48c0f851272da5c97f45162d3e53f327002f1ecde7f31dd5f392bed8503b1b306d913bf63827777cdbcd | DIST gitlabhq-6.7.5.tar.gz 10229484 SHA256 547ed2807cccf08c11450a9df035dad8db66ab9f9d693db29e3aa1ee65edbae0 SHA512 a90c0cd3954bf20ece9e98626216a42afcb0cc07e0cb23874ab2065757805ac38a8dcf4e93d804a33caeecaf2c6e94d8566f5700cd4161ef9a0aaac089b9ded8 WHIRLPOOL 4d8f5ff3a1245c5e13fc3ff8f819160017dd4dba9f6a48c0f851272da5c97f45162d3e53f327002f1ecde7f31dd5f392bed8503b1b306d913bf63827777cdbcd | ||||||
| DIST gitlabhq-6.8.2.tar.gz 10558471 SHA256 db9400d5ffadd3564bbee6e388c90d7f4c8f88450e67213aad11df2d137534ec SHA512 0f57c6bb3b9e89a5bbf7ae4c774e54480518f185f2e50270a7dd921eb2a2322f3e6866ca70741582fad4f99b372ba025fbab15108c291d53ebf04cfaec2f9b75 WHIRLPOOL 73ebd0fb0faef7afd48398ec4e73c8f4175f3dc2a9450ae391b4d3a66b54e0d77f901f518738eb98cc267691559094d4ebecd4c0a7c18fa671c3a1aee4dfe4d2 | DIST gitlabhq-6.8.2.tar.gz 10558471 SHA256 db9400d5ffadd3564bbee6e388c90d7f4c8f88450e67213aad11df2d137534ec SHA512 0f57c6bb3b9e89a5bbf7ae4c774e54480518f185f2e50270a7dd921eb2a2322f3e6866ca70741582fad4f99b372ba025fbab15108c291d53ebf04cfaec2f9b75 WHIRLPOOL 73ebd0fb0faef7afd48398ec4e73c8f4175f3dc2a9450ae391b4d3a66b54e0d77f901f518738eb98cc267691559094d4ebecd4c0a7c18fa671c3a1aee4dfe4d2 | ||||||
| EBUILD gitlabhq-6.6.5.ebuild 10786 SHA256 7aba88de5bc37d19161828401d39385dcd96914b50f7504dad5068aa966b2a73 SHA512 7284a4b0aad4f2b2fc0373c4348c846e2a59a3227d4defbb1e1fc17a71fdf5f4a7aa7f5a58528110bec0325ec544fa8490ed1c9b7d359db5ea060df64895382d WHIRLPOOL 79b1d4c9fe08d150f58709642951ee8ae49313a660ceaeeb8af6b23b6a70730fbe517fe3ca1466d11d5f95e56f1d597d66517601ef40b1414b99e08168ba53ba | EBUILD gitlabhq-6.7.5.ebuild 10627 SHA256 960369017510f89e27dfb7d77c98aaa743fded4707cab19a152843fdc0065de7 SHA512 1d4d6471000e6399f843577ca3fbb656799046980b991e34f55daa085e4da3444700d61299935a25c2e8c9fb71e12a61f015ffd016154d71d1dcc88837bf8570 WHIRLPOOL 5c10c3d54ecae500468353cee18d05cdb08b83ee179fce9e3cb79da0611151e033516249c350cb41942346ca8340162ecf239e8a4b568099b6fff432e43f9900 | ||||||
| EBUILD gitlabhq-6.7.5.ebuild 10634 SHA256 c6053e727343f4d2e1e50543174cb151b2f61673aa457970fa269ec28e04a0cb SHA512 f48ac45465f6716932b083874eda53e5b16508fce6b84014eb88987dbf17ec0b9117d05605e1137dde3091cbb8da40f8586f5a9bfbc407f3bdaa1099eb6720c1 WHIRLPOOL e49c8ea63badbac228cf7449234bea97618a603c436edba18b90ee83de64af01219b5ac84d2c7d2996c4717077686f86951498171f02b29c4aa2e1c2a4508c07 |  | ||||||
| EBUILD gitlabhq-6.8.2.ebuild 10757 SHA256 21406fa35f286cf7dd4d7c407e4c589042858c7005e0b122239d3c47bc924711 SHA512 69b0ffeeeecdce24c25737e04f45ccd70fed03464e632dcb0e04dceb3de1c887ef1fc108e3022279250142c9a73ceb485e75d096f70ab08fd507d830d74c776d WHIRLPOOL 66e2f0defb19af17ed37f5b6d8face04c511a0ef01132e3c89044b8a6ec15ac7e53233645a1854245840f77696c9bf044acf3664fc50e6498400c3a38349cdf7 | EBUILD gitlabhq-6.8.2.ebuild 10757 SHA256 21406fa35f286cf7dd4d7c407e4c589042858c7005e0b122239d3c47bc924711 SHA512 69b0ffeeeecdce24c25737e04f45ccd70fed03464e632dcb0e04dceb3de1c887ef1fc108e3022279250142c9a73ceb485e75d096f70ab08fd507d830d74c776d WHIRLPOOL 66e2f0defb19af17ed37f5b6d8face04c511a0ef01132e3c89044b8a6ec15ac7e53233645a1854245840f77696c9bf044acf3664fc50e6498400c3a38349cdf7 | ||||||
|  |  | ||||||
|  | @ -1,363 +0,0 @@ | ||||||
| # Copyright 1999-2014 Gentoo Foundation |  | ||||||
| # Distributed under the terms of the GNU General Public License v2 |  | ||||||
| # $Header: $ |  | ||||||
| 
 |  | ||||||
| EAPI="5" |  | ||||||
| 
 |  | ||||||
| # Maintainer notes: |  | ||||||
| # - This ebuild uses Bundler to download and install all gems in deployment mode |  | ||||||
| #   (i.e. into isolated directory inside application). That's not Gentoo way how |  | ||||||
| #   it should be done, but GitLab has too many dependencies that it will be too |  | ||||||
| #   difficult to maintain them via ebuilds. |  | ||||||
| # |  | ||||||
| 
 |  | ||||||
| USE_RUBY="ruby19 ruby20" |  | ||||||
| PYTHON_DEPEND="2:2.7" |  | ||||||
| 
 |  | ||||||
| inherit eutils python ruby-ng user |  | ||||||
| 
 |  | ||||||
| DESCRIPTION="GitLab is a free project and repository management application" |  | ||||||
| HOMEPAGE="https://github.com/gitlabhq/gitlabhq" |  | ||||||
| SRC_URI="https://github.com/gitlabhq/gitlabhq/archive/v${PV}.tar.gz -> ${P}.tar.gz" |  | ||||||
| 
 |  | ||||||
| RESTRICT="mirror" |  | ||||||
| 
 |  | ||||||
| LICENSE="MIT" |  | ||||||
| SLOT="6" |  | ||||||
| KEYWORDS="amd64 x86" |  | ||||||
| IUSE="mysql +postgres +unicorn" |  | ||||||
| 
 |  | ||||||
| ## Gems dependencies: |  | ||||||
| #   charlock_holmes		dev-libs/icu |  | ||||||
| #	grape, capybara		dev-libs/libxml2, dev-libs/libxslt |  | ||||||
| #   json				dev-util/ragel |  | ||||||
| #   pygments.rb			python 2.7+ |  | ||||||
| #   execjs				net-libs/nodejs, or any other JS runtime |  | ||||||
| #   pg					dev-db/postgresql-base |  | ||||||
| #   mysql				virtual/mysql |  | ||||||
| # |  | ||||||
| GEMS_DEPEND=" |  | ||||||
| 	dev-libs/icu |  | ||||||
| 	dev-libs/libxml2 |  | ||||||
| 	dev-libs/libxslt |  | ||||||
| 	dev-util/ragel |  | ||||||
| 	net-libs/nodejs |  | ||||||
| 	postgres? ( dev-db/postgresql-base ) |  | ||||||
| 	mysql? ( virtual/mysql )" |  | ||||||
| DEPEND="${GEMS_DEPEND} |  | ||||||
| 	>=dev-vcs/gitlab-shell-1.8 |  | ||||||
| 	dev-vcs/git" |  | ||||||
| RDEPEND="${DEPEND} |  | ||||||
| 	dev-db/redis |  | ||||||
| 	virtual/mta" |  | ||||||
| ruby_add_bdepend " |  | ||||||
| 	virtual/rubygems |  | ||||||
| 	>=dev-ruby/bundler-1.0" |  | ||||||
| 
 |  | ||||||
| # |  | ||||||
| # fix-gemfile: |  | ||||||
| #     Remove therubyracer that doesn't compile well on Gentoo (we're using |  | ||||||
| #     nodejs instead that is faster and better). Also replace broken |  | ||||||
| #     charlock_holmes version with fixed one. |  | ||||||
| # |  | ||||||
| # fix-project-name-regex: |  | ||||||
| #     Allow project name to contain non-ASCII characters. |  | ||||||
| # |  | ||||||
| # fix-sendmail-config: |  | ||||||
| #     Fix default settings to work with ssmtp that doesn't know '-t' argument. |  | ||||||
| # |  | ||||||
| RUBY_PATCHES=( |  | ||||||
| 	"${P}-fix-gemfile.patch" |  | ||||||
| 	"${PN}-6.5.1-fix-project-name-regex.patch" |  | ||||||
| 	"${PN}-6.0.2-fix-sendmail-config.patch" |  | ||||||
| 	"${PN}-6.5.1-fix-ldap-dn-case.patch" |  | ||||||
| 	"${P}-ldap-custom-mapping.patch" |  | ||||||
| 	"${P}-email-custom-reply_to.patch" |  | ||||||
| ) |  | ||||||
| 
 |  | ||||||
| MY_NAME="gitlab" |  | ||||||
| MY_USER="git"    # should be same as in gitlab-shell |  | ||||||
| 
 |  | ||||||
| DEST_DIR="/opt/${MY_NAME}-${SLOT}" |  | ||||||
| CONF_DIR="/etc/${MY_NAME}-${SLOT}" |  | ||||||
| LOGS_DIR="/var/log/${MY_NAME}" |  | ||||||
| TEMP_DIR="/var/tmp/${MY_NAME}" |  | ||||||
| 
 |  | ||||||
| # When updating ebuild to newer version, check list of the queues in |  | ||||||
| # https://github.com/gitlabhq/gitlabhq/blob/v${PV}/script/background_jobs |  | ||||||
| SIDEKIQ_QUEUES="post_receive,mailer,system_hook,project_web_hook,gitlab_shell,common,default" |  | ||||||
| 
 |  | ||||||
| all_ruby_prepare() { |  | ||||||
| 
 |  | ||||||
| 	# fix paths |  | ||||||
| 	local satellites_path="${TEMP_DIR}/repo_satellites" |  | ||||||
| 	local repos_path=/var/lib/git/repositories |  | ||||||
| 	local shell_path=/usr/share/gitlab-shell |  | ||||||
| 	sed -i -E \ |  | ||||||
| 		-e "/satellites:$/,/\w:$/   s|(\s*path:\s).*|\1${satellites_path}/|" \ |  | ||||||
| 		-e "/gitlab_shell:$/,/\w:$/ s|(\s*path:\s).*|\1${shell_path}/|" \ |  | ||||||
| 		-e "/gitlab_shell:$/,/\w:$/ s|(\s*repos_path:\s).*|\1${repos_path}/|" \ |  | ||||||
| 		-e "/gitlab_shell:$/,/\w:$/ s|(\s*hooks_path:\s).*|\1${shell_path}/hooks/|" \ |  | ||||||
| 		config/gitlab.yml.example || die "failed to filter gitlab.yml.example" |  | ||||||
| 	 |  | ||||||
| 	local run_path=/run/${MY_NAME} |  | ||||||
| 	sed -i -E \ |  | ||||||
| 		-e "s|/home/git/gitlab/tmp/(pids\|sockets)|${run_path}|" \ |  | ||||||
| 		-e "s|/home/git/gitlab/log|${LOGS_DIR}|" \ |  | ||||||
| 		-e "s|/home/git/gitlab|${DEST_DIR}|" \ |  | ||||||
| 		config/unicorn.rb.example || die "failed to filter unicorn.rb.example" |  | ||||||
| 	 |  | ||||||
| 	sed -i \ |  | ||||||
| 		-e "s|/home/git/gitlab/tmp/sockets|${run_path}|" \ |  | ||||||
| 		lib/support/nginx/gitlab || die "failed to filter nginx/gitlab" |  | ||||||
| 	 |  | ||||||
| 	# modify default database settings for PostgreSQL |  | ||||||
| 	sed -i -E \ |  | ||||||
| 		-e 's|(username:).*|\1 gitlab|' \ |  | ||||||
| 		-e 's|(password:).*|\1 gitlab|' \ |  | ||||||
| 		-e 's|(socket:).*|/run/postgresql/.s.PGSQL.5432|' \ |  | ||||||
| 		config/database.yml.postgresql \ |  | ||||||
| 		|| die "failed to filter database.yml.postgresql" |  | ||||||
| 
 |  | ||||||
| 	# rename config files |  | ||||||
| 	mv config/gitlab.yml.example config/gitlab.yml |  | ||||||
| 	mv config/unicorn.rb.example config/unicorn.rb |  | ||||||
| 
 |  | ||||||
| 	local dbconf=config/database.yml |  | ||||||
| 	if use postgres && ! use mysql; then |  | ||||||
| 		mv ${dbconf}.postgresql ${dbconf} |  | ||||||
| 		rm ${dbconf}.mysql |  | ||||||
| 	elif use mysql && ! use postgres; then |  | ||||||
| 		mv ${dbconf}.mysql ${dbconf} |  | ||||||
| 		rm ${dbconf}.postgresql |  | ||||||
| 	fi |  | ||||||
| 	 |  | ||||||
| 	# remove zzet's stupid migration which expetcs that users are so foolish |  | ||||||
| 	# to run GitLab with PostgreSQL's superuser... |  | ||||||
| 	rm db/migrate/20121009205010_postgres_create_integer_cast.rb |  | ||||||
| 
 |  | ||||||
| 	# remove useless files |  | ||||||
| 	rm -r lib/support/{deploy,init.d} |  | ||||||
| 	rm -r script/{background_jobs,web} |  | ||||||
| 	use unicorn || rm config/unicorn.rb |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| all_ruby_install() { |  | ||||||
| 	local dest=${DEST_DIR} |  | ||||||
| 	local conf=${CONF_DIR} |  | ||||||
| 	local logs=${LOGS_DIR} |  | ||||||
| 	local temp=${TEMP_DIR} |  | ||||||
| 
 |  | ||||||
| 	# prepare directories |  | ||||||
| 	diropts -m750 |  | ||||||
| 	dodir ${logs} ${temp} ${temp}/repo_satellites |  | ||||||
| 
 |  | ||||||
| 	diropts -m755 |  | ||||||
| 	dodir ${conf} ${dest}/public/uploads |  | ||||||
| 
 |  | ||||||
| 	dosym ${temp} ${dest}/tmp |  | ||||||
| 	dosym ${logs} ${dest}/log |  | ||||||
| 
 |  | ||||||
| 	# install configs |  | ||||||
| 	insinto ${conf} |  | ||||||
| 	doins -r config/* |  | ||||||
| 	dosym ${conf} ${dest}/config |  | ||||||
| 
 |  | ||||||
| 	echo 'export RAILS_ENV=production' > "${D}/${dest}/.profile" |  | ||||||
| 
 |  | ||||||
| 	# remove needless dirs |  | ||||||
| 	rm -Rf config tmp log |  | ||||||
| 
 |  | ||||||
| 	# install the rest files |  | ||||||
| 	# using cp 'cause doins is slow |  | ||||||
| 	cp -Rl * "${D}/${dest}"/ |  | ||||||
| 
 |  | ||||||
| 	# install logrotate config |  | ||||||
| 	dodir /etc/logrotate.d |  | ||||||
| 	cat > "${D}/etc/logrotate.d/${MY_NAME}" <<-EOF |  | ||||||
| 		${logs}/*.log { |  | ||||||
| 		    missingok |  | ||||||
| 		    delaycompress |  | ||||||
| 		    compress |  | ||||||
| 		    copytruncate |  | ||||||
| 		} |  | ||||||
| 	EOF |  | ||||||
| 
 |  | ||||||
| 	## Install gems via bundler ## |  | ||||||
| 
 |  | ||||||
| 	cd "${D}/${dest}" |  | ||||||
| 
 |  | ||||||
| 	local without="development test aws" |  | ||||||
| 	local flag; for flag in mysql postgres unicorn; do |  | ||||||
| 		without+="$(use $flag || echo ' '$flag)" |  | ||||||
| 	done |  | ||||||
| 	local bundle_args="--deployment ${without:+--without ${without}}" |  | ||||||
| 
 |  | ||||||
| 	einfo "Running bundle install ${bundle_args} ..." |  | ||||||
| 	${RUBY} /usr/bin/bundle install ${bundle_args} || die "bundler failed" |  | ||||||
| 
 |  | ||||||
| 	# clean gems cache |  | ||||||
| 	rm -Rf vendor/bundle/ruby/*/cache |  | ||||||
| 
 |  | ||||||
| 	# fix permissions |  | ||||||
| 	fowners -R ${MY_USER}:${MY_USER} ${dest} ${temp} ${logs} |  | ||||||
| 	fperms +x script/{rails,check} |  | ||||||
| 
 |  | ||||||
| 	## RC script ## |  | ||||||
| 
 |  | ||||||
| 	local rcscript=gitlab-sidekiq.init |  | ||||||
| 	use unicorn && rcscript=gitlab-unicorn-6.init |  | ||||||
| 
 |  | ||||||
| 	cp "${FILESDIR}/${rcscript}" "${T}" || die |  | ||||||
| 	sed -i \ |  | ||||||
| 		-e "s|@USER@|${MY_USER}|" \ |  | ||||||
| 		-e "s|@SLOT@|${SLOT}|" \ |  | ||||||
| 		-e "s|@GITLAB_BASE@|${dest}|" \ |  | ||||||
| 		-e "s|@LOGS_DIR@|${logs}|" \ |  | ||||||
| 		-e "s|@QUEUES@|${SIDEKIQ_QUEUES}|" \ |  | ||||||
| 		"${T}/${rcscript}" \ |  | ||||||
| 		|| die "failed to filter ${rcscript}" |  | ||||||
| 
 |  | ||||||
| 	newinitd "${T}/${rcscript}" "${MY_NAME}-${SLOT}" |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| pkg_postinst() { |  | ||||||
| 	elog |  | ||||||
| 	elog "1. Configure your GitLab's settings in ${CONF_DIR}/gitlab.yml." |  | ||||||
| 	elog |  | ||||||
| 	elog "2. Configure your database settings in ${CONF_DIR}/database.yml" |  | ||||||
| 	elog "   for \"production\" environment." |  | ||||||
| 	elog |  | ||||||
| 	elog "3. Then you should create a database for your GitLab instance, if you" |  | ||||||
| 	elog "haven't done so already." |  | ||||||
| 	elog |  | ||||||
| 	if use postgres; then |  | ||||||
|         elog "If you have local PostgreSQL running, just copy&run:" |  | ||||||
|         elog "      su postgres" |  | ||||||
|         elog "      psql -c \"CREATE ROLE gitlab PASSWORD 'gitlab' \\" |  | ||||||
|         elog "          NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;\"" |  | ||||||
|         elog "      createdb -E UTF-8 -O gitlab gitlabhq_production" |  | ||||||
| 		elog "  Note: You should change your password to something more random..." |  | ||||||
| 		elog |  | ||||||
| 	fi |  | ||||||
| 	elog "4. Finally execute the following command to initlize environment:" |  | ||||||
| 	elog "       emerge --config \"=${CATEGORY}/${PF}\"" |  | ||||||
| 	elog "   Note: Do not forget to start Redis server first!" |  | ||||||
| 	elog |  | ||||||
| 	elog "If this is an update from previous version, it's HIGHLY recommended" |  | ||||||
| 	elog "to backup your database before running the config phase!" |  | ||||||
| 	elog |  | ||||||
| 	elog "If you're running GitLab behind an SSL proxy such as nginx or Apache and" |  | ||||||
| 	elog "you can't login after the upgrade, be sure to read the section about the" |  | ||||||
| 	elog "verification of the CSRF token in GitLab's trouble-shooting guide at" |  | ||||||
| 	elog "http://goo.gl/5XGRGv." |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| pkg_config() { |  | ||||||
| 	local shell_conf='/etc/gitlab-shell.yml' |  | ||||||
| 
 |  | ||||||
| 	einfo "Checking configuration files" |  | ||||||
| 
 |  | ||||||
| 	if [ ! -r "${CONF_DIR}/database.yml" ]; then |  | ||||||
| 		eerror "Copy ${CONF_DIR}/database.yml.* to" |  | ||||||
| 		eerror "${CONF_DIR}/database.yml and edit this file in order to configure your"  |  | ||||||
| 		eerror "database settings for \"production\" environment."; die |  | ||||||
| 	fi |  | ||||||
| 
 |  | ||||||
| 	# check gitlab-shell configuration |  | ||||||
| 	if [ -r ${shell_conf} ]; then |  | ||||||
| 		local shell_repos_path="$(ryaml ${shell_conf} repos_path)" |  | ||||||
| 		local gitlab_repos_path="$(ryaml ${CONF_DIR}/gitlab.yml \ |  | ||||||
| 			production gitlab_shell repos_path)" |  | ||||||
| 
 |  | ||||||
| 		if [ ! "${shell_repos_path}" -ef "${gitlab_repos_path}" ]; then |  | ||||||
| 			eerror "repos_path in ${CONF_DIR}/gitlab.yml and ${shell_conf}" |  | ||||||
| 			eerror "must points to the same location! Fix the repos_path location and" |  | ||||||
| 			eerror "run this again."; die |  | ||||||
| 		fi |  | ||||||
| 	else |  | ||||||
| 		ewarn "GitLab Shell checks skipped, could not find config file at" |  | ||||||
| 		ewarn "${shell_conf}. Make sure that you have gitlab-shell properly" |  | ||||||
| 		ewarn "installed and that repos_path is the same as in GitLab." |  | ||||||
| 	fi |  | ||||||
| 
 |  | ||||||
| 	local email_from="$(ryaml ${CONF_DIR}/gitlab.yml production gitlab email_from)" |  | ||||||
| 	local git_home="$(egethome ${MY_USER})" |  | ||||||
| 	 |  | ||||||
| 	# configure Git global settings |  | ||||||
| 	if [ ! -e "${git_home}/.gitconfig" ]; then |  | ||||||
| 		einfo "Setting git user" |  | ||||||
| 		su -l ${MY_USER} -c " |  | ||||||
| 			git config --global user.email '${email_from}'; |  | ||||||
| 			git config --global user.name 'GitLab'" \ |  | ||||||
| 			|| die "failed to setup git name and email" |  | ||||||
| 	fi |  | ||||||
| 
 |  | ||||||
| 	if [ ! -d "${DEST_DIR}/.git" ]; then |  | ||||||
| 		# create dummy git repo as workaround for |  | ||||||
| 		# https://github.com/bundler/bundler/issues/2039 |  | ||||||
| 		einfo "Initializing dummy git repository to avoid false errors from bundler" |  | ||||||
| 		su -l ${MY_USER} -c " |  | ||||||
| 			cd ${DEST_DIR} |  | ||||||
| 			git init |  | ||||||
| 			git add README.md |  | ||||||
| 			git commit -m 'Dummy repository'" >/dev/null |  | ||||||
| 	fi |  | ||||||
| 
 |  | ||||||
| 	## Initialize app ## |  | ||||||
| 
 |  | ||||||
| 	local RAILS_ENV="production" |  | ||||||
| 	local RUBY=${RUBY:-/usr/bin/ruby} |  | ||||||
| 	local BUNDLE="${RUBY} /usr/bin/bundle" |  | ||||||
| 
 |  | ||||||
| 	local dbname="$(ryaml ${CONF_DIR}/database.yml production database)" |  | ||||||
| 
 |  | ||||||
| 	if [ -f "${DEST_DIR}/.secret" ]; then |  | ||||||
| 		local update=true |  | ||||||
| 
 |  | ||||||
| 		einfo "Migrating database ..." |  | ||||||
| 		exec_rake db:migrate |  | ||||||
| 
 |  | ||||||
| 		# https://github.com/gitlabhq/gitlabhq/issues/5311#issuecomment-31656496 |  | ||||||
| 		einfo "Migrating iids ..." |  | ||||||
| 		exec_rake migrate_iids |  | ||||||
| 
 |  | ||||||
| 		einfo "Cleaning old precompiled assets ..." |  | ||||||
| 		exec_rake assets:clean |  | ||||||
| 
 |  | ||||||
| 		einfo "Cleaning cache ..." |  | ||||||
| 		exec_rake cache:clear |  | ||||||
| 	else |  | ||||||
| 		local update=false |  | ||||||
| 
 |  | ||||||
| 		einfo "Initializing database ..." |  | ||||||
| 		exec_rake gitlab:setup |  | ||||||
| 	fi |  | ||||||
| 	 |  | ||||||
| 	einfo "Precompiling assests ..." |  | ||||||
| 	exec_rake assets:precompile |  | ||||||
| 	 |  | ||||||
| 	if [ "${update}" = 'true' ]; then |  | ||||||
| 		ewarn |  | ||||||
| 		ewarn "This configuration script runs only common migration tasks." |  | ||||||
| 		ewarn "Please read guides on" |  | ||||||
| 		ewarn "    https://github.com/gitlabhq/gitlabhq/blob/master/doc/update/" |  | ||||||
| 		ewarn "for any additional migration tasks specific to your previous GitLab" |  | ||||||
| 		ewarn "version." |  | ||||||
| 	fi |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| ryaml() { |  | ||||||
| 	ruby -ryaml -e 'puts ARGV[1..-1].inject(YAML.load(File.read(ARGV[0]))) {|acc, key| acc[key] }' "$@" |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| exec_rake() { |  | ||||||
| 	local command="${BUNDLE} exec rake $@ RAILS_ENV=${RAILS_ENV}" |  | ||||||
| 
 |  | ||||||
| 	echo "   ${command}" |  | ||||||
| 	su -l ${MY_USER} -c " |  | ||||||
| 		export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8 |  | ||||||
| 		cd ${DEST_DIR} |  | ||||||
| 		${command}" \ |  | ||||||
| 		|| die "failed to run rake $@" |  | ||||||
| } |  | ||||||
|  | @ -67,7 +67,7 @@ ruby_add_bdepend " | ||||||
| #     Fix default settings to work with ssmtp that doesn't know '-t' argument. | #     Fix default settings to work with ssmtp that doesn't know '-t' argument. | ||||||
| # | # | ||||||
| RUBY_PATCHES=( | RUBY_PATCHES=( | ||||||
| 	"${PN}-6.6.5-fix-gemfile.patch" | 	"${P}-fix-gemfile.patch" | ||||||
| 	"${P}-fix-project-name-regex.patch" | 	"${P}-fix-project-name-regex.patch" | ||||||
| 	"${PN}-6.0.2-fix-sendmail-config.patch" | 	"${PN}-6.0.2-fix-sendmail-config.patch" | ||||||
| 	"${PN}-6.5.1-fix-ldap-dn-case.patch" | 	"${PN}-6.5.1-fix-ldap-dn-case.patch" | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue