[Python-apps-commits] r5908 - in packages (29 files)

cockroach-guest at users.alioth.debian.org cockroach-guest at users.alioth.debian.org
Thu Jul 22 13:42:24 UTC 2010


    Date: Thursday, July 22, 2010 @ 13:42:22
  Author: cockroach-guest
Revision: 5908

Imported fookebox packaging files

Added:
  packages/fookebox/
  packages/fookebox/tags/
  packages/fookebox/trunk/
  packages/fookebox/trunk/debian/
  packages/fookebox/trunk/debian/changelog
  packages/fookebox/trunk/debian/compat
  packages/fookebox/trunk/debian/conf/
  packages/fookebox/trunk/debian/conf/apache.conf
  packages/fookebox/trunk/debian/conf/config.ini
  packages/fookebox/trunk/debian/conf/fookebox.wsgi
  packages/fookebox/trunk/debian/control
  packages/fookebox/trunk/debian/copyright
  packages/fookebox/trunk/debian/create-database.py
  packages/fookebox/trunk/debian/dirs
  packages/fookebox/trunk/debian/docs
  packages/fookebox/trunk/debian/examples
  packages/fookebox/trunk/debian/install
  packages/fookebox/trunk/debian/links
  packages/fookebox/trunk/debian/patches/
  packages/fookebox/trunk/debian/patches/01_javascript-urls.patch
  packages/fookebox/trunk/debian/patches/series
  packages/fookebox/trunk/debian/postinst
  packages/fookebox/trunk/debian/postrm
  packages/fookebox/trunk/debian/preinst
  packages/fookebox/trunk/debian/prerm
  packages/fookebox/trunk/debian/rules
  packages/fookebox/trunk/debian/source/
  packages/fookebox/trunk/debian/source/format
  packages/fookebox/trunk/debian/watch


Property changes on: packages/fookebox/trunk/debian
___________________________________________________________________
Added: mergeWithUpstream
   + 1

Added: packages/fookebox/trunk/debian/changelog
===================================================================
--- packages/fookebox/trunk/debian/changelog	                        (rev 0)
+++ packages/fookebox/trunk/debian/changelog	2010-07-22 13:42:22 UTC (rev 5908)
@@ -0,0 +1,5 @@
+fookebox (0.5.1-1) unstable; urgency=low
+
+  * Initial official debian package				closes: #510425
+
+ -- Stefan Ott <stefan at ott.net>  Wed, 07 Jul 2010 04:17:18 +0200

Added: packages/fookebox/trunk/debian/compat
===================================================================
--- packages/fookebox/trunk/debian/compat	                        (rev 0)
+++ packages/fookebox/trunk/debian/compat	2010-07-22 13:42:22 UTC (rev 5908)
@@ -0,0 +1 @@
+7

Added: packages/fookebox/trunk/debian/conf/apache.conf
===================================================================
--- packages/fookebox/trunk/debian/conf/apache.conf	                        (rev 0)
+++ packages/fookebox/trunk/debian/conf/apache.conf	2010-07-22 13:42:22 UTC (rev 5908)
@@ -0,0 +1,6 @@
+WSGIScriptAlias /fookebox /etc/fookebox/fookebox.wsgi
+
+<Location /fookebox>
+	Order deny,allow
+	Allow from all
+</Location>

Added: packages/fookebox/trunk/debian/conf/config.ini
===================================================================
--- packages/fookebox/trunk/debian/conf/config.ini	                        (rev 0)
+++ packages/fookebox/trunk/debian/conf/config.ini	2010-07-22 13:42:22 UTC (rev 5908)
@@ -0,0 +1,108 @@
+#
+# fookebox - Pylons development environment 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 at yourdomain.com
+smtp_server = localhost
+error_email_from = paste at localhost
+
+[server:main]
+use = egg:Paste#http
+host = 127.0.0.1
+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
+
+# 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
+
+# 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,%(msecs)03d %(levelname)-5.5s [%(name)s] [%(threadName)s] %(message)s
+datefmt = %H:%M:%S
+
+[fookebox]
+site_name = fookebox

Added: packages/fookebox/trunk/debian/conf/fookebox.wsgi
===================================================================
--- packages/fookebox/trunk/debian/conf/fookebox.wsgi	                        (rev 0)
+++ packages/fookebox/trunk/debian/conf/fookebox.wsgi	2010-07-22 13:42:22 UTC (rev 5908)
@@ -0,0 +1,7 @@
+APP_CONFIG = '/etc/fookebox/config.ini'
+
+import sys
+sys.path.append('/usr/share/fookebox')
+
+from paste.deploy import loadapp
+application = loadapp('config:' + APP_CONFIG)

Added: packages/fookebox/trunk/debian/control
===================================================================
--- packages/fookebox/trunk/debian/control	                        (rev 0)
+++ packages/fookebox/trunk/debian/control	2010-07-22 13:42:22 UTC (rev 5908)
@@ -0,0 +1,17 @@
+Source: fookebox
+Section: web
+Priority: optional
+Maintainer: Stefan Ott <stefan at ott.net>
+Build-Depends: debhelper (>= 7.0.50), python, python-support, python-setuptools, python-pastescript
+Standards-Version: 3.9.0
+Homepage: http://fookebox.googlecode.com/
+
+Package: fookebox
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}, libjs-prototype, libjs-scriptaculous, python-pylons, python-mpd, libapache2-mod-wsgi | httpd-wsgi
+Recommends: mpd
+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.
+XB-Python-Version: ${python:Versions}

Added: packages/fookebox/trunk/debian/copyright
===================================================================
--- packages/fookebox/trunk/debian/copyright	                        (rev 0)
+++ packages/fookebox/trunk/debian/copyright	2010-07-22 13:42:22 UTC (rev 5908)
@@ -0,0 +1,26 @@
+This package was debianized by Stefan Ott <stefan at ott.net> on
+Thu, 01 Jul 2010 05:03:33 +0200.
+
+It was downloaded from http://fookebox.googlecode.com/
+
+Upstream Author: Stefan Ott <stefan at ott.net>
+
+Copyright (C) 2007-2010 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 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.
+
+
+The Debian packaging is Copyright (C) 2010, Stefan Ott <stefan at ott.net> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.

Added: packages/fookebox/trunk/debian/create-database.py
===================================================================
--- packages/fookebox/trunk/debian/create-database.py	                        (rev 0)
+++ packages/fookebox/trunk/debian/create-database.py	2010-07-22 13:42:22 UTC (rev 5908)
@@ -0,0 +1,14 @@
+#!/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)

Added: packages/fookebox/trunk/debian/dirs
===================================================================
--- packages/fookebox/trunk/debian/dirs	                        (rev 0)
+++ packages/fookebox/trunk/debian/dirs	2010-07-22 13:42:22 UTC (rev 5908)
@@ -0,0 +1,3 @@
+/var/cache/fookebox
+/var/cache/fookebox/templates
+/var/lib/fookebox

Added: packages/fookebox/trunk/debian/docs
===================================================================
--- packages/fookebox/trunk/debian/docs	                        (rev 0)
+++ packages/fookebox/trunk/debian/docs	2010-07-22 13:42:22 UTC (rev 5908)
@@ -0,0 +1 @@
+docs/config.txt

Added: packages/fookebox/trunk/debian/examples
===================================================================
--- packages/fookebox/trunk/debian/examples	                        (rev 0)
+++ packages/fookebox/trunk/debian/examples	2010-07-22 13:42:22 UTC (rev 5908)
@@ -0,0 +1 @@
+debian/create-database.py

Added: packages/fookebox/trunk/debian/install
===================================================================
--- packages/fookebox/trunk/debian/install	                        (rev 0)
+++ packages/fookebox/trunk/debian/install	2010-07-22 13:42:22 UTC (rev 5908)
@@ -0,0 +1,2 @@
+debian/conf/* /etc/fookebox/
+fookebox/i18n/* usr/share/locale/

Added: packages/fookebox/trunk/debian/links
===================================================================
--- packages/fookebox/trunk/debian/links	                        (rev 0)
+++ packages/fookebox/trunk/debian/links	2010-07-22 13:42:22 UTC (rev 5908)
@@ -0,0 +1,2 @@
+etc/fookebox/apache.conf etc/apache2/conf.d/fookebox
+usr/share/locale usr/share/fookebox/fookebox/i18n

Added: packages/fookebox/trunk/debian/patches/01_javascript-urls.patch
===================================================================
--- packages/fookebox/trunk/debian/patches/01_javascript-urls.patch	                        (rev 0)
+++ packages/fookebox/trunk/debian/patches/01_javascript-urls.patch	2010-07-22 13:42:22 UTC (rev 5908)
@@ -0,0 +1,25 @@
+Use debian's scriptaculous/prototype instead of the ones shipped with fookebox
+diff -Naur fookebox-0.5.0.orig/fookebox/templates/base.tpl fookebox-0.5.0/fookebox/templates/base.tpl
+--- fookebox-0.5.0.orig/fookebox/templates/base.tpl	2010-06-22 05:32:46.034450886 +0200
++++ fookebox-0.5.0/fookebox/templates/base.tpl	2010-06-22 05:34:15.237455463 +0200
+@@ -6,8 +6,8 @@
+ 		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ 		<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
+ 		<script type="text/javascript" src="js/fookebox.js"></script>
+-		<script type="text/javascript" src="js/prototype.js"></script>
+-		<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
++		<script type="text/javascript" src="/javascript/prototype/prototype.js"></script>
++		<script type="text/javascript" src="/javascript/scriptaculous/scriptaculous.js?load=effects"></script>
+ 	</head>
+ 	<body id="body">
+ 		${next.body()}
+diff -Naur fookebox-0.5.0.orig/MANIFEST.in fookebox-0.5.0/MANIFEST.in
+--- fookebox-0.5.0.orig/MANIFEST.in	2010-06-22 06:21:43.663510631 +0200
++++ fookebox-0.5.0/MANIFEST.in	2010-06-22 06:21:30.347701049 +0200
+@@ -2,3 +2,6 @@
+ recursive-include fookebox/public *
+ recursive-include fookebox/templates *
+ exclude *ini
++exclude fookebox/public/js/effects.js
++exclude fookebox/public/js/prototype.js
++exclude fookebox/public/js/scriptaculous.js

Added: packages/fookebox/trunk/debian/patches/series
===================================================================
--- packages/fookebox/trunk/debian/patches/series	                        (rev 0)
+++ packages/fookebox/trunk/debian/patches/series	2010-07-22 13:42:22 UTC (rev 5908)
@@ -0,0 +1 @@
+01_javascript-urls.patch

Added: packages/fookebox/trunk/debian/postinst
===================================================================
--- packages/fookebox/trunk/debian/postinst	                        (rev 0)
+++ packages/fookebox/trunk/debian/postinst	2010-07-22 13:42:22 UTC (rev 5908)
@@ -0,0 +1,48 @@
+#!/bin/sh
+# postinst script for fookebox
+
+set -e
+
+case "$1" in
+	configure)
+		# only on new installations and upgrades from pre-0.5.0:
+		if [ "$2" = "" ] || \
+			dpkg --compare-versions "$2" lt-nl "0.5.0-1" ; then
+			chown -R :www-data /var/cache/fookebox
+			chmod -R 0770 /var/cache/fookebox
+
+			chown :www-data /var/lib/fookebox
+			chmod 0770 /var/lib/fookebox
+
+			chown :www-data /etc/fookebox/apache.conf
+			chown :www-data /etc/fookebox/fookebox.wsgi
+			chown :www-data /etc/fookebox/config.ini
+			chmod 0640 /etc/fookebox/config.ini
+
+			# Create database
+			python /usr/share/doc/fookebox/examples/create-database.py
+			chown :www-data /var/lib/fookebox/fookebox.sqlite
+			chmod 0640 /var/lib/fookebox/fookebox.sqlite
+		fi
+	;;
+
+	abort-upgrade|abort-remove|abort-deconfigure)
+	;;
+
+	*)
+		echo "postinst called with unknown argument \`$1'" >&2
+		exit 1
+	;;
+esac
+
+# handle updates from older package versions
+if dpkg-maintscript-helper supports rm_conffile ; then
+	dpkg-maintscript-helper rm_conffile \
+		/etc/fookebox/site.conf.php 0.4.99-1 -- "$@"
+	dpkg-maintscript-helper rm_conffile \
+		/etc/fookebox/status.conf.php 0.4.99-1 -- "$@"
+fi
+
+#DEBHELPER#
+
+exit 0

Added: packages/fookebox/trunk/debian/postrm
===================================================================
--- packages/fookebox/trunk/debian/postrm	                        (rev 0)
+++ packages/fookebox/trunk/debian/postrm	2010-07-22 13:42:22 UTC (rev 5908)
@@ -0,0 +1,21 @@
+#!/bin/sh
+# postrm script for fookebox
+
+set -e
+
+# handle updates from older package versions
+if dpkg-maintscript-helper supports rm_conffile ; then
+	dpkg-maintscript-helper rm_conffile \
+		/etc/fookebox/site.conf.php 0.4.99-1 -- "$@"
+	dpkg-maintscript-helper rm_conffile \
+		/etc/fookebox/status.conf.php 0.4.99-1 -- "$@"
+fi
+
+# Remove database if package is being purged
+if [ "$1" = "purge" ] ; then
+	rm -f /var/lib/fookebox/fookebox.sqlite
+fi
+
+#DEBHELPER#
+
+exit 0

Added: packages/fookebox/trunk/debian/preinst
===================================================================
--- packages/fookebox/trunk/debian/preinst	                        (rev 0)
+++ packages/fookebox/trunk/debian/preinst	2010-07-22 13:42:22 UTC (rev 5908)
@@ -0,0 +1,24 @@
+#!/bin/sh
+# preinst script for fookebox
+
+set -e
+
+case "$1" in
+	install|upgrade)
+		if dpkg --compare-versions "$2" lt-nl "0.5.0-1" ; then
+			rm -f /var/cache/fookebox/*tpl.php
+		fi
+	;;
+esac
+
+# handle updates from older package versions
+if dpkg-maintscript-helper supports rm_conffile ; then
+	dpkg-maintscript-helper rm_conffile \
+		/etc/fookebox/site.conf.php 0.4.99-1 -- "$@"
+	dpkg-maintscript-helper rm_conffile \
+		/etc/fookebox/status.conf.php 0.4.99-1 -- "$@"
+fi
+
+#DEBHELPER#
+
+exit 0

Added: packages/fookebox/trunk/debian/prerm
===================================================================
--- packages/fookebox/trunk/debian/prerm	                        (rev 0)
+++ packages/fookebox/trunk/debian/prerm	2010-07-22 13:42:22 UTC (rev 5908)
@@ -0,0 +1,33 @@
+#!/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
+
+# handle updates from older package versions
+if dpkg-maintscript-helper supports rm_conffile ; then
+	dpkg-maintscript-helper rm_conffile \
+		/etc/fookebox/site.conf.php 0.4.99-1 -- "$@"
+	dpkg-maintscript-helper rm_conffile \
+		/etc/fookebox/status.conf.php 0.4.99-1 -- "$@"
+fi
+
+#DEBHELPER#
+
+exit 0

Added: packages/fookebox/trunk/debian/rules
===================================================================
--- packages/fookebox/trunk/debian/rules	                        (rev 0)
+++ packages/fookebox/trunk/debian/rules	2010-07-22 13:42:22 UTC (rev 5908)
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+%:
+	dh $@
+
+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


Property changes on: packages/fookebox/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: packages/fookebox/trunk/debian/source/format
===================================================================
--- packages/fookebox/trunk/debian/source/format	                        (rev 0)
+++ packages/fookebox/trunk/debian/source/format	2010-07-22 13:42:22 UTC (rev 5908)
@@ -0,0 +1 @@
+3.0 (quilt)

Added: packages/fookebox/trunk/debian/watch
===================================================================
--- packages/fookebox/trunk/debian/watch	                        (rev 0)
+++ packages/fookebox/trunk/debian/watch	2010-07-22 13:42:22 UTC (rev 5908)
@@ -0,0 +1,4 @@
+version=3
+
+opts=downloadurlmangle=s#.*(fookebox-([\d.]+)\.tar\.gz).*#http://fookebox.googlecode.com/files/$1#,filenamemangle=s#.*(fookebox-([\d.]+)\.tar\.gz).*#$1# \
+    http://code.google.com/p/fookebox/downloads/list ^.*detail\?name=fookebox-([\d.]+)\.tar\.gz.*




More information about the Python-apps-commits mailing list