aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Healy <lmiphay@gmail.com>2019-01-20 15:40:41 +0000
committerPaul Healy <lmiphay@gmail.com>2019-01-20 15:40:41 +0000
commit46987ae46db378fc56bf09c4794ed491654d33fd (patch)
treeae05aea7017bb3f1c32c1fb91e41ca29a65c3cb7
parentrevbump slack (diff)
downloadlmiphay-46987ae46db378fc56bf09c4794ed491654d33fd.tar.gz
lmiphay-46987ae46db378fc56bf09c4794ed491654d33fd.tar.bz2
lmiphay-46987ae46db378fc56bf09c4794ed491654d33fd.zip
bump gitea rc version - security
Signed-off-by: Paul Healy <lmiphay@gmail.com>
-rw-r--r--www-apps/gitea/Manifest2
-rw-r--r--www-apps/gitea/gitea-1.7.0_rc3.ebuild65
2 files changed, 67 insertions, 0 deletions
diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest
index fe97165..640dc6d 100644
--- a/www-apps/gitea/Manifest
+++ b/www-apps/gitea/Manifest
@@ -6,6 +6,8 @@ AUX gitea.service 472 BLAKE2B 4c728e2987d0c0a86e65d4b9c1a59f6193ff8a3f9b066991a0
DIST gitea-1.6.3.tar.gz 19505072 BLAKE2B 8d4ab5bdcffe7f88579f74cbae4562f51ba3191a133b0e6f29e96f0f9aa132765b79a414cc792a831acfea94debb55e3ae0653c2cf30ceca8821cdfc7c383d77 SHA512 367df2f85918e613fcf360afd3857cb4df9697222f064a8e60e3ae15b0ee3fa5018a28f221d906fa7f8045f3249ecf777f08180dbb3c898cbdcc09eaf5c2c5be
DIST gitea-1.6.4.tar.gz 19508580 BLAKE2B 4cefcdfd58e1bc2a3a23415685a539cc74d495839558c6703003e433620da16fefcf8c77e6ca05c07e3353597bbd0ee00f9ebff2b3e0dfbd4bc8ea702828f038 SHA512 7dd3bb585eeab46bb3e48c3dd1d0b28ddb714939d179a88c3c78a99befbd3cd7ebc08db74fc1958a37d7700780de3522b4518b33dd9fec5df5acb48fc8eeabfe
DIST gitea-1.7.0_rc2.tar.gz 20829530 BLAKE2B def4bc72cd4446237bcf740facc1f3c6d0a994eb898aa668ecb0d7de25a8a65a0fb289d9eb005f1d84d0a38d17f5fd5f42487503e6110c4c01c4f60ba8e24f2c SHA512 655bc75f9ecab981c6c0bc28f3db2d1a0863a6d37c1345179f8623d6a19bb0dd05a304063e04c23e5444d4840a38fbbe520cf8dd30be9a2aba0bef71da347e65
+DIST gitea-1.7.0_rc3.tar.gz 20833155 BLAKE2B 2f94dce2f705e7d9ecbd37afb97969e2607f174ed1debfddc175247e2394b32f36d136b15e75380ca618f7d404caac1cf7bb90bf415e9360efcf4764c79b00cb SHA512 ec415046010bfef9834e8e8dc93432d285d0f5ba2f7d3dfd96a3ac3d7097e48c286cc82da3dccaa3bb8d6d5e4d7228dc698a9d2e939925be163e5fc1cf9547f5
EBUILD gitea-1.6.3.ebuild 1937 BLAKE2B 7d619f62b9d4b40565d65e677f2de3df71553499ca3eb686cd601e57aaeb3e71fd0c07bd8e6a04193ec4993b9491b1c10fe4b0081ea5b6afddc2f9737ce239c8 SHA512 112a410e6ce27000468b2604a38967aa8aa048cbc83abd87f0f06ec175347400304032c1f8378170d147ab3579d0a953e43326bde8cffdb3515732cc95341cda
EBUILD gitea-1.6.4.ebuild 1937 BLAKE2B 7d619f62b9d4b40565d65e677f2de3df71553499ca3eb686cd601e57aaeb3e71fd0c07bd8e6a04193ec4993b9491b1c10fe4b0081ea5b6afddc2f9737ce239c8 SHA512 112a410e6ce27000468b2604a38967aa8aa048cbc83abd87f0f06ec175347400304032c1f8378170d147ab3579d0a953e43326bde8cffdb3515732cc95341cda
EBUILD gitea-1.7.0_rc2.ebuild 1996 BLAKE2B 2a3b2923bf839331e90accde3311d8c8c7a775953c9744289911d32fd320fce47342d4e1dcce90f1b0340c31dfdb78937b5b57b3af9852947191c671819a8a25 SHA512 a62bb2424090ba80de94ffa183f17ed858b9d98cd72e8ceb5ce39e298d65e943a7f9efebaa3f20e7ed4ce885b9c2185a68666b12bc2a64ebe08d0eedf3ea94cc
+EBUILD gitea-1.7.0_rc3.ebuild 1996 BLAKE2B 2a3b2923bf839331e90accde3311d8c8c7a775953c9744289911d32fd320fce47342d4e1dcce90f1b0340c31dfdb78937b5b57b3af9852947191c671819a8a25 SHA512 a62bb2424090ba80de94ffa183f17ed858b9d98cd72e8ceb5ce39e298d65e943a7f9efebaa3f20e7ed4ce885b9c2185a68666b12bc2a64ebe08d0eedf3ea94cc
diff --git a/www-apps/gitea/gitea-1.7.0_rc3.ebuild b/www-apps/gitea/gitea-1.7.0_rc3.ebuild
new file mode 100644
index 0000000..94dffeb
--- /dev/null
+++ b/www-apps/gitea/gitea-1.7.0_rc3.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2019 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit user systemd golang-build golang-vcs-snapshot versionator
+
+MY_PV=$(replace_version_separator 3 '-')
+
+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${MY_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
+}