Ebrahim Mohammadi avatar Ebrahim Mohammadi committed 3aa32d7

* Added new debian directory

Comments (0)

Files changed (16)

debian/README.Debian

+Config file is /etc/drraw/drraw.conf
+
+In order to use drraw, follow these steps:
+
+* Define some RRD source directories in variable %datadirs in config file
+* Configure authentication and authorization using your web server
+  authentication mechanism and/or %users variable in config file
+    * All authenticated web server users have write access by default
+    * An unsafe but easier way is giving write permission to guest user
+      temporarily and reverting after editings:
+        %users = ( 'guest' => 1 );
+    * If you want graphs to be world-viewable, uncomment this line:
+        %users = ( 'guest' => 0 );
+* Browse to http://yourhost/cgi-bin/drraw/drraw.cgi and define some graphs
+* If you want to use the RCS feature of drraw, you'll need the librcs-perl package
+
+ -- Mohammad Ebrahim Mohammadi Panah <ebrahim@mohammadi.ir>  Fri, 05 Dec 2008 20:02:11 +0330

debian/README.source

+See /usr/share/doc/dpatch/README.source.gz
+drraw (2.2b2-1) unstable; urgency=low
+
+  * Upgrade to newer upstream version 2.2b2 (Closes: #579991)
+  * Updated debian/watch to find also beta version
+  * Minor changes to my patch files
+
+ -- Mohammad Ebrahim Mohammadi Panah <ebrahim@mohammadi.ir>  Tue, 04 May 2010 00:42:15 +0430
+
+drraw (2.1.3-3) unstable; urgency=low
+
+  * Removed unneeded lines from debian/dirs
+  * Added some descriptive comments to patches
+  * Updated debian/control to latest standards version
+  * Updated maintainer's copyright year in debian/copyright
+
+ -- Mohammad Ebrahim Mohammadi Panah <ebrahim@mohammadi.ir>  Tue, 05 May 2009 04:23:45 +0430
+
+drraw (2.1.3-2) unstable; urgency=low
+
+  * Removed link of config file and patched the source to point directly to
+    /etc/drrwa/drraw.conf
+  * Fixed postrm for the case of upgrade to not remove /var/cache/drraw
+    directory, but just the contents
+  * Fixed postinst to avoid changing permissions
+  * Changed priority from optional to extra
+  * Changed maintainer's email address from mebrahim@gmail.com to
+    ebrahim@mohammadi.ir
+
+ -- Mohammad Ebrahim Mohammadi Panah <ebrahim@mohammadi.ir>  Thu, 15 Jan 2009 05:15:59 +0330
+
+drraw (2.1.3-1) unstable; urgency=low
+
+  * Initial release of Debian package (Closes: #507918)
+
+ -- Mohammad Ebrahim Mohammadi Panah <ebrahim@mohammadi.ir>  Fri, 05 Dec 2008 15:13:41 +0330
+Source: drraw
+Section: web
+Priority: extra
+Maintainer: Mohammad Ebrahim Mohammadi Panah <ebrahim@mohammadi.ir>
+Build-Depends: debhelper (>= 7), dpatch
+Standards-Version: 3.8.1
+Homepage: http://web.taranis.org/drraw/
+
+Package: drraw
+Architecture: all
+Depends: librrds-perl
+Suggests: collectd
+Recommends: httpd | apache2, librcs-perl
+Description: A simple web based presentation front-end for RRDtool
+ drraw is a simple web based presentation front-end for RRDtool that allows you
+ to interactively build graphs of your own design. A graph definition can be
+ turned into a template which may be applied to many Round Robin Database files.
+ drraw specializes in providing an easy mean of displaying data stored with
+ RRDtool and does not care about how the data is collected, making it a great
+ complement to other RRDtool front-ends.
+This package was debianized by Mohammad Ebrahim Mohammadi Panah <ebrahim@mohammadi.ir> on
+Tue, 04 May 2010 00:46:41 +0430.
+
+It was downloaded from <http://web.taranis.org/drraw/dist/drraw-2.2b2.tar.gz>
+
+Upstream Author:
+
+    Christophe Kalt <kalt@taranis.org>
+
+Copyright:
+
+    <Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Christophe Kalt>
+
+License:
+
+    Redistribution and use in source and binary forms, with or without
+    modification, are permitted provided that the following conditions
+    are met:
+    1. Redistributions of source code must retain the above copyright
+       notice, this list of conditions and the following disclaimer.
+    2. 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.
+    3. All advertising materials mentioning features or use of this software
+       must display the following acknowledgement:
+         This product includes software developed by Christophe Kalt.
+    4. The name of the author may not be used to endorse or promote products
+        derived from this software without specific prior written permission.
+    
+    THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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.
+
+The Debian packaging is copyright 2010, Mohammad Ebrahim Mohammadi Panah <ebrahim@mohammadi.ir> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
+var/lib/drraw
+var/cache/drraw
+README.EVENTS
+drraw.cgi       usr/lib/cgi-bin/drraw
+icons           usr/share/drraw
+drraw.conf      etc/drraw

debian/patches/00list

+01_drraw_cgi
+02_drraw_conf

debian/patches/01_drraw_cgi.dpatch

+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_drraw_cgi.dpatch by Mohammad Ebrahim Mohammadi Panah <ebrahim@mohammadi.ir>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Patch for drraw.cgi
+## DP: Changes config file path from its own directory to /etc/drraw/drraw.conf
+
+@DPATCH@
+
+--- drraw.upstream/drraw.cgi	2008-12-15 23:57:22.000000000 +0330
++++ drraw/drraw.cgi	2008-12-15 23:31:06.000000000 +0330
+@@ -49,7 +49,7 @@
+ 
+ # The configuration file is expected to be found in the same directory
+ # as drraw itself.  You may customize this to be elsewhere.
+-my $config = (dirname($0) =~ /(.*)/)[0] . "/drraw.conf"; # Untaint
++my $config = "/etc/drraw/drraw.conf"; # Untaint
+ 
+# This needs to be manually set for stupid stupid File::Find to work
+# in tainted mode.

debian/patches/02_drraw_conf.dpatch

+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_drraw_conf.dpatch by Mohammad Ebrahim Mohammadi Panah <ebrahim@mohammadi.ir>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Patch for drraw.conf
+## DP: Sets correct data and cache directories for the Debian package
+
+@DPATCH@
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' drraw~/drraw.conf drraw/drraw.conf
+--- drraw~/drraw.conf	2010-05-04 01:20:09.000000000 +0430
++++ drraw/drraw.conf	2010-05-04 01:23:46.882422843 +0430
+@@ -33,7 +33,8 @@
+ 
+ # This function is used to sort *.rrd and *.evt filenames before displaying
+ # them for the user to choose from.  It is passed the two arguments that
+-# need to be compared.#sub mydatafnsort { return $_[0] cmp $_[1]; }
++# need to be compared.
++#sub mydatafnsort { return $_[0] cmp $_[1]; }
+ 
+ # Default DS filter when adding graph data sources from RRD files
+ #$dsfilter_def = '';
+@@ -75,8 +76,8 @@
+ # These directories MUST EXIST and the user running CGI scripts must have
+ # read AND write access to them.  It is entirely safe to delete any content
+ # found in the temporary directory.
+-$saved_dir = '/somewhere/drraw/saved';
+-$tmp_dir = '/somewhere/drraw/tmp';
++$saved_dir = '/var/lib/drraw';
++$tmp_dir = '/var/cache/drraw';
+ # By default, critical errors are shown in the produced HTML pages produced
+ # and sent to standard error (which web servers typically write to some
+ # logfile).  If the following is defined, such errors will be written to
+#!/bin/sh
+# postinst script for drraw
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+DRRAW_DATA=/var/lib/drraw
+DRRAW_TMP=/var/cache/drraw
+
+case "$1" in
+    configure)
+	chown root:www-data "$DRRAW_DATA" "$DRRAW_TMP"
+	chmod 770 "$DRRAW_DATA" "$DRRAW_TMP"
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+#!/bin/sh
+# postrm script for #PACKAGE#
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <overwriter>
+#          <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+DRRAW_TMP=/var/cache/drraw
+
+case "$1" in
+	upgrade)
+	rm -rf "$DRRAW_TMP"/*
+	;;
+
+	purge|remove|failed-upgrade|abort-install|abort-upgrade|disappear)
+	rm -rf "$DRRAW_TMP"
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+include /usr/share/dpatch/dpatch.make
+
+build: patch
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	dh_clean
+
+install:
+	dh_testdir
+	dh_testroot
+	dh_prep  
+	dh_installdirs
+	dh_install
+	chmod +x "$(CURDIR)/debian/drraw/usr/lib/cgi-bin/drraw/drraw.cgi"
+	dh_link usr/share/drraw/icons   usr/lib/cgi-bin/drraw/icons
+
+# Build architecture-independent files here.
+binary-indep: install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs CHANGES
+	dh_installdocs
+	dh_installexamples
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+# Build architecture-dependent files here.
+binary-arch: install
+
+binary: binary-indep binary-arch
+.PHONY: clean binary-indep binary-arch binary install patch unpatch
+# This is a uscan(1) watch file
+version=3
+
+http://web.taranis.org/drraw/dist/drraw-([\d\.b]+).tar.gz
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.