gitea for Debian
---------------

gitea sources are golang related packagin.
packagin as http://pkg-go.alioth.debian.org/packaging.html but as difference 
all the changes are made at build time no patches made due gitea can change 
whitout notification, so packagin process its more automatic and less customized.

Debian depends golang related package cannot be done yet in large time, 
due many of the gogs&gitea golang related need sources are modified for 
the usage of the project itself. Inclusivelly since golang 1.12 many of 
this depends are online at build time. Only 1.0.x, 1.1.x and 1.12.x included 
all the needs.

The gitea package was made based on 
http://pkg-go.alioth.debian.org/packaging.html#_binary_only_packages
so the resulting package are named gitea in first versions, was a binary only 
and the version number are correctly. Now gitea are bindata powered.

The setup environment was made based on 
http://pkg-go.alioth.debian.org/packaging.html#_library_or_binary_library_packages
but with the diference that all need it dependences are used from the source, 
but the behaviour are emulated a source dir that can be changed, 
original source three are unchanged (just like cmake).

 Special install targets:

The default installation are set to /usr/lib/gitea, due its so hard to change 
all the references.. so the gitea binary will find all where was run, 
the daemon set WORKING DIR to this location. Newer versions already set this 
from build-time.

 TODO list

* Debian template to user if want to setup a web server with gitea as fcgi or as service.
* Automatic setup of lighttpd and nginx, apache too.
* Automatic setup of the database handler before start gitea
* Sourcered a 'default' file with the PORT and ARGS to parse to the gitea daemon
* Use a socket event a host + port
* Convert (as last) the rules to dh_golang style

 -- PICCORO Lenz McKAY <mckaygerhard@gmail.com>  Fri, 08 Sep 2017 07:32:51 -0400

