Add sys-cluster/k3s, update go ebuild tool
This commit is contained in:
parent
0b08a52d96
commit
c11ae2b81e
@ -7,13 +7,29 @@ url_map = {
|
||||
"docker.io": "github.com/docker",
|
||||
"k8s.io": "github.com/kubernetes",
|
||||
"sigs.k8s.io": "github.com/kubernetes-sigs",
|
||||
"gopkg.in": "github.com/go-"
|
||||
"gopkg.in": "github.com/go-",
|
||||
"go.etcd.io": "github.com/etcd-io"
|
||||
}
|
||||
with open("go.mod", "r") as data:
|
||||
print("EGO_VENDOR=(")
|
||||
for line in data:
|
||||
pkg = re.match(r"\t(?P<pkg>[^ ]*) (?P<version>[^ ]*)\s.*", line)
|
||||
|
||||
with open("go.mod", "r") as file:
|
||||
data = file.read()
|
||||
|
||||
# First get replace to ignore requires later
|
||||
replaced = set()
|
||||
|
||||
replace = re.search(r"replace \(([^\)]*)\)", data)
|
||||
if replace:
|
||||
for line in replace.group(1).splitlines():
|
||||
pkg = re.match(r"\t(?P<pkg>[^ ]*) => (?P<version>[^ ]*)\s.*", line)
|
||||
if pkg:
|
||||
replaced.add(pkg.group(1))
|
||||
|
||||
require = re.search(r"require \(([^\)]*)\)", data)
|
||||
if require:
|
||||
print("EGO_VENDOR=(")
|
||||
for line in require.group(1).splitlines():
|
||||
pkg = re.match(r"\t(?P<pkg>[^ ]*) (?P<version>[^ ]*)\s.*", line)
|
||||
if pkg and pkg.group('version') not in replaced:
|
||||
ver = re.match(r"v\d.\d.\d-.*-(?P<commit>[^ ]*)", pkg.group('version'))
|
||||
if ver:
|
||||
commit = ver.group('commit')
|
||||
|
44
sys-cluster/k3s/Manifest
Normal file
44
sys-cluster/k3s/Manifest
Normal file
@ -0,0 +1,44 @@
|
||||
DIST github.com-Microsoft-go-winio-v0.4.12.tar.gz 92439 BLAKE2B 7ce1539125742ab5d96586a8cbaddef90f1aeba8124430ee33c23374a3dc1a117fe8bd6d68591c83f0a8e4fb1633c74a19fcc8466567f89450056ea3843dca21 SHA512 3dfeb9f884aff5bb1b667a6558471274161ca7b4cd9402e47250903b74522f0bd6dec13ce32c8312eb8570f94dc061a5bf9ada5e0837d45a510cd4abf38c8211
|
||||
DIST github.com-alexflint-go-filemutex-72bdc8eae2ae.tar.gz 3110 BLAKE2B 71924138332ea7609025d0f031212404131595bb79a11eb9e3a400ebcb1a3828a04d78fb20846d0af4d805986add9db0660c1503658bdb6035c39521d557d480 SHA512 ee78d132ecb8daa6502c532bff900b94909f59daac656fad1a39c4a7a524ef2eafde8378d54ce079ed6c58d71e70c5f591a11888492ed23fccf3949b4813fde9
|
||||
DIST github.com-bhendo-go-powershell-219e7fb4e41e.tar.gz 5756 BLAKE2B b21030e20736251d73814c2a3e2aba192da4265c56f04ad44c2606f0fa82d34d049e402ac12ea0aea1a0f0607bfad0af29d2d654a0d38b1f90c9c942dfa6217b SHA512 229b262506e8ec1dae9c3af48a641ed3417976611a582a056313c31fb7719edadcebcc14fa8b04585515030108c9bb76a43d161f834ae1d774b47d44edf2f8b4
|
||||
DIST github.com-buger-jsonparser-bf1c66bbce23.tar.gz 47792 BLAKE2B ed9c9d5bf5eb653a17f96f5ee158341f3ff071c8f887191cd66b73249c4befc11f50db7099a845171600dd45c0bcc75c064d3e2738910e24ddce669742726cfe SHA512 ed1811a2f7ecb8c863bad296181b9925e26d544b84961aef55d4c411945c30204ea921cdc80684a81d632b3bc1ee3907564e2e7c59b0d0334c4bdde72b765ce5
|
||||
DIST github.com-containerd-cgroups-4994991857f9.tar.gz 41273 BLAKE2B cee4003430e16c7f82e7853346761bbebcebd9b4b26eb12c78dce169a671d73e5aabecff77415e46d2960640138356cb4f7cb4c2b79ac9bdf750c50e7a16cbc9 SHA512 afeb0a0c9b39a988008cdc7ca4b48168bed67a9bf9ae51012bde3d5482af3413719b7878d18960a98bacbb52850074b5942068c446655da59257027ea2c80593
|
||||
DIST github.com-containerd-console-c12b1e7919c1.tar.gz 11606 BLAKE2B 99f29c02094fd28258da200166c94061b912cdd04972bde0802db6fe64eb266a7fe4bb920a31d76e8760ce2c816cff39ad3531ad29848d1f910e889b0ad714dc SHA512 6f0ba34441c6afc296c727e474650e00a3b89619f2b90b3e347b70dc8d3cb84f0dd5190faee5239b862a4880da4d45327ca42a4e2aa05a102292149608ee9bd7
|
||||
DIST github.com-containerd-continuity-bd77b46c8352.tar.gz 1075578 BLAKE2B ee06ad76691e857929e3af4fed91d90859a449e54a93b5fdaa07fe65014cdd3616f6a143d964ff9e651ad4354dcf3442002cf9862d907935446e6ffa4e24f686 SHA512 bee6c4cddf0f9f9c29a46dc2a0b930a6aee52ec61dc219aac17c45c04ba01648a59f634c181eafd6fc36d74385721d3225c89843912b5477a267884dd130eaf6
|
||||
DIST github.com-containerd-fifo-3d5202aec260.tar.gz 8364 BLAKE2B eebbea41a4d851110e00b68ff2db392a8483903f8d49d2c491659476fd982fcb9b4f399885c522c426f2016e101c4e23359a2fcfe5b40b7c3abe21a1f6e58ab3 SHA512 445798b2c081adda3ec394e7b95e374ff4c1265c4c2ea06697793e093e576e674e9b2747de5d6eb1c9fb42dde5d4a64331f9be7f94d709cc9fe1b91b49043020
|
||||
DIST github.com-containerd-go-cni-40bcf8ec8acd.tar.gz 98684 BLAKE2B e157c5e2772b3ce033647795718fc06364c67265f9f6a7fc8d5c3ab83fbf5c314f9adcf12daf46d9d6c6d62b43a60192f57e5e451c03dd8dcc6d1eb1aaae5bc5 SHA512 b14acbf94c12da799130fdf7ec4c4851e3b22e3b3a28c53bda1bb2d520ed3cd2b5f3bf95008ba9f4158e53b836a8068a8b7fb0ad20e00e5437da6b381e56bc7d
|
||||
DIST github.com-containerd-go-runc-5a6d9f37cfa3.tar.gz 13755 BLAKE2B 4bd89396932a877f780b85ae56058b9d095d37c9023fc2c38f2892baa8da72d559c2b19b1725b34890469b0aefe0427f54f2055e9f4532826f3ffaa2fdad93c5 SHA512 d8d8d4a4881f513fb09dea65be4ddedd6af91a12a7f2fcd02b8854f1a6beb7ba5f8a6280d85d58c16d06c3d07ee3791d8d037f47888008d6be47746d115c95f1
|
||||
DIST github.com-containerd-ttrpc-f82148331ad2.tar.gz 22984 BLAKE2B bcac7ef94f37ea74cf0f0f22b6fba84c8bad0c2969be98ba227145a901ecc7e649e23e0cb566423fa7be7d0a1833d371b68db55294c77c041be23aa9a1a8d912 SHA512 b989a83dd2da8966500c3a5c166e4518fb3d79795837f47ce35300e9885bee07a04707437fe83a47eba9e8dc477fd7b84a15f508ba28ab45ee7a856793cb2cc6
|
||||
DIST github.com-coreos-go-iptables-v0.4.2.tar.gz 15627 BLAKE2B 7637caac4c624924f36e9b1ac90c58b68c5d6cb9598b734e97d3b294c2e7a6513eaf7a273d948e7989e60c639382c096eefb797030ba5167008f141107858e20 SHA512 fd0cf1a124ef02e61be7b0c0bf8b44472ec19becc26a123010f124fc3e1e14339411b4c455d153fddaca6708c4839e8dcf49b258e00dc2ff9d27dc0c63dfba39
|
||||
DIST github.com-docker-distribution-0d3efadf0154.tar.gz 2002826 BLAKE2B 68e2829f809e42b97c1b5d3a8985e3f450fb9f24b3577496651d21e83ed1ffe9f0ff9fd7eefb31f2dd10c39319f4efb38faa54c14a4a3ce3da534826afd793f8 SHA512 cb5bc703c8eb5a0ab7513a94ac72aaff7e5d7f69b85719be799dcb1e76b1fb312bae8fbd3f266d49b1d20cc7ff22e6c4a06e34c87c443d04ea942c6b1538bd46
|
||||
DIST github.com-docker-go-events-9461782956ad.tar.gz 15593 BLAKE2B 4173b3a8addccf8058496fcc347ee9e0ec311fba62c95fb966a7c84ca989e3702ed659b4c08e62435fdbbb1541f1a53c0f53f13c548b0b089de0302760d2fb87 SHA512 5128235ab14e4b03f3c15ed142e28361a1246c06c597a97e74ad71f1c92f3822bd97a5eb0b350bf54b3b749a2da51ad5ac1fc19d4c46dd41c941da1cd9d0e78a
|
||||
DIST github.com-docker-go-metrics-4ea375f7759c.tar.gz 15131 BLAKE2B c82392761cd724dfe04c1f8d1defcbb19708ed6f07b343cda764b6f98ea0907189a1b9d6ed7e59f5c0329690952cda01090e5459b9226c1c18ae94998ff60a4d SHA512 515c3e4fcd41074307c50723487952538a4be26744fc4bdef1d8f83332310f0855214159611938eada212164e56ef344477a226af63e9291aff841fdcf832193
|
||||
DIST github.com-emicklei-go-restful-v2.2.1.tar.gz 59766 BLAKE2B fe70c4aaaad5163d89e7ee816ea0c3c3ea6df965dae7817e3396c2eb0b953490b7075e6549d6846cf8165a9869e9409011d521aa83ada21f6bea1d9bbdecb8ae SHA512 68ea82aae0c1f968677bab114c731abb2f1528e79aa7f0387eb256b27b97821dca49eb1a2aed13bef6aea77cb10658eccfa85d913e6eea2ec53805c63ff8aa54
|
||||
DIST github.com-etcd-io-bbolt-v1.3.1-etcd.8.tar.gz 91127 BLAKE2B a24e47d78e3f13533d141e4582ed94e7c55f369377c2572baec093fadcc5fbff10cd45fc491a9c1d3f45f170b27dd8d2417686cedac6a13886373035885c3d73 SHA512 6980dad5839c0ecc1640b04cd70397032de646207059d162574af7d183b94535f860fff69c20684cfdab7e3cf45f1af51480775d785331571eee4eca38e48302
|
||||
DIST github.com-go-mgo-mgo-a6b53ec6cb22.tar.gz 376900 BLAKE2B 00562080bb750c9e6479e3ab36c4594106e9625fd898bf290335d7a40c5664f4150953f35f2350341545e0aa938a360d12834fd36f0309efc7c6d4973ced1006 SHA512 4d2e226ba1d34005f449f226b0dda63dae7815534a2f341f3c5c8cef1a91471a5f7b7910284be4a9ffdde9c296f49fe9588a245afcc91e8bbb684212b0c7a62a
|
||||
DIST github.com-gofrs-flock-v0.7.1.tar.gz 7294 BLAKE2B e11148c7e96a6feb45a1d35085b67d11ea3111272ee56c3a816237b2c83010d8b10d4a4e41891953b30fa22038153d8364f0079f7cda4fd6350d8c758ba2f992 SHA512 9e5b20a788e8b5677ed8665286aad069b6caea0d5bd1f2301f9617fdabdc1f0a82f0db9a28225df759edb363382e061f9fc87a4e51fc5a4b720d13454deff4a6
|
||||
DIST github.com-gogo-googleapis-v1.0.0.tar.gz 39626 BLAKE2B d13d9f8d7a23279958d9e2a412300b2cfb05d4bf25093514dba26ac1135f8d8e00e30e781fbd2cf1478eca40657cdc028671e3e4ff6c8056a6ad272f4f7cd21f SHA512 8cf506bb911f94817487076364c3d49f91a273b40c4d33afe36c00066476b04e972b5dcadc2b8cfd60e91506f8b4559c9a1236c45910856299a6eb69f5f3a8ae
|
||||
DIST github.com-google-cadvisor-v0.34.0.tar.gz 5210189 BLAKE2B 48cf7ddc94e52f07a0e74868d00f4a45d45aa5233b518da46762743357c17cbe7f2971794deda9936a10c65724928a219c498bf6d2493266f5b0ea547d485cb6 SHA512 accb41afd4683413b846f9380229bfa54c88b3141be68492963444928e40e14fc28da3ce27b09746e29c4dfe6323cd6bea69181826367e830f284d6ab698c633
|
||||
DIST github.com-hashicorp-errwrap-7554cd9344ce.tar.gz 8320 BLAKE2B d73eeb7a4070f300f2c844089b152fe69d5fcfc40687608cb7e1b8b6e3b37c45f9d04428234f357912282831331695aa4d25711987f844c3ac540eab04ab0348 SHA512 da45b1696253bebe012f3d0e624a63dd11ad1a613d81cc302f2ea6f096f29a8d81015b9c00363bd2590c4cacc59de52a27e84435a7b4ad6512485cdd87df11c0
|
||||
DIST github.com-hashicorp-go-multierror-ed905158d874.tar.gz 17860 BLAKE2B 9cd8fef45fdd36180f9c5dd9a039297dc97fdd282bbda77d2c31273068cdc7e31452fdf3fa241156730dca94ece80ea8d1384a1aeb1e495425202aba8f7946d2 SHA512 76b13ab4edca0a8e7e37b361e7102eae117f028c9200ad0cc707ebd49942a8caf3cb7ef56a568f079c249913660e2151e26ce3221057bb67501d6180a1205f55
|
||||
DIST github.com-j-keck-arping-v1.0.0.tar.gz 6313 BLAKE2B afc8ec04bc2a60729215c5ed60f1a457fa0021e6fe6e4e359abfbd2c41ab346e3c02c5e89c9048da2a6205a5b4faf76c7d0aa4d44cbb1fc3baa269bcc459024c SHA512 26a75cb19dd90187b6b63b2a89be0e3d7ce36e62db515a6ac379db8063127208cf4b6d5d25b7924b1b6a7f094287bc166626e86a6b9d24acfa85b821c7974204
|
||||
DIST github.com-juju-errors-0232dcc7464d.tar.gz 17356 BLAKE2B d116659e78103fae36f4b9d0956e663f611eabf21ff1f70d8791b89b1c2a9b5310f05eb3f55558f834734e30b00441b7cc288f6918c407bcc1aca74f4cee3405 SHA512 08579648649fb531e40ce9dc265500bbf846d90a36d5724e1d6f99f5420bc7ad7bff7c4a50c93e86159293986613e05890ac00131b5e6369570a18e89450bba3
|
||||
DIST github.com-juju-loggo-6e530bcce5d8.tar.gz 22617 BLAKE2B bf16e3db33fc1723853a9d1d1a978b5ba7f1618e75b2a22852c8e7842491c31fd4cb51cc2febcea2c02a789dc2cffa35871d2d126e4ff1c99550f96a882f05c2 SHA512 ffa9e1eb1d0a76a69f63e258a9ffadb03bb43fa2f200b2692ba629e25b03acc590744a1421b635f380566728db520dc979a1edf028bd0abcfe450c99c18916a0
|
||||
DIST github.com-juju-testing-ce30eb24acd2.tar.gz 61319 BLAKE2B fe8311b9ef77bcd6d1576514f9ceb101db14af67c014101188e7b49416c6c5544df4077b9deb7d6635be7541465df90dbf850f120d50059d7909976d4f40ddb1 SHA512 1219c0ade3bec79d9a1b2391660eae662ac293f36ccf8b7a5299d98efc8426a2977fda545b3178ebce07f06f25931fdfdcec1e6af65f94ba15405f9e78f00fc4
|
||||
DIST github.com-kubernetes-utils-3a4a5477acf8.tar.gz 51144 BLAKE2B 3aea65d8e2311cebec5114a3ce59e65856e22a7fe1aebf9c3648f03864b074048a1d188f1d33a5ae1aa7ed1cfce28f9863bedc44fc2caeea8c155bdab0b43d1f SHA512 09b4a9323c51f104309320a3b158e0bb2e74e8ed043a33271bf45fc8ed5b19dc2cd171fdddc41e0d8b59b1977bf615e128f32bbb8e0e57d529f75d8407c98669
|
||||
DIST github.com-mindprince-gonvml-9ebdce4bb989.tar.gz 55029 BLAKE2B b7667028f6f6385dd01b14d7c61025e4559a6b63577d5ba9022dd904c9e88c4dd926a01b8d7c42d7929e961ed88b1e2d2c578d344389397031e0e97546747748 SHA512 9c0a764a0616db53980c95c0d584f96ac0be3cc5493d09e5058cf8d9abcbe1b74a5034c71fda710528f3e6b902f1f949a8dba78ea3bb175574959a27112d632a
|
||||
DIST github.com-mistifyio-go-zfs-166add352731.tar.gz 15538 BLAKE2B 34373a4cd47d5412c224fa2fb5abc70db843faaf8ee19ad1b2ac847e8ee471574e00b7eda5340a10e9e4659dc44fd7530809c396e0db4ba7bf4946135ce6965e SHA512 d90def21b48aa7d56541c33fe4f108e3479599e18d26dd7cdddc8030bb852de362ac8cb2b50c7ed4b0d9703fb1346507d8347b0ac63da525185d917aa29ed75a
|
||||
DIST github.com-opencontainers-go-digest-c9281466c8b2.tar.gz 19200 BLAKE2B fc58bfc0f5640231c938156f29a8b9e388b68131abe5f2ef71f8c7c0ea00a786d99956f36e90ff7dba86bd2c916f5ea139c0c63b4e1ca6ea463da11b638d7461 SHA512 7d7b2ab4516eac74f8bafefa4651d28d5a2ca9b1a91aba053a45c8ec91ce2e362a8c093106eddec8300b55856000d87e013bf000c0d73b827ff3deb24743d632
|
||||
DIST github.com-opencontainers-image-spec-v1.0.1.tar.gz 138674 BLAKE2B 4cc13e304c7b328e03b59433b698940094a8d583fc8c7ac1b7245c5dc121c9d6b1b8ed98916b3cb9b2c16ba2c857f613dcfcbb8c3ead2b4bff2fe3d001d289a2 SHA512 762dce11fa262f0417e9bdd20ad4d75b3efa505705b2dd357889e14b4e0120c7655468dc1b998c8dd824ca1ba1f0293671e80d4ab6b21375c80c3ff89cee6d27
|
||||
DIST github.com-opencontainers-runtime-tools-v0.6.0.tar.gz 3021046 BLAKE2B de46ea423af2c4f016949fe0ac47667557a2aea9115f5ea46458cd3baf744549b47635914c032a44bb20a0f99cac57b45bb16b8cf750e804759ec1ae0eb3c4a8 SHA512 9e05f55ed4d9fe9dd0168cdcab9a6a67226258a6f1f6ebdd77c484c6fdfe8bf801902fbba8e160f1a22ad1437270bc041d37706416a98892b1c1de909d721c7e
|
||||
DIST github.com-opencontainers-selinux-v1.2.2.tar.gz 18694 BLAKE2B 627c2a51058bdcc7b0a20ca774e847e9bbd106ca3af31e216c92de820579b937b74b297dabc5217dcf1e17b4de90b268597355faaccdd856e8b08953133d9f12 SHA512 28eb02f1bedf96161d5d5fdcaed0f5058006908e4aef7916f39080299b1031ef31da71aa00139fca1686d881c133ee76040b17d294949037703af207b805b282
|
||||
DIST github.com-rakelkar-gonetsh-501daadcadf8.tar.gz 18277 BLAKE2B e8ea8d686e11dbc83f238fd1ccd5773c3ca5706ddc4ea856730c3c2b2b4e38f910d13877321065b99edd4e30dec412b7c71fcc0df40ad2a0d3a59f3d3737bea7 SHA512 bc1faab1ef94a44f6763b3421f10185d0a27eb773830707b08ddc7cbdae9b84353f9c97837dd51154317c371f3544c1094c6f56d19408e820dd8d7fbcfa27455
|
||||
DIST github.com-seccomp-libseccomp-golang-32f571b70023.tar.gz 12953 BLAKE2B e929ef563022a8c31e2afdcd981223e3836801fc04b45c7197c0f699279481f4e925b23f33d921b568ce96e4bb9a4b96913ca5e24367edeb9c39a46e0abe66f6 SHA512 a5043e36ff0ed9c3878b1f7f008ba4d9b28d377a37e7d556ed5722c54d864fe8ec84ec101779c05667e2e84ba4f83019d9a221ca78c37bd22c4f471222d5a513
|
||||
DIST github.com-syndtr-gocapability-db04d3cc01c8.tar.gz 9899 BLAKE2B 584e75a9c47d28498aedb5c85b3409c79c84ec9fc47a5a9dc77aa117b4e48f681f72a12a03fafa566a405def40b4961bb7343cad0c6ecb3cd9da883a51ed20d6 SHA512 fdd8a3cc1add7570269df6ad8867fd9d2da7bbf751416a5376ff123dcf959be13912b766f5214123e20fabd242a629e02f3bdaf0680782805afb81f6f08a78ae
|
||||
DIST github.com-tchap-go-patricia-v2.2.6.tar.gz 11995 BLAKE2B 4653d6b806f5c500566017c6f876e85f1980b2eebdd3b9f7da58c43a10400ed2d1f1209b50264683f660eeb4c5cbefaa925b33ec16e6037fbfcf8f3c4ee67f97 SHA512 ca46dcac6293902c25e9dbf9ad214be8d87cd4494b96c77a511444c55dabe4b305fbe1dedfdacdb8ebb48b6af631fc70a10eb4b985a63ff2ca35fedfd7c2e572
|
||||
DIST github.com-theckman-go-flock-v0.7.1.tar.gz 7294 BLAKE2B e11148c7e96a6feb45a1d35085b67d11ea3111272ee56c3a816237b2c83010d8b10d4a4e41891953b30fa22038153d8364f0079f7cda4fd6350d8c758ba2f992 SHA512 9e5b20a788e8b5677ed8665286aad069b6caea0d5bd1f2301f9617fdabdc1f0a82f0db9a28225df759edb363382e061f9fc87a4e51fc5a4b720d13454deff4a6
|
||||
DIST github.com-xeipuuv-gojsonpointer-4e3ac2762d5f.tar.gz 7718 BLAKE2B 94b4c2ac92a683b2e26ec907cdb63826ebbef2da978d76146334ebd115e9dc95a69757ef91bdc1fe52d7de39b6e8f6400f9062a6d6ddf6637188f92e1c501fcd SHA512 c29d364a2c83d22546f9f22a3622f44662420f0d33b974138cc1f01218c7b0c14d59570a57bcfa8a55797425338aa227aa4347cf41c954e63437615736e38a5e
|
||||
DIST github.com-xeipuuv-gojsonreference-bd5ef7bd5415.tar.gz 6952 BLAKE2B 5390e11eaae7b3ef816f044874e665ce76cdf84cfdd19139a0923921f56e8cc24fc418952a0d1ec1ef56aa535fe314c131073ff0ae248f1c4b918bd70485d073 SHA512 e14f931af21c64ad4fd68e3f226d062938e747fc0107b00c41ffac489193b39874ed1ebe6dc24478f6979f9055ae4ca67c016c11952589c8a95ca3f3fc69c1ea
|
||||
DIST github.com-xeipuuv-gojsonschema-1d523034197f.tar.gz 64953 BLAKE2B 4b9b3ceeb9bf6b7eeb040b5921101a9fbec82f282cb44e2a76b7b2c0b8666ddfc82d7afd83e3ec766b076fc30e43ddf05c0314393caf571e58fd61c728b843fd SHA512 422e777b208b300abf18ac4732a3f7fb4b72087fb2c8c6832d57bc9794206f266e896c5eba7ea5040639e3cdd7d85fd982e86d0661a534d33e37811651dfbea8
|
||||
DIST k3s-0.9.0.tar.gz 17410789 BLAKE2B d178f556c3d0c18929fa2d7d1bf3e2ea9665e263e5a764b148191c09647640f683ba1f853f99511885ff67fce0e1a0d41f3f40047022763dfe49acee5c1a16cf SHA512 3a0a75989b8ccdb0d0d41eb82ec232f9a32749fef1e519d3a6be19b43d91f4fb166b64f4a5cb61b2b759f692d82d8ea47400c771ca14c8111fcc1a0bec447f65
|
||||
EBUILD k3s-0.9.0.ebuild 3978 BLAKE2B c8e5f5a358a69cb9a06ae2a035a763c36fe33eaa63abce2e2c9661c7f4287d2a002f07d8a4abfbd0c48f913ae16d1fb2453dcae649df80383e40b5b38e3ba9f2 SHA512 854c84cd665fc21be257f76fe1bf1ba9f597d9588d3e505a6174bd704812053692c91396171aebc5bd231c2c0a403f737d1c7126323710a6eaa40aaa5349d5c3
|
139
sys-cluster/k3s/k3s-0.9.0.ebuild
Normal file
139
sys-cluster/k3s/k3s-0.9.0.ebuild
Normal file
@ -0,0 +1,139 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
EGO_PN="github.com/rancher/k3s"
|
||||
EGIT_COMMIT="65d8764812ec2a2a2de4e593f0578411264f03f3"
|
||||
EGO_VENDOR=(
|
||||
"github.com/Microsoft/go-winio v0.4.12"
|
||||
"github.com/alexflint/go-filemutex 72bdc8eae2ae"
|
||||
"github.com/bhendo/go-powershell 219e7fb4e41e"
|
||||
"github.com/buger/jsonparser bf1c66bbce23"
|
||||
"github.com/containerd/cgroups 4994991857f9"
|
||||
"github.com/containerd/console c12b1e7919c1"
|
||||
"github.com/containerd/continuity bd77b46c8352"
|
||||
"github.com/containerd/fifo 3d5202aec260"
|
||||
"github.com/containerd/go-cni 40bcf8ec8acd"
|
||||
"github.com/containerd/go-runc 5a6d9f37cfa3"
|
||||
"github.com/containerd/ttrpc f82148331ad2"
|
||||
"github.com/coreos/go-iptables v0.4.2"
|
||||
"github.com/docker/distribution 0d3efadf0154"
|
||||
"github.com/docker/go-events 9461782956ad"
|
||||
"github.com/docker/go-metrics 4ea375f7759c"
|
||||
"github.com/emicklei/go-restful v2.2.1"
|
||||
"github.com/gofrs/flock v0.7.1"
|
||||
"github.com/gogo/googleapis v1.0.0"
|
||||
"github.com/google/cadvisor v0.34.0"
|
||||
"github.com/hashicorp/errwrap 7554cd9344ce"
|
||||
"github.com/hashicorp/go-multierror ed905158d874"
|
||||
"github.com/j-keck/arping v1.0.0"
|
||||
"github.com/juju/errors 0232dcc7464d"
|
||||
"github.com/juju/loggo 6e530bcce5d8"
|
||||
"github.com/juju/testing ce30eb24acd2"
|
||||
"github.com/mindprince/gonvml 9ebdce4bb989"
|
||||
"github.com/mistifyio/go-zfs 166add352731"
|
||||
"github.com/opencontainers/go-digest c9281466c8b2"
|
||||
"github.com/opencontainers/image-spec v1.0.1"
|
||||
"github.com/opencontainers/runtime-tools v0.6.0"
|
||||
"github.com/opencontainers/selinux v1.2.2"
|
||||
"github.com/rakelkar/gonetsh 501daadcadf8"
|
||||
"github.com/seccomp/libseccomp-golang 32f571b70023"
|
||||
"github.com/syndtr/gocapability db04d3cc01c8"
|
||||
"github.com/tchap/go-patricia v2.2.6"
|
||||
"github.com/theckman/go-flock v0.7.1"
|
||||
"github.com/xeipuuv/gojsonpointer 4e3ac2762d5f"
|
||||
"github.com/xeipuuv/gojsonreference bd5ef7bd5415"
|
||||
"github.com/xeipuuv/gojsonschema 1d523034197f"
|
||||
"go.etcd.io/bbolt v1.3.1-etcd.8 github.com/etcd-io/bbolt"
|
||||
"gopkg.in/mgo.v2 a6b53ec6cb22 github.com/go-mgo/mgo"
|
||||
"k8s.io/utils 3a4a5477acf8 github.com/kubernetes/utils"
|
||||
)
|
||||
|
||||
inherit eutils golang-build golang-vcs-snapshot
|
||||
|
||||
ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+rootless"
|
||||
|
||||
DESCRIPTION="Lightweight Kubernetes. 5 less than k8s."
|
||||
HOMEPAGE="https://k3s.io"
|
||||
SRC_URI="${ARCHIVE_URI}
|
||||
${EGO_VENDOR_URI}"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
|
||||
DEPEND="
|
||||
>=dev-lang/go-1.12
|
||||
rootless? ( app-emulation/slirp4netns )
|
||||
"
|
||||
|
||||
RESTRICT="strip mirror"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
pushd src/${EGO_PN}
|
||||
|
||||
# Use out version.sh
|
||||
cat <<EOF > scripts/version.sh
|
||||
#!/bin/bash
|
||||
|
||||
COMMIT=$EGIT_COMMIT
|
||||
GIT_TAG=$PV
|
||||
VERSION=$PV
|
||||
|
||||
ARCH=\$(go env GOARCH)
|
||||
SUFFIX="-\${ARCH}"
|
||||
|
||||
VERSION_CONTAINERD=\$(grep github.com/containerd/containerd \$(dirname \$0)/../go.mod | head -n1 | awk '{print \$4}')
|
||||
VERSION_CRICTL=\$(grep github.com/kubernetes-sigs/cri-tools \$(dirname \$0)/../go.mod | head -n1 | awk '{print \$4}')
|
||||
EOF
|
||||
|
||||
# Disable go generate, create codegen only
|
||||
sed -i -e 's|go generate|go run pkg/codegen/main.go|' scripts/package-cli
|
||||
}
|
||||
|
||||
|
||||
src_compile() {
|
||||
pushd src/${EGO_PN}
|
||||
|
||||
export GOPATH="${T}:$(get_golibdir_gopath)"
|
||||
export GOCACHE="${T}/go-cache"
|
||||
export GOFLAGS="-v -work -x -mod=vendor"
|
||||
|
||||
# dont run ./scripts/download but at least:
|
||||
mkdir -p build/static/charts
|
||||
|
||||
./scripts/build
|
||||
./scripts/package-cli
|
||||
|
||||
popd
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pushd src/${EGO_PN}
|
||||
|
||||
dobin dist/artifacts/k3s
|
||||
|
||||
keepdir /var/lib/rancher
|
||||
|
||||
popd
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
K3S_ROOTLESS_UPGRADE=false
|
||||
if use rootless; then
|
||||
has_version 'sys-cluster/k3s[rootless]' || K3S_ROOTLESS_UPGRADE=true
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ${K3S_ROOTLESS_UPGRADE} == true ]] ; then
|
||||
elog "For rootless operation, you need to configure subuid/subgid"
|
||||
elog "for user running k3s. In case subuid/subgid has only been"
|
||||
elog "configured for root, run:"
|
||||
elog "usermod --add-subuids 1065536-1131071 <user>"
|
||||
elog "usermod --add-subgids 1065536-1131071 <user>"
|
||||
fi
|
||||
}
|
Loading…
Reference in New Issue
Block a user