Commit 8fa7a25b authored by Dmitry Smirnov's avatar Dmitry Smirnov

Initial commit

parents
## Quick start
http://localhost:3000
admin:admin
CLA: :( :(
http://docs.grafana.org/project/cla/
* Package golang dependencies (Godeps/_workspace/src/*)
* Document copyrights/licenses (public/*)
* Lintianise: privacy-breach-generic, embedded-javascript-library, etc.
grafana (2.1.3+dfsg-1) UNRELEASED; urgency=low
* Initial release (Closes: #797702).
-- Dmitry Smirnov <onlyjob@debian.org> Thu, 26 Mar 2015 09:59:22 +1100
public/css/*.min.css
Source: grafana
Section: web
Priority: optional
Maintainer: Dmitry Smirnov <onlyjob@debian.org>
Uploaders: pkg-go <pkg-go-maintainers@lists.alioth.debian.org>
Build-Depends: debhelper (>= 9), dh-golang, dh-systemd,
# golang-github-burntsushi-toml-dev,
golang-github-davecgh-go-spew-dev,
# golang-github-go-ldap-ldap-dev,
golang-github-go-sql-driver-mysql-dev,
# golang-github-go-xorm-xorm-dev,
# golang-github-gosimple-slug-dev,
# golang-github-lib-pq-dev,
# golang-github-macaron-contrib-binding-dev,
# golang-github-macaron-contrib-session-dev,
# golang-github-mattn-go-sqlite3-dev,
# golang-github-smartystreets-goconvey-dev,
# golang-github-streadway-amqp-dev,
# golang-github-unknwon-com-dev,
# golang-github-unknwon-macaron-dev,
golang-golang-x-net-dev,
golang-golang-x-oauth2-dev,
# golang-gopkg-ini.v1-dev
Build-Depends-Indep: node-less
Standards-Version: 3.9.6
Homepage: http://grafana.org
Vcs-Browser: http://anonscm.debian.org/cgit/collab-maint/grafana.git
Vcs-Git: git://anonscm.debian.org/collab-maint/grafana.git
Package: grafana
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}, grafana-data (= ${source:Version})
,golang-go
,adduser
,libfontconfig
Built-Using: ${misc:Built-Using}
Description: feature rich metrics dashboard and graph editor
Grafana is a feature rich metrics dashboard and graph editor for Graphite,
InfluxDB & OpenTSDB.
.
This package provides Grafana daemon.
Package: grafana-data
Architecture: all
Depends: ${misc:Depends}
,fonts-font-awesome
,libjs-twitter-bootstrap
,phantomjs
Recommends: grafana
Built-Using: ${misc:Built-Using}
Description: feature rich metrics dashboard and graph editor
Grafana is a feature rich metrics dashboard and graph editor for Graphite,
InfluxDB & OpenTSDB.
.
This package provide files for the web interface.
#Package: golang-github-grafana-grafana-dev
#Architecture: all
#Depends: ${misc:Depends}, ${shlibs:Depends}
#Built-Using: ${misc:Built-Using}
#Description: feature rich metrics dashboard and graph editor
# Grafana is a feature rich metrics dashboard and graph editor for Graphite,
# InfluxDB & OpenTSDB.
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Grafana
Upstream-Contact: contact@grafana.org
Source: https://github.com/grafana/grafana
Files-Excluded:
vendor/phantomjs/phantomjs
public/vendor/ZeroClipboard.swf
Godeps/_workspace/src/github.com/davecgh
Godeps/_workspace/src/github.com/go-sql-driver
_Godeps/_workspace/src/github.com/mattn
Godeps/_workspace/src/golang.org/x/net
Godeps/_workspace/src/golang.org/x/oauth2
Files: *
Copyright: 2014-2015 Torkel Ödegaard, Raintank Inc.
2012-2013 Elasticsearch BV
2013 Martini Authors
2014 Unknwon
License: Apache-2.0
Files: pkg/log/*
Copyright: 2014 The Gogs Authors
License: Expat
Files: public/app/panels/text/lib/showdown.js
Copyright: 2007 John Fraser
2004-2005 John Gruber
License: BSD-3-clause
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
.
* Neither the name “Markdown” nor the names of its contributors may be
used to endorse or promote products derived from this software without
specific prior written permission.
.
This software is provided by the copyright holders and contributors “as
is” and any express or implied warranties, including, but not limited to,
the implied warranties of merchantability and fitness for a particular
purpose are disclaimed. In no event shall the copyright owner or
contributors be liable for any direct, indirect, incidental, special,
exemplary, or consequential damages (including, but not limited to,
procurement of substitute goods or services; loss of use, data, or
profits; or business interruption) however caused and on any theory of
liability, whether in contract, strict liability, or tort (including
negligence or otherwise) arising in any way out of the use of this
software, even if advised of the possibility of such damage.
Comment:
https://daringfireball.net/projects/markdown/license
Files: debian/*
Copyright: 2015 Dmitry Smirnov <onlyjob@debian.org>
License: GPL-3+ or Apache-2.0
License: GPL-3+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
The complete text of the GNU General Public License version 3
can be found in "/usr/share/common-licenses/GPL-3".
License: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
The complete text of the Apache License, Version 2.0 can be found
in "/usr/share/common-licenses/Apache-2.0".
License: Expat
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
[git-dch]
id-length = 0
[import-orig]
pristine-tar = False
merge = False
debian/missing-sources /usr/share/grafana/
conf/defaults.ini /usr/share/grafana/conf/
public /usr/share/grafana/
vendor /usr/share/grafana/
## debian/missing-sources
/usr/share/grafana//missing-sources/crypto.js /usr/share/grafana/public/vendor/crypto.min.js
/usr/share/grafana//missing-sources/modernizr.js /usr/share/grafana/public/vendor/modernizr-2.6.1.js
/usr/bin/phantomjs /usr/share/grafana/vendor/phantomjs/phantomjs
## fonts-font-awesome
/usr/share/fonts-font-awesome/fonts/FontAwesome.otf /usr/share/grafana/public/fonts/FontAwesome.otf
/usr/share/fonts-font-awesome/fonts/fontawesome-webfont.eot /usr/share/grafana/public/fonts/fontawesome-webfont.eot
/usr/share/fonts-font-awesome/fonts/fontawesome-webfont.svg /usr/share/grafana/public/fonts/fontawesome-webfont.svg
/usr/share/fonts-font-awesome/fonts/fontawesome-webfont.ttf /usr/share/grafana/public/fonts/fontawesome-webfont.ttf
/usr/share/fonts-font-awesome/fonts/fontawesome-webfont.woff /usr/share/grafana/public/fonts/fontawesome-webfont.woff
## libjs-twitter-bootstrap
/usr/share/twitter-bootstrap/files/img/glyphicons-halflings-white.png /usr/share/grafana/public/img/glyphicons-halflings-white.png
/usr/share/twitter-bootstrap/files/img/glyphicons-halflings.png /usr/share/grafana/public/img/glyphicons-halflings.png
## false-positives:
package-contains-broken-symlink usr/share/grafana/public/fonts/FontAwesome.*
package-contains-broken-symlink usr/share/grafana/public/fonts/fontawesome-*
package-contains-broken-symlink usr/share/grafana/vendor/phantomjs/phantomjs*
GRAFANA_USER=grafana
GRAFANA_GROUP=grafana
GRAFANA_HOME=/usr/share/grafana
LOG_DIR=/var/log/grafana
DATA_DIR=/var/lib/grafana
MAX_OPEN_FILES=10000
CONF_DIR=/etc/grafana
CONF_FILE=/etc/grafana/grafana.ini
RESTART_ON_UPGRADE=false
/etc/grafana
/var/lib/grafana
/var/log/grafana
#!/bin/sh
# chkconfig: 2345 80 05
# description: Grafana web server & backend
# processname: grafana
# config: /etc/grafana/grafana.ini
# pidfile: /var/run/grafana.pid
### BEGIN INIT INFO
# Provides: grafana
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start grafana at boot time
# Description: Grafana - feature rich metrics dashboard and graph editor
### END INIT INFO
NAME=grafana
DESC="Grafana Server"
DEFAULT=/etc/default/$NAME
GRAFANA_USER=grafana
GRAFANA_GROUP=grafana
GRAFANA_HOME=/usr/share/grafana
CONF_DIR=/etc/grafana
WORK_DIR=$GRAFANA_HOME
DATA_DIR=/var/lib/grafana
LOG_DIR=/var/log/grafana
CONF_FILE=$CONF_DIR/grafana.ini
MAX_OPEN_FILES=10000
PID_FILE=/var/run/$NAME.pid
DAEMON=/usr/sbin/$NAME
if [ `id -u` -ne 0 ]; then
echo "You need root privileges to run this script"
exit 1
fi
. /lib/lsb/init-functions
if [ -r /etc/default/rcS ]; then
. /etc/default/rcS
fi
# overwrite settings from default file
if [ -f "$DEFAULT" ]; then
. "$DEFAULT"
fi
DAEMON_OPTS="--pidfile=${PID_FILE} --config=${CONF_FILE} cfg:default.paths.data=${DATA_DIR} cfg:default.paths.logs=${LOG_DIR}"
# Check DAEMON exists
test -x $DAEMON || exit 0
case "$1" in
start)
log_daemon_msg "Starting $DESC"
pid=`pidofproc -p $PID_FILE grafana`
if [ -n "$pid" ] ; then
log_begin_msg "Already running."
log_end_msg 0
exit 0
fi
# Prepare environment
mkdir -p "$LOG_DIR" "$DATA_DIR" && chown "$GRAFANA_USER":"$GRAFANA_GROUP" "$LOG_DIR" "$DATA_DIR"
touch "$PID_FILE" && chown "$GRAFANA_USER":"$GRAFANA_GROUP" "$PID_FILE"
if [ -n "$MAX_OPEN_FILES" ]; then
ulimit -n $MAX_OPEN_FILES
fi
# Start Daemon
start-stop-daemon --start -b --chdir "$WORK_DIR" --user "$GRAFANA_USER" -c "$GRAFANA_USER" --pidfile "$PID_FILE" --exec $DAEMON -- $DAEMON_OPTS
return=$?
if [ $return -eq 0 ]
then
sleep 1
# check if pid file has been written two
if ! [[ -s $PID_FILE ]]; then
log_end_msg 1
exit 1
fi
i=0
timeout=10
# Wait for the process to be properly started before exiting
until { cat "$PID_FILE" | xargs kill -0; } >/dev/null 2>&1
do
sleep 1
i=$(($i + 1))
if [ $i -gt $timeout ]; then
log_end_msg 1
exit 1
fi
done
fi
log_end_msg $return
;;
stop)
log_daemon_msg "Stopping $DESC"
if [ -f "$PID_FILE" ]; then
start-stop-daemon --stop --pidfile "$PID_FILE" \
--user "$GRAFANA_USER" \
--retry=TERM/20/KILL/5 >/dev/null
if [ $? -eq 1 ]; then
log_progress_msg "$DESC is not running but pid file exists, cleaning up"
elif [ $? -eq 3 ]; then
PID="`cat $PID_FILE`"
log_failure_msg "Failed to stop $DESC (pid $PID)"
exit 1
fi
rm -f "$PID_FILE"
else
log_progress_msg "(not running)"
fi
log_end_msg 0
;;
status)
status_of_proc -p $PID_FILE grafana grafana && exit 0 || exit $?
;;
restart|force-reload)
if [ -f "$PID_FILE" ]; then
$0 stop
sleep 1
fi
$0 start
;;
*)
log_success_msg "Usage: $0 {start|stop|restart|force-reload|status}"
exit 1
;;
esac
usr/bin/grafana /usr/sbin/
conf/ldap.toml /etc/grafana/
conf/sample.ini /etc/grafana/
# The Go compiler is currently unable to produce read-only relocations
# (it produces static binaries).
hardening-no-relro usr/sbin/grafana
#!/bin/sh
set -e
case "$1" in
configure)
if ! getent passwd grafana > /dev/null 2>&1 ; then
adduser --quiet --system --group --disabled-login --no-create-home --home /var/lib/grafana grafana
fi
chown -R grafana:grafana /var/log/grafana /var/lib/grafana
chmod 755 /var/log/grafana /var/lib/grafana
## configuration files should not be modifiable by grafana user, as this can be a security issue.
chmod 755 /etc/grafana
chown -h root:grafana /etc/grafana/grafana.ini /etc/grafana/ldap.toml
chmod u=rw,g=r,o=- /etc/grafana/grafana.ini /etc/grafana/ldap.toml
;;
esac
#DEBHELPER#
[Unit]
Description=Starts and stops a single grafana instance on this system
Documentation=http://docs.grafana.org
Wants=network-online.target
After=network-online.target
[Service]
EnvironmentFile=/etc/default/grafana
User=grafana
Group=grafana
Type=simple
WorkingDirectory=/usr/share/grafana
ExecStart=/usr/sbin/grafana \
--config=${CONF_FILE} \
cfg:default.paths.logs=${LOG_DIR} \
cfg:default.paths.data=${DATA_DIR} \
LimitNOFILE=10000
TimeoutStopSec=20
[Install]
WantedBy=multi-user.target
Alias=grafana-server.service
/*
* Crypto-JS v2.5.4
* http://code.google.com/p/crypto-js/
* (c) 2009-2012 by Jeff Mott. All rights reserved.
* http://code.google.com/p/crypto-js/wiki/License
*/
if (typeof Crypto == "undefined" || ! Crypto.util)
{
(function(){
var base64map = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
// Global Crypto object
var Crypto = window.Crypto = {};
// Crypto utilities
var util = Crypto.util = {
// Bit-wise rotate left
rotl: function (n, b) {
return (n << b) | (n >>> (32 - b));
},
// Bit-wise rotate right
rotr: function (n, b) {
return (n << (32 - b)) | (n >>> b);
},
// Swap big-endian to little-endian and vice versa
endian: function (n) {
// If number given, swap endian
if (n.constructor == Number) {
return util.rotl(n, 8) & 0x00FF00FF |
util.rotl(n, 24) & 0xFF00FF00;
}
// Else, assume array and swap all items
for (var i = 0; i < n.length; i++)
n[i] = util.endian(n[i]);
return n;
},
// Generate an array of any length of random bytes
randomBytes: function (n) {
for (var bytes = []; n > 0; n--)
bytes.push(Math.floor(Math.random() * 256));
return bytes;
},
// Convert a byte array to big-endian 32-bit words
bytesToWords: function (bytes) {
for (var words = [], i = 0, b = 0; i < bytes.length; i++, b += 8)
words[b >>> 5] |= (bytes[i] & 0xFF) << (24 - b % 32);
return words;
},
// Convert big-endian 32-bit words to a byte array
wordsToBytes: function (words) {
for (var bytes = [], b = 0; b < words.length * 32; b += 8)
bytes.push((words[b >>> 5] >>> (24 - b % 32)) & 0xFF);
return bytes;
},
// Convert a byte array to a hex string
bytesToHex: function (bytes) {
for (var hex = [], i = 0; i < bytes.length; i++) {
hex.push((bytes[i] >>> 4).toString(16));
hex.push((bytes[i] & 0xF).toString(16));
}
return hex.join("");
},
// Convert a hex string to a byte array
hexToBytes: function (hex) {
for (var bytes = [], c = 0; c < hex.length; c += 2)
bytes.push(parseInt(hex.substr(c, 2), 16));
return bytes;
},
// Convert a byte array to a base-64 string
bytesToBase64: function (bytes) {
for(var base64 = [], i = 0; i < bytes.length; i += 3) {
var triplet = (bytes[i] << 16) | (bytes[i + 1] << 8) | bytes[i + 2];
for (var j = 0; j < 4; j++) {
if (i * 8 + j * 6 <= bytes.length * 8)
base64.push(base64map.charAt((triplet >>> 6 * (3 - j)) & 0x3F));
else base64.push("=");
}
}
return base64.join("");
},
// Convert a base-64 string to a byte array
base64ToBytes: function (base64) {
// Remove non-base-64 characters
base64 = base64.replace(/[^A-Z0-9+\/]/ig, "");
for (var bytes = [], i = 0, imod4 = 0; i < base64.length; imod4 = ++i % 4) {
if (imod4 == 0) continue;
bytes.push(((base64map.indexOf(base64.charAt(i - 1)) & (Math.pow(2, -2 * imod4 + 8) - 1)) << (imod4 * 2)) |
(base64map.indexOf(base64.charAt(i)) >>> (6 - imod4 * 2)));
}
return bytes;
}
};
// Crypto character encodings
var charenc = Crypto.charenc = {};
// UTF-8 encoding
var UTF8 = charenc.UTF8 = {
// Convert a string to a byte array
stringToBytes: function (str) {
return Binary.stringToBytes(unescape(encodeURIComponent(str)));
},
// Convert a byte array to a string
bytesToString: function (bytes) {
return decodeURIComponent(escape(Binary.bytesToString(bytes)));
}
};
// Binary encoding
var Binary = charenc.Binary = {
// Convert a string to a byte array
stringToBytes: function (str) {
for (var bytes = [], i = 0; i < str.length; i++)
bytes.push(str.charCodeAt(i) & 0xFF);
return bytes;
},
// Convert a byte array to a string
bytesToString: function (bytes) {
for (var str = [], i = 0; i < bytes.length; i++)
str.push(String.fromCharCode(bytes[i]));
return str.join("");
}
};
})();
}
https://crypto-js.googlecode.com/svn/tags/2.5.4/build/crypto/crypto.js
This diff is collapsed.
Last-Update: 2015-09-02
Forwarded: not-needed
Author: Dmitry Smirnov <onlyjob@member.fsf.org>
Description: fixes E:privacy-breach-logo
--- a/public/emails/reset_password.html
+++ b/public/emails/reset_password.html
@@ -25,9 +25,9 @@
<table class="head-wrap" bgcolor="#666666" style="font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; width: 100%; margin: 0; padding: 0;"><tr style="font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; margin: 0; padding: 0;"><td style="font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; margin: 0; padding: 0;"></td>
<td class="header container" style="font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; display: block !important; max-width: 600px !important; clear: both !important; margin: 0 auto; padding: 0;">
<div class="content" style="font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; max-width: 600px; display: block; margin: 0 auto; padding: 15px;">
- <table style="font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; width: 100%; margin: 0; padding: 0;"><tr style="font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; margin: 0; padding: 0;"><td align="center" style="font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; margin: 0; padding: 0;"><img src="http://grafana.org/assets/img/logo_transparent_200x75.png" alt="Grafnaa" style="width: 200px; font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; max-width: 100%; margin: 0; padding: 0;" /></td>
+ <table style="font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; width: 100%; margin: 0; padding: 0;"><tr style="font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; margin: 0; padding: 0;"><td align="center" style="font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; margin: 0; padding: 0;"><img src="/img/logo_transparent_200x75.png" alt="Grafnaa" style="width: 200px; font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; max-width: 100%; margin: 0; padding: 0;" /></td>
</tr></table></div>
</td>
<td style="font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; margin: 0; padding: 0;"></td>
--- a/public/emails/welcome_on_signup.html
+++ b/public/emails/welcome_on_signup.html
@@ -26,9 +26,9 @@
<table class="head-wrap" bgcolor="#666666" style="font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; width: 100%; margin: 0; padding: 0;"><tr style="font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; margin: 0; padding: 0;"><td style="font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; margin: 0; padding: 0;"></td>
<td class="header container" style="font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; display: block !important; max-width: 600px !important; clear: both !important; margin: 0 auto; padding: 0;">
<div class="content" style="font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; max-width: 600px; display: block; margin: 0 auto; padding: 15px;">
- <table style="font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; width: 100%; margin: 0; padding: 0;"><tr style="font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; margin: 0; padding: 0;"><td align="center" style="font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; margin: 0; padding: 0;"><img src="http://grafana.org/assets/img/logo_transparent_200x75.png" alt="Grafana" style="width: 200px; font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; max-width: 100%; margin: 0; padding: 0;" /></td>
+ <table style="font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; width: 100%; margin: 0; padding: 0;"><tr style="font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; margin: 0; padding: 0;"><td align="center" style="font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; margin: 0; padding: 0;"><img src="/img/logo_transparent_200x75.png" alt="Grafana" style="width: 200px; font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; max-width: 100%; margin: 0; padding: 0;" /></td>
</tr></table></div>
</td>
<td style="font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; margin: 0; padding: 0;"></td>
privacy-breach-logo.patch
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
export DH_GOPKG := github.com/grafana/grafana
%:
dh $@ --buildsystem=golang --with=golang,systemd --builddirectory=_build --parallel
override_dh_clean:
dh_clean
## Remove Files-Excluded (when built from checkout or non-DFSG tarball):
$(RM) -rv `perl -0nE 'say $$1 if m{^Files\-Excluded\:\s*(.*?)(?:\n\n|Files:|Comment:)}sm;' debian/copyright`
override_dh_auto_configure:
dh_auto_configure
-ln -svr _build/src/github.com/grafana/grafana/Godeps/_workspace/src/github.com/* _build/src/github.com/
$(RM) -f _build/src/gopkg.in
mkdir -p _build/src/gopkg.in
-ln -svr _build/src/github.com/grafana/grafana/Godeps/_workspace/src/gopkg.in/* _build/src/gopkg.in/
-ln -sv /usr/share/gocode/src/gopkg.in/* _build/src/gopkg.in/
build-indep:
## Build CSS: http://lesscss.org/usage/index.html
cd public/css \
&& lessc --include-path=./less --include-path=../vendor/bootstrap/less less/bootstrap.dark.less grafana.dark.min.css \
&& lessc --include-path=./less --include-path=../vendor/bootstrap/less less/bootstrap.light.less grafana.light.min.css
override_dh_install:
dh_install -XLICENSE -Xlicense.json
## rename config file:
mv -v debian/grafana/etc/grafana/sample.ini debian/grafana/etc/grafana/grafana.ini
override_dh_link:
## link minified .CSS and .JS with to their uncompressed versions:
find $(CURDIR)/debian/grafana-data/usr -type f -name "*[-.]min.css" -or -name "*[-.]min.js" | \
while read MF; do \
UF="$$(echo $${MF} | perl -pE 's{[\.-]min\.(js|css)}{.$$1};')" ;\
if [ -f "$${UF}" ] || [ -n "$$(readlink \"$${UF}\")" ]; then \
ln -svfr "$${UF}" "$${MF}" ;\
fi ;\
done
dh_link
override_dh_fixperms:
dh_fixperms
## executable-not-elf-or-script:
-chmod -R -c a-x+X \
debian/grafana-data/usr/share/grafana/public
override_dh_installchangelogs:
dh_installchangelogs CHANGELOG.md
#override_dh_installinit:
# dh_installinit --no-start
#override_dh_systemd_start:
# dh_systemd_start --no-start
#override_dh_systemd_enable:
# dh_systemd_enable --no-enable
override_dh_auto_test:
#-dh_auto_test
## Source is in "debian/missing-sources":
source-is-missing public/vendor/modernizr-2.6.1.js
# uscan(1) configuration file.
version=3
opts=\
repacksuffix=+dfsg,\
dversionmangle=s{\+dfsg\d*}{},\
uversionmangle=s{\-(\d+)\Z}{.$1},\
https://github.com/grafana/grafana/releases \
.*/archive/v?(\d[\d\.]+)\.tar\.gz
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment