Move to gitlab

This commit is contained in:
Las Zenow 2015-04-21 21:32:01 -04:00
parent a1ef113ced
commit 08ccdaf27d
18 changed files with 35 additions and 53 deletions

2
.gitignore vendored
View file

@ -1,4 +1,4 @@
trantor.git trantor
/store/ /store/
tools/adduser/adduser tools/adduser/adduser
tools/update/update tools/update/update

42
README
View file

@ -2,9 +2,9 @@ Imperial Library of Trantor
The Imperial Library of Trantor (also known as Galactic Library) is a repository management system of ebooks on ePub format. The Imperial Library of Trantor (also known as Galactic Library) is a repository management system of ebooks on ePub format.
You can check out the main development branch from Gitorious at: You can check out the main development branch from GitLab at:
https://gitorious.org/trantor/ https://gitlab.com/trantor/
(We still in pre-beta fase) (We still in pre-beta fase)
@ -34,7 +34,7 @@ Yo also need to install go dependences:
Now you can install Trantor itself: Now you can install Trantor itself:
# go get -tags prod git.gitorious.org/trantor/trantor.git # go get -tags prod gitlab.com/trantor/trantor
You can run trantor in /srv/www/trantor i.e. For this: You can run trantor in /srv/www/trantor i.e. For this:
@ -42,51 +42,33 @@ You can run trantor in /srv/www/trantor i.e. For this:
# cd /srv/www/trantor # cd /srv/www/trantor
# ln -s /usr/lib/go/src/pkg/git.gitorious.org/trantor/trantor.git/templates/ templates # ln -s $GOPATH/src/pkg/gitlab.com/trantor/trantor/templates/ templates
# ln -s /usr/lib/go/src/pkg/git.gitorious.org/trantor/trantor.git/css/ css # ln -s $GOPATH/src/pkg/gitlab.com/trantor/trantor/css/ css
# ln -s /usr/lib/go/src/pkg/git.gitorious.org/trantor/trantor.git/js/ js # ln -s $GOPATH/src/pkg/gitlab.com/trantor/trantor/js/ js
# ln -s /usr/lib/go/src/pkg/git.gitorious.org/trantor/trantor.git/img/ img # ln -s $GOPATH/src/pkg/gitlab.com/trantor/trantor/img/ img
Now you can run it: Now you can run it:
# /usr/lib/go/bin/trantor.git # $GOPATH/bin/trantor
Go to your browser to: http://localhost:8080 Go to your browser to: http://localhost:8080
=== For developers === === For developers ===
Login to gitorius: https://gitorious.org/login Edit config.go if you want to change the port and other configuration, by default is 8080
and clone your own Trantor: https://gitorious.org/trantor/trantor/clone
In your shell
$ git clone git://gitorious.org/~yourname/trantor/yournames-trantor.git
$ cd yournames-trantor
You can edit config.go if you want to change the port and other configuration, by default is 8080
Now you can compile Trantor: Now you can compile Trantor:
$ go build -tags prod $ go build -tags prod
(remove '-tags prod' for a faster compilation without language guessing) (remove '-tags prod' for a faster compilation without language guessing)
Now you can run it: Now you can run it:
$ ./yourname-trantor $ ./trantor
Go to your browser to: http://localhost:8080 Go to your browser to: http://localhost:8080
== Bugs == == Bugs ==
Please, report bugs to zenow@tormail.org Please, report bugs in the gitlab issue tracker:
https://gitlab.com/trantor/trantor/issues
== Patches ==
Make your enhacements and sent it by git:
$ git commit -m "comment"
$ git remote set-url --push origin git@gitorious.org:~yournames/trantor/alfinals-trantor.git
$ git push origin master
$ git push
Go to "merge-requests"
https://gitorious.org/trantor/yournames-trantor/merge_requests/new
== Rights == == Rights ==

View file

@ -7,8 +7,8 @@ import (
"strconv" "strconv"
"strings" "strings"
"git.gitorious.org/trantor/trantor.git/database"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"gitlab.com/trantor/trantor/database"
) )
func deleteHandler(h handler) { func deleteHandler(h handler) {

View file

@ -15,10 +15,10 @@ import (
"regexp" "regexp"
"strings" "strings"
"git.gitorious.org/go-pkg/epubgo.git"
"git.gitorious.org/trantor/trantor.git/storage"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/meskio/epubgo"
"github.com/nfnt/resize" "github.com/nfnt/resize"
"gitlab.com/trantor/trantor/storage"
) )
func coverHandler(h handler) { func coverHandler(h handler) {

View file

@ -6,7 +6,7 @@ import (
"io/ioutil" "io/ioutil"
"strings" "strings"
"git.gitorious.org/go-pkg/epubgo.git" "github.com/meskio/epubgo"
"github.com/rainycape/cld2" "github.com/rainycape/cld2"
) )

View file

@ -8,7 +8,7 @@
package main package main
import ( import (
"git.gitorious.org/go-pkg/epubgo.git" "github.com/meskio/epubgo"
) )
func GuessLang(epub *epubgo.Epub, orig_langs []string) []string { func GuessLang(epub *epubgo.Epub, orig_langs []string) []string {

View file

@ -3,7 +3,7 @@ package main
import ( import (
"net/http" "net/http"
"git.gitorious.org/trantor/trantor.git/database" "gitlab.com/trantor/trantor/database"
) )
type newsData struct { type newsData struct {

View file

@ -8,9 +8,9 @@ import (
"strconv" "strconv"
"strings" "strings"
"git.gitorious.org/go-pkg/epubgo.git"
"git.gitorious.org/trantor/trantor.git/database"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/meskio/epubgo"
"gitlab.com/trantor/trantor/database"
) )
type chapter struct { type chapter struct {

View file

@ -5,7 +5,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"git.gitorious.org/trantor/trantor.git/database" "gitlab.com/trantor/trantor/database"
) )
type searchData struct { type searchData struct {

View file

@ -4,9 +4,9 @@ import (
"encoding/hex" "encoding/hex"
"net/http" "net/http"
"git.gitorious.org/trantor/trantor.git/database"
"github.com/gorilla/securecookie" "github.com/gorilla/securecookie"
"github.com/gorilla/sessions" "github.com/gorilla/sessions"
"gitlab.com/trantor/trantor/database"
) )
var sesStore = sessions.NewCookieStore(securecookie.GenerateRandomKey(64)) var sesStore = sessions.NewCookieStore(securecookie.GenerateRandomKey(64))

View file

@ -8,9 +8,9 @@ import (
"strings" "strings"
"time" "time"
"git.gitorious.org/trantor/trantor.git/database"
"git.gitorious.org/trantor/trantor.git/storage"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"gitlab.com/trantor/trantor/database"
"gitlab.com/trantor/trantor/storage"
) )
const ( const (

View file

@ -5,7 +5,7 @@ import (
"time" "time"
"git.gitorious.org/trantor/trantor.git/database" "gitlab.com/trantor/trantor/database"
) )
func InitTasks(db *database.DB) { func InitTasks(db *database.DB) {

View file

@ -11,7 +11,7 @@ import (
"net/http" "net/http"
"time" "time"
"git.gitorious.org/trantor/trantor.git/database" "gitlab.com/trantor/trantor/database"
) )
type Status struct { type Status struct {

View file

@ -8,7 +8,7 @@
<p>The Imperial Library of Trantor it's in beta-status. We are working to provide a good user experience, but it's still in early development.</p> <p>The Imperial Library of Trantor it's in beta-status. We are working to provide a good user experience, but it's still in early development.</p>
<p><b>Any help is welcome</b>. You can write us comments to our email address (zenow@riseup.net), upload your epubs, download our <a href="https://gitorious.org/trantor">source code</a> hack it and send us patches, ...</p> <p><b>Any help is welcome</b>. You can write us comments to our email address (zenow@riseup.net), upload your epubs, download our <a href="https://gitlab.com/trantor">source code</a> hack it and send us patches, ...</p>
<h4>Copyright</h4> <h4>Copyright</h4>

View file

@ -2,7 +2,7 @@
<footer class="container footer"> <footer class="container footer">
<hr /> <hr />
<p><small>Chief Librarian: Las Zenow &lt;zenow@riseup.net&gt;<br /> <p><small>Chief Librarian: Las Zenow &lt;zenow@riseup.net&gt;<br />
Fork the source code from <a href="https://gitorious.org/trantor">gitorious</a></small>.</p> Fork the source code from <a href="https://gitlab.com/trantor">gitlab</a></small>.</p>
</footer> </footer>
<!-- Placed at the end of the document so the pages load faster --> <!-- Placed at the end of the document so the pages load faster -->

View file

@ -29,7 +29,7 @@
<p>With <a href="https://en.wikipedia.org/wiki/RSS">RSS</a> you can use your <a href="https://en.wikipedia.org/wiki/Comparison_of_feed_aggregators">feed reader</a> to see the lattest updates on a certain search or the news of the library. To get the RSS url of some search just click on the <img src="/img/feed.png" />.</p> <p>With <a href="https://en.wikipedia.org/wiki/RSS">RSS</a> you can use your <a href="https://en.wikipedia.org/wiki/Comparison_of_feed_aggregators">feed reader</a> to see the lattest updates on a certain search or the news of the library. To get the RSS url of some search just click on the <img src="/img/feed.png" />.</p>
<h6>hummin</h6> <h6>hummin</h6>
<p>For the command line geeks there is a <abbr title="command line interface">cli</abbr> client: <a href="https://gitorious.org/trantor/hummin">hummin</a></p> <p>For the command line geeks there is a <abbr title="command line interface">cli</abbr> client: <a href="https://gitlab.com/trantor/hummin">hummin</a></p>
<p>To install it in a debian based system (like ubuntu) just do: <p>To install it in a debian based system (like ubuntu) just do:
<pre> <pre>

View file

@ -8,9 +8,9 @@ import (
"os" "os"
"strings" "strings"
"git.gitorious.org/trantor/trantor.git/database"
"git.gitorious.org/trantor/trantor.git/storage"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"gitlab.com/trantor/trantor/database"
"gitlab.com/trantor/trantor/storage"
) )
type statusData struct { type statusData struct {

View file

@ -11,9 +11,9 @@ import (
"regexp" "regexp"
"strings" "strings"
"git.gitorious.org/go-pkg/epubgo.git" "github.com/meskio/epubgo"
"git.gitorious.org/trantor/trantor.git/database" "gitlab.com/trantor/trantor/database"
"git.gitorious.org/trantor/trantor.git/storage" "gitlab.com/trantor/trantor/storage"
) )
func InitUpload(database *database.DB, store *storage.Store) { func InitUpload(database *database.DB, store *storage.Store) {