www-servers/gitlab-pages:
Purge obsolete versions of gitlab-pages Package-Manager: Portage-2.3.19, Repoman-2.3.6
This commit is contained in:
parent
c473f4c684
commit
7a630876ec
7 changed files with 7 additions and 304 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
08 Mar 2018; Manuel Friedli <manuel@fritteli.ch>
|
||||||
|
-files/0001-fix-Makefile-0.4.0.patch, -gitlab-pages-0.4.0.ebuild,
|
||||||
|
-gitlab-pages-0.4.1.ebuild, -gitlab-pages-0.4.2-r1.ebuild,
|
||||||
|
-gitlab-pages-0.4.4.ebuild:
|
||||||
|
www-servers/gitlab-pages: Purge obsolete versions of gitlab-pages
|
||||||
|
|
||||||
09 Feb 2018; Manuel Friedli <manuel@fritteli.ch>
|
09 Feb 2018; Manuel Friedli <manuel@fritteli.ch>
|
||||||
-files/0001-fix-Makefile-0.6.0.patch, -gitlab-pages-0.6.0.ebuild.bak,
|
-files/0001-fix-Makefile-0.6.0.patch, -gitlab-pages-0.6.0.ebuild.bak,
|
||||||
gitlab-pages-0.4.0.ebuild, gitlab-pages-0.4.1.ebuild,
|
gitlab-pages-0.4.0.ebuild, gitlab-pages-0.4.1.ebuild,
|
||||||
|
|
|
@ -1,18 +1,9 @@
|
||||||
AUX 0001-fix-Makefile-0.3.2.patch 744 SHA256 7efe9ee3cdf0e7e324155d05651f535b39f151adfd8f8bc2ea36eea64e40f1e1 SHA512 2c50e6bb214be622546d9c07f4f39b83d116976dbc9c040a0dd74c70dc8deadf5f6870468fda957b3a4d3df8eda982c3d86612cb8dd7865650cd3fe9202f7b11 WHIRLPOOL a1babc1249f3b48f376163a9ab63a8ca3563da544cf15d04a79fcbb38dcb61679da8304e3eb2afd8a0f1d662be8f3cc144b9cd0928504b197d11b250670d40d3
|
AUX 0001-fix-Makefile-0.3.2.patch 744 SHA256 7efe9ee3cdf0e7e324155d05651f535b39f151adfd8f8bc2ea36eea64e40f1e1 SHA512 2c50e6bb214be622546d9c07f4f39b83d116976dbc9c040a0dd74c70dc8deadf5f6870468fda957b3a4d3df8eda982c3d86612cb8dd7865650cd3fe9202f7b11 WHIRLPOOL a1babc1249f3b48f376163a9ab63a8ca3563da544cf15d04a79fcbb38dcb61679da8304e3eb2afd8a0f1d662be8f3cc144b9cd0928504b197d11b250670d40d3
|
||||||
AUX 0001-fix-Makefile-0.4.0.patch 744 SHA256 7efe9ee3cdf0e7e324155d05651f535b39f151adfd8f8bc2ea36eea64e40f1e1 SHA512 2c50e6bb214be622546d9c07f4f39b83d116976dbc9c040a0dd74c70dc8deadf5f6870468fda957b3a4d3df8eda982c3d86612cb8dd7865650cd3fe9202f7b11 WHIRLPOOL a1babc1249f3b48f376163a9ab63a8ca3563da544cf15d04a79fcbb38dcb61679da8304e3eb2afd8a0f1d662be8f3cc144b9cd0928504b197d11b250670d40d3
|
|
||||||
AUX gitlab-pages-0.3.2.conf 148 SHA256 2b1d40d38d729a4e705455a2fbe745618c573cdc7159683ebf42f3a28d41a473 SHA512 57ff7ef4f3c5f221e39f8cfd29ab58ccb126d672260ee983d6f1221bfe2cfe5553b4f0187ce384f05fc6694ad31c2f7ae02155d0c21247eccd1d7dbf1632ffba WHIRLPOOL 1cb70bb5a9e6876a58e7cf78a68e9a08a0ae947237a537f7cf93b727cdb69482114cd2c1ccd17e27b80590be11e9904bae81e06afab83066c0d10926d22dd301
|
AUX gitlab-pages-0.3.2.conf 148 SHA256 2b1d40d38d729a4e705455a2fbe745618c573cdc7159683ebf42f3a28d41a473 SHA512 57ff7ef4f3c5f221e39f8cfd29ab58ccb126d672260ee983d6f1221bfe2cfe5553b4f0187ce384f05fc6694ad31c2f7ae02155d0c21247eccd1d7dbf1632ffba WHIRLPOOL 1cb70bb5a9e6876a58e7cf78a68e9a08a0ae947237a537f7cf93b727cdb69482114cd2c1ccd17e27b80590be11e9904bae81e06afab83066c0d10926d22dd301
|
||||||
AUX gitlab-pages-0.3.2.init 698 SHA256 6751226148f5c8b53bdf3422053115ed6bb6ac3d7795b605617a7733a2b84437 SHA512 10e299febee0a66f03e8debe3f20ad635b52b5238a2ad23f585d30f14d5c0f591825bd892119f564f427e93a539184e39424c8cdc78200b2dbb5d0f588738176 WHIRLPOOL 7142b6a056a0d0a90bb18d1fdc5995c07156e05216b9e5779548427ad6f7aed4cf8eb090acfcbd0a7cc07826c0b6dfc5276ca176a80783d40405d2011a253fe0
|
AUX gitlab-pages-0.3.2.init 698 SHA256 6751226148f5c8b53bdf3422053115ed6bb6ac3d7795b605617a7733a2b84437 SHA512 10e299febee0a66f03e8debe3f20ad635b52b5238a2ad23f585d30f14d5c0f591825bd892119f564f427e93a539184e39424c8cdc78200b2dbb5d0f588738176 WHIRLPOOL 7142b6a056a0d0a90bb18d1fdc5995c07156e05216b9e5779548427ad6f7aed4cf8eb090acfcbd0a7cc07826c0b6dfc5276ca176a80783d40405d2011a253fe0
|
||||||
DIST gitlab-pages-0.4.0.tar.bz2 205924 SHA256 b26a00050d3558e793c070cda2fe50dc1bd76ea305902e4885746280755c3ea0 SHA512 9ff1d51655c0af93eca0b3a7e5cf250ce9a6787b3bc5eabcb59207ca3af13b6972bbebbc9c4a05bc1056cd12d6ad4c4bc30700efb656a2b9cfedf71ef57666e2 WHIRLPOOL 064625dfbfd428da5ecbf7ceb0532ff16e61ef9fbdbe1f4f72824e06ca21a93266a3d5eeec730f6423cb9d5d26d99fc6dbb568f30a79c4a691a0fdb08301c1cf
|
|
||||||
DIST gitlab-pages-0.4.1.tar.bz2 206039 SHA256 ed856e1d549597b5f1b7aa5d006538aa4def240206b4756728aaeeefa49734c7 SHA512 e6dc7c73ec0601ebe53c54aa8d0978954c24450e488776bef1bb2483efd2db14d23188ee10660f6833f44bbbb50f462f8b9568a77cd4ff970300c604856319a0 WHIRLPOOL c8abfaf677f935b752be24c7ce703c49dcc23061a24f2137ea18df33a96d42233e7e00de120a812df58b84bf3db0739e97a1e37fc04367d370ef2558986d73fa
|
|
||||||
DIST gitlab-pages-0.4.2.tar.bz2 209079 SHA256 391301c4f5cc288ed1a6a451e5273899518b83529c787c0a5f724161005ca786 SHA512 74e4cd810712d1506b927f75b63dc4fca09802097579d456cfada94f06c59b05f5e11309dc6fbd0f4c701243933688afa89ef8c1cf921f15536f505c7dec99f4 WHIRLPOOL 0f352db3977565b7c41609dcbed9161fcc99398fc56aa535255a69d12169b75b985410964a9adce60ed9eb8b88a68128dac9a9528f85ec62bae468fb8907e182
|
|
||||||
DIST gitlab-pages-0.4.4.tar.bz2 209229 SHA256 e3024edf56a61e8705f4fb5db2141087f16db1fe550d116e950137b92b201720 SHA512 5618e659ddd91a3398cd7eb00e38292e3bc88b31af91c02815dfe810a5a478d7eb2314430478e4e2971f36a44ac37a2c9ed01bd357d1f8737a8a63fc697821e7 WHIRLPOOL 52cec732705285e2270ad1fda43088ce0c6e0dbf652f7cc29e77dd68cb23ebe913c0c71af0337a59f77f351b207e79469bdbcf5531f6ee6714695af0d08c3497
|
|
||||||
DIST gitlab-pages-0.5.1.tar.bz2 224270 SHA256 b61ed9c12baf197dfd466342301ccb3160fbfe8fe61270a31a72e5503504f50b SHA512 973615efb54290c0d6b41455d91bf6343d8b09687565b8ad5e72cd69faea99cc3819c3aabea9e7cb94414a61835104e052affb1072ed62b1e2f343517eb94184 WHIRLPOOL 421500d5f0cee352a95dd59e9b799a9b3fd6b7639c656bd54fa601e061ddaa5062fa0b6a567bfce2543dcf9755b824a81362171c779db2f3f238faf760a6c472
|
DIST gitlab-pages-0.5.1.tar.bz2 224270 SHA256 b61ed9c12baf197dfd466342301ccb3160fbfe8fe61270a31a72e5503504f50b SHA512 973615efb54290c0d6b41455d91bf6343d8b09687565b8ad5e72cd69faea99cc3819c3aabea9e7cb94414a61835104e052affb1072ed62b1e2f343517eb94184 WHIRLPOOL 421500d5f0cee352a95dd59e9b799a9b3fd6b7639c656bd54fa601e061ddaa5062fa0b6a567bfce2543dcf9755b824a81362171c779db2f3f238faf760a6c472
|
||||||
DIST gitlab-pages-0.6.0.tar.bz2 237765 SHA256 2bd99b5c4a1ad05ac02f17f5b450c308d1ef5936ff2e44be706705df8376c41b SHA512 935572062268c8a8429634377e02060f55feb2dfbd6b16e4487c1c4043dff435c304798dd2097f381f1c2e175c21d840e2dee76851dc9e03eeaa49d2b003900d WHIRLPOOL 01541d143a9511911cdd7c0c97d63cc48c682b19392c96ae429d98eeba6aba220e811d4da6826da2d417439202a33fc7a0deb16a9dda8a5a65f0e6b0fa9adf54
|
DIST gitlab-pages-0.6.0.tar.bz2 237765 SHA256 2bd99b5c4a1ad05ac02f17f5b450c308d1ef5936ff2e44be706705df8376c41b SHA512 935572062268c8a8429634377e02060f55feb2dfbd6b16e4487c1c4043dff435c304798dd2097f381f1c2e175c21d840e2dee76851dc9e03eeaa49d2b003900d WHIRLPOOL 01541d143a9511911cdd7c0c97d63cc48c682b19392c96ae429d98eeba6aba220e811d4da6826da2d417439202a33fc7a0deb16a9dda8a5a65f0e6b0fa9adf54
|
||||||
EBUILD gitlab-pages-0.4.0.ebuild 1937 SHA256 a6252e17b9a61dc39dce932e58c0c8071ade36127c38935346feeb9c3ec3a453 SHA512 bc6fbec72653225b22b1a9b559872f6df801629f87fce39aba26e096b30a995c844b2443cabffc157e89f0b961b150ff5c48c628bc7d7c448b763003d6eec9bc WHIRLPOOL 0b2a0e2de2d4719efd5d32cb7252402f46d6957c1166a8b8515a45a2e4cc3d209bc1079d6fbacb07dd17f7cf90359e71612bfe8c4eb7c4a3f1d3d9f3beb7a556
|
|
||||||
EBUILD gitlab-pages-0.4.1.ebuild 1937 SHA256 5013b00300c4a3f0e3cdf00aee18409cbd0f18e413fe0ecf8c343402ccc9015c SHA512 fdb22d842d465abca85aa9860be1d2072ef023f15a604d5e3a16fcf3e5941a6f87f8783899e38b0e118347246a8d285f62ff1f19fa57200d1cc5551b3aa932f4 WHIRLPOOL f5733133d13d01652f36c32489ca1a688fb56d83aa50f65bcd4691389c337f827f2003555cac0a4d71ffd2f2c10746dd5d57953278d688ca19041c9f34c6c2fc
|
|
||||||
EBUILD gitlab-pages-0.4.2-r1.ebuild 1427 SHA256 70a53b600d498736734ff44c51fd468113bcdcc6f76fad58e49482f7c2b7acbb SHA512 b9954da56a2ed1e95cfeb9cf3554377a08e44f3b069c77f85bfe11d10203957aa4ca29a87e19fd3dabd372c6f5900db68f4ff146ca160eecbabdb82f1be3ff83 WHIRLPOOL 958d5775fb2fc0df06adbcf51af950587235202f3fc2e80cad2102c17d0709da03212010a5907343cf112fe49fd669eec02066a1613d2600095c69e40634ed0a
|
|
||||||
EBUILD gitlab-pages-0.4.4.ebuild 1429 SHA256 7cb07e955aa0b73c88258c0c33125346e37e66f273fbede3e637cda08cadb1c2 SHA512 5d7ad52cfa4be4c1998b67ec59b7fbd727f477163fc1766806e5a2d0fec7131ae8cb5eb7c30161cdae1a88207098d526d5a84532dd1d2cdcd55e639950e6f169 WHIRLPOOL 1ae33c7f518e2cd3800e3b817aba46786df8ede9690b1dcd7c7710bd882795ffa3fc2cb1c0eb01a0da1ee65e074d020885e9ea8a1a74a4696ec09709f4bb5432
|
|
||||||
EBUILD gitlab-pages-0.5.1.ebuild 1429 SHA256 be42145727bdc839161d6ac74bde5f59f7b69d2c204988e328d6ad2f02ee8704 SHA512 a585ab78624455480bd11ae599bc299a27e99b905b5fd686d71c0c06c157b937e63a46235fdbca758e47a938612b202d1887ef8749c5bd7c3abcf2fa5f48dfee WHIRLPOOL 57d1ace304dc994b27eb1d550885de5356cb2ce07e1d80c7a3c4f1c425115e59bce9220470e8ad9808b1f38d7bcd028ddd43dd04424f8556355417c81ec78a00
|
EBUILD gitlab-pages-0.5.1.ebuild 1429 SHA256 be42145727bdc839161d6ac74bde5f59f7b69d2c204988e328d6ad2f02ee8704 SHA512 a585ab78624455480bd11ae599bc299a27e99b905b5fd686d71c0c06c157b937e63a46235fdbca758e47a938612b202d1887ef8749c5bd7c3abcf2fa5f48dfee WHIRLPOOL 57d1ace304dc994b27eb1d550885de5356cb2ce07e1d80c7a3c4f1c425115e59bce9220470e8ad9808b1f38d7bcd028ddd43dd04424f8556355417c81ec78a00
|
||||||
EBUILD gitlab-pages-0.6.0.ebuild 1800 SHA256 7522d58e9b03a923f2e39cd6607c978485fcf3bd5d031f22c5c1831ffa81bb4f SHA512 487381485e2a9cecd8c7dc7a553ab5d107a49db9c77cd0c3d77c97c8e65f43207e6e5fe853959fed2df085a9047ee55b0ea332b8e507338b6ab44004bc7173db WHIRLPOOL efb8a378df194d37b6e59663b488aaa1608b7650489b160d59e98eada7e9f5328287f99843db7e2ebbfeaceaf2ebffc0863ffae915cc8c8f5b7e0a6a66a7206c
|
EBUILD gitlab-pages-0.6.0.ebuild 1800 SHA256 7522d58e9b03a923f2e39cd6607c978485fcf3bd5d031f22c5c1831ffa81bb4f SHA512 487381485e2a9cecd8c7dc7a553ab5d107a49db9c77cd0c3d77c97c8e65f43207e6e5fe853959fed2df085a9047ee55b0ea332b8e507338b6ab44004bc7173db WHIRLPOOL efb8a378df194d37b6e59663b488aaa1608b7650489b160d59e98eada7e9f5328287f99843db7e2ebbfeaceaf2ebffc0863ffae915cc8c8f5b7e0a6a66a7206c
|
||||||
MISC ChangeLog 2598 SHA256 a002afebd0b3184390ad83a94408116069396ad3902cfbcb1ac97bb31656f6ae SHA512 eb3a66abf26896211f5ae048c07ac015e7cb6e907585568ddb01c4e01f239f8234bdcf2f171f8fb368a5ee21ae95f8a301ab599c6eda42f3eff2ef5520e707a6 WHIRLPOOL 9f6bf0edbda91a3ad2b58722f9bd7d7e0a962892dd2f2263ecf13dd515b1397a08948f0d695d65e78b545d97950072b7ae79d646908e69a920cb8b27be0b2c32
|
MISC ChangeLog 2878 SHA256 a9702b37131976df434b05fb34317450259bda7176c6cc2ab0ed9b8636b9e02d SHA512 fb41ca3d459f99a750095158cc6c3ee4f4209dd153c0febc35b7b2be860b5add62226d541a9d87f9b1adb834f5f5c1d70e14256fcdbcf2c1cb67d81c072360da WHIRLPOOL a00b2eacfcb4aa3ed20a84b29d62d7b4dd83aa5d5a879f30c0a5cc4a8dfea556e4b8e33a9ccd8aad3efa9d00bc68dc12fd03aafe7fe5993c2ef6646739f04666
|
||||||
MISC metadata.xml 248 SHA256 7b43be15755627edf5c12cf1b50c607d781558640bf8375d685d51d7ade99a32 SHA512 29f9b96b0a77546cce6a8bffd82fae2fd0939d32a7a05ffd0d91f9250a019a3ddaa599b93988c82daabb9c4c4b284dd947e2c47f6ca7727b8539cffa91bcb8c2 WHIRLPOOL 993013c9878ead35469db13d3072f694a341ee654182e0c31d0678f5dd6de4bdc8d59a0b7bb6d685dc41ea6b55dac518cd8034131baea8002170c680e50304d1
|
MISC metadata.xml 248 SHA256 7b43be15755627edf5c12cf1b50c607d781558640bf8375d685d51d7ade99a32 SHA512 29f9b96b0a77546cce6a8bffd82fae2fd0939d32a7a05ffd0d91f9250a019a3ddaa599b93988c82daabb9c4c4b284dd947e2c47f6ca7727b8539cffa91bcb8c2 WHIRLPOOL 993013c9878ead35469db13d3072f694a341ee654182e0c31d0678f5dd6de4bdc8d59a0b7bb6d685dc41ea6b55dac518cd8034131baea8002170c680e50304d1
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
diff --git a/src/gitlab.com/gitlab-org/gitlab-pages/Makefile b/src/gitlab.com/gitlab-org/gitlab-pages/Makefile
|
|
||||||
index 2c1b8e1..4c6feb0 100644
|
|
||||||
--- a/src/gitlab.com/gitlab-org/gitlab-pages/Makefile
|
|
||||||
+++ b/src/gitlab.com/gitlab-org/gitlab-pages/Makefile
|
|
||||||
@@ -1,12 +1,6 @@
|
|
||||||
-REVISION := $(shell git rev-parse --short HEAD || echo unknown)
|
|
||||||
-LAST_TAG := $(shell git describe --tags --abbrev=0)
|
|
||||||
-COMMITS := $(shell echo `git log --oneline $(LAST_TAG)..HEAD | wc -l`)
|
|
||||||
+REVISION := @@REVISION@@
|
|
||||||
VERSION := $(shell cat VERSION)
|
|
||||||
|
|
||||||
-ifneq (v$(VERSION),$(LAST_TAG))
|
|
||||||
- VERSION := $(shell echo $(VERSION)~beta.$(COMMITS).g$(REVISION))
|
|
||||||
-endif
|
|
||||||
-
|
|
||||||
GO_LDFLAGS ?= -X main.VERSION=$(VERSION) -X main.REVISION=$(REVISION)
|
|
||||||
GO_FILES ?= $(shell find . -name '*.go')
|
|
||||||
|
|
|
@ -1,77 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
inherit eutils golang-build golang-vcs-snapshot user
|
|
||||||
|
|
||||||
EGO_PN="gitlab.com/gitlab-org/gitlab-pages/..."
|
|
||||||
|
|
||||||
MY_PV="v${PV/_/-}"
|
|
||||||
MY_GIT_HASH="fdcb2c9"
|
|
||||||
|
|
||||||
DESCRIPTION="Simple HTTP server written in Go made to serve GitLab Pages with CNAMEs and SNI"
|
|
||||||
HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-pages"
|
|
||||||
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.bz2?ref=v${PV} -> ${P}.tar.bz2"
|
|
||||||
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm ~arm64"
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0/${PVR}"
|
|
||||||
|
|
||||||
DEPEND=">=dev-lang/go-1.5"
|
|
||||||
|
|
||||||
RESTRICT="test mirror"
|
|
||||||
|
|
||||||
MY_USER="gitlab_pages"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup ${MY_USER}
|
|
||||||
enewuser ${MY_USER} -1 -1 -1 ${MY_USER}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}/0001-fix-Makefile-${PV}.patch"
|
|
||||||
|
|
||||||
sed -i -E \
|
|
||||||
-e "s/@@REVISION@@/${MY_GIT_HASH}/" \
|
|
||||||
src/gitlab.com/gitlab-org/${PN}/Makefile
|
|
||||||
|
|
||||||
eapply_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" RELEASE=true -C src/${EGO_PN%/*} all
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
golang-build_src_install
|
|
||||||
dobin bin/*
|
|
||||||
dodoc src/${EGO_PN%/*}/README.md src/${EGO_PN%/*}/CHANGELOG
|
|
||||||
|
|
||||||
# rc script
|
|
||||||
local rcscript="${PN}-0.3.2.init"
|
|
||||||
|
|
||||||
cp "${FILESDIR}/${rcscript}" "${T}" || die
|
|
||||||
sed -i \
|
|
||||||
-e "s|@USER@|${MY_USER}|g" \
|
|
||||||
"${T}/${rcscript}" \
|
|
||||||
|| die "failed to filter ${rcscript}"
|
|
||||||
|
|
||||||
newinitd "${T}/${rcscript}" "${PN}"
|
|
||||||
newconfd "${FILESDIR}/${PN}-0.3.2.conf" "${PN}"
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog
|
|
||||||
elog "If this is a fresh install of GitLab CI Multi Runner, please configure it"
|
|
||||||
elog "with the following command:"
|
|
||||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_config() {
|
|
||||||
einfo "You need to register the runner with your GitLab CI instance. Please"
|
|
||||||
einfo "Follow the instructions at"
|
|
||||||
einfo
|
|
||||||
einfo "https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/blob/master/docs/install/linux-manually.md"
|
|
||||||
einfo
|
|
||||||
einfo "Perhaps I'll improve the ebuild later ... kthxbye."
|
|
||||||
}
|
|
|
@ -1,77 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
inherit eutils golang-build golang-vcs-snapshot user
|
|
||||||
|
|
||||||
EGO_PN="gitlab.com/gitlab-org/gitlab-pages/..."
|
|
||||||
|
|
||||||
MY_PV="v${PV/_/-}"
|
|
||||||
MY_GIT_HASH="043be6d"
|
|
||||||
|
|
||||||
DESCRIPTION="Simple HTTP server written in Go made to serve GitLab Pages with CNAMEs and SNI"
|
|
||||||
HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-pages"
|
|
||||||
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.bz2?ref=v${PV} -> ${P}.tar.bz2"
|
|
||||||
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm ~arm64"
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0/${PVR}"
|
|
||||||
|
|
||||||
DEPEND=">=dev-lang/go-1.5"
|
|
||||||
|
|
||||||
RESTRICT="test mirror"
|
|
||||||
|
|
||||||
MY_USER="gitlab_pages"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup ${MY_USER}
|
|
||||||
enewuser ${MY_USER} -1 -1 -1 ${MY_USER}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}/0001-fix-Makefile-0.3.2.patch"
|
|
||||||
|
|
||||||
sed -i -E \
|
|
||||||
-e "s/@@REVISION@@/${MY_GIT_HASH}/" \
|
|
||||||
src/gitlab.com/gitlab-org/${PN}/Makefile
|
|
||||||
|
|
||||||
eapply_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" RELEASE=true -C src/${EGO_PN%/*} all
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
golang-build_src_install
|
|
||||||
dobin bin/*
|
|
||||||
dodoc src/${EGO_PN%/*}/README.md src/${EGO_PN%/*}/CHANGELOG
|
|
||||||
|
|
||||||
# rc script
|
|
||||||
local rcscript="${PN}-0.3.2.init"
|
|
||||||
|
|
||||||
cp "${FILESDIR}/${rcscript}" "${T}" || die
|
|
||||||
sed -i \
|
|
||||||
-e "s|@USER@|${MY_USER}|g" \
|
|
||||||
"${T}/${rcscript}" \
|
|
||||||
|| die "failed to filter ${rcscript}"
|
|
||||||
|
|
||||||
newinitd "${T}/${rcscript}" "${PN}"
|
|
||||||
newconfd "${FILESDIR}/${PN}-0.3.2.conf" "${PN}"
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog
|
|
||||||
elog "If this is a fresh install of GitLab CI Multi Runner, please configure it"
|
|
||||||
elog "with the following command:"
|
|
||||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_config() {
|
|
||||||
einfo "You need to register the runner with your GitLab CI instance. Please"
|
|
||||||
einfo "Follow the instructions at"
|
|
||||||
einfo
|
|
||||||
einfo "https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/blob/master/docs/install/linux-manually.md"
|
|
||||||
einfo
|
|
||||||
einfo "Perhaps I'll improve the ebuild later ... kthxbye."
|
|
||||||
}
|
|
|
@ -1,61 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
inherit eutils golang-build golang-vcs-snapshot user
|
|
||||||
|
|
||||||
EGO_PN="gitlab.com/gitlab-org/gitlab-pages/..."
|
|
||||||
|
|
||||||
MY_PV="v${PV/_/-}"
|
|
||||||
MY_GIT_HASH="dccd0f2"
|
|
||||||
|
|
||||||
DESCRIPTION="Simple HTTP server written in Go made to serve GitLab Pages with CNAMEs and SNI"
|
|
||||||
HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-pages"
|
|
||||||
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.bz2?ref=v${PV} -> ${P}.tar.bz2"
|
|
||||||
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm ~arm64"
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0/${PVR}"
|
|
||||||
|
|
||||||
DEPEND=">=dev-lang/go-1.5"
|
|
||||||
|
|
||||||
RESTRICT="test mirror"
|
|
||||||
|
|
||||||
MY_USER="gitlab_pages"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup ${MY_USER}
|
|
||||||
enewuser ${MY_USER} -1 -1 -1 ${MY_USER}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}/0001-fix-Makefile-0.3.2.patch"
|
|
||||||
|
|
||||||
sed -i -E \
|
|
||||||
-e "s/@@REVISION@@/${MY_GIT_HASH}/" \
|
|
||||||
src/gitlab.com/gitlab-org/${PN}/Makefile
|
|
||||||
|
|
||||||
eapply_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" RELEASE=true -C src/${EGO_PN%/*} all
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
golang-build_src_install
|
|
||||||
dobin bin/*
|
|
||||||
dodoc src/${EGO_PN%/*}/README.md src/${EGO_PN%/*}/CHANGELOG
|
|
||||||
|
|
||||||
# rc script
|
|
||||||
local rcscript="${PN}-0.3.2.init"
|
|
||||||
|
|
||||||
cp "${FILESDIR}/${rcscript}" "${T}" || die
|
|
||||||
sed -i \
|
|
||||||
-e "s|@USER@|${MY_USER}|g" \
|
|
||||||
"${T}/${rcscript}" \
|
|
||||||
|| die "failed to filter ${rcscript}"
|
|
||||||
|
|
||||||
newinitd "${T}/${rcscript}" "${PN}"
|
|
||||||
newconfd "${FILESDIR}/${PN}-0.3.2.conf" "${PN}"
|
|
||||||
}
|
|
|
@ -1,61 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
inherit eutils golang-build golang-vcs-snapshot user
|
|
||||||
|
|
||||||
EGO_PN="gitlab.com/gitlab-org/gitlab-pages/..."
|
|
||||||
|
|
||||||
MY_PV="v${PV/_/-}"
|
|
||||||
MY_GIT_HASH="36f16fd"
|
|
||||||
|
|
||||||
DESCRIPTION="Simple HTTP server written in Go made to serve GitLab Pages with CNAMEs and SNI"
|
|
||||||
HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-pages"
|
|
||||||
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.bz2?ref=v${PV} -> ${P}.tar.bz2"
|
|
||||||
|
|
||||||
KEYWORDS="~amd64 ~x86 ~arm ~arm64"
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0/${PVR}"
|
|
||||||
|
|
||||||
DEPEND=">=dev-lang/go-1.8.3"
|
|
||||||
|
|
||||||
RESTRICT="test mirror"
|
|
||||||
|
|
||||||
MY_USER="gitlab_pages"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup ${MY_USER}
|
|
||||||
enewuser ${MY_USER} -1 -1 -1 ${MY_USER}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}/0001-fix-Makefile-0.3.2.patch"
|
|
||||||
|
|
||||||
sed -i -E \
|
|
||||||
-e "s/@@REVISION@@/${MY_GIT_HASH}/" \
|
|
||||||
src/gitlab.com/gitlab-org/${PN}/Makefile
|
|
||||||
|
|
||||||
eapply_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" RELEASE=true -C src/${EGO_PN%/*} all
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
golang-build_src_install
|
|
||||||
dobin bin/*
|
|
||||||
dodoc src/${EGO_PN%/*}/README.md src/${EGO_PN%/*}/CHANGELOG
|
|
||||||
|
|
||||||
# rc script
|
|
||||||
local rcscript="${PN}-0.3.2.init"
|
|
||||||
|
|
||||||
cp "${FILESDIR}/${rcscript}" "${T}" || die
|
|
||||||
sed -i \
|
|
||||||
-e "s|@USER@|${MY_USER}|g" \
|
|
||||||
"${T}/${rcscript}" \
|
|
||||||
|| die "failed to filter ${rcscript}"
|
|
||||||
|
|
||||||
newinitd "${T}/${rcscript}" "${PN}"
|
|
||||||
newconfd "${FILESDIR}/${PN}-0.3.2.conf" "${PN}"
|
|
||||||
}
|
|
Loading…
Reference in a new issue