[alpine-aports] [PATCH] community/gogs: upgrade to 0.11.86

Bradley Saulteaux
Details
Message ID
<20190203195720.676-1-bradsoto@gmail.com>
Sender timestamp
1549223840
DKIM signature
missing
Download raw message
Patch: +15 -15
https://gogs.io/
A painless self-hosted Git service
---
 community/gogs/APKBUILD | 29 ++++++++++++++---------------
 community/gogs/gogs.ini |  1 +
 2 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/community/gogs/APKBUILD b/community/gogs/APKBUILD
index 3b31966851..e44f575a9d 100644
--- a/community/gogs/APKBUILD
+++ b/community/gogs/APKBUILD
@@ -1,9 +1,9 @@
 # Contributor: Carlo Landmeter <clandmeter@gmail.com>
 # Maintainer: 7heo <7heo@mail.com>
 pkgname=gogs
-pkgver=0.11.34
-pkgrel=2
-pkgdesc="A self-hosted Git service written in Go"
+pkgver=0.11.86
+pkgrel=0
+pkgdesc="A painless self-hosted Git service"
 url="https://gogs.io/"
 arch="all"
 license="MIT"
@@ -12,19 +12,19 @@ makedepends="go perl libcap"
 install="$pkgname.pre-install"
 pkgusers="gogs"
 pkggroups="www-data"
-source="${pkgname}-${pkgver}.tar.gz::https://github.com/gogits/$pkgname/archive/v$pkgver.tar.gz
+options="!check" # go race fails
+subpackages="${pkgname}-openrc"
+source="${pkgname}-${pkgver}.tar.gz::https://github.com/gogs/$pkgname/archive/v$pkgver.tar.gz
 	$pkgname.initd
 	$pkgname.confd
 	$pkgname.ini"
-builddir="$srcdir/github.com/gogits/$pkgname"
+builddir="$srcdir/github.com/gogs/$pkgname"
 
 prepare() {
-	mkdir -p "$srcdir"/github.com/gogits
+	mkdir -p "$srcdir"/github.com/gogs
 	mv "$srcdir"/$pkgname-$pkgver "$builddir"/ || return 1
-
 	default_prepare
 }
-
 build() {
 	export GOPATH="$startdir"
 	cd "$builddir" || return 1
@@ -32,7 +32,6 @@ build() {
 	# Note: sqlite causes problems without the pie buildmode
 	go build -buildmode=pie -v -tags "sqlite redis memcache cert" ||return 1
 }
-
 package() {
 	cd "$builddir"
 
@@ -61,13 +60,13 @@ package() {
 
 	mv public templates "$pkgdir"/usr/share/webapps/$pkgname/ || return 1
 
-	install -D -m755 "$srcdir"/$pkgname.initd \
-		"$pkgdir"/etc/init.d/$pkgname || return 1
-	install -D -m644 "$srcdir"/$pkgname.confd \
-		"$pkgdir"/etc/conf.d/$pkgname || return 1
+	install -m755 -D "$srcdir"/$pkgname.initd \
+		"$pkgdir"/etc/init.d/$pkgname
+	install -m644 -D "$srcdir"/$pkgname.confd \
+		"$pkgdir"/etc/conf.d/$pkgname
 }
 
-sha512sums="0de420bf2d27ab86f5efd6cb5c4a43d1f8cb0f98abe3791177c14ef9e38437571ba4491c62cf7e9f6366469294197c57cd149a6c633cc08640c612b5ee506838  gogs-0.11.34.tar.gz
+sha512sums="d9eae7b29f683ac0a289d3790b94e700c013232a74e1a91f01977899c26eb5b652ee39f5423d0e2217c0c7a12428902b20eeef68005b4a6713455553302e57e7  gogs-0.11.86.tar.gz
 be5a9ef2cae1ee2e8106feb6a997ae06519af91fe57f746d20996e79c332c93bb43fc53f79ff4e8ce13222afc6f3dc7bc5cbb758ef201b03e49d809c87c8c4c7  gogs.initd
 52ce41c05c263b790221a04d13d2eb9bba689e4bd72daf5b6af31416e80a485a46bae19e18581d7bde879307283847e6486686a2fe4140fe38ebb6f315e11a86  gogs.confd
-4c2b398cf93ebb8b743b9e7ec1b075706427081036effb53fa90729e70fbc3eb92f2f853278b887ca79dc35cd55a64e1bff4d18e1ad246beab2a723aa9cd71ba  gogs.ini"
+1d8cc4d9c96887de50d281f49d7f0bae963318a56a9e6cc46052d72236e446d20eb6228b8f51e24d5dbe63bf459040fb3556e9554fa242f3bef3969e11d18b06  gogs.ini"
diff --git a/community/gogs/gogs.ini b/community/gogs/gogs.ini
index 6d344f2152..16be0843e4 100644
--- a/community/gogs/gogs.ini
+++ b/community/gogs/gogs.ini
@@ -6,6 +6,7 @@ ROOT = /var/lib/gogs/git
 SCRIPT_TYPE = sh
 
 [server]
+APP_DATA_PATH = /var/lib/gogs/data
 STATIC_ROOT_PATH = /usr/share/webapps/gogs
 
 [database]
-- 
2.20.1



---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---