debian/0000755000000000000000000000000012234633274007174 5ustar debian/cardstories.dirs0000644000000000000000000000021411626303142012366 0ustar /etc/default /etc/cardstories/plugins /var/lib/cardstories /var/lib/cardstories/plugins /var/log/cardstories /usr/share/cardstories/plugins debian/cardstories.postinst0000644000000000000000000000462511626303142013322 0ustar #!/bin/sh -e # # Copyright (C) 2011 Dachary # # This software's license gives you freedom; you can copy, convey, # propagate, redistribute and/or modify this program under the terms of # the GNU Affero General Public License (AGPL) as published by the Free # Software Foundation (FSF), either version 3 of the License, or (at your # option) any later version of the AGPL published by the FSF. # # 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 Affero # General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program in a file in the toplevel directory called # "AGPLv3". If not, see . # nginx_install() { included=/usr/share/cardstories/conf/nginx.conf conf=/etc/nginx/sites-available/default if [ -f $conf ] && ! grep $included $conf > /dev/null ; then perl -pi -e "print \"\tinclude $included;\n\" if(m:location / {:)" $conf fi } apache2_install() { included=/usr/share/cardstories/conf/apache2.conf conf=/etc/apache2/conf.d/cardstories.conf if [ ! -e $conf ] ; then ln -s $included $conf fi a2enmod proxy proxy_http } . /usr/share/debconf/confmodule if ! id -u cardstories >/dev/null 2>&1; then adduser --quiet --system --no-create-home --home /var/run/cardstories cardstories fi for d in /var/run/cardstories /var/log/cardstories /var/lib/cardstories /etc/cardstories; do mkdir -p $d chown -R cardstories:nogroup $d chmod 755 $d done if [ "$1" = "configure" ]; then db_version 2.0 db_get cardstories/reconfigure-webserver webservers="$RET" for webserver in $webservers; do webserver=${webserver%,} if [ "$webserver" = "nginx" ] ; then nginx_install elif [ "$webserver" = "apache2" ] ; then apache2_install fi # Redirection of 3 is needed because Debconf uses it and it might # be inherited by webserver. See bug #446324. if [ -f /etc/init.d/$webserver ] ; then if [ -x /usr/sbin/invoke-rc.d ]; then invoke-rc.d $webserver reload 3>/dev/null || true else /etc/init.d/$webserver reload 3>/dev/null || true fi fi done fi #DEBHELPER# debian/rules0000755000000000000000000000214712020661717010254 0ustar #!/usr/bin/make -f # -*- mode: makefile; coding: utf-8 -*- # # Copyright (C) 2011 Dachary # # This software's license gives you freedom; you can copy, convey, # propagate, redistribute and/or modify this program under the terms of # the GNU Affero General Public License (AGPL) as published by the Free # Software Foundation (FSF), either version 3 of the License, or (at your # option) any later version of the AGPL published by the FSF. # # 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 Affero # General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program in a file in the toplevel directory called # "AGPLv3". If not, see . # # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --with python2 override_dh_clean: make -f maintain.mk clean dh_clean override_dh_auto_build: dh_auto_build make -f maintain.mk all debian/changelog0000644000000000000000000000561612234633221011046 0ustar cardstories (1.0.6-1.3) unstable; urgency=low * Non-maintainer upload. * Change JDK build-dep to default-jdk. (Closes: #720552) -- tony mancill Thu, 31 Oct 2013 22:02:01 -0700 cardstories (1.0.6-1.2) unstable; urgency=low * Non-maintainer upload. * Drop the check and the jscoverage dependency. (Closes: #686507) -- David Prévot Sun, 09 Sep 2012 19:15:41 -0400 cardstories (1.0.6-1.1) unstable; urgency=low * Non-maintainer upload. * Fix "FTBFS: TypeError: 'NoneType' object has no attribute '__getitem__'": drop "X-Python-Version: all" from debian/control. (Closes: #652182) * Fix "ftbfs on i386 due to test value > sys.maxint": add patch test08_poll_i386.patch from Ubuntu / Barry Warsaw: - Fix test where poll interval was > sys.maxint on i386. (LP: #831344) (Closes: #642375) -- gregor herrmann Sat, 11 Feb 2012 18:24:58 +0100 cardstories (1.0.6-1) unstable; urgency=low * upstream release -- Loic Dachary (OuoU) Sun, 28 Aug 2011 00:22:32 +0200 cardstories (1.0.5-1) unstable; urgency=low * upstream release -- Loic Dachary (OuoU) Sun, 19 Jun 2011 01:09:31 +0200 cardstories (1.0.4-1) unstable; urgency=low * upstream release -- Loic Dachary (OuoU) Sun, 12 Jun 2011 18:48:27 +0200 cardstories (1.0.3-1) unstable; urgency=low * upstream release * add apache configuration * Debconf templates and debian/control reviewed by the debian-l10n- english team as part of the Smith review project. Closes: #627277 * [Debconf translation updates] * Japanese (Hideki Yamane). Closes: #626376 * Russian (Yuri Kozlov). Closes: #627682 * Danish (Joe Hansen). Closes: #627707 * Portuguese (Rui Branco). Closes: #627725 * Czech (Michal Simunek). Closes: #627802 * Swedish (Martin Bagge / brother). Closes: #627852 * Dutch; (Jeroen Schot). Closes: #628098 * French (Julien Patriarca). Closes: #628366 * German (Holger Wansing). Closes: #628625 * Spanish; (Francisco Javier Cuadrado). Closes: #629063 * Brazilian Portuguese (Adriano Rafael Gomes). Closes: #629241 * Remove SSL support until python openssl is fixed (Closes: #628249). * section changed to games (Closes: #627180). * depends on httpd or nginx (Closes: #627181). -- Loic Dachary (OuoU) Thu, 26 May 2011 14:25:17 +0200 cardstories (1.0.2-1) unstable; urgency=low * upstream release -- Loic Dachary (OuoU) Mon, 25 Apr 2011 19:58:03 +0200 cardstories (1.0.1-1) unstable; urgency=low * switch to dh_python2 as explained in http://wiki.debian.org/Python/PythonSupportToDHPython2 -- Loic Dachary (OuoU) Mon, 25 Apr 2011 12:11:01 +0200 cardstories (1.0.0-1) unstable; urgency=low * cardstories ITP (Closes: #623810). -- Loic Dachary (OuoU) Sat, 23 Apr 2011 15:45:44 +0200 debian/cardstories.config0000644000000000000000000000174011626303142012677 0ustar #!/bin/sh # Copyright (C) 2011 Dachary # # This software's license gives you freedom; you can copy, convey, # propagate, redistribute and/or modify this program under the terms of # the GNU Affero General Public License (AGPL) as published by the Free # Software Foundation (FSF), either version 3 of the License, or (at your # option) any later version of the AGPL published by the FSF. # # 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 Affero # General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program in a file in the toplevel directory called # "AGPLv3". If not, see . # set -e . /usr/share/debconf/confmodule db_version 2.0 db_input high cardstories/reconfigure-webserver || true db_go || true debian/patches/0000755000000000000000000000000011715521260010615 5ustar debian/patches/series0000644000000000000000000000002711715521260012031 0ustar test08_poll_i386.patch debian/patches/test08_poll_i386.patch0000644000000000000000000000053611715521260014570 0ustar --- a/tests/test_service.py +++ b/tests/test_service.py @@ -535,7 +535,7 @@ # class Plugin(pollable): def __init__(self): - pollable.__init__(self, 200000000000) + pollable.__init__(self, sys.maxint) def name(self): return 'plugin' plugin = Plugin() debian/po/0000755000000000000000000000000011626303142007602 5ustar debian/po/templates.pot0000644000000000000000000000203311626303142012322 0ustar # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: cardstories@packages.debian.org\n" "POT-Creation-Date: 2011-05-27 00:02+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #. Type: multiselect #. Description #: ../cardstories.templates:2001 msgid "Web server to reconfigure automatically:" msgstr "" #. Type: multiselect #. Description #: ../cardstories.templates:2001 msgid "" "Please choose the web server that should be automatically configured to run " "cardstories. If the web server provides http://www.example.org/, cardstories " "can then be played at http://www.example.org/cardstories/." msgstr "" debian/po/POTFILES.in0000644000000000000000000000006011626303142011353 0ustar [type: gettext/rfc822deb] cardstories.templates debian/po/ru.po0000644000000000000000000000313311626303142010570 0ustar # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the cardstories package. # # Yuri Kozlov , 2011. msgid "" msgstr "" "Project-Id-Version: cardstories 1.0.2-2\n" "Report-Msgid-Bugs-To: cardstories@packages.debian.org\n" "POT-Creation-Date: 2011-05-23 07:43+0200\n" "PO-Revision-Date: 2011-05-23 20:03+0400\n" "Last-Translator: Yuri Kozlov \n" "Language-Team: Russian \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Lokalize 1.0\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #. Type: multiselect #. Description #: ../cardstories.templates:2001 msgid "Web server to reconfigure automatically:" msgstr "Веб-сервер для автоматической перенастройки:" #. Type: multiselect #. Description #: ../cardstories.templates:2001 msgid "" "Please choose the web server that should be automatically configured to run " "cardstories. If the web server provides http://www.example.org/, cardstories " "can then be played at http://www.example.org/cardstories/." msgstr "" "Выберите веб-сервер, который нужно настроить автоматически " "для работы cardstories. Если веб-сервер доступен как " "http://www.example.org/, то в cardstories можно поиграть " "набрав http://www.example.org/cardstories/." debian/po/nl.po0000644000000000000000000000257411626303142010563 0ustar # Dutch translation of cardstories debconf templates. # Copyright (C) 2011 THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the cardstories package. # Jeroen Schot , 2011. # msgid "" msgstr "" "Project-Id-Version: cardstories 1.0.2-2\n" "Report-Msgid-Bugs-To: cardstories@packages.debian.org\n" "POT-Creation-Date: 2011-05-23 07:43+0200\n" "PO-Revision-Date: 2011-05-27 10:22+0200\n" "Last-Translator: Jeroen Schot \n" "Language-Team: Debian l10n Dutch \n" "Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: multiselect #. Description #: ../cardstories.templates:2001 msgid "Web server to reconfigure automatically:" msgstr "Automatisch te configureren webserver:" #. Type: multiselect #. Description #: ../cardstories.templates:2001 msgid "" "Please choose the web server that should be automatically configured to run " "cardstories. If the web server provides http://www.example.org/, cardstories " "can then be played at http://www.example.org/cardstories/." msgstr "" "Geef aan welke webserver er automatisch geconfigureerd moet worden om " "cardstories uit te voeren. Als de webserver http://www.example.org/ " "aanbiedt, dan kan cardstories worden gespeeld op http://www.example.org/" "cardstories/." debian/po/pt.po0000644000000000000000000000247711626303142010577 0ustar # Portuguese translation of cardstories debconf messages. # This file is distributed under the same license as the cardstories package. # # Rui Branco , 2011. # msgid "" msgstr "" "Project-Id-Version: cardstories 1.0.2-2\n" "Report-Msgid-Bugs-To: cardstories@packages.debian.org\n" "POT-Creation-Date: 2011-05-23 07:43+0200\n" "PO-Revision-Date: 2011-05-23 22:19+0200\n" "Last-Translator: Rui Branco \n" "Language-Team: Portuguese \n" "Language: Portuguese\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: multiselect #. Description #: ../cardstories.templates:2001 msgid "Web server to reconfigure automatically:" msgstr "Servidor Web a reconfigurar automaticamente:" #. Type: multiselect #. Description #: ../cardstories.templates:2001 msgid "" "Please choose the web server that should be automatically configured to run " "cardstories. If the web server provides http://www.example.org/, cardstories " "can then be played at http://www.example.org/cardstories/." msgstr "Por favor escolha o servidor web que deve ser automaticamente " "configurado para correr o cardstories. Se o servidor web fornecer " "http://www.example.org/, o cardstories pode então ser jogado em " "http://www.example.org/cardstories/." debian/po/de.po0000644000000000000000000000262111626303142010533 0ustar # German debconf translation of cardstories. # Copyright (C) 2011 Holger Wansing # This file is distributed under the same license as the cardstories package. # Translation: Holger Wansing , 2011. # msgid "" msgstr "" "Project-Id-Version: cardstories 1.0.2-2\n" "Report-Msgid-Bugs-To: cardstories@packages.debian.org\n" "POT-Creation-Date: 2011-05-23 07:43+0200\n" "PO-Revision-Date: 2011-05-30 21:35+0100\n" "Last-Translator: Holger Wansing \n" "Language-Team: German \n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: multiselect #. Description #: ../cardstories.templates:2001 msgid "Web server to reconfigure automatically:" msgstr "Webserver, der automatisch neu konfiguriert werden soll:" #. Type: multiselect #. Description #: ../cardstories.templates:2001 msgid "" "Please choose the web server that should be automatically configured to run " "cardstories. If the web server provides http://www.example.org/, cardstories " "can then be played at http://www.example.org/cardstories/." msgstr "" "Bitte wählen Sie den Webserver, der automatisch konfiguriert werden soll, um " "cardstories laufen zu lassen. Wenn der Webserver http://www.example.org/ " "bereitstellt, kann cardstories unter http://www.example.org/cardstories/ " "gespielt werden." debian/po/ja.po0000644000000000000000000000260011626303142010532 0ustar # Copyright (C) 2011 Loic Dachary (OuoU) # This file is distributed under the same license as cardstories package. # Hideki Yamane , 2011. # msgid "" msgstr "" "Project-Id-Version: cardstories 1.0.2-2\n" "Report-Msgid-Bugs-To: cardstories@packages.debian.org\n" "POT-Creation-Date: 2011-05-23 07:43+0200\n" "PO-Revision-Date: 2011-05-23 23:06+0900\n" "Last-Translator: Hideki Yamane \n" "Language-Team: Japanese \n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: multiselect #. Description #: ../cardstories.templates:2001 msgid "Web server to reconfigure automatically:" msgstr "自動的に再設定するウェブサーバ:" #. Type: multiselect #. Description #: ../cardstories.templates:2001 msgid "" "Please choose the web server that should be automatically configured to run " "cardstories. If the web server provides http://www.example.org/, cardstories " "can then be played at http://www.example.org/cardstories/." msgstr "" "cardstories を動作させるように自動的に設定する必要があるウェブサーバを選択し" "てください。ウェブサーバが http://www.example.org/ を提供している場合、cardstories " "は http://www.example.org/cardstories/ で遊ぶことができます。" debian/po/fr.po0000644000000000000000000000266111626303142010556 0ustar # Translation of cardstories debconf templates to French. # Copyright (C) 2011 Debian French l10n team # This file is distributed under the same license as the cardstories package. # Julien Patriarca , 2011. # msgid "" msgstr "" "Project-Id-Version: cardstories\n" "Report-Msgid-Bugs-To: cardstories@packages.debian.org\n" "POT-Creation-Date: 2011-05-23 07:43+0200\n" "PO-Revision-Date: 2011-05-23 14:25+0100\n" "Last-Translator: Julien Patriarca \n" "Language-Team: FRENCH \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: multiselect #. Description #: ../cardstories.templates:2001 msgid "Web server to reconfigure automatically:" msgstr "Serveur web à reconfigurer automatiquement :" #. Type: multiselect #. Description #: ../cardstories.templates:2001 msgid "" "Please choose the web server that should be automatically configured to run " "cardstories. If the web server provides http://www.example.org/, cardstories " "can then be played at http://www.example.org/cardstories/." msgstr "" "Veuillez choisir le serveur web à configurer automatiquement pour lancer " "cardstories. Si le serveur web fournit une adresse du type http://www." "example.org/, alors cardstories pourra être affiché à l'adresse http://www." "example.org/cardstories/." debian/po/sv.po0000644000000000000000000000263311626303142010576 0ustar # Translation of cardstories debconf template to Swedish # Copyright (C) 2011 Martin Bagge # This file is distributed under the same license as the cardstories package. # # Martin Bagge , 2011 msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: cardstories@packages.debian.org\n" "POT-Creation-Date: 2011-05-23 07:43+0200\n" "PO-Revision-Date: 2011-05-24 23:28+0100\n" "Last-Translator: Martin Bagge / brother \n" "Language-Team: Swedish \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Swedish\n" "X-Poedit-Country: Sweden\n" #. Type: multiselect #. Description #: ../cardstories.templates:2001 msgid "Web server to reconfigure automatically:" msgstr "Webbserver som ska ställas in automatiskt:" #. Type: multiselect #. Description #: ../cardstories.templates:2001 msgid "" "Please choose the web server that should be automatically configured to run " "cardstories. If the web server provides http://www.example.org/, cardstories " "can then be played at http://www.example.org/cardstories/." msgstr "" "Ange vilken webbserver som inställningarna för cardstories ska göras " "automatiskt. Om webbservern tillhandahåller http://www.example.org kan " "cardstories spelas på http://www.example.org/cardstories/." debian/po/da.po0000644000000000000000000000253111626303142010527 0ustar # Danish translation cardstories. # Copyright (C) cardstories & nedenstående oversættere. # This file is distributed under the same license as the cardstories package. # Joe Hansen (joedalton2@yahoo.dk), 2011. # msgid "" msgstr "" "Project-Id-Version: cardstories\n" "Report-Msgid-Bugs-To: cardstories@packages.debian.org\n" "POT-Creation-Date: 2011-05-23 07:43+0200\n" "PO-Revision-Date: 2011-05-14 18:30+01:00\n" "Last-Translator: Joe Hansen \n" "Language-Team: Danish \n" "Language: da\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: multiselect #. Description #: ../cardstories.templates:2001 msgid "Web server to reconfigure automatically:" msgstr "Internetserver at rekonfigurere automatisk:" #. Type: multiselect #. Description #: ../cardstories.templates:2001 msgid "" "Please choose the web server that should be automatically configured to run " "cardstories. If the web server provides http://www.example.org/, cardstories " "can then be played at http://www.example.org/cardstories/." msgstr "" "Vælg venligst internetserveren som skal konfigureres automatisk til at køre " "cardstories. Hvis internetserveren tilbyder http://www.eksempel.org/, så kan " "cardstories blive spillet på http://www.eksempel.org/cardstories/." debian/po/es.po0000644000000000000000000000423111626303142010551 0ustar # cardstories po-debconf translation to Spanish # Copyright (C) 2011 Software in the Public Interest # This file is distributed under the same license as the cardstories package. # # Changes: # - Initial translation # Francisco Javier Cuadrado , 2011 # # Traductores, si no conocen el formato PO, merece la pena leer la # documentación de gettext, especialmente las secciones dedicadas a este # formato, por ejemplo ejecutando: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # # Equipo de traducción al español, por favor, lean antes de traducir # los siguientes documentos: # # - El proyecto de traducción de Debian al español # http://www.debian.org/intl/spanish/ # especialmente las notas de traducción en # http://www.debian.org/intl/spanish/notas # # - La guía de traducción de po's de debconf: # /usr/share/doc/po-debconf/README-trans # o http://www.debian.org/intl/l10n/po-debconf/README-trans # msgid "" msgstr "" "Project-Id-Version: cardstories 1.0.2-2\n" "Report-Msgid-Bugs-To: cardstories@packages.debian.org\n" "POT-Creation-Date: 2011-05-23 07:43+0200\n" "PO-Revision-Date: 2011-05-23 12:00+0200\n" "Last-Translator: Francisco Javier Cuadrado \n" "Language-Team: Debian l10n Spanish \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: multiselect #. Description #: ../cardstories.templates:2001 msgid "Web server to reconfigure automatically:" msgstr "Servidor web a reconfigurar automáticamente:" #. Type: multiselect #. Description #: ../cardstories.templates:2001 msgid "" "Please choose the web server that should be automatically configured to run " "cardstories. If the web server provides http://www.example.org/, cardstories " "can then be played at http://www.example.org/cardstories/." msgstr "" "Escoja el servidor web que se debería configurar automáticamente para " "ejecutar cardstories. Si el servidor web utiliza la dirección «http://www." "example.org/», cardstories estará ubicado en «http://www.example.org/" "cardstories/»." debian/po/cs.po0000644000000000000000000000260511626303142010552 0ustar # Czech PO debconf template translation of cardstories. # Copyright (C) 2010 Michal Simunek # This file is distributed under the same license as the cardstories package. # Michal Simunek , 2011. # msgid "" msgstr "" "Project-Id-Version: cardstories 1.0.2-2\n" "Report-Msgid-Bugs-To: cardstories@packages.debian.org\n" "POT-Creation-Date: 2011-05-23 07:43+0200\n" "PO-Revision-Date: 2011-05-24 17:31+0200\n" "Last-Translator: Michal Simunek \n" "Language-Team: Czech \n" "Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: multiselect #. Description #: ../cardstories.templates:2001 msgid "Web server to reconfigure automatically:" msgstr "Automaticky přenastavit webový server:" #. Type: multiselect #. Description #: ../cardstories.templates:2001 msgid "" "Please choose the web server that should be automatically configured to run " "cardstories. If the web server provides http://www.example.org/, cardstories " "can then be played at http://www.example.org/cardstories/." msgstr "" "Zvolte si prosím webový server, který se má automaticky nastavit ke " "spouštění cardstories. Je-li server přístupný na http://www.example.org/, " "cardstories si pak lze zahrát na http://www.example.org/cardstories/." debian/po/pt_BR.po0000644000000000000000000000263011626303142011151 0ustar # Debconf translations for cardstories. # Copyright (C) 2011 THE cardstories'S COPYRIGHT HOLDER # This file is distributed under the same license as the cardstories package. # Adriano Rafael Gomes , 2011. # msgid "" msgstr "" "Project-Id-Version: cardstories 1.0.2-1\n" "Report-Msgid-Bugs-To: cardstories@packages.debian.org\n" "POT-Creation-Date: 2011-05-23 07:43+0200\n" "PO-Revision-Date: 2011-05-27 11:12-0300\n" "Last-Translator: Adriano Rafael Gomes \n" "Language-Team: Brazilian Portuguese \n" "Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: multiselect #. Description #: ../cardstories.templates:2001 msgid "Web server to reconfigure automatically:" msgstr "Servidor web para reconfigurar automaticamente:" #. Type: multiselect #. Description #: ../cardstories.templates:2001 msgid "" "Please choose the web server that should be automatically configured to run " "cardstories. If the web server provides http://www.example.org/, cardstories " "can then be played at http://www.example.org/cardstories/." msgstr "" "Por favor, escolha o servidor web que deverá ser automaticamente configurado " "para executar o cardstories. Se o servidor web provê http://www.exemplo." "org/, então pode-se jogar cardstories em http://www.exemplo.org/cardstories/." debian/cardstories.templates0000644000000000000000000000276711626303142013442 0ustar # These templates have been reviewed by the debian-l10n-english # team # # If modifications/additions/rewording are needed, please ask # debian-l10n-english@lists.debian.org for advice. # # Even minor modifications require translation updates and such # changes should be coordinated with translators and reviewers. # Copyright (C) 2011 Dachary # # This software's license gives you freedom; you can copy, convey, # propagate, redistribute and/or modify this program under the terms of # the GNU Affero General Public License (AGPL) as published by the Free # Software Foundation (FSF), either version 3 of the License, or (at your # option) any later version of the AGPL published by the FSF. # # 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 Affero # General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program in a file in the toplevel directory called # "AGPLv3". If not, see . # Template: cardstories/reconfigure-webserver Type: multiselect Choices: nginx, apache2 _Description: Web server to reconfigure automatically: Please choose the web server that should be automatically configured to run cardstories. If the web server provides http://www.example.org/, cardstories can then be played at http://www.example.org/cardstories/. debian/source/0000755000000000000000000000000011626303142010464 5ustar debian/source/format0000644000000000000000000000001411626303142011672 0ustar 3.0 (quilt) debian/cardstories.postrm0000644000000000000000000000451311626303142012757 0ustar #!/bin/sh -e # # Copyright (C) 2011 Dachary # # This software's license gives you freedom; you can copy, convey, # propagate, redistribute and/or modify this program under the terms of # the GNU Affero General Public License (AGPL) as published by the Free # Software Foundation (FSF), either version 3 of the License, or (at your # option) any later version of the AGPL published by the FSF. # # 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 Affero # General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program in a file in the toplevel directory called # "AGPLv3". If not, see . # nginx_remove() { included=/usr/share/cardstories/conf/nginx.conf conf=/etc/nginx/sites-available/default if [ -f $conf ] && grep $included $conf > /dev/null ; then perl -ni -e "print if(!m:$included:)" $conf fi } apache2_remove() { conf=/etc/apache2/config.d/cardstories.conf rm -rf $conf } if [ -f /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule fi if [ "$1" = "purge" ]; then if id -u cardstories >/dev/null 2>&1; then userdel cardstories fi rm -Rf /var/lib/cardstories /var/log/cardstories /etc/cardstories fi if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then if [ -f /usr/share/debconf/confmodule ]; then db_version 2.0 db_get cardstories/reconfigure-webserver webservers="$RET" for webserver in $webservers; do webserver=${webserver%,} if [ "$webserver" = "nginx" ] ; then nginx_remove elif [ "$webserver" = "apache2" ] ; then apache2_remove fi # Redirection of 3 is needed because Debconf uses it and it might # be inherited by webserver. See bug #446324. if [ -f /etc/init.d/$webserver ] ; then if [ -x /usr/sbin/invoke-rc.d ]; then invoke-rc.d $webserver restart 3>/dev/null || true else /etc/init.d/$webserver restart 3>/dev/null || true fi fi done fi fi #DEBHELPER# debian/compat0000644000000000000000000000000211626303142010362 0ustar 7 debian/cardstories.init0000644000000000000000000000573611626303142012406 0ustar #!/bin/sh # Copyright (C) 2011 Dachary # # This software's license gives you freedom; you can copy, convey, # propagate, redistribute and/or modify this program under the terms of # the GNU Affero General Public License (AGPL) as published by the Free # Software Foundation (FSF), either version 3 of the License, or (at your # option) any later version of the AGPL published by the FSF. # # 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 Affero # General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program in a file in the toplevel directory called # "AGPLv3". If not, see . # ### BEGIN INIT INFO # Provides: cardstories # Required-Start: $all # Required-Stop: $all # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Starts a service for the Twisted plugin '$PLUGIN' # Description: cardstories twistd plugin starter ### END INIT INFO PLUGIN="cardstories" DAEMON=/usr/bin/twistd PIDFILE=/var/run/$PLUGIN/pid LOGFILE=/var/log/$PLUGIN/access.log CARDSTORIES_USER=cardstories CARDSTORIES_GROUP=nogroup [ -r /etc/default/$PLUGIN ] && . /etc/default/$PLUGIN # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh # Define LSB log_* functions. # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. . /lib/lsb/init-functions export PYTHONPATH=/etc/cardstories DAEMON_OPTS="--pidfile=$PIDFILE --logfile=$LOGFILE $PLUGIN --interface 0.0.0.0 --game-timeout=$GAME_TIMEOUT" # Redirection of 3 is needed because Debconf uses it and it might # be inherited by webserver. See bug #446324. exec 3>/dev/null if [ ! -x $DAEMON ]; then echo "ERROR: Can't execute $DAEMON." exit 1 fi start_service() { echo -n " * Starting $PLUGIN... " if [ ! -d "/var/run/$PLUGIN" ]; then mkdir -p /var/run/$PLUGIN chown $CARDSTORIES_USER:$CARDSTORIES_GROUP /var/run/$PLUGIN fi start-stop-daemon --start --quiet --pidfile $PIDFILE --chuid "$CARDSTORIES_USER:$CARDSTORIES_GROUP" --exec $DAEMON -- $DAEMON_OPTS \ --plugins "$PLUGINS" \ --plugins-pre-process "$PLUGINS_PRE_PROCESS" \ --plugins-post-process "$PLUGINS_POST_PROCESS" e=$? if [ $e -eq 1 ]; then echo "already running" return fi if [ $e -eq 255 ]; then echo "couldn't start :(" return fi echo "done" } stop_service() { echo -n " * Stopping $PLUGIN... " start-stop-daemon --stop --quiet --retry 10 --pidfile $PIDFILE e=$? if [ $e -eq 1 ]; then echo "not running" return fi echo "done" } case "$1" in start) start_service ;; stop) stop_service ;; restart|force-reload) stop_service start_service ;; *) echo "Usage: /etc/init.d/$PLUGIN {force-reload|start|stop|restart}" >&2 exit 1 ;; esac exit 0 debian/copyright0000644000000000000000000000675311626303200011125 0ustar This package was debianized by Loic Dachary on Fri, 25 mar 2011 10:27:44 +0000. It was downloaded from . cardstories: Copyright (C) 2011 Loic Dachary (software) Copyright (C) 2011 tartarugafeliz (artwork) Copyright (C) 2011 Xavier Antoviaque (gameplay) Copyright (C) 2011 David Blanchard (gameplay) cardstories server license: This software's license gives you freedom; you can copy, convey, propagate, redistribute and/or modify this program under the terms of the GNU Affero General Public License (AGPL) as published by the Free Software Foundation (FSF), either version 3 of the License, or (at your option) any later version of the AGPL published by the FSF. 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 Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program in a file in the toplevel directory called "AGPLv3". If not, see . cardstories javascript client 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 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 . /usr/share/common-licenses/GPL-3 static/tablesorter: Copyright (c) 2007 Christian Bach License: * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html static/js/jquery.cookie.js: Copyright (c) 2006 Klaus Hartl (stilbuero.de) License: * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html static/js/jquery.metadata.js: Copyright (c) 2006 John Resig, Yehuda Katz, Jörn Zaefferer, Paul McLanahan License: * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html static/test/qunit.js: static/test/qunit.css: Copyright (c) 2011 John Resig, Jörn Zaefferer License: * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html static/js/supplant.js: Douglas Crockford douglas@crockford.com snippet License: The snippet is not copyrighted because it is trivial. static/js/jquery.query-2.1.7.js: Blair Mitchelmore (blair DOT mitchelmore AT gmail DOT com) License: WTFPL (http://sam.zoy.org/wtfpl/). static/js/jquery: Copyright 2011, John Resig Copyright 2011, The Dojo Foundation License: Dual licensed under the MIT or GPL Version 2 licenses. http://jquery.org/license spritemapper-1.0.0.tar.gz: Copyright (c) 2011, Yo Studios AB License: MIT http://www.opensource.org/licenses/mit-license.php debian/control0000644000000000000000000000323512234633274010602 0ustar Source: cardstories Section: games Priority: optional Maintainer: Loic Dachary (OuoU) Build-Depends: debhelper (>= 7.0.50~), po-debconf, python-all (>= 2.6.6-2~), python-lxml, python-coverage, python-twisted-web (>= 10.1), python-twisted-mail, python-twisted-conch, default-jdk, python-virtualenv Standards-Version: 3.9.2 Vcs-Git: http://cardstori.es/cardstories.git Vcs-Browser: http://cardstori.es/trac/browser Homepage: http://cardstori.es/ Package: cardstories Section: games Architecture: all Replaces: python-cardstories Conflicts: python-cardstories Depends: ${misc:Depends}, adduser, nginx | httpd, python-twisted-web (>= 10.1), python-twisted-mail, python-twisted-conch, python-lxml, python-openssl, ${python:Depends} Provides: ${python:Provides} Description: multiplayer online card guessing game This package provides a server for a networked guessing game using picture cards. One player (the "author") creates the game by choosing a card, picking a word or a sentence to describe it, and sending out invitations to others to participate. . Each of these players receives seven cards and has to pick one that best matches the author's description. . Once enough players have chosen a card, the author displays all chosen cards and the players try to figure out which one is the author's. . If at least one but not all of them guesses correctly, the author wins, along with the players who guessed correctly. Otherwise, the guessers all win.