diff options
author | Thomas Fanninger | 2015-10-25 07:43:32 +0100 |
---|---|---|
committer | Thomas Fanninger | 2015-10-25 07:43:32 +0100 |
commit | 12e6c2696e25c9108e7dff3f4daff0c6eb1d6608 (patch) | |
tree | 1844640e3e42de5f52c4d6e34fdd0f34e5de9ff2 | |
parent | d6705d775c818cbf285ef0576a22cef3c50ef4ee (diff) | |
download | aur-12e6c2696e25c9108e7dff3f4daff0c6eb1d6608.tar.gz |
new package version, open issue gogs#1711
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | .gitignore | 11 | ||||
-rw-r--r-- | PKGBUILD | 10 | ||||
-rw-r--r-- | app.ini.patch | 12 | ||||
-rw-r--r-- | app_new.ini | 66 | ||||
-rw-r--r-- | app_old.ini | 66 | ||||
-rw-r--r-- | gogs.service | 2 |
7 files changed, 75 insertions, 98 deletions
@@ -1,6 +1,6 @@ pkgbase = gogs-git-dev pkgdesc = Gogs(Go Git Service) is a Self Hosted Git Service in the Go Programming Language. This is the current git version from branch develop. - pkgver = 20150823 + pkgver = 2959.379629d pkgrel = 1 epoch = 1 url = http://gogs.io/ @@ -30,8 +30,8 @@ pkgbase = gogs-git-dev source = app.ini.patch source = helper.sh source = gogs::git+https://github.com/gogits/gogs.git#branch=develop - sha512sums = 2b4303f850e3b13b2fc3c9f0bc5820dae431d228002b35f01be0d4bfbcf05de8dcec2a559a85e318b609e4a4d492d44306eadf5f6508fd72333b198661bb0bb7 - sha512sums = 939be9ad851ae6e20b786e2e189b0b67c0198edfc8c83442934ec48c7be073e03c75172e79f23a6ee1e0eb467c6fa18096a66d69d1142ebba28fdc8bb2a3964c + sha512sums = c7abbe4af438a8a1db44537a16dbd40b82d50c921d53002c083071c4cd16644769e9d5dabbccedc1bd4ba563324186da4b4378365e098cc45df76402a657be90 + sha512sums = cd00b1f29c0ab2eaf70647b51a7fe135aa00906dcda1b1d99c56ea3371fc6540f82bf77999018078b43294614317df253fb4217c2d84f873398c4a69ae2bfaa5 sha512sums = e746dbdafc4c8d0b15a224dba95ae3151611ba9ff468ee6f0b1789e489955e4d7eaac0dbdf28a22e5b8211559af5950726f4a37d699a2490fd349f034401028c sha512sums = SKIP diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..2ace2812281c --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +* +!.gitignore +!app_ini.patch +!app_old.ini +!gogs.changelog +!gogs.install +!gogs.service +!helper.sh +!PKGBUILD +!README.md +!.SRCINFO @@ -4,7 +4,7 @@ pkgname=gogs-git-dev _pkgname=gogs _branch=develop -pkgver=20150823 +pkgver=2959.379629d pkgrel=1 epoch=1 pkgdesc="Gogs(Go Git Service) is a Self Hosted Git Service in the Go Programming Language. This is the current git version from branch ${_branch}." @@ -31,8 +31,8 @@ source=('gogs.service' 'helper.sh' "$_pkgname::git+https://${_gourl}.git#branch=${_branch}") -sha512sums=(2b4303f850e3b13b2fc3c9f0bc5820dae431d228002b35f01be0d4bfbcf05de8dcec2a559a85e318b609e4a4d492d44306eadf5f6508fd72333b198661bb0bb7 - 939be9ad851ae6e20b786e2e189b0b67c0198edfc8c83442934ec48c7be073e03c75172e79f23a6ee1e0eb467c6fa18096a66d69d1142ebba28fdc8bb2a3964c +sha512sums=(c7abbe4af438a8a1db44537a16dbd40b82d50c921d53002c083071c4cd16644769e9d5dabbccedc1bd4ba563324186da4b4378365e098cc45df76402a657be90 + cd00b1f29c0ab2eaf70647b51a7fe135aa00906dcda1b1d99c56ea3371fc6540f82bf77999018078b43294614317df253fb4217c2d84f873398c4a69ae2bfaa5 e746dbdafc4c8d0b15a224dba95ae3151611ba9ff468ee6f0b1789e489955e4d7eaac0dbdf28a22e5b8211559af5950726f4a37d699a2490fd349f034401028c 'SKIP') @@ -76,9 +76,7 @@ prepare() { get_gopm "$GOPATH/src/${_gourl}/.gopmfile" "$GOPATH/src" msg2 "Download missing dependencies" - go_get github.com/shurcooL/sanitized_anchor_name "$GOPATH/src/github.com/shurcooL/sanitized_anchor_name" -# go_get golang.org/x/net "$GOPATH/src/golang.org/x/net" -# go_get golang.org/x/text "$GOPATH/src/golang.org/x/text" +# go_get github.com/macaron-contrib/oauth2 "$GOPATH/src/github.com/macaron-contrib/oauth2" msg2 "Workaround dependencies" cd "$GOPATH/src/github.com/gogits/go-gogs-client/" diff --git a/app.ini.patch b/app.ini.patch index dd912fd9e8e1..1195bd336f3b 100644 --- a/app.ini.patch +++ b/app.ini.patch @@ -6,27 +6,27 @@ < ROOT = --- > ROOT = /srv/gogs/repo -43c43 +61c61 < STATIC_ROOT_PATH = --- > STATIC_ROOT_PATH = /usr/share/themes/gogs/default -59c59 +77c77 < PATH = data/gogs.db --- > PATH = /srv/gogs/sqlite/gogs.db -184c184 +168c168 < PROVIDER_CONFIG = data/sessions --- > PROVIDER_CONFIG = /srv/gogs/sessions -199c199 +183c183 < AVATAR_UPLOAD_PATH = data/avatars --- > AVATAR_UPLOAD_PATH = /srv/gogs/data/avatars -209c209 +193c193 < PATH = data/attachments --- > PATH = /srv/gogs/data/attachments -224c224 +208c208 < ROOT_PATH = --- > ROOT_PATH = /var/log/gogs diff --git a/app_new.ini b/app_new.ini index 1a61538add51..c28ec844463c 100644 --- a/app_new.ini +++ b/app_new.ini @@ -13,8 +13,26 @@ ROOT = /srv/gogs/repo SCRIPT_TYPE = bash [ui] +; Number of repositories that are showed in one explore page +EXPLORE_PAGING_NUM = 20 ; Number of issues that are showed in one page ISSUE_PAGING_NUM = 10 +; Number of maximum commits showed in one activity feed +FEED_MAX_COMMIT_NUM = 5 + +[ui.admin] +; Number of users that are showed in one page +USER_PAGING_NUM = 50 +; Number of repos that are showed in one page +REPO_PAGING_NUM = 50 +; Number of notices that are showed in one page +NOTICE_PAGING_NUM = 50 +; Number of organization that are showed in one page +ORG_PAGING_NUM = 50 + +[markdown] +; Enable hard line break extension +ENABLE_HARD_LINE_BREAK = false [server] PROTOCOL = http @@ -55,7 +73,7 @@ USER = root PASSWD = ; For "postgres" only, either "disable", "require" or "verify-full" SSL_MODE = disable -; For "sqlite3" only +; For "sqlite3" and "tidb" PATH = /srv/gogs/sqlite/gogs.db [admin] @@ -89,6 +107,8 @@ ENABLE_REVERSE_PROXY_AUTHENTICATION = false ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false ; Do not check minimum key size with corresponding type DISABLE_MINIMUM_KEY_SIZE_CHECK = false +; Enable captcha validation for registration +ENABLE_CAPTCHA = true [webhook] ; Hook task queue length @@ -97,11 +117,13 @@ QUEUE_LENGTH = 1000 DELIVER_TIMEOUT = 5 ; Allow insecure certification SKIP_TLS_VERIFY = false +; Number of history information in each page +PAGING_NUM = 10 [mailer] ENABLED = false ; Buffer length of channel, keep it as it is if you don't know what it is. -SEND_BUFFER_LEN = 10 +SEND_BUFFER_LEN = 100 ; Name displayed in mail title SUBJECT = %(APP_NAME)s ; Mail server @@ -125,44 +147,6 @@ FROM = USER = PASSWD = -[oauth] -ENABLED = false - -[oauth.github] -ENABLED = false -CLIENT_ID = -CLIENT_SECRET = -SCOPES = https://api.github.com/user -AUTH_URL = https://github.com/login/oauth/authorize -TOKEN_URL = https://github.com/login/oauth/access_token - -; Get client id and secret from -; https://console.developers.google.com/project -[oauth.google] -ENABLED = false -CLIENT_ID = -CLIENT_SECRET = -SCOPES = https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile -AUTH_URL = https://accounts.google.com/o/oauth2/auth -TOKEN_URL = https://accounts.google.com/o/oauth2/token - -[oauth.qq] -ENABLED = false -CLIENT_ID = -CLIENT_SECRET = -SCOPES = get_user_info -; QQ 互联 -AUTH_URL = https://graph.qq.com/oauth2.0/authorize -TOKEN_URL = https://graph.qq.com/oauth2.0/token - -[oauth.weibo] -ENABLED = false -CLIENT_ID = -CLIENT_SECRET = -SCOPES = all -AUTH_URL = https://api.weibo.com/oauth2/authorize -TOKEN_URL = https://api.weibo.com/oauth2/access_token - [cache] ; Either "memory", "redis", or "memcache", default is "memory" ADAPTER = memory @@ -210,7 +194,7 @@ PATH = /srv/gogs/data/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 32MB -MAX_SIZE = 32 +MAX_SIZE = 4 ; Max number of files per upload. Defaults to 10 MAX_FILES = 5 diff --git a/app_old.ini b/app_old.ini index 9b8e4145dc0b..615154193279 100644 --- a/app_old.ini +++ b/app_old.ini @@ -13,8 +13,26 @@ ROOT = SCRIPT_TYPE = bash [ui] +; Number of repositories that are showed in one explore page +EXPLORE_PAGING_NUM = 20 ; Number of issues that are showed in one page ISSUE_PAGING_NUM = 10 +; Number of maximum commits showed in one activity feed +FEED_MAX_COMMIT_NUM = 5 + +[ui.admin] +; Number of users that are showed in one page +USER_PAGING_NUM = 50 +; Number of repos that are showed in one page +REPO_PAGING_NUM = 50 +; Number of notices that are showed in one page +NOTICE_PAGING_NUM = 50 +; Number of organization that are showed in one page +ORG_PAGING_NUM = 50 + +[markdown] +; Enable hard line break extension +ENABLE_HARD_LINE_BREAK = false [server] PROTOCOL = http @@ -55,7 +73,7 @@ USER = root PASSWD = ; For "postgres" only, either "disable", "require" or "verify-full" SSL_MODE = disable -; For "sqlite3" only +; For "sqlite3" and "tidb" PATH = data/gogs.db [admin] @@ -89,6 +107,8 @@ ENABLE_REVERSE_PROXY_AUTHENTICATION = false ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false ; Do not check minimum key size with corresponding type DISABLE_MINIMUM_KEY_SIZE_CHECK = false +; Enable captcha validation for registration +ENABLE_CAPTCHA = true [webhook] ; Hook task queue length @@ -97,11 +117,13 @@ QUEUE_LENGTH = 1000 DELIVER_TIMEOUT = 5 ; Allow insecure certification SKIP_TLS_VERIFY = false +; Number of history information in each page +PAGING_NUM = 10 [mailer] ENABLED = false ; Buffer length of channel, keep it as it is if you don't know what it is. -SEND_BUFFER_LEN = 10 +SEND_BUFFER_LEN = 100 ; Name displayed in mail title SUBJECT = %(APP_NAME)s ; Mail server @@ -125,44 +147,6 @@ FROM = USER = PASSWD = -[oauth] -ENABLED = false - -[oauth.github] -ENABLED = false -CLIENT_ID = -CLIENT_SECRET = -SCOPES = https://api.github.com/user -AUTH_URL = https://github.com/login/oauth/authorize -TOKEN_URL = https://github.com/login/oauth/access_token - -; Get client id and secret from -; https://console.developers.google.com/project -[oauth.google] -ENABLED = false -CLIENT_ID = -CLIENT_SECRET = -SCOPES = https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile -AUTH_URL = https://accounts.google.com/o/oauth2/auth -TOKEN_URL = https://accounts.google.com/o/oauth2/token - -[oauth.qq] -ENABLED = false -CLIENT_ID = -CLIENT_SECRET = -SCOPES = get_user_info -; QQ 互联 -AUTH_URL = https://graph.qq.com/oauth2.0/authorize -TOKEN_URL = https://graph.qq.com/oauth2.0/token - -[oauth.weibo] -ENABLED = false -CLIENT_ID = -CLIENT_SECRET = -SCOPES = all -AUTH_URL = https://api.weibo.com/oauth2/authorize -TOKEN_URL = https://api.weibo.com/oauth2/access_token - [cache] ; Either "memory", "redis", or "memcache", default is "memory" ADAPTER = memory @@ -210,7 +194,7 @@ PATH = data/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 32MB -MAX_SIZE = 32 +MAX_SIZE = 4 ; Max number of files per upload. Defaults to 10 MAX_FILES = 5 diff --git a/gogs.service b/gogs.service index f6cac7d2ac70..6c6e846e04f3 100644 --- a/gogs.service +++ b/gogs.service @@ -8,7 +8,7 @@ Type=simple User=gogs Group=gogs ExecStart=/usr/share/gogs/gogs web --config /srv/gogs/conf/app.ini -WorkingDirectory=/usr/share/gogs/ +WorkingDirectory=/srv/gogs/ [Install] WantedBy=multi-user.target |