--- sabnzbdplus-0.6.8.orig/debian/README.source +++ sabnzbdplus-0.6.8/debian/README.source @@ -0,0 +1,33 @@ +== Patch system == + +This package is using dpatch patch system. + +To patch the source: + * debian/rules patch +To add a new patch: + * put it under debian/patches + * add it to debian/patches/00list + +See /usr/share/doc/dpatch/README.source.gz for more information. + + +== Init script == + +Properly handling shutdown of the program from the init script +is complicated by the program's new builtin option of restarting +from its web interface. This causes it to forget python options +(like -OO), as well as change its command line, pid, and stuff +in /proc/$pid/ that start-stop-daemon relies on for identifying +which pid to act on. As a result, we cannot rely on any of those, +and instead use pgrep and a makeshift pidfile to make sure +start-stop-daemon gets it right after all. + + +== Suggested vs. Recommended -theme packages == + +The mobile interface is suggested rather than recommended +because it cannot be selected in the configuration wizard +(like smpl and Plush). Upstream's choice here makes sense, +since mobile only implements a limited subset of the +functionality and configuration options available in the +program. --- sabnzbdplus-0.6.8.orig/debian/rules +++ sabnzbdplus-0.6.8/debian/rules @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# Include dpatch targets +include /usr/share/dpatch/dpatch.make + +# Install directory +DESTDIR = $(CURDIR)/debian/sabnzbdplus + +build: build-arch build-indep +build-arch: +build-indep: build-stamp +build-stamp: patch + +clean: unpatch + dh_testdir + dh_testroot + rm -rf build/ locale/ sabnzbdplus.png sabnzbdplus.xpm + find . -wholename "./email/*.tmpl" ! -name "*-en.tmpl" -delete + find . -name "*.pyc" -delete + dh_clean + +install: build install-prereq install-main install-finish + +install-prereq: build + dh_testdir + dh_testroot + dh_prep + +install-main: install-prereq + # Generate translations + python tools/make_mo.py + find locale -type d -empty -delete + # Create icons, 32x32 xpm for Debian menu, 48x48 png for XDG menu + convert -resize 32x32 interfaces/wizard/static/images/icon_sab.png sabnzbdplus.xpm + convert -resize 48x48 interfaces/wizard/static/images/icon_sab.png sabnzbdplus.png + dh_install \ + --exclude=static/MochiKit/ \ + --exclude=wizard/README.TXT \ + --exclude=utils/feedparser.py \ + --exclude=utils/configobj.py \ + --exclude=excanvas/excanvas.js \ + --exclude=images-split.tar.gz \ + --exclude=cherrypy/LICENSE.txt \ + --exclude=cherrypy/cherryd \ + --exclude=cherrypy/scaffold + +install-finish: install-main + # Strip caps and script extension from the executable + mv $(DESTDIR)/usr/bin/SABnzbd.py $(DESTDIR)/usr/bin/sabnzbdplus + +binary-indep: install + dh_testdir -i + dh_testroot -i + # Account for changelogs using non-standard names or being included in readme files + dh_installchangelogs + dh_installchangelogs -p sabnzbdplus CHANGELOG.txt + dh_installchangelogs -p sabnzbdplus-theme-plush -k interfaces/Plush/README.txt + dh_installchangelogs -p sabnzbdplus-theme-smpl -k interfaces/smpl/README.txt + dh_installchangelogs -p sabnzbdplus-theme-mobile -k interfaces/Mobile/README.txt + dh_installdocs -i + dh_installexamples -i + dh_installman -i + dh_link -i + dh_icons -i + dh_installmenu -i + dh_lintian -i + dh_python2 -i + dh_installinit -i -- defaults 98 02 + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +binary-arch: install + +binary: binary-indep binary-arch + +.PHONY: clean binary-indep binary-arch binary install --- sabnzbdplus-0.6.8.orig/debian/manpages +++ sabnzbdplus-0.6.8/debian/manpages @@ -0,0 +1 @@ +debian/sabnzbdplus.1 --- sabnzbdplus-0.6.8.orig/debian/compat +++ sabnzbdplus-0.6.8/debian/compat @@ -0,0 +1 @@ +7 --- sabnzbdplus-0.6.8.orig/debian/sabnzbdplus-theme-plush.install +++ sabnzbdplus-0.6.8/debian/sabnzbdplus-theme-plush.install @@ -0,0 +1 @@ +interfaces/Plush/templates /usr/share/sabnzbdplus/interfaces/Plush/ --- sabnzbdplus-0.6.8.orig/debian/README.Debian +++ sabnzbdplus-0.6.8/debian/README.Debian @@ -0,0 +1,49 @@ +== Cherrypy == +Upstream releases include a specific version of cherrypy, +known to work with the program. Currently, regular cherrypy +releases suffer from crippling issues in the https +implementation, see http://www.cherrypy.org/ticket/1068. +Therefore, the package installs the version supplied by +upstream as a private module in /usr/share/sabnzbdplus/. + + +== Init script == + +On the upstream forums, a very common question is how to set +up the program so it starts automatically on boot. For this +reason an init script is included in the package. + +By design nothing is started until/unless the user account +to use is set in /etc/default/sabnzbdplus. Having the package +create a user for this very purpose has been considered, but +was decided against due to the disadvantages of such an +approach with regard to: + +* permissions issues on downloaded files: this program is + designed to be an automatic downloader, above all else, + and does not provide any interface to manage or access + downloaded files. +* setting things up that way is probably is overly + complicated for a typical user's needs, and likely to + significantly increase the demand for support from packager + and/or upstream developers. + +The current init script is therefore geared towards ease of +use for a simple setup, while still fully allowing for the +more advanced options, for example with a dedicated user +account and access to downloaded files regulated through +group membership. + + +== Interface templates == + +Adding any interface templates that are not available in the +repositories, can be done by putting those templates in their +own directory under /usr/share/sabnzbdplus/interfaces/. +Make sure they follow the standard subdirectory layout (like +the Default template): + +/usr/share/sabnzbdplus/interfaces//templates/*.tmpl + +Templates organised in this way automatically show up as an +option in the web-based config dropdown menu. --- sabnzbdplus-0.6.8.orig/debian/copyright +++ sabnzbdplus-0.6.8/debian/copyright @@ -0,0 +1,1349 @@ +This package was debianized by JCF Ploemen +Thu, 17 Jan 2008 + +It was downloaded from: http://www.sabnzbd.org/download + + +Upstream Authors: + The SABnzbd-Team + +Copyright: + Copyright (C) 2007-2011 by The SABnzbd-Team + +License: + 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 2 + 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. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + + +========================================================================= +All exceptions to the above license statement are listed below. The full +text of licenses referred to by an abbreviation may be found at the end +of this file. +========================================================================= + +* sabnzbd/utils/feedparser.py + Copyright (C) 2002-2006 by Mark Pilgrim +License: + 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. + + 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. + + +* sabnzbd/utils/json.py + Copyright (C) 2005 by Patrick D. Logan + (with modifications by ShyPike ) +* sabnzbd/utils/certgen.py + Copyright (C) 2001 by Martin Sjögren and AB Strakt, + Copyright (C) 2008 by Jean-Paul Calderone +License: LGPL-2.1+ + + +* sabnzbd/utils/rsslib.py + Copyright (C) by C. Mallory. +License: + "You may freely use this code in any way you can think of." + + +* sabnzbd/utils/listquote.py + Copyright (C) 2004, 2005 by Michael Foord +License: + Copyright (c) 2003-2010, Michael Foord + All rights reserved. + E-mail : fuzzyman AT voidspace DOT org DOT uk + + 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 of Michael Foord nor the name of Voidspace + 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. + + +* sabnzbd/utils/configobj.py + Copyright (C) 2005-2010 by Michael Foord , + Copyright (C) 2005-2010 by Nicola Larosa +License: + Copyright (c) 2003-2010, Michael Foord and Nicola Larosa + All rights reserved. + E-mail : fuzzyman AT voidspace DOT org DOT uk + + 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 of Michael Foord nor the name of Voidspace + 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. + + +* sabnzbd/utils/kronos.py + Copyright (C) 2004 by Irmen de Jong +License: MIT + + +* sabnzbd/utils/ssmtplib.py + Copyright (C) 2007 by Matt Butcher + "This is just a minor modification to the smtplib code by Dragon De Monsyn." +License: dual-licensed MIT, GPL-2+ + + +* sabnzbd/utils/rarfile.py + Copyright (C) 2005 by Marko Kreen + (with modifications by ShyPike ) +License: + Permission to use, copy, modify, and distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +* cherrypy/* + Copyright (C) 2004-2007 by CherryPy Team +* cherrypy/lib/httpauth.py + Copyright (C) 2005 by Tiago Cogumbreiro +License: + 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 of the CherryPy Team 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. + + +* tools/msgfmt.py + Author: Martin v. Löwis + "The file tools/msgfmt.py was taken from the Python for Windows distribution + and is covered by the general Python license." +License: PSF + + +* interfaces/Plush/* +* interfaces/Mobile/* + Copyright (C) by pairofdimes +License: CC-3.0-BY + + +* interfaces/Mobile/templates/static/javascripts/mobile.js +This file contains code from various sources: + "jquery" + Copyright (C) 2009 by John Resig + Origin: http://jquery.com +License: dual-licensed MIT, GPL-2 + "Sizzle CSS Selector Engine" + Copyright (C) 2009 by The Dojo Foundation + Origin: http://sizzlejs.com +License: triple-licensed MIT, BSD-sizzle, GPL-2 + "jQTouch jQuery plugin" + Copyright (C) 2009 by the jQTouch project members + Origin: http://www.jqtouch.com +License: MIT + + +* interfaces/Mobile/templates/static/stylesheets/* +* interfaces/Mobile/templates/static/images/dark/* +* interfaces/Mobile/templates/static/images/light/* + Copyright (C) 2009 by the jQTouch project members +License: as the jQuery jQTouch Plugin: MIT + + +* interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images/colorbox-*.png + Copyright (C) 2009 by Jack Moore +This image is composed of images released as part of the jQuery +ColorBox plugin, available from http://colorpowered.com/colorbox/ +License: MIT + + +* interfaces/Plush/templates/static/stylesheets/colorschemes/gold/images/sprite-config.png + (composed of graphics from the Nuvola icon set) +* interfaces/smpl/templates/static/images/nuvola/* +* interfaces/smpl/templates/static/images/messagebox_critical.png +* interfaces/smpl/templates/static/images/browser.png + Copyright (C) 2003-2004 by David Vignoni +These images originate from the Nuvola Icon theme. +License: LGPL-2.1+, with this add-on notice: + The GNU Lesser General Public License or LGPL is written for software + libraries in the first place. The LGPL has to be considered valid for + this artwork library too. + Nuvola icon theme for KDE 3.x is a special kind of software library, + it is an artwork library, it's elements can be used in a Graphical User + Interface, or GUI. Source code, for this library means: + - raster png image + The LGPL in some sections obliges you to make the files carry notices. + With images this is in some cases impossible or hardly useful. With + this library a notice is placed at a prominent place in the directory + containing the elements. You may follow this practice. + The exception in section 6 of the GNU Lesser General Public License covers + the use of elements of this art library in a GUI. + + +* interfaces/wizard/static/javascript/jquery.js +This file contains code from two different sources: + "jquery" + Copyright (C) 2009 by John Resig + Origin: http://jquery.com +License: dual-licensed MIT, GPL-2 + "Sizzle CSS Selector Engine" + Copyright (C) 2009 by The Dojo Foundation + Origin: http://sizzlejs.com +License: triple-licensed MIT, BSD-sizzle, GPL-2 + + +* interfaces/Plush/templates/static/javascripts/lib.js +This file contains code from a number of different sources: + "jquery" + Copyright (C) 2009 by John Resig + Origin: http://jquery.com +License: dual-licensed MIT, GPL-2 + "Sizzle CSS Selector Engine" + Copyright (C) 2009 by The Dojo Foundation + Origin: http://sizzlejs.com +License: triple-licensed MIT, BSD-sizzle, GPL-2 + "jQuery UI", + "jQuery UI Widget", + "jQuery UI Button", + "jQuery UI Tabs" + Copyright (C) 2011 by AUTHORS.txt (http://jqueryui.com/about) + Origin: http://jqueryui.com +License: dual-licensed MIT, GPL-2 + "jquery ColorBox" + Copyright (C) 2010 by Jack Moore + Origin: http://colorpowered.com/colorbox/ +License: MIT + "jQuery Cookie plugin" + Copyright (C) 2006 by Klaus Hartl (stilbuero.de) + Origin: http://stilbuero.de, http://plugins.jquery.com/project/Cookie +License: dual-licensed MIT, GPL-2 + "jQuery hoverIntent" + Copyright (C) 2007 by Brian Cherne + Origin: http://cherne.net/brian/resources/jquery.hoverIntent.html +License: dual-licensed MIT, GPL-2 + "jQuery LiveQuery" + Copyright (C) 2010 by Brandon Aaron + Origin: http://brandonaaron.net/code +License: dual-licensed MIT, GPL-2 + "Pagination jQuery plugin" + Copyright (C) 2009 by Gabriel Birke , + (with modifications by pairofdimes, where noted) + Origin: http://plugins.jquery.com/project/pagination +License: dual-licensed MIT, GPL-2 + "Superfish jQuery menu plugin" + Copyright (C) 2008 by Joel Birch + Origin: http://users.tpg.com.au/j_birch/plugins/superfish/ +License: dual-licensed MIT, GPL-2 + "jQuery Table Drag & Drop" + Copyright (C) 2008 by Denis Howlett + Origin: http://www.isocra.com/2008/02/table-drag-and-drop-jquery-plugin +License: "like jQuery, see http://docs.jquery.com/License." See above. + "jQuery Tooltip plugin" + Copyright (C) 2006-2008 by Jörn Zaefferer + Origin: http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ +License: dual-licensed MIT, GPL-2 + "AJAX IFRAME METHOD (AIM)" + Copyright (C) 2006-2008 by www.webtoolkit.info + Origin: http://www.webtoolkit.info +License: GPL-3+ + + +* interfaces/Plush/templates/static/stylesheets/jqueryui/ + "jQuery UI CSS Framework", + "jQuery UI Button", + "jQuery UI Tabs" + (including all images) + Copyright (C) 2010 jQuery UI Team +License: dual-licensed MIT, GPL-2 + + +* interfaces/smpl/templates/static/PlotKit/PlotKit.js + Copyright (C) 2005,2006 by Alastair Tse +License: + Copyright (c) 2006, Alastair Tse + All rights reserved. + + 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 of the Alastair Tse 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. + + +* interfaces/smpl/templates/static/excanvas/excanvas.js + Copyright (C) 2006 by Google Inc. +License: + 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 + +On Debian GNU/Linux systems, the complete text of the Apache License, +version 2, can be found in `/usr/share/common-licenses/Apache-2.0'. + + +* interfaces/smpl/templates/static/images/control_pause.png +* interfaces/smpl/templates/static/images/control_play.png +* interfaces/smpl/templates/static/images/drive.png +* interfaces/smpl/templates/static/images/drive_go.png +* interfaces/smpl/templates/static/images/bullet_arrow_down.png + Copyright (C) 2006 by Mark James +These images originate from the "Silk" icon set, available from +http://www.famfamfam.com/lab/icons/silk/ +License: dual-licensed CC-2.5-BY, CC-3.0-BY + (verbatim from project website) + + "I also love to hear of my work being used, feel encouraged to send an email + with a link or screenshot of the icons in their new home to mjames at gmail + dot com. This work is licensed under a Creative Commons Attribution 2.5 + License. This means you may use it for any purpose, and make any changes you + like. All I ask is that you include a link back to this page in your credits + (although a giant link on every page of your website really isn't needed, + contact me to discuss specifics). + + The icons can also be used under Creative Commons Attribution 3.0 License + (Hi Debian folks!) with the following requirements: + + As an author, I would appreciate a reference to my authorship of the Silk + icon set contents within a readme file or equivalent documentation for the + software which includes the set or a subset of the icons contained within." + + +* interfaces/smpl/templates/static/MochiKit/MochiKit.js + Copyright (C) 2005 by Bob Ippolito +License: dual-licensed MIT, AFL-2.1 + + +* debian/* + Copyright (C) 2007-2011 by JCF Ploemen +License: GPL-2+ + + +========================================================================= +License definitions follow: +========================================================================= + +AFL-2.1: + The Academic Free License + v. 2.1 + + This Academic Free License (the "License") applies to any original work of + authorship (the "Original Work") whose owner (the "Licensor") has placed the + following notice immediately following the copyright notice for the Original + Work: + + Licensed under the Academic Free License version 2.1 + + 1) Grant of Copyright License. Licensor hereby grants You a + world-wide, royalty-free, non-exclusive, perpetual, sublicenseable + license to do the following: + + a) to reproduce the Original Work in copies; + + b) to prepare derivative works ("Derivative Works") based upon the + Original Work; + + c) to distribute copies of the Original Work and Derivative Works to the + public; + + d) to perform the Original Work publicly; and + + e) to display the Original Work publicly. + + 2) Grant of Patent License. Licensor hereby grants You a world-wide, + royalty-free, non-exclusive, perpetual, sublicenseable license, under + patent claims owned or controlled by the Licensor that are embodied in + the Original Work as furnished by the Licensor, to make, use, sell and + offer for sale the Original Work and Derivative Works. + + 3) Grant of Source Code License. The term "Source Code" means the + preferred form of the Original Work for making modifications to it and + all available documentation describing how to modify the Original + Work. Licensor hereby agrees to provide a machine-readable copy of the + Source Code of the Original Work along with each copy of the Original + Work that Licensor distributes. Licensor reserves the right to satisfy + this obligation by placing a machine-readable copy of the Source Code + in an information repository reasonably calculated to permit + inexpensive and convenient access by You for as long as Licensor + continues to distribute the Original Work, and by publishing the + address of that information repository in a notice immediately + following the copyright notice that applies to the Original Work. + + 4) Exclusions From License Grant. Neither the names of Licensor, nor + the names of any contributors to the Original Work, nor any of their + trademarks or service marks, may be used to endorse or promote + products derived from this Original Work without express prior written + permission of the Licensor. Nothing in this License shall be deemed to + grant any rights to trademarks, copyrights, patents, trade secrets or + any other intellectual property of Licensor except as expressly stated + herein. No patent license is granted to make, use, sell or offer to + sell embodiments of any patent claims other than the licensed claims + defined in Section 2. No right is granted to the trademarks of + Licensor even if such marks are included in the Original Work. Nothing + in this License shall be interpreted to prohibit Licensor from + licensing under different terms from this License any Original Work + that Licensor otherwise would have a right to license. + + 5) This section intentionally omitted. + + 6) Attribution Rights. You must retain, in the Source Code of any + Derivative Works that You create, all copyright, patent or trademark + notices from the Source Code of the Original Work, as well as any + notices of licensing and any descriptive text identified therein as an + "Attribution Notice." You must cause the Source Code for any + Derivative Works that You create to carry a prominent Attribution + Notice reasonably calculated to inform recipients that You have + modified the Original Work. + + 7) Warranty of Provenance and Disclaimer of Warranty. Licensor + warrants that the copyright in and to the Original Work and the patent + rights granted herein by Licensor are owned by the Licensor or are + sublicensed to You under the terms of this License with the permission + of the contributor(s) of those copyrights and patent rights. Except as + expressly stated in the immediately proceeding sentence, the Original + Work is provided under this License on an "AS IS" BASIS and WITHOUT + WARRANTY, either express or implied, including, without limitation, + the warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A + PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL + WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential + part of this License. No license to Original Work is granted hereunder + except under this disclaimer. + + 8) Limitation of Liability. Under no circumstances and under no legal + theory, whether in tort (including negligence), contract, or + otherwise, shall the Licensor be liable to any person for any direct, + indirect, special, incidental, or consequential damages of any + character arising as a result of this License or the use of the + Original Work including, without limitation, damages for loss of + goodwill, work stoppage, computer failure or malfunction, or any and + all other commercial damages or losses. This limitation of liability + shall not apply to liability for death or personal injury resulting + from Licensor's negligence to the extent applicable law prohibits such + limitation. Some jurisdictions do not allow the exclusion or + limitation of incidental or consequential damages, so this exclusion + and limitation may not apply to You. + + 9) Acceptance and Termination. If You distribute copies of the + Original Work or a Derivative Work, You must make a reasonable effort + under the circumstances to obtain the express assent of recipients to + the terms of this License. Nothing else but this License (or another + written agreement between Licensor and You) grants You permission to + create Derivative Works based upon the Original Work or to exercise + any of the rights granted in Section 1 herein, and any attempt to do + so except under the terms of this License (or another written + agreement between Licensor and You) is expressly prohibited by + U.S. copyright law, the equivalent laws of other countries, and by + international treaty. Therefore, by exercising any of the rights + granted to You in Section 1 herein, You indicate Your acceptance of + this License and all of its terms and conditions. + + 10) Termination for Patent Action. This License shall terminate + automatically and You may no longer exercise any of the rights granted + to You by this License as of the date You commence an action, + including a cross-claim or counterclaim, against Licensor or any + licensee alleging that the Original Work infringes a patent. This + termination provision shall not apply for an action alleging patent + infringement by combinations of the Original Work with other software + or hardware. + + 11) Jurisdiction, Venue and Governing Law. Any action or suit relating + to this License may be brought only in the courts of a jurisdiction + wherein the Licensor resides or in which Licensor conducts its primary + business, and under the laws of that jurisdiction excluding its + conflict-of-law provisions. The application of the United Nations + Convention on Contracts for the International Sale of Goods is + expressly excluded. Any use of the Original Work outside the scope of + this License or after its termination shall be subject to the + requirements and penalties of the U.S. Copyright Act, 17 U.S.C. § 101 + et seq., the equivalent laws of other countries, and international + treaty. This section shall survive the termination of this License. + + 12) Attorneys Fees. In any action to enforce the terms of this License + or seeking damages relating thereto, the prevailing party shall be + entitled to recover its costs and expenses, including, without + limitation, reasonable attorneys' fees and costs incurred in + connection with such action, including any appeal of such action. This + section shall survive the termination of this License. + + 13) Miscellaneous. This License represents the complete agreement + concerning the subject matter hereof. If any provision of this License + is held to be unenforceable, such provision shall be reformed only to + the extent necessary to make it enforceable. + + 14) Definition of "You" in This License. "You" throughout this + License, whether in upper or lower case, means an individual or a + legal entity exercising rights under, and complying with all of the + terms of, this License. For legal entities, "You" includes any entity + that controls, is controlled by, or is under common control with + you. For purposes of this definition, "control" means (i) the power, + direct or indirect, to cause the direction or management of such + entity, whether by contract or otherwise, or (ii) ownership of fifty + percent (50%) or more of the outstanding shares, or (iii) beneficial + ownership of such entity. + + 15) Right to Use. You may use the Original Work in all ways not + otherwise restricted or conditioned by this License or by law, and + Licensor promises not to interfere with or be responsible for such + uses by You. + + This license is Copyright (C) 2003-2004 Lawrence E. Rosen. All rights + reserved. Permission is hereby granted to copy and distribute this + license without modification. This license may not be modified without + the express written permission of its copyright owner. + + +BSD-sizzle: + Copyright (c) 2009, John Resig + All rights reserved. + + 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 of the 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 John Resig ''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 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. + + +CC-2.5-BY: + Creative Commons Legal Code + + Attribution 2.5 + + CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL + SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN ATTORNEY-CLIENT + RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" + BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE INFORMATION + PROVIDED, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM ITS USE. + + License + + THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE + COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY + COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS + AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. + + BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO + BE BOUND BY THE TERMS OF THIS LICENSE. THE LICENSOR GRANTS YOU THE RIGHTS + CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND + CONDITIONS. + + 1. Definitions + + 1. "Collective Work" means a work, such as a periodical issue, anthology + or encyclopedia, in which the Work in its entirety in unmodified form, + along with a number of other contributions, constituting separate and + independent works in themselves, are assembled into a collective + whole. A work that constitutes a Collective Work will not be + considered a Derivative Work (as defined below) for the purposes + of this License. + 2. "Derivative Work" means a work based upon the Work or upon the Work + and other pre-existing works, such as a translation, musical arrangement, + dramatization, fictionalization, motion picture version, sound recording, + art reproduction, abridgment, condensation, or any other form in which + the Work may be recast, transformed, or adapted, except that a work that + constitutes a Collective Work will not be considered a Derivative Work + for the purpose of this License. For the avoidance of doubt, where the + Work is a musical composition or sound recording, the synchronization of + the Work in timed-relation with a moving image ("synching") will be + considered a Derivative Work for the purpose of this License. + 3. "Licensor" means the individual or entity that offers the Work under + the terms of this License. + 4. "Original Author" means the individual or entity who created the Work. + 5. "Work" means the copyrightable work of authorship offered under the + terms of this License. + 6. "You" means an individual or entity exercising rights under this + License who has not previously violated the terms of this License with + respect to the Work, or who has received express permission from the + Licensor to exercise rights under this License despite a previous + violation. + + 2. Fair Use Rights. Nothing in this license is intended to reduce, limit, or + restrict any rights arising from fair use, first sale or other limitations + on the exclusive rights of the copyright owner under copyright law or other + applicable laws. + + 3. License Grant. Subject to the terms and conditions of this License, + Licensor hereby grants You a worldwide, royalty-free, non-exclusive, + perpetual (for the duration of the applicable copyright) license to exercise + the rights in the Work as stated below: + + 1. to reproduce the Work, to incorporate the Work into one or more + Collective Works, and to reproduce the Work as incorporated in the + Collective Works; + 2. to create and reproduce Derivative Works; + 3. to distribute copies or phonorecords of, display publicly, perform + publicly, and perform publicly by means of a digital audio transmission + the Work including as incorporated in Collective Works; + 4. to distribute copies or phonorecords of, display publicly, perform + publicly, and perform publicly by means of a digital audio transmission + Derivative Works. + 5. For the avoidance of doubt, where the work is a musical composition: + 1. Performance Royalties Under Blanket Licenses. Licensor waives the + exclusive right to collect, whether individually or via a performance + rights society (e.g. ASCAP, BMI, SESAC), royalties for the public + performance or public digital performance (e.g. webcast) of the Work. + 2. Mechanical Rights and Statutory Royalties. Licensor waives the + exclusive right to collect, whether individually or via a music rights + agency or designated agent (e.g. Harry Fox Agency), royalties for any + phonorecord You create from the Work ("cover version") and distribute, + subject to the compulsory license created by 17 USC Section 115 of the + US Copyright Act (or the equivalent in other jurisdictions). + 6. Webcasting Rights and Statutory Royalties. For the avoidance of doubt, + where the Work is a sound recording, Licensor waives the exclusive right + to collect, whether individually or via a performance-rights society + (e.g. SoundExchange), royalties for the public digital performance (e.g. + webcast) of the Work, subject to the compulsory license created by 17 USC + Section 114 of the US Copyright Act (or the equivalent in other + jurisdictions). + + The above rights may be exercised in all media and formats whether now known + or hereafter devised. The above rights include the right to make such + modifications as are technically necessary to exercise the rights in other + media and formats. All rights not expressly granted by Licensor are hereby + reserved. + + 4. Restrictions.The license granted in Section 3 above is expressly made + subject to and limited by the following restrictions: + + 1. You may distribute, publicly display, publicly perform, or publicly + digitally perform the Work only under the terms of this License, and You + must include a copy of, or the Uniform Resource Identifier for, this + License with every copy or phonorecord of the Work You distribute, + publicly display, publicly perform, or publicly digitally perform. You + may not offer or impose any terms on the Work that alter or restrict the + terms of this License or the recipients' exercise of the rights granted + hereunder. You may not sublicense the Work. You must keep intact all + notices that refer to this License and to the disclaimer of warranties. + You may not distribute, publicly display, publicly perform, or publicly + digitally perform the Work with any technological measures that control + access or use of the Work in a manner inconsistent with the terms of this + License Agreement. The above applies to the Work as incorporated in a + Collective Work, but this does not require the Collective Work apart from + the Work itself to be made subject to the terms of this License. If You + create a Collective Work, upon notice from any Licensor You must, to the + extent practicable, remove from the Collective Work any credit as + required by clause 4(b), as requested. If You create a Derivative Work, + upon notice from any Licensor You must, to the extent practicable, remove + from the Derivative Work any credit as required by clause 4(b), as + requested. + 2. If you distribute, publicly display, publicly perform, or publicly + digitally perform the Work or any Derivative Works or Collective Works, + You must keep intact all copyright notices for the Work and provide, + reasonable to the medium or means You are utilizing: (i) the name of the + Original Author (or pseudonym, if applicable) if supplied, and/or (ii) if + the Original Author and/or Licensor designate another party or parties + (e.g. a sponsor institute, publishing entity, journal) for attribution in + Licensor's copyright notice, terms of service or by other reasonable + means, the name of such party or parties; the title of the Work if + supplied; to the extent reasonably practicable, the Uniform Resource + Identifier, if any, that Licensor specifies to be associated with the + Work, unless such URI does not refer to the copyright notice or licensing + information for the Work; and in the case of a Derivative Work, a credit + identifying the use of the Work in the Derivative Work (e.g., "French + translation of the Work by Original Author," or "Screenplay based on + original Work by Original Author"). Such credit may be implemented in any + reasonable manner; provided, however, that in the case of a Derivative + Work or Collective Work, at a minimum such credit will appear where any + other comparable authorship credit appears and in a manner at least as + prominent as such other comparable authorship credit. + + 5. Representations, Warranties and Disclaimer + + UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR + OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND + CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, + WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A + PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER + DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT + DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED + WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU. + + 6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, + IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY + SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING + OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN + ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + + 7. Termination + + 1. This License and the rights granted hereunder will terminate + automatically upon any breach by You of the terms of this License. + Individuals or entities who have received Derivative Works or Collective + Works from You under this License, however, will not have their licenses + terminated provided such individuals or entities remain in full + compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will + survive any termination of this License. + 2. Subject to the above terms and conditions, the license granted here is + perpetual (for the duration of the applicable copyright in the Work). + Notwithstanding the above, Licensor reserves the right to release the + Work under different license terms or to stop distributing the Work at + any time; provided, however that any such election will not serve to + withdraw this License (or any other license that has been, or is required + to be, granted under the terms of this License), and this License will + continue in full force and effect unless terminated as stated above. + + 8. Miscellaneous + + 1. Each time You distribute or publicly digitally perform the Work or a + Collective Work, the Licensor offers to the recipient a license to the + Work on the same terms and conditions as the license granted to You under + this License. + 2. Each time You distribute or publicly digitally perform a Derivative + Work, Licensor offers to the recipient a license to the original Work on + the same terms and conditions as the license granted to You under this + License. + 3. If any provision of this License is invalid or unenforceable under + applicable law, it shall not affect the validity or enforceability of the + remainder of the terms of this License, and without further action by the + parties to this agreement, such provision shall be reformed to the + minimum extent necessary to make such provision valid and enforceable. + 4. No term or provision of this License shall be deemed waived and no + breach consented to unless such waiver or consent shall be in writing and + signed by the party to be charged with such waiver or consent. + 5. This License constitutes the entire agreement between the parties with + respect to the Work licensed here. There are no understandings, + agreements or representations with respect to the Work not specified + here. Licensor shall not be bound by any additional provisions that may + appear in any communication from You. This License may not be modified + without the mutual written agreement of the Licensor and You. + + Creative Commons is not a party to this License, and makes no warranty + whatsoever in connection with the Work. Creative Commons will not be liable + to You or any party on any legal theory for any damages whatsoever, + including without limitation any general, special, incidental or + consequential damages arising in connection to this license. Notwithstanding + the foregoing two (2) sentences, if Creative Commons has expressly + identified itself as the Licensor hereunder, it shall have all rights and + obligations of Licensor. + + Except for the limited purpose of indicating to the public that the Work is + licensed under the CCPL, neither party will use the trademark "Creative + Commons" or any related trademark or logo of Creative Commons without the + prior written consent of Creative Commons. Any permitted use will be in + compliance with Creative Commons' then-current trademark usage guidelines, + as may be published on its website or otherwise made available upon request + from time to time. + + Creative Commons may be contacted at http://creativecommons.org/. + + +CC-3.0-BY: + Creative Commons Legal Code + + Attribution 3.0 Unported + + CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT + PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT + CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES + THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO + WARRANTIES REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS + LIABILITY FOR DAMAGES RESULTING FROM ITS USE. + + License + + THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS + CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS + PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE + WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS + PROHIBITED. + + BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND + AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS + LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU + THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH + TERMS AND CONDITIONS. + + 1. Definitions + + a. "Adaptation" means a work based upon the Work, or upon the Work + and other pre-existing works, such as a translation, adaptation, + derivative work, arrangement of music or other alterations of a + literary or artistic work, or phonogram or performance and + includes cinematographic adaptations or any other form in which + the Work may be recast, transformed, or adapted including in any + form recognizably derived from the original, except that a work + that constitutes a Collection will not be considered an + Adaptation for the purpose of this License. For the avoidance of + doubt, where the Work is a musical work, performance or + phonogram, the synchronization of the Work in timed-relation with + a moving image ("synching") will be considered an Adaptation for + the purpose of this License. + b. "Collection" means a collection of literary or artistic works, + such as encyclopedias and anthologies, or performances, + phonograms or broadcasts, or other works or subject matter other + than works listed in Section 1(f) below, which, by reason of the + selection and arrangement of their contents, constitute + intellectual creations, in which the Work is included in its + entirety in unmodified form along with one or more other + contributions, each constituting separate and independent works + in themselves, which together are assembled into a collective + whole. A work that constitutes a Collection will not be + considered an Adaptation (as defined above) for the purposes of + this License. + c. "Distribute" means to make available to the public the original + and copies of the Work or Adaptation, as appropriate, through + sale or other transfer of ownership. + d. "Licensor" means the individual, individuals, entity or entities + that offer(s) the Work under the terms of this License. + e. "Original Author" means, in the case of a literary or artistic + work, the individual, individuals, entity or entities who created + the Work or if no individual or entity can be identified, the + publisher; and in addition (i) in the case of a performance the + actors, singers, musicians, dancers, and other persons who act, + sing, deliver, declaim, play in, interpret or otherwise perform + literary or artistic works or expressions of folklore; (ii) in + the case of a phonogram the producer being the person or legal + entity who first fixes the sounds of a performance or other + sounds; and, (iii) in the case of broadcasts, the organization + that transmits the broadcast. + f. "Work" means the literary and/or artistic work offered under the + terms of this License including without limitation any production + in the literary, scientific and artistic domain, whatever may be + the mode or form of its expression including digital form, such + as a book, pamphlet and other writing; a lecture, address, sermon + or other work of the same nature; a dramatic or dramatico-musical + work; a choreographic work or entertainment in dumb show; a + musical composition with or without words; a cinematographic work + to which are assimilated works expressed by a process analogous + to cinematography; a work of drawing, painting, architecture, + sculpture, engraving or lithography; a photographic work to which + are assimilated works expressed by a process analogous to + photography; a work of applied art; an illustration, map, plan, + sketch or three-dimensional work relative to geography, + topography, architecture or science; a performance; a broadcast; + a phonogram; a compilation of data to the extent it is protected + as a copyrightable work; or a work performed by a variety or + circus performer to the extent it is not otherwise considered a + literary or artistic work. + g. "You" means an individual or entity exercising rights under this + License who has not previously violated the terms of this License + with respect to the Work, or who has received express permission + from the Licensor to exercise rights under this License despite a + previous violation. + h. "Publicly Perform" means to perform public recitations of the + Work and to communicate to the public those public recitations, + by any means or process, including by wire or wireless means or + public digital performances; to make available to the public + Works in such a way that members of the public may access these + Works from a place and at a place individually chosen by them; to + perform the Work to the public by any means or process and the + communication to the public of the performances of the Work, + including by public digital performance; to broadcast and + rebroadcast the Work by any means including signs, sounds or + images. + i. "Reproduce" means to make copies of the Work by any means + including without limitation by sound or visual recordings and + the right of fixation and reproducing fixations of the Work, + including storage of a protected performance or phonogram in + digital form or other electronic medium. + + 2. Fair Dealing Rights. Nothing in this License is intended to + reduce, limit, or restrict any uses free from copyright or rights + arising from limitations or exceptions that are provided for in + connection with the copyright protection under copyright law or other + applicable laws. + + 3. License Grant. Subject to the terms and conditions of this + License, Licensor hereby grants You a worldwide, royalty-free, + non-exclusive, perpetual (for the duration of the applicable + copyright) license to exercise the rights in the Work as stated + below: + + a. to Reproduce the Work, to incorporate the Work into one or more + Collections, and to Reproduce the Work as incorporated in the + Collections; + b. to create and Reproduce Adaptations provided that any such + Adaptation, including any translation in any medium, takes + reasonable steps to clearly label, demarcate or otherwise + identify that changes were made to the original Work. For + example, a translation could be marked "The original work was + translated from English to Spanish," or a modification could + indicate "The original work has been modified."; + c. to Distribute and Publicly Perform the Work including as + incorporated in Collections; and, + d. to Distribute and Publicly Perform Adaptations. + e. For the avoidance of doubt: + + i. Non-waivable Compulsory License Schemes. In those + jurisdictions in which the right to collect royalties through + any statutory or compulsory licensing scheme cannot be + waived, the Licensor reserves the exclusive right to collect + such royalties for any exercise by You of the rights granted + under this License; + ii. Waivable Compulsory License Schemes. In those jurisdictions + in which the right to collect royalties through any statutory + or compulsory licensing scheme can be waived, the Licensor + waives the exclusive right to collect such royalties for any + exercise by You of the rights granted under this License; + and, + iii. Voluntary License Schemes. The Licensor waives the right to + collect royalties, whether individually or, in the event that + the Licensor is a member of a collecting society that + administers voluntary licensing schemes, via that society, + from any exercise by You of the rights granted under this + License. + + The above rights may be exercised in all media and formats whether + now known or hereafter devised. The above rights include the right to + make such modifications as are technically necessary to exercise the + rights in other media and formats. Subject to Section 8(f), all + rights not expressly granted by Licensor are hereby reserved. + + 4. Restrictions. The license granted in Section 3 above is expressly + made subject to and limited by the following restrictions: + + a. You may Distribute or Publicly Perform the Work only under the + terms of this License. You must include a copy of, or the Uniform + Resource Identifier (URI) for, this License with every copy of + the Work You Distribute or Publicly Perform. You may not offer or + impose any terms on the Work that restrict the terms of this + License or the ability of the recipient of the Work to exercise + the rights granted to that recipient under the terms of the + License. You may not sublicense the Work. You must keep intact + all notices that refer to this License and to the disclaimer of + warranties with every copy of the Work You Distribute or Publicly + Perform. When You Distribute or Publicly Perform the Work, You + may not impose any effective technological measures on the Work + that restrict the ability of a recipient of the Work from You to + exercise the rights granted to that recipient under the terms of + the License. This Section 4(a) applies to the Work as + incorporated in a Collection, but this does not require the + Collection apart from the Work itself to be made subject to the + terms of this License. If You create a Collection, upon notice + from any Licensor You must, to the extent practicable, remove + from the Collection any credit as required by Section 4(b), as + requested. If You create an Adaptation, upon notice from any + Licensor You must, to the extent practicable, remove from the + Adaptation any credit as required by Section 4(b), as requested. + b. If You Distribute, or Publicly Perform the Work or any + Adaptations or Collections, You must, unless a request has been + made pursuant to Section 4(a), keep intact all copyright notices + for the Work and provide, reasonable to the medium or means You + are utilizing: (i) the name of the Original Author (or pseudonym, + if applicable) if supplied, and/or if the Original Author and/or + Licensor designate another party or parties (e.g., a sponsor + institute, publishing entity, journal) for attribution + ("Attribution Parties") in Licensor's copyright notice, terms of + service or by other reasonable means, the name of such party or + parties; (ii) the title of the Work if supplied; (iii) to the + extent reasonably practicable, the URI, if any, that Licensor + specifies to be associated with the Work, unless such URI does + not refer to the copyright notice or licensing information for + the Work; and (iv) , consistent with Section 3(b), in the case of + an Adaptation, a credit identifying the use of the Work in the + Adaptation (e.g., "French translation of the Work by Original + Author," or "Screenplay based on original Work by Original + Author"). The credit required by this Section 4 (b) may be + implemented in any reasonable manner; provided, however, that in + the case of a Adaptation or Collection, at a minimum such credit + will appear, if a credit for all contributing authors of the + Adaptation or Collection appears, then as part of these credits + and in a manner at least as prominent as the credits for the + other contributing authors. For the avoidance of doubt, You may + only use the credit required by this Section for the purpose of + attribution in the manner set out above and, by exercising Your + rights under this License, You may not implicitly or explicitly + assert or imply any connection with, sponsorship or endorsement + by the Original Author, Licensor and/or Attribution Parties, as + appropriate, of You or Your use of the Work, without the + separate, express prior written permission of the Original + Author, Licensor and/or Attribution Parties. + c. Except as otherwise agreed in writing by the Licensor or as may + be otherwise permitted by applicable law, if You Reproduce, + Distribute or Publicly Perform the Work either by itself or as + part of any Adaptations or Collections, You must not distort, + mutilate, modify or take other derogatory action in relation to + the Work which would be prejudicial to the Original Author's + honor or reputation. Licensor agrees that in those jurisdictions + (e.g. Japan), in which any exercise of the right granted in + Section 3(b) of this License (the right to make Adaptations) + would be deemed to be a distortion, mutilation, modification or + other derogatory action prejudicial to the Original Author's + honor and reputation, the Licensor will waive or not assert, as + appropriate, this Section, to the fullest extent permitted by the + applicable national law, to enable You to reasonably exercise + Your right under Section 3(b) of this License (right to make + Adaptations) but not otherwise. + + 5. Representations, Warranties and Disclaimer + + UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, + LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR + WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, + STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF + TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, + NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, + OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. + SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, + SO SUCH EXCLUSION MAY NOT APPLY TO YOU. + + 6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY + APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY + LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR + EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, + EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + + 7. Termination + + a. This License and the rights granted hereunder will terminate + automatically upon any breach by You of the terms of this + License. Individuals or entities who have received Adaptations or + Collections from You under this License, however, will not have + their licenses terminated provided such individuals or entities + remain in full compliance with those licenses. Sections 1, 2, 5, + 6, 7, and 8 will survive any termination of this License. + b. Subject to the above terms and conditions, the license granted + here is perpetual (for the duration of the applicable copyright + in the Work). Notwithstanding the above, Licensor reserves the + right to release the Work under different license terms or to + stop distributing the Work at any time; provided, however that + any such election will not serve to withdraw this License (or any + other license that has been, or is required to be, granted under + the terms of this License), and this License will continue in + full force and effect unless terminated as stated above. + + 8. Miscellaneous + + a. Each time You Distribute or Publicly Perform the Work or a + Collection, the Licensor offers to the recipient a license to the + Work on the same terms and conditions as the license granted to + You under this License. + b. Each time You Distribute or Publicly Perform an Adaptation, + Licensor offers to the recipient a license to the original Work + on the same terms and conditions as the license granted to You + under this License. + c. If any provision of this License is invalid or unenforceable + under applicable law, it shall not affect the validity or + enforceability of the remainder of the terms of this License, and + without further action by the parties to this agreement, such + provision shall be reformed to the minimum extent necessary to + make such provision valid and enforceable. + d. No term or provision of this License shall be deemed waived and + no breach consented to unless such waiver or consent shall be in + writing and signed by the party to be charged with such waiver or + consent. + e. This License constitutes the entire agreement between the parties + with respect to the Work licensed here. There are no + understandings, agreements or representations with respect to the + Work not specified here. Licensor shall not be bound by any + additional provisions that may appear in any communication from + You. This License may not be modified without the mutual written + agreement of the Licensor and You. + f. The rights granted under, and the subject matter referenced, in + this License were drafted utilizing the terminology of the Berne + Convention for the Protection of Literary and Artistic Works (as + amended on September 28, 1979), the Rome Convention of 1961, the + WIPO Copyright Treaty of 1996, the WIPO Performances and + Phonograms Treaty of 1996 and the Universal Copyright Convention + (as revised on July 24, 1971). These rights and subject matter + take effect in the relevant jurisdiction in which the License + terms are sought to be enforced according to the corresponding + provisions of the implementation of those treaty provisions in + the applicable national law. If the standard suite of rights + granted under applicable copyright law includes additional rights + not granted under this License, such additional rights are deemed + to be included in the License; this License is not intended to + restrict the license of any rights under applicable law. + + Creative Commons Notice + + Creative Commons is not a party to this License, and makes no + warranty whatsoever in connection with the Work. Creative Commons + will not be liable to You or any party on any legal theory for + any damages whatsoever, including without limitation any general, + special, incidental or consequential damages arising in + connection to this license. Notwithstanding the foregoing two (2) + sentences, if Creative Commons has expressly identified itself as + the Licensor hereunder, it shall have all rights and obligations + of Licensor. + + Except for the limited purpose of indicating to the public that + the Work is licensed under the CCPL, Creative Commons does not + authorize the use by either party of the trademark "Creative + Commons" or any related trademark or logo of Creative Commons + without the prior written consent of Creative Commons. Any + permitted use will be in compliance with Creative Commons' + then-current trademark usage guidelines, as may be published on + its website or otherwise made available upon request from time to + time. For the avoidance of doubt, this trademark restriction does + not form part of this License. + + Creative Commons may be contacted at http://creativecommons.org/. + + +GPL-2: + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License V2 + as published by the Free Software Foundation. + + 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. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +On Debian GNU/Linux systems, the complete text of the GNU General Public +License, version 2, can be found in `/usr/share/common-licenses/GPL-2'. + + +GPL-2+: + 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 2 + 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. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + + +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. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +On Debian GNU/Linux systems, the complete text of the GNU General Public +License, version 3, can be found in `/usr/share/common-licenses/GPL-3'. + + +LGPL-2.1+: + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library 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 + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free + Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + MA 02110-1301, USA. + +On Debian GNU/Linux systems, the complete text of the GNU Lesser General +Public License can be found in `/usr/share/common-licenses/LGPL'. + + +MIT: + 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. + + +PSF: + PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 + -------------------------------------------- + + 1. This LICENSE AGREEMENT is between the Python Software Foundation + ("PSF"), and the Individual or Organization ("Licensee") accessing and + otherwise using this software ("Python") in source or binary form and + its associated documentation. + + 2. Subject to the terms and conditions of this License Agreement, PSF hereby + grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, + analyze, test, perform and/or display publicly, prepare derivative works, + distribute, and otherwise use Python alone or in any derivative version, + provided, however, that PSF's License Agreement and PSF's notice of copyright, + i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 + Python Software Foundation; All Rights Reserved" are retained in Python alone or + in any derivative version prepared by Licensee. + + 3. In the event Licensee prepares a derivative work that is based on + or incorporates Python or any part thereof, and wants to make + the derivative work available to others as provided herein, then + Licensee hereby agrees to include in any such work a brief summary of + the changes made to Python. + + 4. PSF is making Python available to Licensee on an "AS IS" + basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR + IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND + DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS + FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT + INFRINGE ANY THIRD PARTY RIGHTS. + + 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON + FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS + A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, + OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. + + 6. This License Agreement will automatically terminate upon a material + breach of its terms and conditions. + + 7. Nothing in this License Agreement shall be deemed to create any + relationship of agency, partnership, or joint venture between PSF and + Licensee. This License Agreement does not grant permission to use PSF + trademarks or trade name in a trademark sense to endorse or promote + products or services of Licensee, or any third party. + + 8. By copying, installing or otherwise using Python, Licensee + agrees to be bound by the terms and conditions of this License + Agreement. --- sabnzbdplus-0.6.8.orig/debian/sabnzbdplus.default +++ sabnzbdplus-0.6.8/debian/sabnzbdplus.default @@ -0,0 +1,24 @@ +# This file is sourced by /etc/init.d/sabnzbdplus +# +# When SABnzbd+ is started using the init script, the +# --daemon option is always used, and the program is +# started under the account of $USER, as set below. +# +# Each setting is marked either "required" or "optional"; +# leaving any required setting unconfigured will cause +# the service to not start. + +# [required] user or uid of account to run the program as: +USER= + +# [optional] full path to the configuration file of your choice; +# otherwise, the default location (in $USER's home +# directory) is used: +CONFIG= + +# [optional] hostname/ip and port number to listen on: +HOST= +PORT= + +# [optional] extra command line options, if any: +EXTRAOPTS= --- sabnzbdplus-0.6.8.orig/debian/sabnzbdplus.init +++ sabnzbdplus-0.6.8/debian/sabnzbdplus.init @@ -0,0 +1,132 @@ +#!/bin/sh +# +# Copyright (C) 2008-2011 by JCF Ploemen +# released under GPL, version 2 or later + +################################################ +# # +# TO CONFIGURE EDIT /etc/default/sabnzbdplus # +# # +################################################ + +### BEGIN INIT INFO +# Provides: sabnzbdplus +# Required-Start: $local_fs $network $remote_fs +# Required-Stop: $local_fs $network $remote_fs +# Should-Start: NetworkManager +# Should-Stop: NetworkManager +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: SABnzbd+ binary newsgrabber +### END INIT INFO + +DAEMON=/usr/bin/sabnzbdplus +SETTINGS=/etc/default/sabnzbdplus + +([ -x $DAEMON ] && [ -r $SETTINGS ]) || exit 0 + +DESC="SABnzbd+ binary newsgrabber" +DEFOPTS="--daemon" +PYTHONEXEC="^$(sed -n '1s/^#\!\([a-z0-9\.\/]\+\)\(.*\)/\1(\2)?/p' $DAEMON)" +PIDFILE=/var/run/sabnzbdplus.pid +SETTINGS_LOADED=FALSE + +# these are only accepted from the settings file +unset USER CONFIG HOST PORT EXTRAOPTS + +. /lib/lsb/init-functions + +check_retval() { + if [ $? -eq 0 ]; then + log_end_msg 0 + return 0 + else + log_end_msg 1 + exit 1 + fi +} + +is_running() { + # returns 0 when running, 1 otherwise + PID="$(pgrep -f -x -u ${USER%:*} "$PYTHONEXEC $DAEMON $DEFOPTS.*")" + RET=$? + [ $RET -gt 1 ] && exit 1 || return $RET +} + +load_settings() { + if [ $SETTINGS_LOADED != "TRUE" ]; then + . $SETTINGS + + [ -z "$USER" ] && { + log_warning_msg "$DESC: not configured, aborting. See $SETTINGS"; + return 1; } + [ -z "${USER%:*}" ] && exit 1 + + OPTIONS="$DEFOPTS" + [ -n "$CONFIG" ] && OPTIONS="$OPTIONS --config-file $CONFIG" + [ -n "$HOST" ] && SERVER="$HOST" || SERVER= + [ -n "$PORT" ] && SERVER="$SERVER:$PORT" + [ -n "$SERVER" ] && OPTIONS="$OPTIONS --server $SERVER" + [ -n "$EXTRAOPTS" ] && OPTIONS="$OPTIONS $EXTRAOPTS" + SETTINGS_LOADED=TRUE + fi + return 0 +} + +start_sab() { + load_settings || exit 0 + if ! is_running; then + log_daemon_msg "Starting $DESC" + start-stop-daemon --quiet --chuid $USER --start --exec $DAEMON -- $OPTIONS + check_retval + # create a pidfile; we don't use it but some monitoring app likes to have one + [ -w $(dirname $PIDFILE) ] && \ + pgrep -f -x -n -u ${USER%:*} "$PYTHONEXEC $DAEMON $OPTIONS" > $PIDFILE + else + log_success_msg "$DESC: already running (pid $PID)" + fi +} + +stop_sab() { + load_settings || exit 0 + if is_running; then + TMPFILE="$(mktemp --tmpdir sabnzbdplus.XXXXXXXXXX)" + [ $? -eq 0 ] || exit 1 + trap '[ -f "$TMPFILE" ] && rm -f "$TMPFILE"' EXIT + echo "$PID" > "$TMPFILE" + log_daemon_msg "Stopping $DESC" + start-stop-daemon --stop --user ${USER%:*} --pidfile "$TMPFILE" --retry 30 + check_retval + else + log_success_msg "$DESC: not running" + fi + [ -f $PIDFILE ] && rm -f $PIDFILE +} + +case "$1" in + start) + start_sab + ;; + stop) + stop_sab + ;; + force-reload|restart) + stop_sab + start_sab + ;; + status) + load_settings || exit 4 + if is_running; then + log_success_msg "$DESC: running (pid $PID)" + else + log_success_msg "$DESC: not running" + [ -f $PIDFILE ] && exit 1 || exit 3 + fi + ;; + *) + log_failure_msg "Usage: $0 {start|stop|restart|force-reload|status}" + exit 3 + ;; +esac + +exit 0 --- sabnzbdplus-0.6.8.orig/debian/sabnzbdplus.menu +++ sabnzbdplus-0.6.8/debian/sabnzbdplus.menu @@ -0,0 +1,5 @@ +?package(sabnzbdplus):needs="X11" \ + section="Applications/Network/File Transfer" \ + title="SABnzbd+" \ + command="/usr/bin/sabnzbdplus --browser 1" \ + icon="/usr/share/pixmaps/sabnzbdplus.xpm" --- sabnzbdplus-0.6.8.orig/debian/sabnzbdplus-theme-mobile.install +++ sabnzbdplus-0.6.8/debian/sabnzbdplus-theme-mobile.install @@ -0,0 +1 @@ +interfaces/Mobile/templates /usr/share/sabnzbdplus/interfaces/Mobile/ --- sabnzbdplus-0.6.8.orig/debian/sabnzbdplus-theme-smpl.links +++ sabnzbdplus-0.6.8/debian/sabnzbdplus-theme-smpl.links @@ -0,0 +1,2 @@ +/usr/share/javascript/mochikit/MochiKit.js /usr/share/sabnzbdplus/interfaces/smpl/templates/static/MochiKit/MochiKit.js +/usr/share/javascript/excanvas/excanvas.js /usr/share/sabnzbdplus/interfaces/smpl/templates/static/excanvas/excanvas.js --- sabnzbdplus-0.6.8.orig/debian/sabnzbdplus.desktop +++ sabnzbdplus-0.6.8/debian/sabnzbdplus.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=SABnzbd+ +GenericName=Binary newsgrabber +Comment=Download from usenet +Exec=sabnzbdplus --browser 1 +Icon=sabnzbdplus +Terminal=false +Type=Application +Categories=Network;FileTransfer; --- sabnzbdplus-0.6.8.orig/debian/sabnzbdplus.1 +++ sabnzbdplus-0.6.8/debian/sabnzbdplus.1 @@ -0,0 +1,96 @@ +.\" Copyright (C) 2007-2010 by JCF Ploemen . +.\" +.\" 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 2 +.\" 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. +.\" +.\" You should have received a copy of the GNU General Public License +.\" along with this program; if not, write to the Free Software +.\" Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +.TH SABNZBDPLUS 1 "June 2011" "Version 0.6.3" + +.SH NAME +sabnzbdplus \- a web\-based binary newsgrabber with nzb support. + +.SH SYNOPSIS +.B +sabnzbdplus [\-f ] [[...other options]] + +.SH DESCRIPTION +SABnzbd+ is a web\-based binary newsgrabber written in Python, with support for the popular nzb file format. It takes one or more nzb files as input and from there on does all the work, including fetching files, checking file integrity, and unpacking. Configuration can be done via the web interface or in the configuration file. + +Multiple servers are supported, as well as secure (ssl) connections, ipv6, scheduling, pausing and resuming downloads, queue manipulation, rss feeds, newzbin and nzbmatrix integration, automatic sorting, a download history, email notifications, and custom post\-processing scripts. An extensive API allows third party applications to interact with the program. + +.SH USAGE +To run the program execute \fBsabnzbdplus\fR, then point your favorite web browser to \fBhttp://:\fR. The host and port settings default to localhost and 8080, respectively; the default port for https connections is 9090. + +New nzb files may be queued for download by putting them in the watched directory, adding them via the web interface, or from rss feeds. + +.SH OPTIONS +.IP "\-h \-\-help" +Show a list of options +.IP "\-f \-\-config\-file " +Location of the configuration file +.IP "\-s \-\-server " +Hostname or ip address and port to listen on +.IP "\-t \-\-templates