debian/0000755000000000000000000000000012231322510007155 5ustar debian/prerm0000644000000000000000000000042411720167215010240 0ustar #!/bin/sh # prerm script for fookebox set -e case "$1" in remove) # remove cache rm -f /var/cache/fookebox/templates/* ;; upgrade|deconfigure) ;; failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/install0000644000000000000000000000015512231303407010553 0ustar debian/conf/* /etc/fookebox/ fookebox/i18n/* usr/share/locale/ debian/create-database.py usr/share/fookebox/ debian/rules0000755000000000000000000000101011561455500010240 0ustar #!/usr/bin/make -f %: dh $@ --with python2 override_dh_auto_install: dh_auto_install -- --install-lib=/usr/share/fookebox rm -rf debian/fookebox/usr/share/fookebox/fookebox/i18n override_dh_install: dh_install rm debian/fookebox/usr/share/locale/fookebox.pot rm debian/fookebox/usr/share/locale/de/LC_MESSAGES/fookebox.po override_dh_fixperms: dh_fixperms chmod g+w debian/fookebox/var/cache/fookebox/templates chmod g+w debian/fookebox/var/lib/fookebox chmod 0640 debian/fookebox/etc/fookebox/config.ini debian/compat0000644000000000000000000000000211422105412010354 0ustar 7 debian/README.Debian0000644000000000000000000000056512231322413011226 0ustar fookebox for Debian ------------------- By default, fookebox is served through apache's mod_wsgi. If you would like to use fookebox with FastCGI and flup instead, you can modify the symbolic link /etc/apache2/conf.d/fookebox to point to /etc/fookebox/apache-fcgi.conf instead of /etc/fookebox/apache.conf. -- Stefan Ott Tue, 17 Apr 2012 05:01:43 +0200 debian/copyright0000644000000000000000000005221311557234003011124 0ustar This package was debianized by Stefan Ott on Sat, 30 Apr 2011 04:11:33 +0200. It was downloaded from http://fookebox.googlecode.com/ Upstream Author: Stefan Ott Copyright (C) 2007-2011 Stefan Ott You are free to distribute this software under the terms of the GNU General Public License. On Debian systems, the complete text of the GNU General Public License can be found in the file `/usr/share/common-licenses/GPL'. The Debian packaging is Copyright (C) 2010, Stefan Ott and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. The included icons are Copyright (C) Mark James, released under the terms of the Creative Commons Attribution 3.0 License: 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. License summary You are free: to copy, distribute and transmit the work to adapt the work Under the following conditions: You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work). The full license text says: 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 "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. "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. "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. "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License. "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. "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. "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. "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. "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: to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections; 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."; to Distribute and Publicly Perform the Work including as incorporated in Collections; and, to Distribute and Publicly Perform Adaptations. For the avoidance of doubt: 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; 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, 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: 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. 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. 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 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. 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 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. 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. 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. 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. 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. 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/. The Prototype JavaScript framework is Copyright (C) 2005-2010 Sam Stephenson, released under the terms of an MIT-style license. The full license text says: Copyright (c) 2005-2010 Sam Stephenson 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 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. The script.aculo.us JavaScript library is Copyright (c) 2005-2010 Thomas Fuchs, released under the terms of an MIT-style license. The full license text says: Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) 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. debian/postrm0000644000000000000000000000027311720167215010441 0ustar #!/bin/sh # postrm script for fookebox set -e # Remove database if package is being purged if [ "$1" = "purge" ] ; then rm -f /var/lib/fookebox/fookebox.sqlite fi #DEBHELPER# exit 0 debian/dirs0000644000000000000000000000010411422105412010035 0ustar /var/cache/fookebox /var/cache/fookebox/templates /var/lib/fookebox debian/control0000644000000000000000000000163312231322444010571 0ustar Source: fookebox Section: web Priority: optional Maintainer: Stefan Ott Uploaders: Python Applications Packaging Team Build-Depends: debhelper (>= 7.0.50), python, python-setuptools, python-pastescript Standards-Version: 3.9.4 Homepage: http://fookebox.googlecode.com/ Vcs-Svn: svn://anonscm.debian.org/python-apps/packages/fookebox/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-apps/packages/fookebox/trunk/ X-Python-Version: >= 2.6 Package: fookebox Architecture: all Depends: ${misc:Depends}, ${python:Depends}, libjs-prototype, libjs-scriptaculous, python-pylons, python-mpd, python-sqlalchemy Recommends: mpd, libapache2-mod-wsgi | httpd-wsgi Description: web-based jukebox frontend to mpd fookebox is a jukebox-style web-frontend to mpd. It can serve as a keyboard-less jukebox or as a generic mpd frontend, depending on your preferences. debian/conf/0000755000000000000000000000000011770435631010122 5ustar debian/conf/fookebox.fcgi0000755000000000000000000000051611744527510012574 0ustar #!/usr/bin/python # # requires the python flup module BASE_PATH = '/usr/share/fookebox' APP_CONFIG = '/etc/fookebox/config.ini' import sys if BASE_PATH not in sys.path: sys.path.append(BASE_PATH) from paste.deploy import loadapp app = loadapp('config:' + APP_CONFIG) from flup.server.fcgi import WSGIServer WSGIServer(app).run() debian/conf/apache-fcgi.conf0000644000000000000000000000047311744527510013123 0ustar Alias /fookebox /etc/fookebox/fookebox.fcgi RedirectMatch ^/fookebox$ /fookebox/ Options +ExecCGI Order deny,allow Allow from all Order deny,allow Deny from all Allow from localhost debian/conf/apache.conf0000644000000000000000000000052612231303407012201 0ustar WSGIScriptAlias /fookebox /etc/fookebox/fookebox.wsgi WSGIDaemonProcess fookebox WSGIProcessGroup fookebox Order deny,allow Allow from all Require all granted Order deny,allow Deny from all Allow from localhost debian/conf/fookebox.wsgi0000644000000000000000000000034111744527510012626 0ustar BASE_PATH = '/usr/share/fookebox' APP_CONFIG = '/etc/fookebox/config.ini' import sys if BASE_PATH not in sys.path: sys.path.append(BASE_PATH) from paste.deploy import loadapp application = loadapp('config:' + APP_CONFIG) debian/conf/config.ini0000644000000000000000000000463711557053142012076 0ustar # # fookebox - Pylons configuration # # The %(here)s variable will be replaced with the parent directory of this file # [DEFAULT] debug = false # Uncomment and replace with the address which should receive any error reports #email_to = you@yourdomain.com smtp_server = localhost error_email_from = paste@localhost [server:main] use = egg:Paste#http host = 0.0.0.0 port = 5000 [app:main] use = egg:fookebox #lang = de full_stack = true static_files = true cache_dir = /var/cache/fookebox sqlalchemy.url = sqlite:////var/lib/fookebox/fookebox.sqlite beaker.session.key = fookebox beaker.session.secret = somesecret #site_name = fookebox #mpd_host = localhost #mpd_port = 6600 #mpd_pass = password # NOTE: See the README for details on this #max_queue_length = 4 # automatically queue a random song when the playlist gets empty #auto_queue = true # do auto-queuing before the playlist is empty [seconds] (0 to disable) #auto_queue_time_left = 1 # if you want the 'random' song to come from a pre-defined (mpd) playlist # you can set the playlist's name here #auto_queue_playlist = idle # pick a random song from the idle playlist (see README) #auto_queue_random = false # show the full-text search tab #show_search_tab = true # enable mpd controls #enable_controls = true # allow users to remove songs from the queue #enable_song_removal = true # allow users to queue a full album with one click #enable_queue_album = true # be anal about artist/album names (see README) #find_over_search = false # show cover art if available? #show_cover_art = true # directory that contains your music #music_base_path = /var/lib/mpd/ # directory with cover art #album_cover_path = /home/stefan/.cache/rhythmbox/covers/ # what to use as artist name when looking for compilations' cover art? #compliations_name = Various Artists # hide the credits in the fookebox main screen #hide_credits = false # Logging configuration [loggers] keys = root, routes, fookebox [handlers] keys = console [formatters] keys = generic [logger_root] level = INFO handlers = console [logger_routes] level = INFO handlers = qualname = routes.middleware # "level = DEBUG" logs the route matched and routing variables. [logger_fookebox] level = INFO handlers = qualname = fookebox [handler_console] class = StreamHandler args = (sys.stderr,) level = NOTSET formatter = generic [formatter_generic] format = %(asctime)s %(levelname)-5.5s [%(name)s] [%(threadName)s] %(message)s debian/links0000644000000000000000000000016412231303407010225 0ustar etc/fookebox/apache.conf etc/apache2/conf-available/fookebox.conf usr/share/locale usr/share/fookebox/fookebox/i18n debian/watch0000644000000000000000000000012611453126240010214 0ustar version=3 http://code.google.com/p/fookebox/downloads/list .*/fookebox-(.*)\.tar\.gz debian/patches/0000755000000000000000000000000011773052311010615 5ustar debian/patches/series0000644000000000000000000000006111557053143012033 0ustar 01_javascript-urls.patch 02_no-pastescript.patch debian/patches/02_no-pastescript.patch0000644000000000000000000000155311773052311015116 0ustar Description: Don't use PasteScript during the build process This patch removes PasteScript from the setup script. Otherwise, additional files would be added to the package during dh_auto_clean leading to an implicit patch and preventing multiple subsequent builds. Author: Stefan Ott Last-Update: 2012-06-28 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ 'python-mpd', ], keywords='mpd jukebox web music party', - setup_requires=["PasteScript>=1.6.3"], + setup_requires=[], packages=find_packages(exclude=['ez_setup']), include_package_data=True, test_suite='nose.collector', @@ -32,7 +32,6 @@ ('templates/**.tpl', 'mako', {'input_encoding': 'utf-8'}), ('public/**', 'ignore', None)]}, zip_safe=False, - paster_plugins=['PasteScript', 'Pylons'], entry_points=""" [paste.app_factory] main = fookebox.config.middleware:make_app debian/patches/01_javascript-urls.patch0000644000000000000000000000324711773052311015275 0ustar Description: Use Debian's javascript libraries This patch modifies fookebox to use Debian's copies of the scriptaculous and prototype javascript libraries instead of the ones shipped with fookebox. Author: Stefan Ott Last-Update: 2012-06-28 --- a/fookebox/templates/base.tpl +++ b/fookebox/templates/base.tpl @@ -11,8 +11,8 @@ % if mobile: % endif - - + + % if config.get('lang'): % endif --- a/MANIFEST.in +++ b/MANIFEST.in @@ -5,3 +5,6 @@ recursive-include fookebox/public * recursive-include fookebox/templates * exclude *ini +exclude fookebox/public/js/prototype/prototype.js +exclude fookebox/public/js/scriptaculous/effects.js +exclude fookebox/public/js/scriptaculous/scriptaculous.js --- a/fookebox.egg-info/SOURCES.txt +++ b/fookebox.egg-info/SOURCES.txt @@ -81,9 +81,6 @@ fookebox/public/js/fookebox/schedule.js fookebox/public/js/fookebox/i18n/de.js fookebox/public/js/fookebox/i18n/i18n.js -fookebox/public/js/prototype/prototype.js -fookebox/public/js/scriptaculous/effects.js -fookebox/public/js/scriptaculous/scriptaculous.js fookebox/templates/base.tpl fookebox/templates/browse-menu.tpl fookebox/templates/client.tpl debian/source/0000755000000000000000000000000011770435631010475 5ustar debian/source/format0000644000000000000000000000001411422105412011664 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000275512231303407011044 0ustar fookebox (0.6.1-2) unstable; urgency=low [ Jakub Wilk ] * Use canonical URIs for Vcs-* fields. * Fix a typo in README.Debian. [ Stefan Ott ] * debian/control: Bump Standards-Version to 3.9.4 * debian/links: Install config into apache's conf-available closes: #669746 * debian/conf/apache.conf: Fix permissions for /fookebox * Move create-database.py script to /usr/share/fookebox closes: #711176 -- Stefan Ott Sat, 19 Oct 2013 03:45:19 +0200 fookebox (0.6.1-1) unstable; urgency=low * New upstream release: - Uses mpd's new volume control command closes: #667837 - Ships with example config for FastCGI/flup closes: #667838 * debian/control: - Bumped Standards-Version to 3.9.3 - Removed python-simplejson from dependencies - X-Python-Version: >= 2.6 - Recommend libapache2-mod-wsgi | httpd-wsgi instead of depending on them * Updated config files in debian/conf to the latest versions from upstream * Removed mechanisms for upgrading from package versions prior to 0.5.0 (which were never officially packaged for Debian) from the maintainer scripts. closes: #659754 * Updated 01_javascript-urls.patch to also affect SOURCES.txt closes: #671314 * Updated description in 02_no-pastescript.patch -- Stefan Ott Thu, 28 Jun 2012 03:26:45 +0200 fookebox (0.6.0-1) unstable; urgency=low * Initial official debian package closes: #510425 -- Stefan Ott Sun, 01 May 2011 01:04:36 +0200 debian/docs0000644000000000000000000000002011422105412010021 0ustar docs/config.txt debian/fookebox.lintian-overrides0000644000000000000000000000064311561455500014367 0ustar # config.ini may contain the mpd password fookebox binary: non-standard-file-perm etc/fookebox/config.ini 0640 != 0644 # the directory for rendered templates must be writable by the www-data group fookebox binary: non-standard-dir-perm var/cache/fookebox/templates/ 0775 != 0755 # the www-data group also makes changes to the schedule database file fookebox binary: non-standard-dir-perm var/lib/fookebox/ 0775 != 0755 debian/postinst0000644000000000000000000000126712231303407010775 0ustar #!/bin/sh # postinst script for fookebox set -e case "$1" in configure) # only on new installations if [ "$2" = "" ] ; then # Create database python /usr/share/fookebox/create-database.py chgrp www-data /var/lib/fookebox/fookebox.sqlite chmod 0660 /var/lib/fookebox/fookebox.sqlite # Set permissions chgrp -R www-data /var/cache/fookebox chgrp www-data /var/lib/fookebox chgrp www-data /etc/fookebox/apache.conf chgrp www-data /etc/fookebox/fookebox.wsgi chgrp www-data /etc/fookebox/config.ini fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/create-database.py0000644000000000000000000000062611422105412012541 0ustar #!/usr/bin/env python from sqlalchemy import * engine = create_engine('sqlite:////var/lib/fookebox/fookebox.sqlite') metadata = MetaData() events = Table('Events', metadata, Column('id', Integer, primary_key=True), Column('index', Integer), Column('type', Integer, nullable=False), Column('name', String(100), nullable=False), Column('time', Time, nullable=False)) metadata.create_all(engine)