aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Healy <lmiphay@gmail.com>2018-12-10 21:27:45 +0000
committerPaul Healy <lmiphay@gmail.com>2018-12-10 21:27:45 +0000
commit179fd0e6637343b6aed2d4a97cdf1d10132beddd (patch)
tree454959206f1bbfe162e1ad19485d7ce2b02a8705
parentrevbump firestorm (diff)
downloadlmiphay-179fd0e6637343b6aed2d4a97cdf1d10132beddd.tar.gz
lmiphay-179fd0e6637343b6aed2d4a97cdf1d10132beddd.tar.bz2
lmiphay-179fd0e6637343b6aed2d4a97cdf1d10132beddd.zip
revbump gitea
Signed-off-by: Paul Healy <lmiphay@gmail.com>
-rw-r--r--www-apps/gitea/Manifest2
-rw-r--r--www-apps/gitea/gitea-1.6.1.ebuild64
2 files changed, 66 insertions, 0 deletions
diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index a621db3..97fe906 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -7,8 +7,10 @@ DIST gitea-1.5.3.tar.gz 18866434 BLAKE2B 5419421980a0b2118e0ba8c67283f418ff51c60
DIST gitea-1.6.0.tar.gz 19508474 BLAKE2B 5213014fa5a465019708605f3a5bbb5b5fe40fc5cacec422d92364a6fc6eec3a3904567bbb443545fffc9e7247bb13cc2427b11015cfa0420b94b51ec33c54c3 SHA512 67591fd610bc16909c9cbddc9d55b7b60653934c0f77cf6cb0c3b92c8e3b884bc0b9bdd5ccb70a3897859a86caa4ebe807bb3ab988455f5516dcc95745c8d0a4
DIST gitea-1.6.0_rc1.tar.gz 19512177 BLAKE2B 4b4acec26d644b2bf08343d794b20baf9ece3f734aed19bdd63a11df852f91a697474dc511d8565a811344f38ffd1aa27e4195ed44e902f4625fde51e625c91c SHA512 101e5a2b313c1a73871a74cf22909f71b0f2f5ac742554709d2413872dc4c2abde7bc6455e05a61a8ee4064917bdc803f26eb34a7a45bfed0b43b1272b08ff94
DIST gitea-1.6.0_rc2.tar.gz 19506370 BLAKE2B 3e7478c0d75666e71cb27f062323ababf82cdb92474f57d84aa21e2ed125cdc52842e29b1fd6fd7cfad3a616344ee2a74ac6c83337c19a7419d62ad33b3573bd SHA512 9691d17b69f0e6cb051cc215239ade4ee323a12ce47c2e578af9c4dd4a9daa4b45268f019cb672728f7cd05ed364c3af7ffa0ae4b60708aa6b829bce7f71ccdb
+DIST gitea-1.6.1.tar.gz 19508204 BLAKE2B 460cb41b3f809c307f32374d9081f8897448986f3e40f5f19cb909f07cceb6a29674ba7f97a2857e824f53e7af34833fa253c39b0d510863d0ec0f65ee45bbd7 SHA512 c02f70c1fa7fde0f2ed968ad69f031937fe0fefe27bbce6a6eb4ac975ea9773b34ff3a4cf1083fcc9da7312006911cdb7467f5732d8ed7a14c0eecefceebab57
EBUILD gitea-1.5.3.ebuild 1892 BLAKE2B 09a05d287962d04ac368be5a9a20f65d1310231a55e90e10fb3dc9d2da79aaf94a16bf24a1f4d6be7cc27be4130a7e2edcf91fc05cad6c20077a98c09123e3b7 SHA512 aa22f9c026cb5741679c1fa8783ac9aceb1ff413d96e4a422e7f21ae5fd4ab12872b330fd58b790a9cfcf121a519a73a44016270a6919b1cd076a6ca70693998
EBUILD gitea-1.6.0.ebuild 1937 BLAKE2B 7d619f62b9d4b40565d65e677f2de3df71553499ca3eb686cd601e57aaeb3e71fd0c07bd8e6a04193ec4993b9491b1c10fe4b0081ea5b6afddc2f9737ce239c8 SHA512 112a410e6ce27000468b2604a38967aa8aa048cbc83abd87f0f06ec175347400304032c1f8378170d147ab3579d0a953e43326bde8cffdb3515732cc95341cda
EBUILD gitea-1.6.0_rc1.ebuild 1949 BLAKE2B 38586fefa01505c545c9f0830575c84341e30685976a1f8328f0f41607caa36db23ecb2b78db3fac089fa2fb89a09a0de68168dd685b4bad182a2035c107af94 SHA512 3e8f43eceb0b17870004d7ba2543175e3b5576a723c60a834e54ddb6bb4ed592650ae597107ad5910c87a305be350bf65feefb3aa3e20f610213d59236c6c4ad
EBUILD gitea-1.6.0_rc2-r1.ebuild 1996 BLAKE2B d0093f30eee797f5c0e56dfe81e8b8f35876abc45f2cf5276b3fdd09f1c6bcc9d3063c0d23b6498a75c38acb7b2af197a4ffb2e4e414d11c77cad72d23ea750d SHA512 137e46a08b4b20fdef4e74091a63b7dd2f5ad35b63e6b927aff3293ec6a041b0a00b0c115e17b9fc3ac946882f4f4ad3bcb4f8c1c08c09b1b9837b25531d5047
EBUILD gitea-1.6.0_rc2.ebuild 1949 BLAKE2B 38586fefa01505c545c9f0830575c84341e30685976a1f8328f0f41607caa36db23ecb2b78db3fac089fa2fb89a09a0de68168dd685b4bad182a2035c107af94 SHA512 3e8f43eceb0b17870004d7ba2543175e3b5576a723c60a834e54ddb6bb4ed592650ae597107ad5910c87a305be350bf65feefb3aa3e20f610213d59236c6c4ad
+EBUILD gitea-1.6.1.ebuild 1937 BLAKE2B 7d619f62b9d4b40565d65e677f2de3df71553499ca3eb686cd601e57aaeb3e71fd0c07bd8e6a04193ec4993b9491b1c10fe4b0081ea5b6afddc2f9737ce239c8 SHA512 112a410e6ce27000468b2604a38967aa8aa048cbc83abd87f0f06ec175347400304032c1f8378170d147ab3579d0a953e43326bde8cffdb3515732cc95341cda
diff --git a/www-apps/gitea/gitea-1.6.1.ebuild b/www-apps/gitea/gitea-1.6.1.ebuild
new file mode 100644
index 0000000..33fc7fd
--- /dev/null
+++ b/www-apps/gitea/gitea-1.6.1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit user systemd golang-build golang-vcs-snapshot
+
+EGO_PN="code.gitea.io/gitea"
+KEYWORDS="~amd64 ~arm"
+
+DESCRIPTION="A painless self-hosted Git service, written in Go"
+HOMEPAGE="https://github.com/go-gitea/gitea"
+SRC_URI="https://github.com/go-gitea/gitea/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+IUSE=""
+
+DEPEND="dev-go/go-bindata"
+RDEPEND="dev-vcs/git"
+
+pkg_setup() {
+ enewgroup git
+ enewuser git -1 /bin/bash /var/lib/gitea git
+}
+
+src_prepare() {
+ default
+ sed -i -e "s/\"main.Version.*$/\"main.Version=${PV}\"/"\
+ -e "s/-ldflags '-s/-ldflags '/" \
+ -e "s/GOFLAGS := -i -v/GOFLAGS := -v/" \
+ src/${EGO_PN}/Makefile || die
+}
+
+src_compile() {
+ GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} generate
+ TAGS="bindata pam sqlite" LDFLAGS="" CGO_LDFLAGS="-fno-PIC" GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} build
+}
+
+src_install() {
+ pushd src/${EGO_PN} || die
+ dobin gitea
+ insinto /var/lib/gitea/conf
+ newins custom/conf/app.ini.sample app.ini.example
+ popd || die
+ newinitd "${FILESDIR}"/gitea.initd-r1 gitea
+ newconfd "${FILESDIR}"/gitea.confd gitea
+ keepdir /var/log/gitea /var/lib/gitea/data
+ fowners -R git:git /var/log/gitea /var/lib/gitea/
+ systemd_dounit "${FILESDIR}/gitea.service"
+}
+
+pkg_postinst() {
+ if [[ ! -e "${EROOT}/var/lib/gitea/conf/app.ini" ]]; then
+ elog "No app.ini found, copying initial config over"
+ cp "${FILESDIR}"/app.ini "${EROOT}"/var/lib/gitea/conf/ || die
+ chown git:git /var/lib/gitea/conf/app.ini
+ else
+ elog "app.ini found, please check example file for possible changes"
+ ewarn "Please note that environment variables have been changed:"
+ ewarn "GITEA_WORK_DIR is set to /var/lib/gitea (previous value: unset)"
+ ewarn "GITEA_CUSTOM is set to '\$GITEA_WORK_DIR/custom' (previous: /var/lib/gitea)"
+ fi
+}