aboutsummarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartchus2017-06-13 00:21:44 +0200
committerMartchus2017-06-13 00:21:44 +0200
commitd23022623a34252d80655d8a6211bcb5c11e4b80 (patch)
tree87db0d7def2cce9545a92c1de7d3f181fc785a41
parent57275ce70327aa7922a886e0627df10a9088da06 (diff)
downloadaur-d23022623a34252d80655d8a6211bcb5c11e4b80.tar.gz
Update to 0.11.19
-rw-r--r--.SRCINFO16
-rw-r--r--0001-Adjust-config-for-Arch-Linux-package.patch50
-rw-r--r--0002-Adjust-service-file-for-Arch-Linux-package.patch4
-rw-r--r--PKGBUILD19
-rw-r--r--README.md45
5 files changed, 79 insertions, 55 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 45c1a2980cf5..7b389c1b91b7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,9 @@
+# Generated by mksrcinfo v8
+# Mon Jun 12 22:21:44 UTC 2017
pkgbase = gogs
pkgdesc = Self Hosted Git Service written in Go
- pkgver = 0.11.4
- pkgrel = 4
+ pkgver = 0.11.19
+ pkgrel = 1
epoch = 1
url = http://gogs.io/
install = gogs.install
@@ -21,16 +23,16 @@ pkgbase = gogs
provides = gogs
conflicts = gogs-bin
conflicts = gogs-git
- conflicts = gogs-git-dev
+ conflicts = gogs-dev-git
options = !strip
options = !emptydirs
backup = etc/gogs/app.ini
- source = gogs-0.11.4::https://github.com/gogits/gogs/archive/v0.11.4.tar.gz
+ source = gogs-0.11.19::https://github.com/gogits/gogs/archive/v0.11.19.tar.gz
source = 0001-Adjust-config-for-Arch-Linux-package.patch
source = 0002-Adjust-service-file-for-Arch-Linux-package.patch
- sha512sums = e262cdd2409dd846a1473993c222a7b9692c694ac9620a5dcd576a17714bfee76212935dcfbf0ad83b7b95623c075f1622613524f347d24d7530732e966c733f
- sha512sums = 1df73da8962605369bbefcf6ad2b2cf1594b628b182f9ef591089da9324d134b352a0cd3999748bf52b42a260421f08f128a8b61c9f89f70ef11c6c3bc92786c
- sha512sums = 9a869febcdd74e7cb81c4fb5f23d23e6ec70c94e88849fefe6e9c34902de380e5dd3aabced302a5c6b1eab061252b046aa3878caa69893a6240ae14984a0341c
+ sha512sums = 80339daefe9c4eb9e39af4ab90b6803e9d86648565c0f109a34c00aad9bd40e2edfc77d58e18ad1192ce2e8bc7322113a407e7a02c0116229e1cecf8e67fc8b5
+ sha512sums = a3632ed26abb634711c0c51defcf7288053845dfebcf27712de49319cfe80c5f7f7ef725c1a20413b1550a866f106818b5f2fd041c5b2a9158d77eae11897ef4
+ sha512sums = fbb75efd69740638cbb2ce2f0fde3710a466c1128c6afddfd54028b04bb69e7e1f983aba60bbba378c35a854ef1bc7d6fd066acf3846aa48d424784dc15beb4d
pkgname = gogs
diff --git a/0001-Adjust-config-for-Arch-Linux-package.patch b/0001-Adjust-config-for-Arch-Linux-package.patch
index b0f8a5220668..83ffcff7bd6f 100644
--- a/0001-Adjust-config-for-Arch-Linux-package.patch
+++ b/0001-Adjust-config-for-Arch-Linux-package.patch
@@ -1,14 +1,14 @@
-From 866c5d2cafa1d2a0914532e1d738678f7061952a Mon Sep 17 00:00:00 2001
+From 4c68726e20939338d196bdd6b0cc4e6cf69ce642 Mon Sep 17 00:00:00 2001
From: Martchus <martchus@gmx.net>
Date: Sun, 19 Mar 2017 18:03:36 +0100
Subject: [PATCH 1/2] Adjust config for Arch Linux package
---
- conf/app.ini | 24 ++++++++++++------------
- 1 file changed, 12 insertions(+), 12 deletions(-)
+ conf/app.ini | 18 +++++++++---------
+ 1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/conf/app.ini b/conf/app.ini
-index 2927c2aa..899856b1 100644
+index fc43868e..b170dd5f 100644
--- a/conf/app.ini
+++ b/conf/app.ini
@@ -5,7 +5,7 @@
@@ -20,7 +20,7 @@ index 2927c2aa..899856b1 100644
; Either "dev", "prod" or "test"
RUN_MODE = dev
-@@ -54,13 +54,13 @@ DISABLE_ROUTER_LOG = false
+@@ -54,16 +54,16 @@ DISABLE_ROUTER_LOG = false
; not forget to export the private key):
; $ openssl pkcs12 -in cert.pfx -out cert.pem -nokeys
; $ openssl pkcs12 -in cert.pfx -out key.pem -nocerts -nodes
@@ -28,6 +28,9 @@ index 2927c2aa..899856b1 100644
-KEY_FILE = custom/https/key.pem
+CERT_FILE = /var/lib/gogs/cert/cert.pem
+KEY_FILE = /var/lib/gogs/cert/key.pem
+ ; Allowed TLS version values: SSL30, TLS10, TLS11, TLS12
+ TLS_MIN_VERSION = TLS10
+
; Upper level of template and static file path
; default is the path where Gogs is executed
-STATIC_ROOT_PATH =
@@ -38,7 +41,7 @@ index 2927c2aa..899856b1 100644
; Application level GZIP support
ENABLE_GZIP = false
; Landing page for non-logged users, can be "home" or "explore"
-@@ -68,7 +68,7 @@ LANDING_PAGE = home
+@@ -71,7 +71,7 @@ LANDING_PAGE = home
[repository]
; Root path for storing repositories's data, default is "~/<username>/gogs-repositories"
@@ -47,7 +50,7 @@ index 2927c2aa..899856b1 100644
; The script type server supports, sometimes could be "sh"
SCRIPT_TYPE = bash
; Default ANSI charset for an unrecognized charset
-@@ -108,7 +108,7 @@ PREVIEWABLE_FILE_MODES = markdown
+@@ -111,7 +111,7 @@ PREVIEWABLE_FILE_MODES = markdown
; Enable repository file uploads.
ENABLED = true
; Path to temporarily store uploads (default path gets cleaned by Gogs in every start)
@@ -56,16 +59,7 @@ index 2927c2aa..899856b1 100644
; File types that are allowed to be uploaded, e.g. image/jpeg|image/png. Leave empty means allow any file type
ALLOWED_TYPES =
; Maximum size of each file in MB
-@@ -121,7 +121,7 @@ MAX_FILES = 5
- ; Whether attachments are enabled. Defaults to `true`
- ENABLED = true
- ; Path for attachments. Defaults to `data/attachments`
--PATH = data/attachments
-+PATH = /var/lib/gogs/attachments
- ; One or more allowed types, e.g. image/jpeg|image/png
- ALLOWED_TYPES = */*
- ; Max size of each file. Defaults to 32MB
-@@ -167,7 +167,7 @@ PASSWD =
+@@ -170,7 +170,7 @@ PASSWD =
; For "postgres" only, either "disable", "require" or "verify-full"
SSL_MODE = disable
; For "sqlite3" and "tidb", use absolute path when you start as service
@@ -74,25 +68,7 @@ index 2927c2aa..899856b1 100644
[admin]
; Disable regular (non-admin) users to create organizations
-@@ -280,7 +280,7 @@ CSRF_COOKIE_NAME = _csrf
-
- [picture]
- ; Path to store user uploaded avatars
--AVATAR_UPLOAD_PATH = data/avatars
-+AVATAR_UPLOAD_PATH = /var/lib/gogs/avatars
- ; Chinese users can choose "duoshuo"
- ; or a custom avatar source, like: http://cn.gravatar.com/avatar/
- GRAVATAR_SOURCE = gravatar
-@@ -296,7 +296,7 @@ ENABLE_FEDERATED_AVATAR = true
- ; Whether attachments are enabled. Defaults to `true`
- ENABLE = true
- ; Path for attachments. Defaults to `data/attachments`
--PATH = data/attachments
-+PATH = /var/lib/gogs/attachments
- ; One or more allowed types, e.g. image/jpeg|image/png
- ALLOWED_TYPES = image/jpeg|image/png
- ; Max size of each file. Defaults to 4MB
-@@ -312,7 +312,7 @@ FORMAT =
+@@ -315,7 +315,7 @@ FORMAT =
; General settings of loggers
[log]
@@ -102,5 +78,5 @@ index 2927c2aa..899856b1 100644
; Use comma to separate multiple modes, e.g. "console, file"
MODE = console
--
-2.12.2
+2.13.1
diff --git a/0002-Adjust-service-file-for-Arch-Linux-package.patch b/0002-Adjust-service-file-for-Arch-Linux-package.patch
index c78221dc8e10..c15b297fb830 100644
--- a/0002-Adjust-service-file-for-Arch-Linux-package.patch
+++ b/0002-Adjust-service-file-for-Arch-Linux-package.patch
@@ -1,4 +1,4 @@
-From fc69adfb98d736b6df628a12142c224c4b6730e2 Mon Sep 17 00:00:00 2001
+From dee8353d947958b5d545f18b4304ad5685eabe2d Mon Sep 17 00:00:00 2001
From: Martchus <martchus@gmx.net>
Date: Sun, 19 Mar 2017 18:04:48 +0100
Subject: [PATCH 2/2] Adjust service file for Arch Linux package
@@ -30,5 +30,5 @@ index 9f105bf8..99ca11e0 100644
[Install]
WantedBy=multi-user.target
--
-2.12.2
+2.13.1
diff --git a/PKGBUILD b/PKGBUILD
index 33cdac6a6824..be848cce396d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,10 +1,11 @@
-# Maintainer: boosterdev@linuxmail.org
-# Contributor: Martchus <martchus@gmx.net>>
+# Maintainer: Martchus <martchus@gmx.net>>
+# Contributor: Thomas Fanninger <thomas@fanninger.at>
+# Contributor: Thomas Laroche <tho.laroche@gmail.com>
pkgname=gogs
_pkgname=${pkgname}
-pkgver=0.11.4
-pkgrel=4
+pkgver=0.11.19
+pkgrel=1
epoch=1
pkgdesc='Self Hosted Git Service written in Go'
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
@@ -19,7 +20,7 @@ optdepends=('sqlite: SQLite support'
'memcached: MemCached support'
'openssh: GIT over SSH support')
makedepends=('go>=1.3')
-conflicts=('gogs-bin' 'gogs-git' 'gogs-git-dev')
+conflicts=('gogs-bin' 'gogs-git' 'gogs-dev-git')
options=('!strip' '!emptydirs')
backup=('etc/gogs/app.ini')
install=gogs.install
@@ -27,9 +28,9 @@ _gourl=github.com/gogits/$_pkgname
source=("$_pkgname-$pkgver::https://${_gourl}/archive/v${pkgver}.tar.gz"
'0001-Adjust-config-for-Arch-Linux-package.patch'
'0002-Adjust-service-file-for-Arch-Linux-package.patch')
-sha512sums=('e262cdd2409dd846a1473993c222a7b9692c694ac9620a5dcd576a17714bfee76212935dcfbf0ad83b7b95623c075f1622613524f347d24d7530732e966c733f'
- '1df73da8962605369bbefcf6ad2b2cf1594b628b182f9ef591089da9324d134b352a0cd3999748bf52b42a260421f08f128a8b61c9f89f70ef11c6c3bc92786c'
- '9a869febcdd74e7cb81c4fb5f23d23e6ec70c94e88849fefe6e9c34902de380e5dd3aabced302a5c6b1eab061252b046aa3878caa69893a6240ae14984a0341c')
+sha512sums=('80339daefe9c4eb9e39af4ab90b6803e9d86648565c0f109a34c00aad9bd40e2edfc77d58e18ad1192ce2e8bc7322113a407e7a02c0116229e1cecf8e67fc8b5'
+ 'a3632ed26abb634711c0c51defcf7288053845dfebcf27712de49319cfe80c5f7f7ef725c1a20413b1550a866f106818b5f2fd041c5b2a9158d77eae11897ef4'
+ 'fbb75efd69740638cbb2ce2f0fde3710a466c1128c6afddfd54028b04bb69e7e1f983aba60bbba378c35a854ef1bc7d6fd066acf3846aa48d424784dc15beb4d')
_goroot='/usr/lib/go'
prepare() {
@@ -66,7 +67,7 @@ build() {
cd "$GOPATH/src/${_gourl}"
go fix
- go build -x -tags='sqlite pam cert'
+ go build -x -ldflags="-s -w" -tags='sqlite pam cert'
}
package() {
diff --git a/README.md b/README.md
new file mode 100644
index 000000000000..0b08372d898a
--- /dev/null
+++ b/README.md
@@ -0,0 +1,45 @@
+# Gogs
+PKGBUILD files for different versions of Gogs (Go Git Service).
+
+## Open points
+* ~~Systemd service support~~
+* ~~better file structure~~
+* ~~Publishing on https://aur.archlinux.org~~
+* Test MariaDB and PostgreSQL installation
+* ~~Test on armv6h (Raspberry Pi), armv7h (Cubieboard 2) and on x86_64~~
+* Documentation for usage and configuration
+
+## Install
+```
+$ tar -xvzf /<path to Tarball>/gogs-*.tar.gz
+$ cd <package-name>
+$ makepkg
+$ pacman -U gogs-*.tgz
+```
+
+## Configuration
+Config file is located under `/etc/gogs/app.ini`.
+
+Enable and start systemd service:
+```
+$ systemctl enable gogs.service
+$ systemctl start gogs.service
+```
+
+## Setup proxy in NGINX
+Eg.
+```
+location ^~ /gogs/ {
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Proto $scheme;
+ proxy_pass http://localhost:3000/;
+}
+```
+
+## Logging
+After start of the service every log entry is over journalctl displayable.
+```
+$ journalctl -f -u gogs.service
+```