aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Torokhov <torokhov-s-a@yandex.ru>2020-10-24 15:16:16 +0300
committerSergey Torokhov <torokhov-s-a@yandex.ru>2020-10-24 15:16:16 +0300
commit0ef05ac1fb9dab94f52b805110bc3d078b24055d (patch)
tree96b12d43451265a7b867f8eb938dc9f4aced075a /www-apps
parentwww-apps/code-server-bin: change uri; bump to 3.6.1 (diff)
downloadguru-0ef05ac1fb9dab94f52b805110bc3d078b24055d.tar.gz
guru-0ef05ac1fb9dab94f52b805110bc3d078b24055d.tar.bz2
guru-0ef05ac1fb9dab94f52b805110bc3d078b24055d.zip
www-apps/gogs: 0.12.3 version bump
Note: This package is maintainer-needed, update to fix security vulnerability https://nvd.nist.gov/vuln/detail/CVE-2020-15867 Ebuild updates: Add RESTRICT="mirror" due to large number of downloading pkgs, sort IUSE flags. Move patched config to /etc/gogs/custom/conf/app.ini to prevent warning about abcence of config on service start and fallback to /etc/gogs/conf/app.ini (leave as example). Known issue: Despite of set db+path in custom/conf/app.ini and in templates/install.tmpl and passsing right path to database in html-page as <input id="db_path" name="db_path" value="/var/lib/gogs/database/gogs.db"> on selecting the SQLite3 base the default path is still data/gogs.db Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/gogs/Manifest4
-rw-r--r--www-apps/gogs/files/gogs-0.12.3.patch66
-rw-r--r--www-apps/gogs/gogs-0.12.3.ebuild532
3 files changed, 602 insertions, 0 deletions
diff --git a/www-apps/gogs/Manifest b/www-apps/gogs/Manifest
index d2a59b490..0ce49daa3 100644
--- a/www-apps/gogs/Manifest
+++ b/www-apps/gogs/Manifest
@@ -266,6 +266,7 @@ DIST github.com%2Fsmartystreets%2Fassertions%2F@v%2Fv1.0.1.mod 52 BLAKE2B 3986b0
DIST github.com%2Fsmartystreets%2Fgoconvey%2F@v%2Fv0.0.0-20181108003508-044398e4856c.mod 41 BLAKE2B aeccb766735cab34f6559537127886e3227273ec40f78cb289b852430e5cb967e2b3b8a798dd20ab0d1c8481c62d25976a76831092bc114cc6c04214ce7ab081 SHA512 8ce1457d8f4e3cd2d997306844a157198039ae5feb9132f22d5768c1de32800469f682d33a8c3c455f7728332136f376858c23bf00da180a53f9d32d4e4ef291
DIST github.com%2Fsmartystreets%2Fgoconvey%2F@v%2Fv0.0.0-20190330032615-68dc04aab96a.mod 302 BLAKE2B 69fd290c3e72f4ee0597f480bae8647d80ab5c4acab21ac3ea19e847e3af4ac91a767876fac04c94c2db8bc782a24577d3478d3d0653f673609f2d57d6cc3427 SHA512 24806ff2cbf2719f50bb37cc5ffadeca1b64c7b089a1647695b45d647ddac16332504c7026813b4ab9316e53e755ad0ebbf6db9ca88179d0526ca2634e27e25f
DIST github.com%2Fsmartystreets%2Fgoconvey%2F@v%2Fv0.0.0-20190731233626-505e41936337.mod 302 BLAKE2B 69fd290c3e72f4ee0597f480bae8647d80ab5c4acab21ac3ea19e847e3af4ac91a767876fac04c94c2db8bc782a24577d3478d3d0653f673609f2d57d6cc3427 SHA512 24806ff2cbf2719f50bb37cc5ffadeca1b64c7b089a1647695b45d647ddac16332504c7026813b4ab9316e53e755ad0ebbf6db9ca88179d0526ca2634e27e25f
+DIST github.com%2Fsmartystreets%2Fgoconvey%2F@v%2Fv1.6.4.mod 302 BLAKE2B 69fd290c3e72f4ee0597f480bae8647d80ab5c4acab21ac3ea19e847e3af4ac91a767876fac04c94c2db8bc782a24577d3478d3d0653f673609f2d57d6cc3427 SHA512 24806ff2cbf2719f50bb37cc5ffadeca1b64c7b089a1647695b45d647ddac16332504c7026813b4ab9316e53e755ad0ebbf6db9ca88179d0526ca2634e27e25f
DIST github.com%2Fssor%2Fbom%2F@v%2Fv0.0.0-20170718123548-6386211fdfcf.mod 27 BLAKE2B 9dffca418389d3ec06a4d153b24ee0ae125d83661449f325096d7da41ac6636ef83cb72e4f3b09660daa0bfe984e8921bdc78404555ea2271bbabef599b0285e SHA512 a7b93a8318845c58a3eaed2495342f8630d62c022fb3e4698b514e08f6796737efff0088162faa96c48a3219a78f48dba26a0cdd56a87eaa17e756d11a0b000f
DIST github.com%2Fssor%2Fbom%2F@v%2Fv0.0.0-20170718123548-6386211fdfcf.zip 2796 BLAKE2B 6eb19a76e481d31c6459509356fccf2d13c98b6535b0dc5028c9dbfc881bbdf9bbc893393f7be470cc0ac45b64284abe7b95543e4d391dce1a5b743c9fb28b30 SHA512 94b67f94a9ac40f997cbf1e4ab0652f048867a5b92180761b7ee7425b876607c279bab7372d90f9b613ca86bf3d03d076823b4558a7d8e1c092a5d77e235d2b5
DIST github.com%2Fstretchr%2Fobjx%2F@v%2Fv0.1.0.mod 32 BLAKE2B d698910da1ef00a70a1673b8c74105de195020ccd95d1e70c5dd1e1615210886ff9acbc9cfd03f46e99f5223b60b04695b8d362b9e0edd4e485480f802bd229a SHA512 4e366e5a60559a8863cb2a50280deb307d8bf885ca5440cce1b49a084b4cc4583b3481240125f35f161226592a43f2c0a426152f117d79b68c92c72a93f751d5
@@ -284,6 +285,8 @@ DIST github.com%2Ft-tiger%2Fgorm-bulk-insert%2F@v%2Fv1.3.0.mod 174 BLAKE2B b3d17
DIST github.com%2Ft-tiger%2Fgorm-bulk-insert%2F@v%2Fv1.3.0.zip 17071 BLAKE2B cccef7a1b928666dae6a64ae16131b4d13d545bcbe9bb9763f478c4d53b7ef27e24359d7c121543c8dc454fc224a49e1a6c05f37c94bfdb41dbeb40f53149403 SHA512 c31f1f8b7f88f9fa76a3630b5ed9f9dbf895c8c9701e6e45b10b50e296cc7fe21f6d543fc3187443cf9459461e4adafa75de36aa5de68eb5247f1257e976727f
DIST github.com%2Funknwon%2Fcae%2F@v%2Fv1.0.0.mod 30 BLAKE2B e71005b6c74f174753e345672a91c6781685435ffafaf1bdd46ee72d9c2a6ca9366cd5cfeeab1cc4469dee51962365a1dcb2fc543d912beaa7261ee4e680b2d9 SHA512 259bc8174d414778c2be64dcadb2156c915fa49e141ba6ca09f188e0c81f186fd8e2bba8fe29907a42a14b5a10639f1eda02b7d2a5e758e4ded5ecd2f65743e3
DIST github.com%2Funknwon%2Fcae%2F@v%2Fv1.0.0.zip 38884 BLAKE2B 580e3538f135b02b749c7053ddc4b70bdcd645c49b729dbe8593d30ebb49ec58a3e8253e933b97613a1137c6998a8c27bc09cd323e03e8260203b87277574aa2 SHA512 9ff854dc1125831cc42ad43d798870fefb586013ec46fab8880a6d47b51fd8aa18f03a14bd0a0c1432c7b5f0ffe9408cb112130f2669aef312cc7ed0ae68ef68
+DIST github.com%2Funknwon%2Fcae%2F@v%2Fv1.0.2.mod 125 BLAKE2B fef98b0dbe59f4730d03ae95dc48c1826282790cf3d039d5beacb9fe9e214875122d98697761e6e60607ec99157fb7285af29da500fa6857e6004f360d6cb419 SHA512 8b6ae7ec088ff0ce5da990eb5e37ce723e7dd893ba6cda25136b1db2e98830c88cdc1c581dc6e1422e872c069c98d5f80394ceaa01870ae5e41733308670a753
+DIST github.com%2Funknwon%2Fcae%2F@v%2Fv1.0.2.zip 41055 BLAKE2B 2a7d8cd90a1df9ce90e3ee4c397a07f51b0854fea24318c3fb170d8205961d512a9c2c9f5b12c377d2e7dc233d67d28969e072519e521517e9fa7cc1cc5791a2 SHA512 e83f81fc90ba9b540272d14d392bab74fca53b889d4958e3e6fb78cf8c3e9df30ec462d5ee50c2f7b3db39fa8b0b638909294b0a75c6fb7d62d1d2e128bd16e9
DIST github.com%2Funknwon%2Fcom%2F@v%2Fv0.0.0-20190804042917-757f69c95f3e.mod 329 BLAKE2B 9f4986fd59c7d55b2e0fb0acc7be90c3656ab0fb9537c835c422639a3d428bde858d8724d644ce55627c9b17fb4eb53d26ba9c1b5d288141e71c1daed2bd8fc2 SHA512 ee35b5dbed3b4900a05405538cf7ce223c758a916478345aefe52cbba1405163ef3cc7f4464a91d9a467faffc4f1fb25a4f38106812610d5748ac623c9f50d23
DIST github.com%2Funknwon%2Fcom%2F@v%2Fv1.0.1.mod 329 BLAKE2B 9f4986fd59c7d55b2e0fb0acc7be90c3656ab0fb9537c835c422639a3d428bde858d8724d644ce55627c9b17fb4eb53d26ba9c1b5d288141e71c1daed2bd8fc2 SHA512 ee35b5dbed3b4900a05405538cf7ce223c758a916478345aefe52cbba1405163ef3cc7f4464a91d9a467faffc4f1fb25a4f38106812610d5748ac623c9f50d23
DIST github.com%2Funknwon%2Fcom%2F@v%2Fv1.0.1.zip 39664 BLAKE2B 92f68892be61e6116b7a23bd4a9218a2ce16aef5999d5f686ea84825ad60f3df9941a8cadc890bc7f2d42dfe16732ff1ab4aab3da515488adbb9ca739f814f15 SHA512 e464c0483ec466d2b72c79ab3f56f2dd133d783b581d194923863ebc7a0f1bae1634d357141773c41fb8b234926bcdbba66b511dff46a0d7fe6e2ef1ef368c0f
@@ -296,6 +299,7 @@ DIST github.com%2Furfave%2Fcli%2F@v%2Fv1.22.4.zip 109532 BLAKE2B ff6116d5112581b
DIST github.com%2Fziutek%2Fmymysql%2F@v%2Fv1.5.4.mod 33 BLAKE2B 06075bbd3eb02ab2dd096de6cce4658000082d9afe5616c75d74b0dadf777263a3c914517bf0df87908d043370cd066c4a5c45b6843cf02bb3fd67928a8d5197 SHA512 cd6a60a15f71d86acc64da0657180522cc0cb7a6e43428e131241bcf791a9c73d6dd8813fb8dd5b3d8e9bf99ac9264b0519c796053a7d519bf66143e1b0643ac
DIST go.opencensus.io%2F@v%2Fv0.20.1.mod 408 BLAKE2B 01a022e76e1605416e74ffa8aafc0868304c7810d9e9de804bd611a2eb7417adf113cf10ecf607d89d1ef18f1e17fdbd1efc35f889854210114fb8a4e8db1d6f SHA512 2bfbe633ffde1f91834ca77f19d0b32cc4c9480b8a59e101199cf3e8ab0285c16fb45a00326353f02a7dbe06c1562c4695ce7d98767c4149ed2321acd527bebd
DIST gogs-0.12.1.tar.gz 22243846 BLAKE2B 98a0c34cae85feafb20503bce26590471f401013cb472c7474b63b6577e57174a6e1d830c8881bf6be8f4b5d41251f96383e7fe4b0411b9ba013f5e48d31d3d3 SHA512 9d6fd7c12b6e71e2d86775c934a857dedd63ef7b005fc7e130829cd5b3199ac267c3b2b8ad7c152c759188070f0d5f9753846312748dcb96be832f049913a3f0
+DIST gogs-0.12.3.tar.gz 22245046 BLAKE2B 8fc60ae17c03ad4ba9b98f4889767aa050403330f4fbf44ac958b932868caa619573ea44913575c50858a1eabcb71d5920ff37c47082ef7838852d3d550522c3 SHA512 cae59dd82f6bd825d576396464b0a7b35b6b4238404655106867d465b850345e51982dda2296b810b7ce0dc6aeba0fd4d767424b2f66076142c47992fae34081
DIST golang.org%2Fx%2Fcrypto%2F@v%2Fv0.0.0-20180904163835-0709b304e793.mod 27 BLAKE2B f91145aab2cee00c3567772e97f6162b9681d6cbcbe67a1b5b2f59b8f912572f705a0d1280fdced086d92efd10c50ecede26d1cfa3d5419217e5eef95097b4b1 SHA512 a88da5b983ff482a4e8b512761eeee466a8b0664b42da54ec9772c2eb3cb1bc5b7545045e283bac82552336802d8bc8efe137ba16f3530228b529366744a33e6
DIST golang.org%2Fx%2Fcrypto%2F@v%2Fv0.0.0-20190308221718-c2843e01d9a2.mod 88 BLAKE2B aec7d0eea1278eb3d1568d5bfb4041267501ad14457ebfcbdbc5fe21473170b8616ca4028f52af2edbfd85922cbe04540b4b0df7f69f63197698143cc5557a7a SHA512 2df49895053b36fed7ea905aa73f86568fbafd79ff0a7976679d8c77cf15025129435d9dbfd89367b611b1aadbea4f4bd1835eb4efa9ea702466e443638d379e
DIST golang.org%2Fx%2Fcrypto%2F@v%2Fv0.0.0-20190325154230-a5d413f7728c.mod 88 BLAKE2B aec7d0eea1278eb3d1568d5bfb4041267501ad14457ebfcbdbc5fe21473170b8616ca4028f52af2edbfd85922cbe04540b4b0df7f69f63197698143cc5557a7a SHA512 2df49895053b36fed7ea905aa73f86568fbafd79ff0a7976679d8c77cf15025129435d9dbfd89367b611b1aadbea4f4bd1835eb4efa9ea702466e443638d379e
diff --git a/www-apps/gogs/files/gogs-0.12.3.patch b/www-apps/gogs/files/gogs-0.12.3.patch
new file mode 100644
index 000000000..2d99c012d
--- /dev/null
+++ b/www-apps/gogs/files/gogs-0.12.3.patch
@@ -0,0 +1,66 @@
+diff --git a/custom/conf/app.ini b/custom/conf/app.ini
+--- a/custom/conf/app.ini
++++ b/custom/conf/app.ini
+@@ -1,14 +1,12 @@
+-# !!! NEVER EVER MODIFY THIS FILE !!!
+-# !!! PLEASE MAKE CHANGES ON CORRESPONDING CUSTOM CONFIG FILE !!!
+-# !!! IF YOU ARE PACKAGING PROVIDER, PLEASE MAKE OWN COPY OF IT !!!
++## General config override ##
+
+ ; The brand name of the application, can be your company or team name.
+ BRAND_NAME = Gogs
+ ; The system user who should be running the applications. It has no effect on Windows,
+ ; otherwise, it should match the value of $USER environment variable.
+-RUN_USER = git
++RUN_USER = gogs
+ ; The running mode of the application, can be either "dev", "prod" or "test".
+-RUN_MODE = dev
++RUN_MODE = prod
+
+ [server]
+ ; The public-facing URL for the application.
+@@ -41,7 +39,7 @@ UNIX_SOCKET_PERMISSION = 666
+ LOCAL_ROOT_URL = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/
+
+ ; Whether to disable using CDN for static files regardless.
+-OFFLINE_MODE = false
++OFFLINE_MODE = true
+ ; Whether to disable logging in router.
+ DISABLE_ROUTER_LOG = true
+ ; Whether to enable application level GZIP compression.
+@@ -91,7 +89,7 @@ DSA = 1024
+
+ [repository]
+ ; The root path for storing managed repositories, default is "~/gogs-repositories"
+-ROOT =
++ROOT = /var/lib/gogs/repositories
+ ; The script type server supports, sometimes could be "sh".
+ SCRIPT_TYPE = bash
+ ; Default ANSI charset for an unrecognized charset.
+@@ -145,7 +143,7 @@ PASSWORD =
+ ; For "postgres" only, either "disable", "require" or "verify-full".
+ SSL_MODE = disable
+ ; For "sqlite3" only, make sure to use absolute path.
+-PATH = data/gogs.db
++PATH = database/gogs.db
+ ; The maximum open connections of the pool.
+ MAX_OPEN_CONNS = 30
+ ; The maximum idle connections of the pool.
+@@ -306,7 +304,7 @@ REPOSITORY_AVATAR_UPLOAD_PATH = data/repo-avatars
+ ; Chinese users can use a custom avatar source, such as http://cn.gravatar.com/avatar/.
+ GRAVATAR_SOURCE = gravatar
+ ; Whether to disable Gravatar, this value will be forced to be true in offline mode.
+-DISABLE_GRAVATAR = false
++DISABLE_GRAVATAR = true
+ ; Whether to enable federated avatar lookup uses DNS to discover avatar associated
+ ; with emails, see https://www.libravatar.org for details.
+ ; This value will be forced to be false in offline mode or when Gravatar is disabled.
+@@ -347,7 +345,7 @@ PAGING_NUM = 10
+ ; General settings of loggers.
+ [log]
+ ; The root path for all log files, default is "log/" subdirectory.
+-ROOT_PATH =
++ROOT_PATH = /var/log/gogs/
+ ; Can be "console", "file", "slack" and "discord".
+ ; Use comma to separate multiple modes, e.g. "console, file"
+ MODE = console
diff --git a/www-apps/gogs/gogs-0.12.3.ebuild b/www-apps/gogs/gogs-0.12.3.ebuild
new file mode 100644
index 000000000..157f8a60b
--- /dev/null
+++ b/www-apps/gogs/gogs-0.12.3.ebuild
@@ -0,0 +1,532 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit fcaps go-module systemd
+
+DESCRIPTION="Gogs is a self-hosted Git service written in Go"
+HOMEPAGE="https://gogs.io https://github.com/gogs/gogs"
+
+EGO_SUM=(
+ "cloud.google.com/go v0.26.0/go.mod"
+ "cloud.google.com/go v0.34.0/go.mod"
+ "cloud.google.com/go v0.37.4/go.mod"
+ "github.com/BurntSushi/toml v0.3.1/go.mod"
+ "github.com/Masterminds/semver/v3 v3.1.0"
+ "github.com/Masterminds/semver/v3 v3.1.0/go.mod"
+ "github.com/Shopify/sarama v1.19.0/go.mod"
+ "github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod"
+ "github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod"
+ "github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod"
+ "github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod"
+ "github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod"
+ "github.com/apache/thrift v0.12.0/go.mod"
+ "github.com/aymerick/douceur v0.2.0"
+ "github.com/aymerick/douceur v0.2.0/go.mod"
+ "github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod"
+ "github.com/beorn7/perks v1.0.0/go.mod"
+ "github.com/beorn7/perks v1.0.1"
+ "github.com/beorn7/perks v1.0.1/go.mod"
+ "github.com/bgentry/speakeasy v0.1.0/go.mod"
+ "github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc"
+ "github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc/go.mod"
+ "github.com/bradfitz/gomemcache v0.0.0-20190329173943-551aad21a668"
+ "github.com/bradfitz/gomemcache v0.0.0-20190329173943-551aad21a668/go.mod"
+ "github.com/cespare/xxhash/v2 v2.1.1"
+ "github.com/cespare/xxhash/v2 v2.1.1/go.mod"
+ "github.com/chris-ramon/douceur v0.2.0"
+ "github.com/chris-ramon/douceur v0.2.0/go.mod"
+ "github.com/client9/misspell v0.3.4/go.mod"
+ "github.com/couchbase/gomemcached v0.0.0-20190515232915-c4b4ca0eb21d/go.mod"
+ "github.com/couchbase/goutils v0.0.0-20190315194238-f9d42b11473b/go.mod"
+ "github.com/couchbaselabs/go-couchbase v0.0.0-20190708161019-23e7ca2ce2b7/go.mod"
+ "github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d"
+ "github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod"
+ "github.com/cupcake/rdb v0.0.0-20161107195141-43ba34106c76/go.mod"
+ "github.com/davecgh/go-spew v1.1.0/go.mod"
+ "github.com/davecgh/go-spew v1.1.1"
+ "github.com/davecgh/go-spew v1.1.1/go.mod"
+ "github.com/denisenkom/go-mssqldb v0.0.0-20190515213511-eb9f6a1743f3/go.mod"
+ "github.com/denisenkom/go-mssqldb v0.0.0-20190707035753-2be1aa521ff4/go.mod"
+ "github.com/denisenkom/go-mssqldb v0.0.0-20191124224453-732737034ffd/go.mod"
+ "github.com/denisenkom/go-mssqldb v0.0.0-20200206145737-bbfc9a55622e"
+ "github.com/denisenkom/go-mssqldb v0.0.0-20200206145737-bbfc9a55622e/go.mod"
+ "github.com/eapache/go-resiliency v1.1.0/go.mod"
+ "github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod"
+ "github.com/eapache/queue v1.1.0/go.mod"
+ "github.com/editorconfig/editorconfig-core-go/v2 v2.3.2"
+ "github.com/editorconfig/editorconfig-core-go/v2 v2.3.2/go.mod"
+ "github.com/edsrzf/mmap-go v1.0.0/go.mod"
+ "github.com/erikstmartin/go-testdb v0.0.0-20160219214506-8d10e4a1bae5/go.mod"
+ "github.com/fatih/color v1.7.0/go.mod"
+ "github.com/fatih/color v1.9.0"
+ "github.com/fatih/color v1.9.0/go.mod"
+ "github.com/fsnotify/fsnotify v1.4.7/go.mod"
+ "github.com/go-kit/kit v0.8.0/go.mod"
+ "github.com/go-kit/kit v0.9.0/go.mod"
+ "github.com/go-logfmt/logfmt v0.3.0/go.mod"
+ "github.com/go-logfmt/logfmt v0.4.0/go.mod"
+ "github.com/go-macaron/binding v1.1.0"
+ "github.com/go-macaron/binding v1.1.0/go.mod"
+ "github.com/go-macaron/cache v0.0.0-20190810181446-10f7c57e2196"
+ "github.com/go-macaron/cache v0.0.0-20190810181446-10f7c57e2196/go.mod"
+ "github.com/go-macaron/captcha v0.2.0"
+ "github.com/go-macaron/captcha v0.2.0/go.mod"
+ "github.com/go-macaron/csrf v0.0.0-20190812063352-946f6d303a4c"
+ "github.com/go-macaron/csrf v0.0.0-20190812063352-946f6d303a4c/go.mod"
+ "github.com/go-macaron/gzip v0.0.0-20160222043647-cad1c6580a07"
+ "github.com/go-macaron/gzip v0.0.0-20160222043647-cad1c6580a07/go.mod"
+ "github.com/go-macaron/i18n v0.5.0"
+ "github.com/go-macaron/i18n v0.5.0/go.mod"
+ "github.com/go-macaron/inject v0.0.0-20160627170012-d8a0b8677191"
+ "github.com/go-macaron/inject v0.0.0-20160627170012-d8a0b8677191/go.mod"
+ "github.com/go-macaron/session v0.0.0-20190805070824-1a3cdc6f5659"
+ "github.com/go-macaron/session v0.0.0-20190805070824-1a3cdc6f5659/go.mod"
+ "github.com/go-macaron/toolbox v0.0.0-20190813233741-94defb8383c6"
+ "github.com/go-macaron/toolbox v0.0.0-20190813233741-94defb8383c6/go.mod"
+ "github.com/go-sql-driver/mysql v1.4.1/go.mod"
+ "github.com/go-sql-driver/mysql v1.5.0"
+ "github.com/go-sql-driver/mysql v1.5.0/go.mod"
+ "github.com/go-stack/stack v1.8.0/go.mod"
+ "github.com/go-xorm/sqlfiddle v0.0.0-20180821085327-62ce714f951a/go.mod"
+ "github.com/gogo/protobuf v1.1.1/go.mod"
+ "github.com/gogo/protobuf v1.2.0/go.mod"
+ "github.com/gogs/chardet v0.0.0-20150115103509-2404f7772561"
+ "github.com/gogs/chardet v0.0.0-20150115103509-2404f7772561/go.mod"
+ "github.com/gogs/cron v0.0.0-20171120032916-9f6c956d3e14"
+ "github.com/gogs/cron v0.0.0-20171120032916-9f6c956d3e14/go.mod"
+ "github.com/gogs/git-module v1.1.1"
+ "github.com/gogs/git-module v1.1.1/go.mod"
+ "github.com/gogs/git-module v1.1.2"
+ "github.com/gogs/git-module v1.1.2/go.mod"
+ "github.com/gogs/go-gogs-client v0.0.0-20200128182646-c69cb7680fd4"
+ "github.com/gogs/go-gogs-client v0.0.0-20200128182646-c69cb7680fd4/go.mod"
+ "github.com/gogs/go-libravatar v0.0.0-20191106065024-33a75213d0a0"
+ "github.com/gogs/go-libravatar v0.0.0-20191106065024-33a75213d0a0/go.mod"
+ "github.com/gogs/minwinsvc v0.0.0-20170301035411-95be6356811a/go.mod"
+ "github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe"
+ "github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe/go.mod"
+ "github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod"
+ "github.com/golang/mock v1.1.1/go.mod"
+ "github.com/golang/mock v1.2.0/go.mod"
+ "github.com/golang/protobuf v1.2.0/go.mod"
+ "github.com/golang/protobuf v1.3.1/go.mod"
+ "github.com/golang/protobuf v1.3.2/go.mod"
+ "github.com/golang/protobuf v1.4.0-rc.1/go.mod"
+ "github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod"
+ "github.com/golang/protobuf v1.4.0-rc.2/go.mod"
+ "github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod"
+ "github.com/golang/protobuf v1.4.0"
+ "github.com/golang/protobuf v1.4.0/go.mod"
+ "github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod"
+ "github.com/golang/snappy v0.0.1/go.mod"
+ "github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod"
+ "github.com/google/go-cmp v0.2.0/go.mod"
+ "github.com/google/go-cmp v0.3.0/go.mod"
+ "github.com/google/go-cmp v0.3.1/go.mod"
+ "github.com/google/go-cmp v0.4.0/go.mod"
+ "github.com/google/go-github v17.0.0+incompatible"
+ "github.com/google/go-github v17.0.0+incompatible/go.mod"
+ "github.com/google/go-querystring v1.0.0"
+ "github.com/google/go-querystring v1.0.0/go.mod"
+ "github.com/google/gofuzz v1.0.0/go.mod"
+ "github.com/google/martian v2.1.0+incompatible/go.mod"
+ "github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod"
+ "github.com/googleapis/gax-go/v2 v2.0.4/go.mod"
+ "github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod"
+ "github.com/gopherjs/gopherjs v0.0.0-20181103185306-d547d1d9531e/go.mod"
+ "github.com/gopherjs/gopherjs v0.0.0-20190430165422-3e4dfb77656c/go.mod"
+ "github.com/gorilla/context v1.1.1/go.mod"
+ "github.com/gorilla/css v1.0.0"
+ "github.com/gorilla/css v1.0.0/go.mod"
+ "github.com/gorilla/mux v1.6.2/go.mod"
+ "github.com/hashicorp/golang-lru v0.5.0/go.mod"
+ "github.com/hpcloud/tail v1.0.0/go.mod"
+ "github.com/issue9/assert v1.3.1/go.mod"
+ "github.com/issue9/identicon v1.0.1"
+ "github.com/issue9/identicon v1.0.1/go.mod"
+ "github.com/jaytaylor/html2text v0.0.0-20190408195923-01ec452cbe43"
+ "github.com/jaytaylor/html2text v0.0.0-20190408195923-01ec452cbe43/go.mod"
+ "github.com/jinzhu/gorm v1.9.11/go.mod"
+ "github.com/jinzhu/gorm v1.9.12"
+ "github.com/jinzhu/gorm v1.9.12/go.mod"
+ "github.com/jinzhu/inflection v1.0.0"
+ "github.com/jinzhu/inflection v1.0.0/go.mod"
+ "github.com/jinzhu/now v1.0.1/go.mod"
+ "github.com/json-iterator/go v1.1.6/go.mod"
+ "github.com/json-iterator/go v1.1.9"
+ "github.com/json-iterator/go v1.1.9/go.mod"
+ "github.com/json-iterator/go v1.1.10"
+ "github.com/json-iterator/go v1.1.10/go.mod"
+ "github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod"
+ "github.com/jtolds/gls v4.2.1+incompatible/go.mod"
+ "github.com/jtolds/gls v4.20.0+incompatible/go.mod"
+ "github.com/julienschmidt/httprouter v1.2.0/go.mod"
+ "github.com/kisielk/gotool v1.0.0/go.mod"
+ "github.com/klauspost/compress v1.8.6"
+ "github.com/klauspost/compress v1.8.6/go.mod"
+ "github.com/klauspost/cpuid v1.2.1"
+ "github.com/klauspost/cpuid v1.2.1/go.mod"
+ "github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod"
+ "github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod"
+ "github.com/kr/pretty v0.1.0/go.mod"
+ "github.com/kr/pty v1.1.1/go.mod"
+ "github.com/kr/text v0.1.0/go.mod"
+ "github.com/lib/pq v1.0.0/go.mod"
+ "github.com/lib/pq v1.1.1/go.mod"
+ "github.com/lib/pq v1.2.0/go.mod"
+ "github.com/lib/pq v1.3.0"
+ "github.com/lib/pq v1.3.0/go.mod"
+ "github.com/lunny/log v0.0.0-20160921050905-7887c61bf0de/go.mod"
+ "github.com/lunny/nodb v0.0.0-20160621015157-fc1ef06ad4af/go.mod"
+ "github.com/mattn/go-colorable v0.1.4"
+ "github.com/mattn/go-colorable v0.1.4/go.mod"
+ "github.com/mattn/go-isatty v0.0.8/go.mod"
+ "github.com/mattn/go-isatty v0.0.10/go.mod"
+ "github.com/mattn/go-isatty v0.0.11/go.mod"
+ "github.com/mattn/go-isatty v0.0.12"
+ "github.com/mattn/go-isatty v0.0.12/go.mod"
+ "github.com/mattn/go-runewidth v0.0.4"
+ "github.com/mattn/go-runewidth v0.0.4/go.mod"
+ "github.com/mattn/go-sqlite3 v1.10.0/go.mod"
+ "github.com/mattn/go-sqlite3 v1.11.0/go.mod"
+ "github.com/mattn/go-sqlite3 v2.0.1+incompatible/go.mod"
+ "github.com/mattn/go-sqlite3 v2.0.3+incompatible"
+ "github.com/mattn/go-sqlite3 v2.0.3+incompatible/go.mod"
+ "github.com/matttproud/golang_protobuf_extensions v1.0.1"
+ "github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod"
+ "github.com/mcuadros/go-version v0.0.0-20190308113854-92cdf37c5b75/go.mod"
+ "github.com/mcuadros/go-version v0.0.0-20190830083331-035f6764e8d2"
+ "github.com/mcuadros/go-version v0.0.0-20190830083331-035f6764e8d2/go.mod"
+ "github.com/microcosm-cc/bluemonday v1.0.2"
+ "github.com/microcosm-cc/bluemonday v1.0.2/go.mod"
+ "github.com/microcosm-cc/bluemonday v1.0.4"
+ "github.com/microcosm-cc/bluemonday v1.0.4/go.mod"
+ "github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod"
+ "github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd"
+ "github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod"
+ "github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod"
+ "github.com/modern-go/reflect2 v1.0.1"
+ "github.com/modern-go/reflect2 v1.0.1/go.mod"
+ "github.com/msteinert/pam v0.0.0-20190215180659-f29b9f28d6f9"
+ "github.com/msteinert/pam v0.0.0-20190215180659-f29b9f28d6f9/go.mod"
+ "github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod"
+ "github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646"
+ "github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646/go.mod"
+ "github.com/niklasfasching/go-org v0.1.9"
+ "github.com/niklasfasching/go-org v0.1.9/go.mod"
+ "github.com/olekukonko/tablewriter v0.0.1"
+ "github.com/olekukonko/tablewriter v0.0.1/go.mod"
+ "github.com/onsi/ginkgo v1.6.0/go.mod"
+ "github.com/onsi/ginkgo v1.7.0/go.mod"
+ "github.com/onsi/ginkgo v1.8.0/go.mod"
+ "github.com/onsi/gomega v1.4.3/go.mod"
+ "github.com/onsi/gomega v1.5.0/go.mod"
+ "github.com/openzipkin/zipkin-go v0.1.6/go.mod"
+ "github.com/pelletier/go-toml v1.4.0/go.mod"
+ "github.com/pierrec/lz4 v2.0.5+incompatible/go.mod"
+ "github.com/pkg/errors v0.8.0/go.mod"
+ "github.com/pkg/errors v0.8.1/go.mod"
+ "github.com/pkg/errors v0.9.1"
+ "github.com/pkg/errors v0.9.1/go.mod"
+ "github.com/pmezard/go-difflib v1.0.0"
+ "github.com/pmezard/go-difflib v1.0.0/go.mod"
+ "github.com/pquerna/otp v1.2.0"
+ "github.com/pquerna/otp v1.2.0/go.mod"
+ "github.com/prometheus/client_golang v0.9.1/go.mod"
+ "github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod"
+ "github.com/prometheus/client_golang v1.0.0/go.mod"
+ "github.com/prometheus/client_golang v1.6.0"
+ "github.com/prometheus/client_golang v1.6.0/go.mod"
+ "github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod"
+ "github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod"
+ "github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod"
+ "github.com/prometheus/client_model v0.2.0"
+ "github.com/prometheus/client_model v0.2.0/go.mod"
+ "github.com/prometheus/common v0.2.0/go.mod"
+ "github.com/prometheus/common v0.4.1/go.mod"
+ "github.com/prometheus/common v0.9.1"
+ "github.com/prometheus/common v0.9.1/go.mod"
+ "github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod"
+ "github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod"
+ "github.com/prometheus/procfs v0.0.2/go.mod"
+ "github.com/prometheus/procfs v0.0.11"
+ "github.com/prometheus/procfs v0.0.11/go.mod"
+ "github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod"
+ "github.com/russross/blackfriday v1.5.2"
+ "github.com/russross/blackfriday v1.5.2/go.mod"
+ "github.com/russross/blackfriday/v2 v2.0.1"
+ "github.com/russross/blackfriday/v2 v2.0.1/go.mod"
+ "github.com/saintfish/chardet v0.0.0-20120816061221-3af4cd4741ca/go.mod"
+ "github.com/satori/go.uuid v1.2.0"
+ "github.com/satori/go.uuid v1.2.0/go.mod"
+ "github.com/sergi/go-diff v1.1.0"
+ "github.com/sergi/go-diff v1.1.0/go.mod"
+ "github.com/shurcooL/sanitized_anchor_name v1.0.0"
+ "github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod"
+ "github.com/siddontang/go v0.0.0-20180604090527-bdc77568d726/go.mod"
+ "github.com/siddontang/go-snappy v0.0.0-20140704025258-d8f7bb82a96d/go.mod"
+ "github.com/siddontang/ledisdb v0.0.0-20190202134119-8ceb77e66a92/go.mod"
+ "github.com/siddontang/rdb v0.0.0-20150307021120-fc89ed2e418d/go.mod"
+ "github.com/sirupsen/logrus v1.2.0/go.mod"
+ "github.com/sirupsen/logrus v1.4.2/go.mod"
+ "github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod"
+ "github.com/smartystreets/assertions v0.0.0-20190116191733-b6c0e53d7304/go.mod"
+ "github.com/smartystreets/assertions v1.0.1/go.mod"
+ "github.com/smartystreets/goconvey v0.0.0-20181108003508-044398e4856c/go.mod"
+ "github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a/go.mod"
+ "github.com/smartystreets/goconvey v0.0.0-20190731233626-505e41936337/go.mod"
+ "github.com/smartystreets/goconvey v1.6.4/go.mod"
+ "github.com/ssor/bom v0.0.0-20170718123548-6386211fdfcf"
+ "github.com/ssor/bom v0.0.0-20170718123548-6386211fdfcf/go.mod"
+ "github.com/stretchr/objx v0.1.0/go.mod"
+ "github.com/stretchr/objx v0.1.1"
+ "github.com/stretchr/objx v0.1.1/go.mod"
+ "github.com/stretchr/testify v1.2.2/go.mod"
+ "github.com/stretchr/testify v1.3.0/go.mod"
+ "github.com/stretchr/testify v1.4.0/go.mod"
+ "github.com/stretchr/testify v1.5.1/go.mod"
+ "github.com/stretchr/testify v1.6.0"
+ "github.com/stretchr/testify v1.6.0/go.mod"
+ "github.com/stretchr/testify v1.6.1"
+ "github.com/stretchr/testify v1.6.1/go.mod"
+ "github.com/syndtr/goleveldb v1.0.0/go.mod"
+ "github.com/t-tiger/gorm-bulk-insert v1.3.0"
+ "github.com/t-tiger/gorm-bulk-insert v1.3.0/go.mod"
+ "github.com/unknwon/cae v1.0.2"
+ "github.com/unknwon/cae v1.0.2/go.mod"
+ "github.com/unknwon/com v0.0.0-20190804042917-757f69c95f3e/go.mod"
+ "github.com/unknwon/com v1.0.1"
+ "github.com/unknwon/com v1.0.1/go.mod"
+ "github.com/unknwon/i18n v0.0.0-20190805065654-5c6446a380b6"
+ "github.com/unknwon/i18n v0.0.0-20190805065654-5c6446a380b6/go.mod"
+ "github.com/unknwon/paginater v0.0.0-20170405233947-45e5d631308e"
+ "github.com/unknwon/paginater v0.0.0-20170405233947-45e5d631308e/go.mod"
+ "github.com/urfave/cli v1.22.4"
+ "github.com/urfave/cli v1.22.4/go.mod"
+ "github.com/ziutek/mymysql v1.5.4/go.mod"
+ "go.opencensus.io v0.20.1/go.mod"
+ "golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod"
+ "golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod"
+ "golang.org/x/crypto v0.0.0-20190325154230-a5d413f7728c/go.mod"
+ "golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod"
+ "golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod"
+ "golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod"
+ "golang.org/x/crypto v0.0.0-20191205180655-e7c4368fe9dd/go.mod"
+ "golang.org/x/crypto v0.0.0-20200220183623-bac4c82f6975"
+ "golang.org/x/crypto v0.0.0-20200220183623-bac4c82f6975/go.mod"
+ "golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod"
+ "golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod"
+ "golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod"
+ "golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod"
+ "golang.org/x/mod v0.2.0"
+ "golang.org/x/mod v0.2.0/go.mod"
+ "golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod"
+ "golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod"
+ "golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod"
+ "golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod"
+ "golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod"
+ "golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod"
+ "golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3/go.mod"
+ "golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod"
+ "golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod"
+ "golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod"
+ "golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod"
+ "golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod"
+ "golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod"
+ "golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod"
+ "golang.org/x/net v0.0.0-20191014212845-da9a3fd4c582"
+ "golang.org/x/net v0.0.0-20191014212845-da9a3fd4c582/go.mod"
+ "golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod"
+ "golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod"
+ "golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod"
+ "golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod"
+ "golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod"
+ "golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod"
+ "golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod"
+ "golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod"
+ "golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod"
+ "golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod"
+ "golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod"
+ "golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod"
+ "golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod"
+ "golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod"
+ "golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod"
+ "golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod"
+ "golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod"
+ "golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod"
+ "golang.org/x/sys v0.0.0-20190804053845-51ab0e2deafa/go.mod"
+ "golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod"
+ "golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod"
+ "golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod"
+ "golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod"
+ "golang.org/x/sys v0.0.0-20200420163511-1957bb5e6d1f"
+ "golang.org/x/sys v0.0.0-20200420163511-1957bb5e6d1f/go.mod"
+ "golang.org/x/text v0.3.0/go.mod"
+ "golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod"
+ "golang.org/x/text v0.3.2/go.mod"
+ "golang.org/x/text v0.3.3"
+ "golang.org/x/text v0.3.3/go.mod"
+ "golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod"
+ "golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod"
+ "golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod"
+ "golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod"
+ "golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod"
+ "golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod"
+ "golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod"
+ "golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod"
+ "golang.org/x/tools v0.0.0-20190802220118-1d1727260058/go.mod"
+ "golang.org/x/tools v0.0.0-20190805222050-c5a2fd39b72a/go.mod"
+ "golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod"
+ "golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod"
+ "golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod"
+ "golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod"
+ "google.golang.org/api v0.3.1/go.mod"
+ "google.golang.org/appengine v1.1.0/go.mod"
+ "google.golang.org/appengine v1.4.0/go.mod"
+ "google.golang.org/appengine v1.6.0/go.mod"
+ "google.golang.org/appengine v1.6.1/go.mod"
+ "google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod"
+ "google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod"
+ "google.golang.org/genproto v0.0.0-20190404172233-64821d5d2107/go.mod"
+ "google.golang.org/grpc v1.17.0/go.mod"
+ "google.golang.org/grpc v1.19.0/go.mod"
+ "google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod"
+ "google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod"
+ "google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod"
+ "google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod"
+ "google.golang.org/protobuf v1.21.0"
+ "google.golang.org/protobuf v1.21.0/go.mod"
+ "gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod"
+ "gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc/go.mod"
+ "gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d"
+ "gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d/go.mod"
+ "gopkg.in/bufio.v1 v1.0.0-20140618132640-567b2bfa514e"
+ "gopkg.in/bufio.v1 v1.0.0-20140618132640-567b2bfa514e/go.mod"
+ "gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod"
+ "gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod"
+ "gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod"
+ "gopkg.in/fsnotify.v1 v1.4.7/go.mod"
+ "gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df"
+ "gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df/go.mod"
+ "gopkg.in/ini.v1 v1.46.0/go.mod"
+ "gopkg.in/ini.v1 v1.55.0/go.mod"
+ "gopkg.in/ini.v1 v1.56.0"
+ "gopkg.in/ini.v1 v1.56.0/go.mod"
+ "gopkg.in/ldap.v2 v2.5.1"
+ "gopkg.in/ldap.v2 v2.5.1/go.mod"
+ "gopkg.in/macaron.v1 v1.3.4/go.mod"
+ "gopkg.in/macaron.v1 v1.3.5/go.mod"
+ "gopkg.in/macaron.v1 v1.3.9"
+ "gopkg.in/macaron.v1 v1.3.9/go.mod"
+ "gopkg.in/redis.v2 v2.3.2"
+ "gopkg.in/redis.v2 v2.3.2/go.mod"
+ "gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod"
+ "gopkg.in/yaml.v2 v2.2.1/go.mod"
+ "gopkg.in/yaml.v2 v2.2.2/go.mod"
+ "gopkg.in/yaml.v2 v2.2.4/go.mod"
+ "gopkg.in/yaml.v2 v2.2.5/go.mod"
+ "gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod"
+ "honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod"
+ "honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod"
+ "honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod"
+ "unknwon.dev/clog/v2 v2.1.2"
+ "unknwon.dev/clog/v2 v2.1.2/go.mod"
+ "xorm.io/builder v0.3.6"
+ "xorm.io/builder v0.3.6/go.mod"
+ "xorm.io/core v0.7.2"
+ "xorm.io/core v0.7.2/go.mod"
+ "xorm.io/xorm v0.8.0"
+ "xorm.io/xorm v0.8.0/go.mod"
+ )
+go-module_set_globals
+
+SRC_URI="https://github.com/gogs/gogs/archive/v${PV}.tar.gz -> ${P}.tar.gz ${EGO_SUM_SRC_URI}"
+
+LICENSE="Apache-2.0 BSD MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+
+IUSE="cert mysql pam postgres sqlite"
+REQUIRED_USE="|| ( sqlite mysql postgres )"
+PATCHES=( "${FILESDIR}/${P}.patch" )
+
+RESTRICT="mirror"
+
+DEPEND="
+ acct-user/gogs
+ sqlite? ( dev-db/sqlite:3 )
+"
+
+RDEPEND="
+ ${DEPEND}
+ app-shells/bash
+ dev-vcs/git[curl,threads]
+ virtual/ssh
+ mysql? ( virtual/mysql )
+ pam? ( sys-libs/pam )
+ postgres? ( dev-db/postgresql[pam?] )
+"
+
+FILECAPS=(
+ cap_net_bind_service+ep usr/bin/gogs
+)
+
+src_prepare() {
+ mkdir -p "${S}/custom/conf/"
+ cp "${S}/conf/app.ini" "${S}/custom/conf/"
+
+ default
+
+ sed -i -e 's:data/gogs.db:database/gogs.db:' "${S}/templates/install.tmpl" || die
+}
+
+src_compile() {
+ GOLANG_PKG_TAGS=""
+ use cert && GOLANG_PKG_TAGS+=" cert"
+ use pam && GOLANG_PKG_TAGS+=" pam"
+ go build -tags ${GOLANG_PKG_TAGS} -o gogs
+}
+
+src_install() {
+ # Install binary
+ dobin gogs
+
+ # Prepare systemd init scripts and install it
+ systemd_dounit "${FILESDIR}/systemd/${PN}.service"
+
+ # Install OpenRC init files
+ newconfd "${FILESDIR}/gogs-confd" gogs
+ newinitd "${FILESDIR}/gogs-initd" gogs
+
+ # Install HTTPS certs
+ if use cert; then
+ keepdir /etc/${PN}/https
+ fi
+
+ # Install configuration files
+ insinto /etc/${PN}/conf
+ insopts -m640
+ doins conf/app.ini
+
+ insinto /etc/${PN}/custom/conf
+ insopts -m640
+ doins custom/conf/app.ini
+
+ # Fix permissions of config files
+ keepdir /etc/${PN}/
+ fperms 775 /etc/${PN}/conf
+ fowners -R gogs:git /etc/${PN}
+
+ # Install theme files
+ insinto /usr/share/themes/${PN}/
+ insopts -m440
+ doins -r public/
+ doins -r templates/
+ fowners -R gogs:git /usr/share/themes/${PN}/
+
+ # Create log directory
+ keepdir /var/log/${PN}
+ fowners -R gogs:git /var/log/${PN}
+}