Skip to content

Commit

Permalink
Build from the source from our forked repo
Browse files Browse the repository at this point in the history
  • Loading branch information
cem committed Sep 21, 2015
1 parent 46dd645 commit 4f5c4c5
Show file tree
Hide file tree
Showing 14 changed files with 289 additions and 264 deletions.
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
gogs/*
!gogs/custom
!gogs/.sandstorm
gogs/.sandstorm/.vagrant
/.sandstorm/.vagrant
/build
/gogs
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion gogs/.sandstorm/launcher.sh → .sandstorm/launcher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ fi
cd /var/gogs
export USER=gogsuser
export HOME=/var/gogs/home
/opt/app/gogs web
/opt/app/gogs/gogs web

exit 0
247 changes: 247 additions & 0 deletions .sandstorm/sandstorm-files.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,247 @@
# *** WARNING: GENERATED FILE ***
# This file is automatically updated and rewritten in sorted order every time
# the app runs in dev mode. You may manually add or remove files, but don't
# expect comments or ordering to be retained.
bin/bash
bin/dash
bin/mkdir
bin/sh
etc/ld.so.cache
etc/localtime
etc/mime.types
lib/x86_64-linux-gnu/ld-2.19.so
lib/x86_64-linux-gnu/libc-2.19.so
lib/x86_64-linux-gnu/libc.so.6
lib/x86_64-linux-gnu/libdl-2.19.so
lib/x86_64-linux-gnu/libdl.so.2
lib/x86_64-linux-gnu/libncurses.so.5
lib/x86_64-linux-gnu/libncurses.so.5.9
lib/x86_64-linux-gnu/libnsl-2.19.so
lib/x86_64-linux-gnu/libnsl.so.1
lib/x86_64-linux-gnu/libnss_compat-2.19.so
lib/x86_64-linux-gnu/libnss_compat.so.2
lib/x86_64-linux-gnu/libnss_files-2.19.so
lib/x86_64-linux-gnu/libnss_files.so.2
lib/x86_64-linux-gnu/libnss_nis-2.19.so
lib/x86_64-linux-gnu/libnss_nis.so.2
lib/x86_64-linux-gnu/libpcre.so.3
lib/x86_64-linux-gnu/libpcre.so.3.13.1
lib/x86_64-linux-gnu/libpthread-2.19.so
lib/x86_64-linux-gnu/libpthread.so.0
lib/x86_64-linux-gnu/libresolv-2.19.so
lib/x86_64-linux-gnu/libresolv.so.2
lib/x86_64-linux-gnu/librt-2.19.so
lib/x86_64-linux-gnu/librt.so.1
lib/x86_64-linux-gnu/libselinux.so.1
lib/x86_64-linux-gnu/libtinfo.so.5
lib/x86_64-linux-gnu/libtinfo.so.5.9
lib/x86_64-linux-gnu/libz.so.1
lib/x86_64-linux-gnu/libz.so.1.2.8
lib64/ld-linux-x86-64.so.2
opt/app/.sandstorm/launcher.sh
opt/app/gogs/custom/conf/app.ini
opt/app/gogs/gogs
opt/app/gogs/public
opt/app/gogs/public/css/font-awesome-4.4.0.min.css
opt/app/gogs/public/css/github.min.css
opt/app/gogs/public/css/gogs.min.css
opt/app/gogs/public/css/semantic-2.1.3.min.css
opt/app/gogs/public/css/themes/default/assets/fonts/icons.woff
opt/app/gogs/public/fonts/octicons.woff
opt/app/gogs/public/img/favicon.png
opt/app/gogs/public/img/slack.png
opt/app/gogs/public/js/gogs.js
opt/app/gogs/public/js/jquery-1.11.3.min.js
opt/app/gogs/public/js/libs/emojify-1.1.0.min.js
opt/app/gogs/public/js/semantic-2.1.3.min.js
opt/app/gogs/public/ng/css/font-awesome.min.css
opt/app/gogs/public/ng/css/gogs.css
opt/app/gogs/public/ng/css/magnific-popup.css
opt/app/gogs/public/ng/css/tipsy.css
opt/app/gogs/public/ng/css/ui.css
opt/app/gogs/public/ng/fonts/fontawesome-webfont.woff
opt/app/gogs/public/ng/fonts/octicons.css
opt/app/gogs/public/ng/fonts/octicons.woff
opt/app/gogs/public/ng/js/gogs.js
opt/app/gogs/public/ng/js/gogs/issue_label.js
opt/app/gogs/public/ng/js/lib/jquery-1.11.1.min.js
opt/app/gogs/public/ng/js/lib/jquery.magnific-popup.min.js
opt/app/gogs/public/ng/js/lib/jquery.tipsy.js
opt/app/gogs/public/ng/js/lib/lib.js
opt/app/gogs/public/ng/js/utils/preview.js
opt/app/gogs/public/ng/js/utils/tabs.js
opt/app/gogs/templates
opt/app/gogs/templates/.VERSION
opt/app/gogs/templates/admin
opt/app/gogs/templates/admin/auth
opt/app/gogs/templates/admin/auth/edit.tmpl
opt/app/gogs/templates/admin/auth/list.tmpl
opt/app/gogs/templates/admin/auth/new.tmpl
opt/app/gogs/templates/admin/config.tmpl
opt/app/gogs/templates/admin/dashboard.tmpl
opt/app/gogs/templates/admin/monitor.tmpl
opt/app/gogs/templates/admin/nav.tmpl
opt/app/gogs/templates/admin/navbar.tmpl
opt/app/gogs/templates/admin/notice.tmpl
opt/app/gogs/templates/admin/org
opt/app/gogs/templates/admin/org/list.tmpl
opt/app/gogs/templates/admin/repo
opt/app/gogs/templates/admin/repo/list.tmpl
opt/app/gogs/templates/admin/user
opt/app/gogs/templates/admin/user/edit.tmpl
opt/app/gogs/templates/admin/user/list.tmpl
opt/app/gogs/templates/admin/user/new.tmpl
opt/app/gogs/templates/base
opt/app/gogs/templates/base/alert.tmpl
opt/app/gogs/templates/base/delete_modal_actions.tmpl
opt/app/gogs/templates/base/footer.tmpl
opt/app/gogs/templates/base/head.tmpl
opt/app/gogs/templates/explore
opt/app/gogs/templates/explore/navbar.tmpl
opt/app/gogs/templates/explore/repos.tmpl
opt/app/gogs/templates/home.tmpl
opt/app/gogs/templates/install.tmpl
opt/app/gogs/templates/mail
opt/app/gogs/templates/mail/auth
opt/app/gogs/templates/mail/auth/activate.tmpl
opt/app/gogs/templates/mail/auth/activate_email.tmpl
opt/app/gogs/templates/mail/auth/register_success.tmpl
opt/app/gogs/templates/mail/auth/reset_passwd.tmpl
opt/app/gogs/templates/mail/notify
opt/app/gogs/templates/mail/notify/collaborator.tmpl
opt/app/gogs/templates/mail/notify/mention.tmpl
opt/app/gogs/templates/ng
opt/app/gogs/templates/ng/base
opt/app/gogs/templates/ng/base/alert.tmpl
opt/app/gogs/templates/ng/base/footer.tmpl
opt/app/gogs/templates/ng/base/head.tmpl
opt/app/gogs/templates/ng/base/header.tmpl
opt/app/gogs/templates/org
opt/app/gogs/templates/org/base
opt/app/gogs/templates/org/base/header.tmpl
opt/app/gogs/templates/org/create.tmpl
opt/app/gogs/templates/org/header.tmpl
opt/app/gogs/templates/org/home.tmpl
opt/app/gogs/templates/org/member
opt/app/gogs/templates/org/member/invite.tmpl
opt/app/gogs/templates/org/member/members.tmpl
opt/app/gogs/templates/org/settings
opt/app/gogs/templates/org/settings/delete.tmpl
opt/app/gogs/templates/org/settings/hook_new.tmpl
opt/app/gogs/templates/org/settings/hooks.tmpl
opt/app/gogs/templates/org/settings/navbar.tmpl
opt/app/gogs/templates/org/settings/options.tmpl
opt/app/gogs/templates/org/team
opt/app/gogs/templates/org/team/members.tmpl
opt/app/gogs/templates/org/team/new.tmpl
opt/app/gogs/templates/org/team/repositories.tmpl
opt/app/gogs/templates/org/team/sidebar.tmpl
opt/app/gogs/templates/org/team/teams.tmpl
opt/app/gogs/templates/repo
opt/app/gogs/templates/repo/bare.tmpl
opt/app/gogs/templates/repo/commits.tmpl
opt/app/gogs/templates/repo/commits_table.tmpl
opt/app/gogs/templates/repo/create.tmpl
opt/app/gogs/templates/repo/diff.tmpl
opt/app/gogs/templates/repo/diff_box.tmpl
opt/app/gogs/templates/repo/header.tmpl
opt/app/gogs/templates/repo/header_old.tmpl
opt/app/gogs/templates/repo/home.tmpl
opt/app/gogs/templates/repo/issue
opt/app/gogs/templates/repo/issue/comment_tab.tmpl
opt/app/gogs/templates/repo/issue/label_precolors.tmpl
opt/app/gogs/templates/repo/issue/labels.tmpl
opt/app/gogs/templates/repo/issue/list.tmpl
opt/app/gogs/templates/repo/issue/milestone_new.tmpl
opt/app/gogs/templates/repo/issue/milestones.tmpl
opt/app/gogs/templates/repo/issue/navbar.tmpl
opt/app/gogs/templates/repo/issue/new.tmpl
opt/app/gogs/templates/repo/issue/new_form.tmpl
opt/app/gogs/templates/repo/issue/view.tmpl
opt/app/gogs/templates/repo/issue/view_content.tmpl
opt/app/gogs/templates/repo/issue/view_title.tmpl
opt/app/gogs/templates/repo/migrate.tmpl
opt/app/gogs/templates/repo/nav.tmpl
opt/app/gogs/templates/repo/pulls
opt/app/gogs/templates/repo/pulls.tmpl
opt/app/gogs/templates/repo/pulls/commits.tmpl
opt/app/gogs/templates/repo/pulls/compare.tmpl
opt/app/gogs/templates/repo/pulls/files.tmpl
opt/app/gogs/templates/repo/pulls/fork.tmpl
opt/app/gogs/templates/repo/pulls/tab_menu.tmpl
opt/app/gogs/templates/repo/release
opt/app/gogs/templates/repo/release/edit.tmpl
opt/app/gogs/templates/repo/release/list.tmpl
opt/app/gogs/templates/repo/release/new.tmpl
opt/app/gogs/templates/repo/setting_nav.tmpl
opt/app/gogs/templates/repo/settings
opt/app/gogs/templates/repo/settings/collaboration.tmpl
opt/app/gogs/templates/repo/settings/deploy_keys.tmpl
opt/app/gogs/templates/repo/settings/githook_edit.tmpl
opt/app/gogs/templates/repo/settings/githooks.tmpl
opt/app/gogs/templates/repo/settings/hook_delete_modal.tmpl
opt/app/gogs/templates/repo/settings/hook_gogs.tmpl
opt/app/gogs/templates/repo/settings/hook_history.tmpl
opt/app/gogs/templates/repo/settings/hook_list.tmpl
opt/app/gogs/templates/repo/settings/hook_new.tmpl
opt/app/gogs/templates/repo/settings/hook_settings.tmpl
opt/app/gogs/templates/repo/settings/hook_slack.tmpl
opt/app/gogs/templates/repo/settings/hooks.tmpl
opt/app/gogs/templates/repo/settings/nav.tmpl
opt/app/gogs/templates/repo/settings/navbar.tmpl
opt/app/gogs/templates/repo/settings/options.tmpl
opt/app/gogs/templates/repo/sidebar.tmpl
opt/app/gogs/templates/repo/sidebar_mini.tmpl
opt/app/gogs/templates/repo/view_file.tmpl
opt/app/gogs/templates/repo/view_list.tmpl
opt/app/gogs/templates/status
opt/app/gogs/templates/status/401.tmpl
opt/app/gogs/templates/status/403.tmpl
opt/app/gogs/templates/status/404.tmpl
opt/app/gogs/templates/status/500.tmpl
opt/app/gogs/templates/user
opt/app/gogs/templates/user/auth
opt/app/gogs/templates/user/auth/activate.tmpl
opt/app/gogs/templates/user/auth/forgot_passwd.tmpl
opt/app/gogs/templates/user/auth/reset_passwd.tmpl
opt/app/gogs/templates/user/auth/signin.tmpl
opt/app/gogs/templates/user/auth/signup.tmpl
opt/app/gogs/templates/user/dashboard
opt/app/gogs/templates/user/dashboard/dashboard.tmpl
opt/app/gogs/templates/user/dashboard/feeds.tmpl
opt/app/gogs/templates/user/dashboard/issues.tmpl
opt/app/gogs/templates/user/dashboard/nav.tmpl
opt/app/gogs/templates/user/dashboard/navbar.tmpl
opt/app/gogs/templates/user/profile.tmpl
opt/app/gogs/templates/user/settings
opt/app/gogs/templates/user/settings/applications.tmpl
opt/app/gogs/templates/user/settings/delete.tmpl
opt/app/gogs/templates/user/settings/email.tmpl
opt/app/gogs/templates/user/settings/navbar.tmpl
opt/app/gogs/templates/user/settings/password.tmpl
opt/app/gogs/templates/user/settings/profile.tmpl
opt/app/gogs/templates/user/settings/sshkeys.tmpl
proc/cpuinfo
sandstorm-http-bridge
sandstorm-http-bridge-config
sandstorm-manifest
usr/bin/env
usr/bin/git
usr/lib/git-core/git
usr/lib/git-core/git-receive-pack
usr/lib/git-core/git-upload-pack
usr/share/git-core/templates
usr/share/git-core/templates/branches
usr/share/git-core/templates/description
usr/share/git-core/templates/hooks
usr/share/git-core/templates/hooks/applypatch-msg.sample
usr/share/git-core/templates/hooks/commit-msg.sample
usr/share/git-core/templates/hooks/post-update.sample
usr/share/git-core/templates/hooks/pre-applypatch.sample
usr/share/git-core/templates/hooks/pre-commit.sample
usr/share/git-core/templates/hooks/pre-push.sample
usr/share/git-core/templates/hooks/pre-rebase.sample
usr/share/git-core/templates/hooks/prepare-commit-msg.sample
usr/share/git-core/templates/hooks/update.sample
usr/share/git-core/templates/info
usr/share/git-core/templates/info/exclude
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 22 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
SRCDIR = build/src/github.com/gogits/gogs
ROOTDIR = $(PWD)
OURGOPATH = $(ROOTDIR)/build

all : gogs

$(SRCDIR) :
rm -rf build ; \
mkdir -p $(SRCDIR) ; \
cd $(SRCDIR)/.. ; \
git clone https://github.com/cem/gogs gogs ; \
GOPATH="$(OURGOPATH)" go get -tags "sqlite" github.com/gogits/gogs

update : $(SRCDIR)
GOPATH="$(OURGOPATH)" go get -u -tags "sqlite" github.com/gogits/gogs

gogs : $(SRCDIR) custom scripts/build.sh
rm -rf gogs ; ./scripts/build.sh && cp -r custom/ gogs/custom

clean :
rm -rf gogs

File renamed without changes.
3 changes: 0 additions & 3 deletions fetch.sh

This file was deleted.

Loading

0 comments on commit 4f5c4c5

Please sign in to comment.