Skip to content
This repository has been archived by the owner on Jul 14, 2019. It is now read-only.

Commit

Permalink
Added 5 js libs to gitea-common; 15 to go.
Browse files Browse the repository at this point in the history
This now break until upstream accepts PR #2241 [1] and a new tarball
is imported with the changes.

[1] go-gitea/gitea#2241
  • Loading branch information
MTecknology committed Aug 5, 2017
1 parent 43b7a93 commit ac68d3d
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 27 deletions.
17 changes: 3 additions & 14 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: gitea
Source: https://github.com/go-gitea/gitea
Files-Excluded: public/assets/font*
public/assets/octicon*
public/css/themes/github/*
public/css/*.min.css
public/css/gitgraph.css
public/img/emoji/*
public/img/openid-16x16.png
public/img/slack.png
public/js/libs/*
public/js/*.min.js
public/plugins/*
vendor/*
Comment: Excluded files (less *png) are works covered under a free license.
These works are re-included at build time from Build-Depends.
Files-Excluded: public/css/themes/github
public/vendor
vendor

Files: *
Copyright: 2016 The Gitea Authors
Expand Down
25 changes: 22 additions & 3 deletions debian/gitea-common.links
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
# libjs-highlight.js
#/usr/share/javascript/highlight.js/highlight.min.js /usr/share/gitea/public/vendor/plugins/highlight/highlight.pack.js
#/usr/share/javascript/highlight.js/styles/default.css /usr/share/gitea/public/vendor/plugins/highlight/default.css
#/usr/share/javascript/highlight.js/styles/github.css /usr/share/gitea/public/vendor/plugins/highlight/github.css
usr/share/javascript/highlight.js/highlight.min.js
usr/share/gitea/public/vendor/plugins/highlight/highlight.pack.js
usr/share/javascript/highlight.js/styles/default.css
usr/share/gitea/public/vendor/plugins/highlight/default.css
usr/share/javascript/highlight.js/styles/github.css
usr/share/gitea/public/vendor/plugins/highlight/github.css
# libjs-codemirror
usr/share/javascript/codemirror/addon/mode
usr/share/gitea/public/vendor/plugins/codemirror/addon/mode
usr/share/javascript/codemirror/mode
usr/share/gitea/public/vendor/plugins/codemirror/mode
# libjs-jquery
usr/share/javascript/jquery/jquery.min.js
usr/share/gitea/public/vendor/jquery/jquery.min.js
# libjs-clipboard
usr/share/javascript/clipboard/clipboard.js
usr/share/gitea/public/vendor/clipboard/clipboard.min.js
# libjs-jquery-timepicker
usr/share/javascript/jquery-timepicker/jquery-ui-timepicker-addon.css
usr/share/gitea/public/vendor/jquery.datetimepicker/jquery.datetimepicker.css
usr/share/javascript/jquery-timepicker/jquery-ui-timepicker-addon.js
usr/share/gitea/public/vendor/jquery.datetimepicker/jquery.datetimepicker.js
8 changes: 4 additions & 4 deletions debian/gitea.links
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# These settings don't seem to use STATIC_ROOT_PATH ;; probably a bug
/usr/share/gitea/conf /var/lib/gitea/conf
/usr/share/gitea/public /var/lib/gitea/public
/usr/share/gitea/templates /var/lib/gitea/templates
usr/share/gitea/conf var/lib/gitea/conf
usr/share/gitea/public var/lib/gitea/public
usr/share/gitea/templates var/lib/gitea/templates
# Gitea is built to use a relative custom/ location for managed-files.
# The relative bit should be fixed so this can move to a changed default config.
/etc/gitea /var/lib/gitea/custom
etc/gitea var/lib/gitea/custom
7 changes: 1 addition & 6 deletions debian/gitea.prerm
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@ case "$1" in
invoke-rc.d gitea stop || exit $?
fi

# Destroy manually created links
for dir in /var/lib/gitea/conf /var/lib/gitea/custom /var/lib/gitea/public /var/lib/gitea/templates; do
[ -L "$dir" ] && rm "$dir"
done

# SSH configuration is built from a database, no need to keep it.
# SSH configuration is built from a database, no need to preserve
rm -rf /var/lib/gitea/.ssh
;;

Expand Down

0 comments on commit ac68d3d

Please sign in to comment.