debian/0000755000000000000000000000000011770632460007174 5ustar debian/postrm0000644000000000000000000000175711770632460010455 0ustar #!/bin/sh # postrm script for #PACKAGE# # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' # # 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 debian/compat0000644000000000000000000000000211770632460010372 0ustar 7 debian/README.Debian0000644000000000000000000000154411770632460011241 0ustar 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 Fri, 05 Dec 2008 20:02:11 +0330 debian/docs0000644000000000000000000000001611770632460010044 0ustar README.EVENTS debian/postinst0000644000000000000000000000210611770632460011001 0ustar #!/bin/sh # postinst script for drraw # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # 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 debian/install0000644000000000000000000000014011770632460010560 0ustar drraw.cgi usr/lib/cgi-bin/drraw icons usr/share/drraw drraw.conf etc/drraw debian/watch0000644000000000000000000000014511770632460010225 0ustar # This is a uscan(1) watch file version=3 http://web.taranis.org/drraw/dist/drraw-([\d\.b]+).tar.gz debian/copyright0000644000000000000000000000414311770632460011131 0ustar This package was debianized by Mohammad Ebrahim Mohammadi Panah on Tue, 04 May 2010 00:46:41 +0430. It was downloaded from Upstream Author: Christophe Kalt Copyright: 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 and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. debian/control0000644000000000000000000000152011770632460010575 0ustar Source: drraw Section: web Priority: extra Maintainer: Mohammad Ebrahim Mohammadi Panah Build-Depends: debhelper (>= 7.0.50~) Standards-Version: 3.9.3 Homepage: http://web.taranis.org/drraw/ Package: drraw Architecture: all Depends: librrds-perl, ${misc:Depends} Suggests: collectd Recommends: httpd | apache2, librcs-perl Description: 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. debian/changelog0000644000000000000000000000360011770632460011045 0ustar drraw (2.2b2-4) unstable; urgency=low * Upgrade the standard to 3.9.3 (which in turn fixes lintian warnings) * More compact rules file -- Mohammad Ebrahim Mohammadi Panah Thu, 14 Jun 2012 23:04:07 +0430 drraw (2.2b2-3) unstable; urgency=low * Switch to debhelper 7.0.50 -- Mohammad Ebrahim Mohammadi Panah Mon, 10 May 2010 15:41:38 +0430 drraw (2.2b2-2) unstable; urgency=low * Switch to dpkg-source 3.0 (quilt) format -- Mohammad Ebrahim Mohammadi Panah Tue, 04 May 2010 03:48:11 +0430 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 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 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 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 Fri, 05 Dec 2008 15:13:41 +0330 debian/rules0000755000000000000000000000034211770632460010253 0ustar #!/usr/bin/make -f %: dh $@ override_dh_fixperms: dh_fixperms chmod +x "$(CURDIR)/debian/drraw/usr/lib/cgi-bin/drraw/drraw.cgi" override_dh_install: dh_install dh_link usr/share/drraw/icons usr/lib/cgi-bin/drraw/icons debian/patches/0000755000000000000000000000000011770632460010623 5ustar debian/patches/02_drraw_conf.diff0000755000000000000000000000241111770632460014103 0ustar # Description: Sets correct data and cache directories for the Debian package # Author: Mohammad Ebrahim Mohammadi Panah @DPATCH@ diff -urNad 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 debian/patches/01_drraw_cgi.diff0000755000000000000000000000116111770632460013720 0ustar # Description: Changes config file path to /etc/drraw/drraw.conf # Author: Mohammad Ebrahim Mohammadi Panah @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/series0000644000000000000000000000004511770632460012037 0ustar 02_drraw_conf.diff 01_drraw_cgi.diff debian/source/0000755000000000000000000000000011770632460010474 5ustar debian/source/format0000644000000000000000000000001411770632460011702 0ustar 3.0 (quilt) debian/dirs0000644000000000000000000000003611770632460010057 0ustar var/lib/drraw var/cache/drraw