www-apps/gitlab-ce:
Update all ebuilds to their latest patch versions Package-Manager: Portage-2.3.5, Repoman-2.3.1
This commit is contained in:
parent
44e0150957
commit
a3af90b40d
7 changed files with 31 additions and 894 deletions
|
@ -17,23 +17,19 @@ AUX gitlab-unicorn.service 773 SHA256 010c9e223a30400d9155b39499eb0d7efad23b66ba
|
||||||
AUX gitlab-workhorse.service 930 SHA256 09348a52fec333b4b19828752e0484400c1efa9dfb644723fcf8e80537e294b6 SHA512 6332024fe0049287899cf482b6e4439e9dd90da14e489d08aa8e5e79cb7872efcc517d99b69fa23b011b382acb1e5926496a78f08af5d2d64daa515b869a0c6a WHIRLPOOL 3749c6719b2a35c7de29763cd616e1e9cc30a85aa1630ffc46440334459b5922503d52629556c125a6dd6574bdc5f23f1b2a7f2a85e2270a415b22246e0b6bae
|
AUX gitlab-workhorse.service 930 SHA256 09348a52fec333b4b19828752e0484400c1efa9dfb644723fcf8e80537e294b6 SHA512 6332024fe0049287899cf482b6e4439e9dd90da14e489d08aa8e5e79cb7872efcc517d99b69fa23b011b382acb1e5926496a78f08af5d2d64daa515b869a0c6a WHIRLPOOL 3749c6719b2a35c7de29763cd616e1e9cc30a85aa1630ffc46440334459b5922503d52629556c125a6dd6574bdc5f23f1b2a7f2a85e2270a415b22246e0b6bae
|
||||||
AUX gitlab.conf 27 SHA256 cd9be088bbb67a5400407fc6f63c061eb224f16748b7d0812ff2c101f43ca263 SHA512 909c49fee6d050c1e94b2559ff2a9d54c5c346492be0e2920b50d56d69eaddbed67e3ac12e012d2a9601b5596640ebf33c8dc68fc588a03ca370d963294be37f WHIRLPOOL fa436e8d7d2643d450259d26b6e7b24dae69df47ed22e5ef2a567f37aa785fbf3b0eb1129ae7c8bf8986c29559fc3b744a34064375e5245dce2b10053cd715d9
|
AUX gitlab.conf 27 SHA256 cd9be088bbb67a5400407fc6f63c061eb224f16748b7d0812ff2c101f43ca263 SHA512 909c49fee6d050c1e94b2559ff2a9d54c5c346492be0e2920b50d56d69eaddbed67e3ac12e012d2a9601b5596640ebf33c8dc68fc588a03ca370d963294be37f WHIRLPOOL fa436e8d7d2643d450259d26b6e7b24dae69df47ed22e5ef2a567f37aa785fbf3b0eb1129ae7c8bf8986c29559fc3b744a34064375e5245dce2b10053cd715d9
|
||||||
DIST gitlab-ce-8.15.8.tar.gz 20035995 SHA256 9fafd6478a6d165ab6acd6f89f169fe72d46df547efe1bf3ac8d3a5bc4ffec11 SHA512 db287ea59d94eacd3c1219f458a403239f7aa39bea0d5e82fac80afc7216b96ac394740ab717c3ed26068617e1234105144820e41b0825511e1adc29e8891bfb WHIRLPOOL b03faf4b30b5c82535c0e148edec7fb5ff26405cfa8587b4bd287e834bb5f3eb6ddabd0b5f1472672b4108bdcb6066d63eb1a117e35fedf2c94d63348186afd6
|
DIST gitlab-ce-8.15.8.tar.gz 20035995 SHA256 9fafd6478a6d165ab6acd6f89f169fe72d46df547efe1bf3ac8d3a5bc4ffec11 SHA512 db287ea59d94eacd3c1219f458a403239f7aa39bea0d5e82fac80afc7216b96ac394740ab717c3ed26068617e1234105144820e41b0825511e1adc29e8891bfb WHIRLPOOL b03faf4b30b5c82535c0e148edec7fb5ff26405cfa8587b4bd287e834bb5f3eb6ddabd0b5f1472672b4108bdcb6066d63eb1a117e35fedf2c94d63348186afd6
|
||||||
DIST gitlab-ce-8.16.8.tar.gz 20907499 SHA256 b6ca6aebb5facb7b0bf792ac36fa6643098ddcbfd5364bf966311b48a2a0e68e SHA512 a5b77e39133078bc98a5c2d0b463e31c99eaaa44c28c70921546a8dfd45e24ff64bc310f8d067c40b609c3b19d13761afbc6068866e00297cb14b0e343b1a00c WHIRLPOOL 150c5b396703007e3b91f73407f5558045dcf4be74c2a12850e65bb7b5280582a8907312f5c09febb17649f98dbe40dd18968e69ef66d6026d3f69b79e6515c0
|
DIST gitlab-ce-8.16.9.tar.gz 20906220 SHA256 63e36f3af71ac3f6e45c09f443f5c4ca606c0f401754d3f846a2f54707b1d3b4 SHA512 c947f813a595904808d75286c097274733d05aa70a2dd2cce9d222057253bdaa1482e271d4c73be1e3ba070480f9b130daef90aa44af90a743218c1207edbb30 WHIRLPOOL 48475ee9f7a3e9f15703487170cf069af887b7e41637e3df1bd594aac78f68de88b6df695842084a25ad4505ab5d1a016de162a6ee31b89d2d629df126ecc080
|
||||||
DIST gitlab-ce-8.17.4.tar.gz 22825573 SHA256 daa0d5d75295a896f7aa230bd965e12e8525a52c96ec0456ee405d083180e091 SHA512 4d9244c2575e8c4e26515ef55e478b459b24f3d53426a8d2e7cd253a879c9ae2a770e92e0e4a74cc88242b5b3ec81f6081c789426553ee9c8ff161abd138fb45 WHIRLPOOL a3131dc319b4aaa98c81c2c5104672363f16fb393ee0f21e8be670c9df6788c383f5fba8459352a37b49467f42307a1be291eff5b9d550390df04d9004514986
|
DIST gitlab-ce-8.17.6.tar.gz 22828733 SHA256 dd5086431f2d362afa6bb29b5465112276b6ca8d6196f90b614c1c407a3d2131 SHA512 05c33b67d8febdb320e8c5483793d364b62056086749573bb4e92703ca1001d1c1cc236940ae20f1eac9d5a4159d1aaed97192040d40a4d5e0ba036c188a58db WHIRLPOOL c30b1604f616deed930c065e038fddbdf6866339438f46a66c09c342a368c521ad721dfcaf7e2ae37789b82729718370c6718a2d77c74a286923670a6ef7bf90
|
||||||
DIST gitlab-ce-9.0.0_rc4.tar.gz 26270878 SHA256 f47ddcf6f4f0336228dd1ef03085c9ea6116157887e8216038d23b69cf7a4d89 SHA512 f4694ebf4ffe38e6c5495f3658eb8003d28b3ac5d67f4533ddc1932afca412a40ea786cd8d99e2891fdf9bacd7b198b29493b97d6d02455d4f4139d4e60a0d63 WHIRLPOOL 81f47820043445e9ff69ae0ad3bcd1e094ab1e3527eec279096ae16a767cec5451b2d94af4dd87cd2939eb2e64368a1a0e543ce40e0e9fd5a716eeef04741c54
|
|
||||||
DIST gitlab-ce-9.0.1.tar.gz 26350693 SHA256 94549d69650383347256b9f3f0c11f200e0e4f29118a54a99e137d895db083ed SHA512 b7eed360beab1459da5c56b911e527335f2ec7bf595649c8d0327255488d765971a612987d7b3d10f2b017bf93adfb52f739a20c6d3e251552d82f04ddcf1bea WHIRLPOOL e061946cf9831daa61809b14d71e907717e0840cc8263b5461813795871cd2bd479ddff0d3c4afeda06edfca9f819c333e0be1a0961a1dbf9c86c9d8e0315ee1
|
|
||||||
DIST gitlab-ce-9.0.2.tar.gz 26349628 SHA256 2b8913a1ed5f49c59314ce1aa5874d917d38c3c663a981aac3374ced8a123629 SHA512 563450eb22dc2eb7d8aec52b7fb2ec58339bf59f0b46e59fa2a98ff8e2634d95948b9872afc1e64bff840985ed15b8efd588661f075c27cdb984c125ea41624e WHIRLPOOL 3660dde5cadb279f48d2c43e4fb3ba47b7d7a07c38e25940d55b8cb8bf4d750ca97088db73d1f808b3ff5ef8b3867d45ec0289e1ff1e0c5e362994ed38fc9eb9
|
|
||||||
DIST gitlab-ce-9.0.7.tar.gz 26358937 SHA256 e70d1f3926f3b7e872353da2d21a7a6b44ed51a3b145e237f4768f8190eaeb08 SHA512 c3f28ef81eb546727f895d92a120e1e459b8eceb1c1068888ec9972444355c02d441bd8d85c360e684f0389b0c6f2ffae57a69a220639fa9ffe7f8c63730daad WHIRLPOOL 04380783f5074fcfe905b129e6e457da44e9dbd1d6d43d70309ea0f55fa8f916af28f52460dc68b1b588feb8d99b8ba543e52bffdee93f3115efa3473c8728ce
|
DIST gitlab-ce-9.0.7.tar.gz 26358937 SHA256 e70d1f3926f3b7e872353da2d21a7a6b44ed51a3b145e237f4768f8190eaeb08 SHA512 c3f28ef81eb546727f895d92a120e1e459b8eceb1c1068888ec9972444355c02d441bd8d85c360e684f0389b0c6f2ffae57a69a220639fa9ffe7f8c63730daad WHIRLPOOL 04380783f5074fcfe905b129e6e457da44e9dbd1d6d43d70309ea0f55fa8f916af28f52460dc68b1b588feb8d99b8ba543e52bffdee93f3115efa3473c8728ce
|
||||||
DIST gitlab-ce-9.1.4.tar.gz 30512187 SHA256 36e5e41c89e215ec4b25c4129a9a47878b1e4e6104c54b0cdf8981d3f39f070a SHA512 d29f2d805c14cc98f0851c4877e91ab6785bbe487341b2bf3392ee293bc683bf00dd455e400d2c3a27b8dc0a6ffa020768cbd11ec9ee029b5f0f2ccfcbfb3a4e WHIRLPOOL a05f4c66c20df274d42ea3c76491fd7ba28561ffe4f7fc97c542bd79c54bbea09646be3f7a8d5b896023e6cd1e4e13ad40915f58e91519e04dedc8939f2a405e
|
DIST gitlab-ce-9.1.4.tar.gz 30512187 SHA256 36e5e41c89e215ec4b25c4129a9a47878b1e4e6104c54b0cdf8981d3f39f070a SHA512 d29f2d805c14cc98f0851c4877e91ab6785bbe487341b2bf3392ee293bc683bf00dd455e400d2c3a27b8dc0a6ffa020768cbd11ec9ee029b5f0f2ccfcbfb3a4e WHIRLPOOL a05f4c66c20df274d42ea3c76491fd7ba28561ffe4f7fc97c542bd79c54bbea09646be3f7a8d5b896023e6cd1e4e13ad40915f58e91519e04dedc8939f2a405e
|
||||||
|
DIST gitlab-ce-9.2.0_rc7.tar.gz 30112868 SHA256 8dd30e975416ea8e6701592cd56bdbd7a607e05ea115596728f5eb6219d275df SHA512 3ac2f3d4dd1c18f49a92e97217b5afea511a4e0ffac9bc0f303a819d0c0c6212b57fe1fdb13f1d049acf54a3c767b919dd4517ccd2e317a41b734f0660f1e276 WHIRLPOOL 624769196fad0537bf772533f3e696abc957811b0f929e68d0efa8d871915510bb6f823c0f22c3f09aeea4a46e5908d9f235e9dba2a2f115c99d3298fc83d3c4
|
||||||
DIST gitlab-ce-9.2.2.tar.gz 30969181 SHA256 6d8a1ab6c808c53bccc2c3f3b4dc052cf9e8e7d1a47d5c83ef799afad5304815 SHA512 c047d8f471e360abe913bccde07a8604153dbe064df69a5797ab5f82f4aa7f7191f5ba26444d846364518a8575a48c5be6111df4516f961b714257d58c5ca730 WHIRLPOOL 246b24d44b8654ff9ad1750c930f8a885c0db1c579b28944e71f6aa9c081b940b8f3fa418d0bb7c42fcf517b1837e4782ea5388000be262d29aa703b086316c2
|
DIST gitlab-ce-9.2.2.tar.gz 30969181 SHA256 6d8a1ab6c808c53bccc2c3f3b4dc052cf9e8e7d1a47d5c83ef799afad5304815 SHA512 c047d8f471e360abe913bccde07a8604153dbe064df69a5797ab5f82f4aa7f7191f5ba26444d846364518a8575a48c5be6111df4516f961b714257d58c5ca730 WHIRLPOOL 246b24d44b8654ff9ad1750c930f8a885c0db1c579b28944e71f6aa9c081b940b8f3fa418d0bb7c42fcf517b1837e4782ea5388000be262d29aa703b086316c2
|
||||||
EBUILD gitlab-ce-8.15.8.ebuild 11986 SHA256 6c86e66d4b568b88dd44ec52401e25c33b2d5e61d9a76e77180320d40ef57132 SHA512 91e1dc1cd8b9b77ea039e7e194b06c44900511b9e7787a714faec14746f96da6d00aa66bd16763732c468d8a46815e29fe761349a0a0d712db21bd4a12d31e06 WHIRLPOOL 50923df1fdda85abf7c7984a49d73d6486628439612de18ec3914274f3a053ce98ffbffec0f6ca9f2f9ba1ca9491467de0762d2d4a31ea480f32eb68222c79f9
|
EBUILD gitlab-ce-8.15.8.ebuild 11986 SHA256 6c86e66d4b568b88dd44ec52401e25c33b2d5e61d9a76e77180320d40ef57132 SHA512 91e1dc1cd8b9b77ea039e7e194b06c44900511b9e7787a714faec14746f96da6d00aa66bd16763732c468d8a46815e29fe761349a0a0d712db21bd4a12d31e06 WHIRLPOOL 50923df1fdda85abf7c7984a49d73d6486628439612de18ec3914274f3a053ce98ffbffec0f6ca9f2f9ba1ca9491467de0762d2d4a31ea480f32eb68222c79f9
|
||||||
EBUILD gitlab-ce-8.16.8.ebuild 11986 SHA256 0d5bdaf00e45fd5f48af3873cf4c9782d038338e8aa0e3a5a6fdb00ae868f771 SHA512 973a44e9d631203bf33596cfd5be1c999bbbff1ce25ff0cddd2707e59c9d98321c5efe0bbc2d62995b7b4f32c7a75b43f4bb4b3cfb10e25a64eaef5319b8ddf2 WHIRLPOOL 367b66c83a8a9356d5b76a2a03f1bd8e38714f8d7c4228d9b2f019f6ec63bff66be93c2ce657c43ae970bc693ed94fdd5b2e32488222dcae0cacbfcc15b3cb1b
|
EBUILD gitlab-ce-8.16.9.ebuild 11986 SHA256 21a0d7336a0a022db75ded6f29fe12d64012bd20a46e538ce0940a3c7e402a11 SHA512 c8e3ff6de9d97e25300315e967b7bcfc7d4aa5bc3e78aa45564e12bb673fbf79c9ba454174fe4f362d9d58575611debf797b52685b2061ac3053113390401a5c WHIRLPOOL 4644465cfcaf81184c62acf888ced3f16ccffc9de84fac7774a5463a778684c051580dd1f273546b9be8a0ace83243abc06e1e5ba042b18a10f7d352783a995f
|
||||||
EBUILD gitlab-ce-8.17.4.ebuild 12932 SHA256 17cb7cc858d71085d69e6ccca5b3802244e4db92bb5092e0717b53f21564e50b SHA512 3ee082772b29b6efbd90870bf92bdf9bd2ca8821bdba724574a2c58b39e5acbc5fa8bfa4463c1ab350f5633c8f821f2f7a90952b765aacf7ff381bb7ce77b9b7 WHIRLPOOL dded31fed93b7c2a553a6a8cc07a883302a76df85d804b03ae6dfce6be447b090c54f639d9894c6d56819c409b32a8ccd1280a054ec48120b2eb58ea0890c731
|
EBUILD gitlab-ce-8.17.6.ebuild 12932 SHA256 e5f7cc94653a6c55627264e02116d43febdcc58bd60ccf9f7c5fecf9476d1b0a SHA512 65fc18401842e1c1176d8178acff3ca48f1fe80ee8869b7263cd1819ced46bb8d1c2771226d9f7c9c5507ef120d69d66114605d8ed7b3923e5f9a61e2cc0125d WHIRLPOOL 3c979ba2e30fbb3c628063f71e3a8b12183632413f4342b81298e4fd4847e8a583adab16c202340d89fde010097f140005ae564c0d52fefb0fcb57b67ede398d
|
||||||
EBUILD gitlab-ce-9.0.0_rc4.ebuild 12914 SHA256 72a4b8dfc10acbef389c4af00dcdc8012fe7a5607f526e04e33e1625447302bf SHA512 d7888cd9a460c5d334309799b2d036678f0efca8acd516d968089331f51d8d5e812edc4b8c597ef6950f298586ec54fac698901c66b6ddba0207cc9e8010147c WHIRLPOOL 177ad04e770355f9cba863a6f6f4012f9d16e96aefc7148ae1bf9b2994691a49ef593122d7fbc8b937f207ea31d9b67d965b651d4267ca1df9f25a9c136c372b
|
|
||||||
EBUILD gitlab-ce-9.0.1-r1.ebuild 13087 SHA256 4dda1de15a8fb05d2fc5b97a99113fe93bb1feddbe46dc97ef3c945aa1715841 SHA512 1f44da05e954cbe8e50acc217e4c6f098f5e7aa5e31f0faf97e48df800e5b6d560b7911aaf0bf0e86bb1f267d7674895f93d908f2e9f4544fadab32d5d2b7e23 WHIRLPOOL b02d9d5d48a695e25fc6d422c49436b191a57807da5eb36ccff78287e4f38175d6958e9ae8a965433d42d26b84607beb833db79822068a4dd0a0d9bb4b60d463
|
|
||||||
EBUILD gitlab-ce-9.0.2.ebuild 13087 SHA256 f8705f07c62a4988b10b1c83ddb743032d1838f24b562a0f69df72ba690ed1f3 SHA512 c0cf1b1228e5499c7643811f80db010dce67d20da5aefd6a40ef2a537bb4ed7b589e8f878307a06ec1fb8d053a3e2ea00a97c66a7edb6e4845f92b493fad9b82 WHIRLPOOL 2df17352ea8ea15fbb74a10b1941b369d642f65453d10599d599925cc46d5f71e9a6149dc56acf15a501750228dc1eecceeb19d72890f3835a514c891f84dcc6
|
|
||||||
EBUILD gitlab-ce-9.0.7.ebuild 13087 SHA256 68f0d2d7c8cde9b07bb280bb2f6b6d3fea4de6791571f27aaf619853940d2d30 SHA512 21545e878a2f60d082b132256fb09c72a5cc1d252115f448770432fd98becc5aeef42281f00fa55642a1a0866f41f107903b33160e52c61bc4c6d7811f5a06fe WHIRLPOOL 6ad81da17812721b94e8fcfc2328a24355a1f777d067ff2f557f0928ea2f4af55f0edb8587b8fe004f5481254cd72a520a7a77a6a601afc12315d8d37773f5c8
|
EBUILD gitlab-ce-9.0.7.ebuild 13087 SHA256 68f0d2d7c8cde9b07bb280bb2f6b6d3fea4de6791571f27aaf619853940d2d30 SHA512 21545e878a2f60d082b132256fb09c72a5cc1d252115f448770432fd98becc5aeef42281f00fa55642a1a0866f41f107903b33160e52c61bc4c6d7811f5a06fe WHIRLPOOL 6ad81da17812721b94e8fcfc2328a24355a1f777d067ff2f557f0928ea2f4af55f0edb8587b8fe004f5481254cd72a520a7a77a6a601afc12315d8d37773f5c8
|
||||||
EBUILD gitlab-ce-9.1.4-r1.ebuild 13243 SHA256 ab673fa216da6c964b7c1a49bdc4b0225f437f0e9635022c165694ef9cdb3be3 SHA512 c664cca08eb02d069878dc0d9bb03a6470164cb85e6f0f47bde566eba1ee3c829d255851f4703016415b311595257d8b4da7e22eee2a96b33a7436a8a55776d8 WHIRLPOOL a564ed0ef3c3faba21bdbe29dd7e6a0a13384a26de1addf2292e7c9069b8c19c2e573d8940603f598088b5ea44d4af38b0e9527dcfdbfb0c575dfc5919487e1b
|
EBUILD gitlab-ce-9.1.4-r1.ebuild 13243 SHA256 ab673fa216da6c964b7c1a49bdc4b0225f437f0e9635022c165694ef9cdb3be3 SHA512 c664cca08eb02d069878dc0d9bb03a6470164cb85e6f0f47bde566eba1ee3c829d255851f4703016415b311595257d8b4da7e22eee2a96b33a7436a8a55776d8 WHIRLPOOL a564ed0ef3c3faba21bdbe29dd7e6a0a13384a26de1addf2292e7c9069b8c19c2e573d8940603f598088b5ea44d4af38b0e9527dcfdbfb0c575dfc5919487e1b
|
||||||
|
EBUILD gitlab-ce-9.2.0_rc7.ebuild 12970 SHA256 e0a935dbc638799ae3c9f0032fc88665a22c2f3f4077638678ed88271abd4e01 SHA512 f2ef406fd513d5944579199774a5553c5416886d01c82e7e90884ffc29b20da33e3dc1211277c745e66d4c86fab57ca8cec64079c90087a4234fde2056c9a357 WHIRLPOOL 7710f6d7cc5b9b1797b28c4b706accf9ead024fa30e83534ff34c44ebfca2c674f6e04b6b1c05e31fefa02625973ca2f31d3118c71c8ee8a63db1780b4eb6abc
|
||||||
EBUILD gitlab-ce-9.2.2.ebuild 12988 SHA256 a1ec15fafbe7031dbb71859497f3d334d9b062d75126b4ff5e6ab4f911e816ef SHA512 ac3fb3d10dc34f07d43a700e9dc4453138e11284d5f26a93e0e1cc59160faca75fa979390f9ac293538172c97523a8fe6f99812084bc94ac5181a17fd9110483 WHIRLPOOL e1a8afacad18607af2cc2a1abf9222657d85b3694a37280c05904ded91226fdcba3c7df6a705dde8ace85bebfd6dc8e07e547469dc6616c94e12b5d21d4efb9e
|
EBUILD gitlab-ce-9.2.2.ebuild 12988 SHA256 a1ec15fafbe7031dbb71859497f3d334d9b062d75126b4ff5e6ab4f911e816ef SHA512 ac3fb3d10dc34f07d43a700e9dc4453138e11284d5f26a93e0e1cc59160faca75fa979390f9ac293538172c97523a8fe6f99812084bc94ac5181a17fd9110483 WHIRLPOOL e1a8afacad18607af2cc2a1abf9222657d85b3694a37280c05904ded91226fdcba3c7df6a705dde8ace85bebfd6dc8e07e547469dc6616c94e12b5d21d4efb9e
|
||||||
EBUILD gitlab-ce-9999.ebuild 13029 SHA256 b4a010ff86baa4f2a7cf1349e74f49e763b88bb675f01acdbaf16c204597859d SHA512 6cdfdbf27a3ccec276ce06c25dc5a76cba6fb25f807650f5e2e5ed600fd03e487a60de3481719c53fffb43d3f7d2a0e8258a41dd0e461be1e82252eb59105372 WHIRLPOOL 0994bab6308ac1c466e17d53b7057f51e472b4b5cc0ca1d91b11217d0caf9448d3a69d769732c2acb4194f3eb5a94b8bb3c98441ec99ca94066900c7fe5e85ac
|
EBUILD gitlab-ce-9999.ebuild 12936 SHA256 577fb46481f157ac44e97c70c318dcf29aaa300b25d902e5129eac19f9ab18d1 SHA512 fde643225335f33e4b7aa01c33a570670aea8780d2789e15fc356cede52b87fafb5714ce0bb0b03020e7e3e673382aeb06e94e3afa1fe82e289cfbe38cbb6f0e WHIRLPOOL 49e50d7c1a2d4c426b751f6ffb7d9917481c5da804c0af0c17a3367f5d0a456925add5ccd9730938482b4ac5ce84483e3c013d3e38d14302d5be7e01f36e14bf
|
||||||
MISC ChangeLog 17848 SHA256 d57ce2fbafb6a62a30a4bf02feff9c37f33b94f8158f6b50c87053d8422307b2 SHA512 3b83ca4c32949ff08d1d59131388f3f59497c7831c5b09d1fd10a36445f1c383dbf04e91ddeff6c9b6c5131578450afb354b03819ddba80f7249b0ddd0b4f2e9 WHIRLPOOL d5ab8749e2c7d6a18adf2d63a7c7a69b40d93357d3e5714f131ec7cacca6008ca41f23a2c2bb8ece1ba10aaebf47b5f1363a2c4a29bbbe45672d06904e82f614
|
MISC ChangeLog 17848 SHA256 d57ce2fbafb6a62a30a4bf02feff9c37f33b94f8158f6b50c87053d8422307b2 SHA512 3b83ca4c32949ff08d1d59131388f3f59497c7831c5b09d1fd10a36445f1c383dbf04e91ddeff6c9b6c5131578450afb354b03819ddba80f7249b0ddd0b4f2e9 WHIRLPOOL d5ab8749e2c7d6a18adf2d63a7c7a69b40d93357d3e5714f131ec7cacca6008ca41f23a2c2bb8ece1ba10aaebf47b5f1363a2c4a29bbbe45672d06904e82f614
|
||||||
MISC metadata.xml 801 SHA256 3dc7486a12903f47f65968d524c93500ba30a4a09fa57e5a9dacf356509b44bb SHA512 e132754b72e64246531fa883400a0cf1a473ac5a6a49623db58ccf118a038b7cf37df03d9550f37b4a25f9ddbb1dcc5652ec9a4f2259d8e3ce202692c4025f41 WHIRLPOOL e9d961681fd790008eaf80fa07ce2c55a00a58f2e920d759793783ca8c8f508602a777e94c0cb65fe87c7dbef0cabdf26e4f4082584421097d939cbab20c4ac6
|
MISC metadata.xml 801 SHA256 3dc7486a12903f47f65968d524c93500ba30a4a09fa57e5a9dacf356509b44bb SHA512 e132754b72e64246531fa883400a0cf1a473ac5a6a49623db58ccf118a038b7cf37df03d9550f37b4a25f9ddbb1dcc5652ec9a4f2259d8e3ce202692c4025f41 WHIRLPOOL e9d961681fd790008eaf80fa07ce2c55a00a58f2e920d759793783ca8c8f508602a777e94c0cb65fe87c7dbef0cabdf26e4f4082584421097d939cbab20c4ac6
|
||||||
|
|
|
@ -16,7 +16,7 @@ USE_RUBY="ruby21 ruby23"
|
||||||
inherit eutils ruby-ng user systemd
|
inherit eutils ruby-ng user systemd
|
||||||
|
|
||||||
MY_PV="v${PV/_/-}"
|
MY_PV="v${PV/_/-}"
|
||||||
MY_GIT_COMMIT="220b52c77d5cbf3db09d2e7c3a6e73d877542501"
|
MY_GIT_COMMIT="385dbfb50d691a7a7bb94c4fb3a97dd61a0c6e41"
|
||||||
|
|
||||||
DESCRIPTION="GitLab is a free project and repository management application"
|
DESCRIPTION="GitLab is a free project and repository management application"
|
||||||
HOMEPAGE="https://about.gitlab.com/"
|
HOMEPAGE="https://about.gitlab.com/"
|
|
@ -16,7 +16,7 @@ USE_RUBY="ruby21 ruby23"
|
||||||
inherit eutils ruby-ng user systemd
|
inherit eutils ruby-ng user systemd
|
||||||
|
|
||||||
MY_PV="v${PV/_/-}"
|
MY_PV="v${PV/_/-}"
|
||||||
MY_GIT_COMMIT="3d2890c86ac0aade2942780b2509fb57d4492d79"
|
MY_GIT_COMMIT="7dd5ec18d1b5563061857dc8a332ba42050f3a0e"
|
||||||
|
|
||||||
GITLAB_PAGES_VERSION="0.3.2"
|
GITLAB_PAGES_VERSION="0.3.2"
|
||||||
GITLAB_SHELL_VERSION="4.1.1"
|
GITLAB_SHELL_VERSION="4.1.1"
|
|
@ -1,420 +0,0 @@
|
||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
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="ruby21 ruby23"
|
|
||||||
|
|
||||||
inherit eutils ruby-ng user systemd
|
|
||||||
|
|
||||||
MY_PV="v${PV/_/-}"
|
|
||||||
MY_GIT_COMMIT="461ea1e425979eaaea12c8ca7c767918c5b4ba54"
|
|
||||||
|
|
||||||
GITLAB_PAGES_VERSION="0.4.0"
|
|
||||||
GITLAB_SHELL_VERSION="5.0.0"
|
|
||||||
GITLAB_WORKHORSE_VERSION="1.4.1"
|
|
||||||
|
|
||||||
DESCRIPTION="GitLab is a free project and repository management application"
|
|
||||||
HOMEPAGE="https://about.gitlab.com/"
|
|
||||||
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.gz?ref=${MY_PV} -> ${P}.tar.gz"
|
|
||||||
RUBY_S="${PN}-${MY_PV}-${MY_GIT_COMMIT}"
|
|
||||||
|
|
||||||
RESTRICT="mirror"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS=""
|
|
||||||
IUSE="kerberos mysql +postgres +unicorn systemd pages rugged_use_system_libraries"
|
|
||||||
|
|
||||||
## Gems dependencies:
|
|
||||||
# charlock_holmes dev-libs/icu
|
|
||||||
# grape, capybara dev-libs/libxml2, dev-libs/libxslt
|
|
||||||
# rugged dev-util/cmake, virtual/pkgconfig
|
|
||||||
# json dev-util/ragel
|
|
||||||
# pygments.rb python 2.7+
|
|
||||||
# execjs net-libs/nodejs, or any other JS runtime
|
|
||||||
# pg dev-db/postgresql
|
|
||||||
# mysql virtual/mysql
|
|
||||||
#
|
|
||||||
GEMS_DEPEND="
|
|
||||||
dev-libs/icu
|
|
||||||
dev-libs/libxml2
|
|
||||||
dev-libs/libxslt
|
|
||||||
dev-util/ragel
|
|
||||||
>=net-libs/nodejs-4.3.0
|
|
||||||
>=sys-apps/yarn-0.17.0
|
|
||||||
postgres? ( >=dev-db/postgresql-9.1:* )
|
|
||||||
mysql? ( virtual/mysql )
|
|
||||||
kerberos? ( virtual/krb5 )"
|
|
||||||
CDEPEND="
|
|
||||||
dev-util/cmake
|
|
||||||
virtual/pkgconfig"
|
|
||||||
COMMON_DEPEND="
|
|
||||||
${GEMS_DEPEND}
|
|
||||||
~dev-vcs/gitlab-shell-${GITLAB_SHELL_VERSION}
|
|
||||||
>=dev-vcs/git-2.8.4
|
|
||||||
~www-servers/gitlab-workhorse-${GITLAB_WORKHORSE_VERSION}
|
|
||||||
kerberos? ( !app-crypt/heimdal )
|
|
||||||
rugged_use_system_libraries? ( net-libs/http-parser dev-libs/libgit2:0/24 )
|
|
||||||
pages? ( ~www-servers/gitlab-pages-${GITLAB_PAGES_VERSION} )"
|
|
||||||
DEPEND="
|
|
||||||
${CDEPEND}
|
|
||||||
${COMMON_DEPEND}"
|
|
||||||
RDEPEND="
|
|
||||||
${COMMON_DEPEND}
|
|
||||||
>=dev-db/redis-2.8
|
|
||||||
virtual/mta
|
|
||||||
systemd? ( sys-apps/systemd:0= )"
|
|
||||||
# required bundler >= 1.14.2
|
|
||||||
ruby_add_bdepend "
|
|
||||||
virtual/rubygems
|
|
||||||
>=dev-ruby/bundler-1.13.7"
|
|
||||||
|
|
||||||
#
|
|
||||||
# fix-sendmail-config:
|
|
||||||
# Fix default settings to work with ssmtp that doesn't know '-t' argument.
|
|
||||||
# fix-redis-config-path:
|
|
||||||
# Point to the absolute location of redis_config.rb
|
|
||||||
#
|
|
||||||
RUBY_PATCHES=(
|
|
||||||
"01-${PN}-8.7.5-fix-sendmail-config.patch"
|
|
||||||
"02-${PN}-9.0.0-fix-redis-config-path.patch"
|
|
||||||
"03-${PN}-8.17.0-database.yml.patch"
|
|
||||||
"04-${PN}-8.12.7-fix-check-task.patch"
|
|
||||||
"05-${PN}-9.0.0-replace-sys-filesystem.patch"
|
|
||||||
"06-${PN}-8.17.0-fix-webpack-config.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
MY_NAME="gitlab"
|
|
||||||
MY_USER="git" # should be same as in gitlab-shell
|
|
||||||
|
|
||||||
DEST_DIR="/opt/${MY_NAME}"
|
|
||||||
CONF_DIR="/etc/${MY_NAME}"
|
|
||||||
LOGS_DIR="/var/log/${MY_NAME}"
|
|
||||||
TEMP_DIR="/var/tmp/${MY_NAME}"
|
|
||||||
|
|
||||||
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:).*|\1 /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 useless files
|
|
||||||
rm -r lib/support/{deploy,init.d}
|
|
||||||
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}
|
|
||||||
|
|
||||||
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 kerberos; do
|
|
||||||
without+="$(use $flag || echo ' '$flag)"
|
|
||||||
done
|
|
||||||
local bundle_args="--deployment ${without:+--without ${without}}"
|
|
||||||
|
|
||||||
use "rugged_use_system_libraries" && export RUGGED_USE_SYSTEM_LIBRARIES="YES"
|
|
||||||
|
|
||||||
einfo "Running bundle install ${bundle_args} ..."
|
|
||||||
${RUBY} /usr/bin/bundle install ${bundle_args} || die "bundler failed"
|
|
||||||
|
|
||||||
einfo "Cleaning old gems ..."
|
|
||||||
${RUBY} /usr/bin/bundle clean
|
|
||||||
|
|
||||||
# clean gems cache
|
|
||||||
rm -Rf vendor/bundle/ruby/*/cache
|
|
||||||
rm -Rf vendor/bundle/ruby/*/bundler/gems/charlock_holmes-dde194609b35/.git
|
|
||||||
|
|
||||||
## RC script ##
|
|
||||||
|
|
||||||
if use systemd ; then
|
|
||||||
ewarn "Beware: systemd support has not been tested, use at your own risk!"
|
|
||||||
systemd_newunit "${FILESDIR}/gitlab-8.13.0-sidekiq.service" "gitlab-sidekiq.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-unicorn.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-workhorse.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-mailroom.service"
|
|
||||||
systemd_dotmpfilesd "${FILESDIR}/gitlab.conf"
|
|
||||||
else
|
|
||||||
local rcscript=gitlab-8.13.3-sidekiq.init
|
|
||||||
use unicorn && rcscript=gitlab-8.13.3-unicorn.init
|
|
||||||
|
|
||||||
cp "${FILESDIR}/${rcscript}" "${T}" || die
|
|
||||||
sed -i \
|
|
||||||
-e "s|@USER@|${MY_USER}|" \
|
|
||||||
-e "s|@GITLAB_BASE@|${dest}|" \
|
|
||||||
-e "s|@LOGS_DIR@|${logs}|" \
|
|
||||||
"${T}/${rcscript}" \
|
|
||||||
|| die "failed to filter ${rcscript}"
|
|
||||||
|
|
||||||
newinitd "${T}/${rcscript}" "${MY_NAME}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# fix permissions
|
|
||||||
fowners -R ${MY_USER}:${MY_USER} ${dest} ${temp} ${logs}
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "If this is an update from a previous version, stop your GitLab"
|
|
||||||
elog "instance and issue the following command to perform all required"
|
|
||||||
elog "migrations:"
|
|
||||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
|
||||||
elog "PLEASE NOTE: It's HIGHLY recommended to backup your database"
|
|
||||||
elog "before running the config phase. Run these commands (as root):"
|
|
||||||
elog
|
|
||||||
elog " cd /opt/gitlab"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production"
|
|
||||||
elog
|
|
||||||
elog "If this was a fresh install, follow these steps:"
|
|
||||||
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 initialize the environment:"
|
|
||||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
|
||||||
elog " Note: Do not forget to start Redis server first!"
|
|
||||||
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."
|
|
||||||
if use postgres; then
|
|
||||||
elog "Please note: As of GitLab 8.6, users of PostgreSQL need to enable the"
|
|
||||||
elog "`pg_trgm` extension by running the following command as a PostgreSQL"
|
|
||||||
elog "super user for *every* GitLab database:"
|
|
||||||
elog " CREATE EXTENSION IF NOT EXISTS pg_trgm;"
|
|
||||||
elog "For details, see the documentation at the GitLab website."
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_config() {
|
|
||||||
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
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
su -l ${MY_USER} -c "git config --global repack.writeBitmaps true"
|
|
||||||
|
|
||||||
# determine whether this is an update or a fresh install. we do this by
|
|
||||||
# checking whether the ${DEST_DIR}/.git directory exists or not
|
|
||||||
#
|
|
||||||
if [ -d "${DEST_DIR}/.git" ]; then
|
|
||||||
local update=true
|
|
||||||
else
|
|
||||||
local update=false
|
|
||||||
fi
|
|
||||||
|
|
||||||
## Initialize app ##
|
|
||||||
|
|
||||||
local RAILS_ENV="production"
|
|
||||||
local RUBY=${RUBY:-/usr/bin/ruby}
|
|
||||||
local BUNDLE="${RUBY} /usr/bin/bundle"
|
|
||||||
|
|
||||||
# FIXME: this line existed in older ebuilds, but the variable is
|
|
||||||
# never used. what was it for!?
|
|
||||||
# local dbname="$(ryaml ${CONF_DIR}/database.yml production database)"
|
|
||||||
|
|
||||||
if [ "${update}" = 'true' ]; then
|
|
||||||
einfo "Migrating database ..."
|
|
||||||
exec_rake db:migrate
|
|
||||||
|
|
||||||
# https://github.com/gitlabhq/gitlabhq/issues/5311#issuecomment-31656496
|
|
||||||
einfo "Migrating iids ..."
|
|
||||||
exec_rake migrate_iids
|
|
||||||
|
|
||||||
einfo "Installing npm modules ..."
|
|
||||||
exec_npm install
|
|
||||||
|
|
||||||
einfo "Cleaning old precompiled assets ..."
|
|
||||||
exec_rake gitlab:assets:clean
|
|
||||||
|
|
||||||
einfo "Cleaning cache ..."
|
|
||||||
exec_rake cache:clear
|
|
||||||
else
|
|
||||||
# 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
|
|
||||||
|
|
||||||
einfo "Initializing database ..."
|
|
||||||
exec_rake gitlab:setup
|
|
||||||
|
|
||||||
einfo "Installing npm modules ..."
|
|
||||||
exec_npm install
|
|
||||||
fi
|
|
||||||
|
|
||||||
einfo "Precompiling assests ..."
|
|
||||||
exec_rake gitlab:assets:compile
|
|
||||||
|
|
||||||
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."
|
|
||||||
if use mysql ; then
|
|
||||||
ewarn "PLEASE also read this document about needed migrations on MySQL:"
|
|
||||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
elog
|
|
||||||
elog "If you want to make sure that the install/upgrade was successful, start"
|
|
||||||
elog "Gitlab now and then run these commands (as root):"
|
|
||||||
elog
|
|
||||||
elog " cd /opt/gitlab"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production"
|
|
||||||
elog
|
|
||||||
if ! use systemd ; then
|
|
||||||
elog "You may also run"
|
|
||||||
elog " /etc/init.d/gitlab check"
|
|
||||||
elog " for convenience."
|
|
||||||
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} NODE_ENV=${RAILS_ENV}"
|
|
||||||
|
|
||||||
echo " ${command}"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; export NODE_PATH=${DEST_DIR}/node_modules
|
|
||||||
cd ${DEST_DIR}
|
|
||||||
${command}" \
|
|
||||||
|| die "failed to run rake $@"
|
|
||||||
}
|
|
||||||
|
|
||||||
exec_npm() {
|
|
||||||
local command="npm $@ --${RAILS_ENV}"
|
|
||||||
|
|
||||||
echo " ${command}"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; export NODE_PATH=${DEST_DIR}/node_modules
|
|
||||||
cd ${DEST_DIR}
|
|
||||||
${command}" \
|
|
||||||
|| die "failed to run npm $@"
|
|
||||||
}
|
|
|
@ -1,423 +0,0 @@
|
||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
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="ruby23"
|
|
||||||
|
|
||||||
inherit eutils ruby-ng user systemd
|
|
||||||
|
|
||||||
MY_PV="v${PV/_/-}"
|
|
||||||
MY_GIT_COMMIT="0fa55cc3027beea8c670bfa44c82cbb1ef9d52fc"
|
|
||||||
|
|
||||||
GITALY_VERSION="0.3.0"
|
|
||||||
GITLAB_PAGES_VERSION="0.4.0"
|
|
||||||
GITLAB_SHELL_VERSION="5.0.0"
|
|
||||||
GITLAB_WORKHORSE_VERSION="1.4.2"
|
|
||||||
|
|
||||||
DESCRIPTION="GitLab is a free project and repository management application"
|
|
||||||
HOMEPAGE="https://about.gitlab.com/"
|
|
||||||
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.gz?ref=${MY_PV} -> ${P}.tar.gz"
|
|
||||||
RUBY_S="${PN}-${MY_PV}-${MY_GIT_COMMIT}"
|
|
||||||
|
|
||||||
RESTRICT="mirror"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm64"
|
|
||||||
IUSE="kerberos mysql +postgres +unicorn systemd pages -gitaly rugged_use_system_libraries"
|
|
||||||
|
|
||||||
## Gems dependencies:
|
|
||||||
# charlock_holmes dev-libs/icu
|
|
||||||
# grape, capybara dev-libs/libxml2, dev-libs/libxslt
|
|
||||||
# rugged dev-util/cmake, virtual/pkgconfig
|
|
||||||
# json dev-util/ragel
|
|
||||||
# pygments.rb python 2.7+
|
|
||||||
# execjs net-libs/nodejs, or any other JS runtime
|
|
||||||
# pg dev-db/postgresql
|
|
||||||
# mysql virtual/mysql
|
|
||||||
#
|
|
||||||
GEMS_DEPEND="
|
|
||||||
dev-libs/icu
|
|
||||||
dev-libs/libxml2
|
|
||||||
dev-libs/libxslt
|
|
||||||
dev-util/ragel
|
|
||||||
>=net-libs/nodejs-4.3.0
|
|
||||||
>=sys-apps/yarn-0.17.0
|
|
||||||
postgres? ( >=dev-db/postgresql-9.1:* )
|
|
||||||
mysql? ( virtual/mysql )
|
|
||||||
kerberos? ( virtual/krb5 )"
|
|
||||||
CDEPEND="
|
|
||||||
dev-util/cmake
|
|
||||||
virtual/pkgconfig"
|
|
||||||
COMMON_DEPEND="
|
|
||||||
${GEMS_DEPEND}
|
|
||||||
~dev-vcs/gitlab-shell-${GITLAB_SHELL_VERSION}
|
|
||||||
>=dev-vcs/git-2.8.4
|
|
||||||
~www-servers/gitlab-workhorse-${GITLAB_WORKHORSE_VERSION}
|
|
||||||
kerberos? ( !app-crypt/heimdal )
|
|
||||||
rugged_use_system_libraries? ( net-libs/http-parser dev-libs/libgit2:0/24 )
|
|
||||||
pages? ( ~www-servers/gitlab-pages-${GITLAB_PAGES_VERSION} )
|
|
||||||
gitaly? ( ~www-servers/gitaly-${GITALY_VERSION} )"
|
|
||||||
DEPEND="
|
|
||||||
${CDEPEND}
|
|
||||||
${COMMON_DEPEND}"
|
|
||||||
RDEPEND="
|
|
||||||
${COMMON_DEPEND}
|
|
||||||
>=dev-db/redis-2.8
|
|
||||||
virtual/mta
|
|
||||||
systemd? ( sys-apps/systemd:0= )"
|
|
||||||
# required bundler >= 1.14.2
|
|
||||||
ruby_add_bdepend "
|
|
||||||
virtual/rubygems
|
|
||||||
>=dev-ruby/bundler-1.13.7"
|
|
||||||
|
|
||||||
#
|
|
||||||
# fix-sendmail-config:
|
|
||||||
# Fix default settings to work with ssmtp that doesn't know '-t' argument.
|
|
||||||
# fix-redis-config-path:
|
|
||||||
# Point to the absolute location of redis_config.rb
|
|
||||||
#
|
|
||||||
RUBY_PATCHES=(
|
|
||||||
"01-${PN}-8.7.5-fix-sendmail-config.patch"
|
|
||||||
"02-${PN}-9.0.0-fix-redis-config-path.patch"
|
|
||||||
"03-${PN}-8.17.0-database.yml.patch"
|
|
||||||
"04-${PN}-8.12.7-fix-check-task.patch"
|
|
||||||
"05-${PN}-9.0.0-replace-sys-filesystem.patch"
|
|
||||||
"06-${PN}-8.17.0-fix-webpack-config.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
MY_NAME="gitlab"
|
|
||||||
MY_USER="git" # should be same as in gitlab-shell
|
|
||||||
|
|
||||||
DEST_DIR="/opt/${MY_NAME}"
|
|
||||||
CONF_DIR="/etc/${MY_NAME}"
|
|
||||||
LOGS_DIR="/var/log/${MY_NAME}"
|
|
||||||
TEMP_DIR="/var/tmp/${MY_NAME}"
|
|
||||||
|
|
||||||
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:).*|\1 /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 useless files
|
|
||||||
rm -r lib/support/{deploy,init.d}
|
|
||||||
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}
|
|
||||||
|
|
||||||
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 kerberos; do
|
|
||||||
without+="$(use $flag || echo ' '$flag)"
|
|
||||||
done
|
|
||||||
local bundle_args="--deployment ${without:+--without ${without}}"
|
|
||||||
|
|
||||||
use "rugged_use_system_libraries" && export RUGGED_USE_SYSTEM_LIBRARIES="YES"
|
|
||||||
|
|
||||||
einfo "Running bundle install ${bundle_args} ..."
|
|
||||||
${RUBY} /usr/bin/bundle install ${bundle_args} || die "bundler failed"
|
|
||||||
|
|
||||||
einfo "Cleaning old gems ..."
|
|
||||||
${RUBY} /usr/bin/bundle clean
|
|
||||||
|
|
||||||
# clean gems cache
|
|
||||||
rm -Rf vendor/bundle/ruby/*/cache
|
|
||||||
rm -Rf vendor/bundle/ruby/*/bundler/gems/charlock_holmes-dde194609b35/.git
|
|
||||||
|
|
||||||
## RC script ##
|
|
||||||
|
|
||||||
if use systemd ; then
|
|
||||||
ewarn "Beware: systemd support has not been tested, use at your own risk!"
|
|
||||||
systemd_newunit "${FILESDIR}/gitlab-8.13.0-sidekiq.service" "gitlab-sidekiq.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-unicorn.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-workhorse.service"
|
|
||||||
systemd_dounit "${FILESDIR}/gitlab-mailroom.service"
|
|
||||||
systemd_dotmpfilesd "${FILESDIR}/gitlab.conf"
|
|
||||||
else
|
|
||||||
local rcscript=gitlab-8.13.3-sidekiq.init
|
|
||||||
use unicorn && rcscript=gitlab-8.13.3-unicorn.init
|
|
||||||
|
|
||||||
cp "${FILESDIR}/${rcscript}" "${T}" || die
|
|
||||||
sed -i \
|
|
||||||
-e "s|@USER@|${MY_USER}|" \
|
|
||||||
-e "s|@GITLAB_BASE@|${dest}|" \
|
|
||||||
-e "s|@LOGS_DIR@|${logs}|" \
|
|
||||||
"${T}/${rcscript}" \
|
|
||||||
|| die "failed to filter ${rcscript}"
|
|
||||||
|
|
||||||
newinitd "${T}/${rcscript}" "${MY_NAME}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# fix permissions
|
|
||||||
fowners -R ${MY_USER}:${MY_USER} ${dest} ${temp} ${logs}
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "If this is an update from a previous version, stop your GitLab"
|
|
||||||
elog "instance and issue the following command to perform all required"
|
|
||||||
elog "migrations:"
|
|
||||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
|
||||||
elog "PLEASE NOTE: It's HIGHLY recommended to backup your database"
|
|
||||||
elog "before running the config phase. Run these commands (as root):"
|
|
||||||
elog
|
|
||||||
elog " cd /opt/gitlab"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production"
|
|
||||||
elog
|
|
||||||
elog "If this was a fresh install, follow these steps:"
|
|
||||||
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 initialize the environment:"
|
|
||||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
|
||||||
elog " Note: Do not forget to start Redis server first!"
|
|
||||||
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."
|
|
||||||
if use postgres; then
|
|
||||||
elog "Please note: As of GitLab 8.6, users of PostgreSQL need to enable the"
|
|
||||||
elog "`pg_trgm` extension by running the following command as a PostgreSQL"
|
|
||||||
elog "super user for *every* GitLab database:"
|
|
||||||
elog " CREATE EXTENSION IF NOT EXISTS pg_trgm;"
|
|
||||||
elog "For details, see the documentation at the GitLab website."
|
|
||||||
fi
|
|
||||||
if use mysql ; then
|
|
||||||
ewarn "PLEASE also read this document about needed migrations on MySQL:"
|
|
||||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
|
||||||
ewarn "Failing to follow those instructions may make the config phase fail!"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_config() {
|
|
||||||
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
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
su -l ${MY_USER} -c "git config --global repack.writeBitmaps true"
|
|
||||||
|
|
||||||
# determine whether this is an update or a fresh install. we do this by
|
|
||||||
# checking whether the ${DEST_DIR}/.git directory exists or not
|
|
||||||
#
|
|
||||||
if [ -d "${DEST_DIR}/.git" ]; then
|
|
||||||
local update=true
|
|
||||||
else
|
|
||||||
local update=false
|
|
||||||
fi
|
|
||||||
|
|
||||||
## Initialize app ##
|
|
||||||
|
|
||||||
local RAILS_ENV="production"
|
|
||||||
local RUBY=${RUBY:-/usr/bin/ruby}
|
|
||||||
local BUNDLE="${RUBY} /usr/bin/bundle"
|
|
||||||
|
|
||||||
# FIXME: this line existed in older ebuilds, but the variable is
|
|
||||||
# never used. what was it for!?
|
|
||||||
# local dbname="$(ryaml ${CONF_DIR}/database.yml production database)"
|
|
||||||
|
|
||||||
if [ "${update}" = 'true' ]; then
|
|
||||||
einfo "Migrating database ..."
|
|
||||||
exec_rake db:migrate
|
|
||||||
|
|
||||||
# https://github.com/gitlabhq/gitlabhq/issues/5311#issuecomment-31656496
|
|
||||||
einfo "Migrating iids ..."
|
|
||||||
exec_rake migrate_iids
|
|
||||||
|
|
||||||
einfo "Installing npm modules ..."
|
|
||||||
exec_yarn install
|
|
||||||
|
|
||||||
einfo "Cleaning old precompiled assets ..."
|
|
||||||
exec_rake gitlab:assets:clean
|
|
||||||
|
|
||||||
einfo "Cleaning cache ..."
|
|
||||||
exec_rake cache:clear
|
|
||||||
else
|
|
||||||
# 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
|
|
||||||
|
|
||||||
einfo "Initializing database ..."
|
|
||||||
exec_rake gitlab:setup
|
|
||||||
|
|
||||||
einfo "Installing npm modules ..."
|
|
||||||
exec_yarn install
|
|
||||||
fi
|
|
||||||
|
|
||||||
einfo "Precompiling assests ..."
|
|
||||||
exec_rake gitlab:assets:compile
|
|
||||||
|
|
||||||
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
|
|
||||||
elog
|
|
||||||
elog "If you want to make sure that the install/upgrade was successful, start"
|
|
||||||
elog "Gitlab now and then run these commands (as root):"
|
|
||||||
elog
|
|
||||||
elog " cd /opt/gitlab"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production"
|
|
||||||
elog " sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production"
|
|
||||||
elog
|
|
||||||
if ! use systemd ; then
|
|
||||||
elog "You may also run"
|
|
||||||
elog " /etc/init.d/gitlab check"
|
|
||||||
elog " for convenience."
|
|
||||||
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} NODE_ENV=${RAILS_ENV}"
|
|
||||||
|
|
||||||
echo " ${command}"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; export NODE_PATH=${DEST_DIR}/node_modules
|
|
||||||
cd ${DEST_DIR}
|
|
||||||
${command}" \
|
|
||||||
|| die "failed to run rake $@"
|
|
||||||
}
|
|
||||||
|
|
||||||
exec_yarn() {
|
|
||||||
local command="yarn $@ --${RAILS_ENV}"
|
|
||||||
|
|
||||||
echo " ${command}"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; export NODE_PATH=${DEST_DIR}/node_modules
|
|
||||||
cd ${DEST_DIR}
|
|
||||||
${command}" \
|
|
||||||
|| die "failed to run yarn $@"
|
|
||||||
}
|
|
|
@ -16,12 +16,14 @@ USE_RUBY="ruby23"
|
||||||
inherit eutils ruby-ng user systemd
|
inherit eutils ruby-ng user systemd
|
||||||
|
|
||||||
MY_PV="v${PV/_/-}"
|
MY_PV="v${PV/_/-}"
|
||||||
MY_GIT_COMMIT="3e59fd2d9746e1ec666e1ea1228b47bba1c40f24"
|
MY_GIT_COMMIT="add9abadbdfac7e4c03b06b47d3afc296e00ac97"
|
||||||
|
|
||||||
GITALY_VERSION="0.3.0"
|
# Gitaly is optional in Gitlab 9.2, and it is not yet supported by this
|
||||||
GITLAB_PAGES_VERSION="0.4.0"
|
# ebuild. But the version declaration is already here.
|
||||||
GITLAB_SHELL_VERSION="5.0.0"
|
GITALY_VERSION="0.10.0"
|
||||||
GITLAB_WORKHORSE_VERSION="1.4.2"
|
GITLAB_PAGES_VERSION="0.4.2"
|
||||||
|
GITLAB_SHELL_VERSION="5.0.3"
|
||||||
|
GITLAB_WORKHORSE_VERSION="2.0.0"
|
||||||
|
|
||||||
DESCRIPTION="GitLab is a free project and repository management application"
|
DESCRIPTION="GitLab is a free project and repository management application"
|
||||||
HOMEPAGE="https://about.gitlab.com/"
|
HOMEPAGE="https://about.gitlab.com/"
|
||||||
|
@ -32,7 +34,7 @@ RESTRICT="mirror"
|
||||||
|
|
||||||
LICENSE="MIT"
|
LICENSE="MIT"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64 ~x86 ~arm64"
|
KEYWORDS=""
|
||||||
IUSE="kerberos mysql +postgres +unicorn systemd pages -gitaly rugged_use_system_libraries"
|
IUSE="kerberos mysql +postgres +unicorn systemd pages -gitaly rugged_use_system_libraries"
|
||||||
|
|
||||||
## Gems dependencies:
|
## Gems dependencies:
|
||||||
|
@ -89,7 +91,7 @@ ruby_add_bdepend "
|
||||||
RUBY_PATCHES=(
|
RUBY_PATCHES=(
|
||||||
"01-${PN}-8.7.5-fix-sendmail-config.patch"
|
"01-${PN}-8.7.5-fix-sendmail-config.patch"
|
||||||
"02-${PN}-9.0.0-fix-redis-config-path.patch"
|
"02-${PN}-9.0.0-fix-redis-config-path.patch"
|
||||||
"03-${PN}-8.17.0-database.yml.patch"
|
"03-${PN}-9.2.2-database.yml.patch"
|
||||||
"04-${PN}-8.12.7-fix-check-task.patch"
|
"04-${PN}-8.12.7-fix-check-task.patch"
|
||||||
"05-${PN}-9.0.0-replace-sys-filesystem.patch"
|
"05-${PN}-9.0.0-replace-sys-filesystem.patch"
|
||||||
"06-${PN}-8.17.0-fix-webpack-config.patch"
|
"06-${PN}-8.17.0-fix-webpack-config.patch"
|
||||||
|
@ -181,6 +183,7 @@ all_ruby_install() {
|
||||||
# install the rest files
|
# install the rest files
|
||||||
# using cp 'cause doins is slow
|
# using cp 'cause doins is slow
|
||||||
cp -Rl * "${D}/${dest}"/
|
cp -Rl * "${D}/${dest}"/
|
||||||
|
cp -Rl .??* "${D}/${dest}"/
|
||||||
|
|
||||||
# install logrotate config
|
# install logrotate config
|
||||||
dodir /etc/logrotate.d
|
dodir /etc/logrotate.d
|
||||||
|
@ -346,7 +349,7 @@ pkg_config() {
|
||||||
exec_rake migrate_iids
|
exec_rake migrate_iids
|
||||||
|
|
||||||
einfo "Installing npm modules ..."
|
einfo "Installing npm modules ..."
|
||||||
exec_yarn install
|
exec_rake yarn:install
|
||||||
|
|
||||||
einfo "Cleaning old precompiled assets ..."
|
einfo "Cleaning old precompiled assets ..."
|
||||||
exec_rake gitlab:assets:clean
|
exec_rake gitlab:assets:clean
|
||||||
|
@ -367,7 +370,7 @@ pkg_config() {
|
||||||
exec_rake gitlab:setup
|
exec_rake gitlab:setup
|
||||||
|
|
||||||
einfo "Installing npm modules ..."
|
einfo "Installing npm modules ..."
|
||||||
exec_yarn install
|
exec_rake yarn:install
|
||||||
fi
|
fi
|
||||||
|
|
||||||
einfo "Precompiling assests ..."
|
einfo "Precompiling assests ..."
|
||||||
|
@ -410,14 +413,3 @@ exec_rake() {
|
||||||
${command}" \
|
${command}" \
|
||||||
|| die "failed to run rake $@"
|
|| die "failed to run rake $@"
|
||||||
}
|
}
|
||||||
|
|
||||||
exec_yarn() {
|
|
||||||
local command="yarn $@ --${RAILS_ENV}"
|
|
||||||
|
|
||||||
echo " ${command}"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; export NODE_PATH=${DEST_DIR}/node_modules
|
|
||||||
cd ${DEST_DIR}
|
|
||||||
${command}" \
|
|
||||||
|| die "failed to run yarn $@"
|
|
||||||
}
|
|
|
@ -19,10 +19,12 @@ EGIT_REPO_URI="https://gitlab.com/gitlab-org/${PN}.git"
|
||||||
EGIT_BRANCH="master"
|
EGIT_BRANCH="master"
|
||||||
EGIT_CHECKOUT_DIR="${WORKDIR}/all"
|
EGIT_CHECKOUT_DIR="${WORKDIR}/all"
|
||||||
|
|
||||||
GITALY_VERSION="0.3.0"
|
# Gitaly is optional in Gitlab as of yet, and it is not yet supported by
|
||||||
GITLAB_PAGES_VERSION="0.4.0"
|
# this ebuild. But the version declaration is already here.
|
||||||
GITLAB_SHELL_VERSION="5.0.0"
|
GITALY_VERSION="0.10.0"
|
||||||
GITLAB_WORKHORSE_VERSION="1.4.2"
|
GITLAB_PAGES_VERSION="0.4.2"
|
||||||
|
GITLAB_SHELL_VERSION="5.0.4"
|
||||||
|
GITLAB_WORKHORSE_VERSION="2.0.0"
|
||||||
|
|
||||||
DESCRIPTION="GitLab is a free project and repository management application"
|
DESCRIPTION="GitLab is a free project and repository management application"
|
||||||
HOMEPAGE="https://about.gitlab.com/"
|
HOMEPAGE="https://about.gitlab.com/"
|
||||||
|
@ -88,7 +90,7 @@ ruby_add_bdepend "
|
||||||
RUBY_PATCHES=(
|
RUBY_PATCHES=(
|
||||||
"01-${PN}-8.7.5-fix-sendmail-config.patch"
|
"01-${PN}-8.7.5-fix-sendmail-config.patch"
|
||||||
"02-${PN}-9.0.0-fix-redis-config-path.patch"
|
"02-${PN}-9.0.0-fix-redis-config-path.patch"
|
||||||
"03-${PN}-8.17.0-database.yml.patch"
|
"03-${PN}-9.2.2-database.yml.patch"
|
||||||
"04-${PN}-8.12.7-fix-check-task.patch"
|
"04-${PN}-8.12.7-fix-check-task.patch"
|
||||||
"05-${PN}-9.0.0-replace-sys-filesystem.patch"
|
"05-${PN}-9.0.0-replace-sys-filesystem.patch"
|
||||||
"06-${PN}-8.17.0-fix-webpack-config.patch"
|
"06-${PN}-8.17.0-fix-webpack-config.patch"
|
||||||
|
@ -185,6 +187,7 @@ all_ruby_install() {
|
||||||
# install the rest files
|
# install the rest files
|
||||||
# using cp 'cause doins is slow
|
# using cp 'cause doins is slow
|
||||||
cp -Rl * "${D}/${dest}"/
|
cp -Rl * "${D}/${dest}"/
|
||||||
|
cp -Rl .??* "${D}/${dest}"/
|
||||||
|
|
||||||
# install logrotate config
|
# install logrotate config
|
||||||
dodir /etc/logrotate.d
|
dodir /etc/logrotate.d
|
||||||
|
@ -350,7 +353,7 @@ pkg_config() {
|
||||||
exec_rake migrate_iids
|
exec_rake migrate_iids
|
||||||
|
|
||||||
einfo "Installing npm modules ..."
|
einfo "Installing npm modules ..."
|
||||||
exec_yarn install
|
exec_rake yarn:install
|
||||||
|
|
||||||
einfo "Cleaning old precompiled assets ..."
|
einfo "Cleaning old precompiled assets ..."
|
||||||
exec_rake gitlab:assets:clean
|
exec_rake gitlab:assets:clean
|
||||||
|
@ -371,7 +374,7 @@ pkg_config() {
|
||||||
exec_rake gitlab:setup
|
exec_rake gitlab:setup
|
||||||
|
|
||||||
einfo "Installing npm modules ..."
|
einfo "Installing npm modules ..."
|
||||||
exec_yarn install
|
exec_rake yarn:install
|
||||||
fi
|
fi
|
||||||
|
|
||||||
einfo "Precompiling assests ..."
|
einfo "Precompiling assests ..."
|
||||||
|
@ -414,14 +417,3 @@ exec_rake() {
|
||||||
${command}" \
|
${command}" \
|
||||||
|| die "failed to run rake $@"
|
|| die "failed to run rake $@"
|
||||||
}
|
}
|
||||||
|
|
||||||
exec_yarn() {
|
|
||||||
local command="yarn $@ --${RAILS_ENV}"
|
|
||||||
|
|
||||||
echo " ${command}"
|
|
||||||
su -l ${MY_USER} -c "
|
|
||||||
export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; export NODE_PATH=${DEST_DIR}/node_modules
|
|
||||||
cd ${DEST_DIR}
|
|
||||||
${command}" \
|
|
||||||
|| die "failed to run yarn $@"
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue