--- sbox-dtc-1.11.7.orig/debian/changelog +++ sbox-dtc-1.11.7/debian/changelog @@ -0,0 +1,204 @@ +sbox-dtc (1.11.7-1) unstable; urgency=medium + + * Fixed homepage field (Closes: #655490). + * Rotates sbox log daily, as it might stop working if the log file is + bigger than the sbox setlimits(). + * Switched debian/copyright to machine readable format 1.0. + * Bumps Standards-Version to 3.9.3 (no change). + * Using MAXPATHLEN instead of MAXPATH, so that it may build in hurd. + * Using hardening flags. + * Using debhelper and compat level 9. + + -- Thomas Goirand Wed, 04 Dec 2013 15:02:53 +0800 + +sbox-dtc (1.11.6-1) unstable; urgency=low + + * New upstream version: + - Repairs the PATH_TRANSLATED and PATH_INFO variables in the case of a + PATH_INFO environment variable being present. Now all PHP scripts should + be working as expected. + * Removed libdotconf1.0 dependency that is anyway managed by dh_shlibs. + * Removed -M flag to useradd since it's crashing the postinst. + * Using dh_prep instead of dh_clean -k. + + -- Thomas Goirand Mon, 12 Sep 2011 17:10:45 +0800 + +sbox-dtc (1.11.5-1) unstable; urgency=low + + * New upstream version: + - Repairs the DOCUMENT_ROOT, SCRIPT_NAME and as a consequence PHP_SELF + when doing a chroot. + + -- Thomas Goirand Sun, 04 Sep 2011 15:08:53 +0800 + +sbox-dtc (1.11.4-2) unstable; urgency=low + + * Using -r when doing groupadd / useradd (Closes: #633602). + * Logrotate now recreating users with dtc / dtcgrp (Closes: #633603). + + -- Thomas Goirand Tue, 12 Jul 2011 10:29:51 +0800 + +sbox-dtc (1.11.4-1) unstable; urgency=low + + * Make sure that /etc/sbox/vhosts.d is owned by the webserver user and group. + * debian/copyright is now using DEP5 format. + * Updated watch file target URL. + + -- Thomas Goirand Sun, 26 Jun 2011 20:05:10 +0800 + +sbox-dtc (1.11.3-1) unstable; urgency=low + + * New upstream version with the following improvements: + - Now using /etc/sbox/vhosts.d as a HTTP_HOST specific configuration folder + (each vhost can have its specific configuration file with customization). + - Removed the use of Apache envvars which aren't safe (easy to hack). + - Each vhost can have a different interpreter for both Perl, PHP, Python + or Ruby, thanks to new sbox directives. + * Not modifying conf files in postinst (Closes: #607878). + * Fix FTBFS with ld --as-needed (Closes: #606212). + * Added few documentation files that were missing from packaging. + * Creates the new /etc/sbox/vhosts.d folder. + * Bumped Standard-Version to 3.9.2. + * Removed now useless DM-Upload-Allowed field. + * A better short and long description. + * Added build-arch and build-indep rules. + * Sets the debconf question priority to low. + + -- Thomas Goirand Fri, 24 Jun 2011 20:32:12 +0800 + +sbox-dtc (1.11.2-4) unstable; urgency=low + + * Fixed the postinst that was manipulating the wrong /etc/logrotate.d + file (Closes: #606603). + + -- Thomas Goirand Fri, 10 Dec 2010 23:11:11 +0800 + +sbox-dtc (1.11.2-3) unstable; urgency=low + + * Uses useradd -M instead -m. eg: do not create home dir for the sbox-dtc + user (Closes: #605980). + * Deletes /etc/sbox.conf and /var/log/sbox.log in the postrm script when + purging package. + * Added a logrotate weekly script. + + -- Thomas Goirand Mon, 06 Dec 2010 00:03:43 +0800 + +sbox-dtc (1.11.2-2) unstable; urgency=low + + * Now using my @debian email address as maintainer. + * Sets the SUID bit, chown sbox to root.root (Closse: #605868). + * Added Danish debconf translation, thanks to Joe Dalton + (Closes: #583972). + + -- Thomas Goirand Sat, 04 Dec 2010 16:47:31 +0800 + +sbox-dtc (1.11.2-1) unstable; urgency=low + + * Bumped Standard-Version + * Changed correm into corre in the debian/po/pt.po as advised by the + translator Américo Monteiro . + * Updated Spanish debconf template, thanks to Francisco Javier Cuadrado + (Closes: #561219). + * Updated the watch file. + * Added Vcs-Browser, Vcs-Git, Homepage and Dm-Upload-Allowed field. + * Changed Priority from optional to extra. + + -- Thomas Goirand Wed, 19 May 2010 17:29:11 +0800 + +sbox-dtc (1.11.1-1) unstable; urgency=low + + * New upstream release. + * In debconf message, "apache2" instead of "apache or apache2" as suggested + in the BTS (Closes: #550631). Also updated the translations, as it seemed + pretty strait forward. Will send a warning to all translator to check if + my changes are ok after this version is in SID. + * Added Russian debconf translation thanks to Yuri Kozlov + (Closes: #549175). + * Added Japanese debconf translation, thanks to Hideki Yamane (Debian-JP) + (Closes: #548653). + * Added Spanish debconf translation thankd to Francisco Javier Cuadrado + (Closes: #511916). + * A bit of package cleanups: + - Bumped the debian/compat and debhelper depends to 5. + - Bumped standard-version. + - Added ${misc:Depends} in the binary depends. + - Removed duplicate priority and section fields in the binary package + description of debian/control. + + -- Thomas Goirand Fri, 11 Dec 2009 13:04:59 +0800 + +sbox-dtc (1.11-5) unstable; urgency=low + + * Added a missing || true for the db_input call in the debian/config script. + + -- Thomas Goirand Wed, 22 Oct 2008 04:52:30 +0800 + +sbox-dtc (1.11-4) unstable; urgency=low + + * Added Debconf template translation to Swedish, thanks to Martin Bagge + (Closes: #500125). + * Bumped to Standards-Version: 3.8.0. + * Added year to copyright, so it removes a Lintian error. + * Added [ ! -f Makefile ] || to the debian/rules + * Added set -e in the debian/config script. + + -- Thomas Goirand Sat, 18 Oct 2008 02:04:28 +0800 + +sbox-dtc (1.11-3) unstable; urgency=low + + * Added nl.po Duch template translation from Bart Cornelis + (Closes: #449411) + + -- Thomas Goirand Tue, 6 Nov 2007 15:14:53 +0800 + +sbox-dtc (1.11-2) unstable; urgency=low + + * Removed dependency to apache2, replaced by: + Recommends: apache2 | httpd-cgi (Closes: #435284) + * Added pt.po Portuguese template translation from Americo Monteiro + (Closes: #433851) + * Added dependency to passwd (Closes: #431673) + + -- Thomas Goirand Tue, 31 Jul 2007 04:24:02 +0800 + +sbox-dtc (1.11-1) unstable; urgency=low + + * New upstream release + * Removed (useless) dependency to apache dev package (Closes: #429072) + * The package now includes sbox.conf file from this new version. + * The postinst can switch the values between www-data:www-data and + dtc:dtcgrp in the /etc/sbox.conf config file + * Added dependency to libdotconf as sbox-dtc now needs it. + + -- Thomas Goirand Thu, 14 Jun 2007 00:00:42 +0800 + +sbox-dtc (1.07-8) unstable; urgency=low + + * Added cs.po Czech translation from Jakub Kasparec (Closes: #408709) + + -- Thomas Goirand Sun, 28 Jan 2007 10:43:01 +0000 + +sbox-dtc (1.07-7) unstable; urgency=low + + * Updated the french fr.po template (Closes: #402268) + + -- Thomas Goirand Sat, 17 Dec 2006 15:56:00 +0800 + +sbox-dtc (1.07-6) unstable; urgency=low + + * Added german de.po template translation (Closes: #399643) + + -- Thomas Goirand Tue, 21 Nov 2006 12:11:00 +0800 + +sbox-dtc (1.07-5) unstable; urgency=low + + * The sbox binary was not setting-up at the correct place. + + -- Thomas Goirand Mon, 20 Nov 2006 17:11:00 +0800 + +sbox-dtc (1.07-4) unstable; urgency=low + + * Initial Release. + * Uploading with revision -4 to not break current installations. + + -- Thomas Goirand Tue, 28 Jun 2005 16:06:38 +0200 --- sbox-dtc-1.11.7.orig/debian/compat +++ sbox-dtc-1.11.7/debian/compat @@ -0,0 +1 @@ +9 --- sbox-dtc-1.11.7.orig/debian/config +++ sbox-dtc-1.11.7/debian/config @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule +db_version 2.0 + +db_input low sbox-dtc/conf_use_dtc_dtcgrp || true + +db_go + +exit 0; --- sbox-dtc-1.11.7.orig/debian/control +++ sbox-dtc-1.11.7/debian/control @@ -0,0 +1,27 @@ +Source: sbox-dtc +Section: web +Priority: extra +Maintainer: Thomas Goirand +Build-Depends: debhelper (>= 9), libapr1-dev, libdotconf-dev, po-debconf, dpkg-dev (>= 1.16.1~) +Standards-Version: 3.9.4 +Vcs-Browser: http://git.gplhost.com/gitweb/?p=sbox.git +Vcs-Git: http://git.gplhost.com/sbox.git +Homepage: http://www.gplhost.com/software-sboxdtc.html + +Package: sbox-dtc +Architecture: any +Depends: ${misc:Depends}, debconf, passwd, ${shlibs:Depends} +Recommends: apache2 | httpd-cgi +Description: CGI chroot wrapper script for safer hosting environment + Sbox is a CGI wrapper script that helps Web site hosting services to safely + grant CGI authoring privileges to untrusted clients. In addition to changing + the process privileges of client scripts to match their owners, it goes beyond + other wrappers by placing configurable ceilings on script resource usage, + avoiding unintentional (as well as intentional) denial of service attacks. It + also optionally let the Webmaster to place client's CGI scripts in a chroot'ed + shell restricted to the author's home directories. + . + Thanks to a cleaver per-vhost configuration, SBOX is also capable of being + highly customizable on a per web site level. SBOX also runs Ruby, Perl, Python + and PHP script using their respective interpreter, with a configurable path + for each of them. --- sbox-dtc-1.11.7.orig/debian/copyright +++ sbox-dtc-1.11.7/debian/copyright @@ -0,0 +1,31 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: sbox-dtc +Upstream-Contact: Thomas Goirand +Source: http://www.gplhost.com/software-sboxdtc.html + +Files: debian/* +Copyright: 2005-2012 Thomas Goirand +License: LGPL-2.1 + +Files: * +Copyright: 1997-1998 Lincoln D. Stein + 2005-2012 Thomas Goirand +License: LGPL-2.1 + +License: 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 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 systems, a copy of the GNU Lesser General Public License (LGPL) + version 2.1 may be found in /usr/share/common-licenses/LGPL-2.1 --- sbox-dtc-1.11.7.orig/debian/dirs +++ sbox-dtc-1.11.7/debian/dirs @@ -0,0 +1 @@ +/etc/sbox/vhosts.d \ No newline at end of file --- sbox-dtc-1.11.7.orig/debian/docs +++ sbox-dtc-1.11.7/debian/docs @@ -0,0 +1,4 @@ +create_chroot.sh +README.using_sbox.txt +README.html +README.txt --- sbox-dtc-1.11.7.orig/debian/lintian/sbox-dtc +++ sbox-dtc-1.11.7/debian/lintian/sbox-dtc @@ -0,0 +1 @@ +sbox-dtc: setuid-binary usr/lib/cgi-bin/sbox 4755 root/root --- sbox-dtc-1.11.7.orig/debian/logrotate +++ sbox-dtc-1.11.7/debian/logrotate @@ -0,0 +1,8 @@ +/var/log/sbox.log { + daily + missingok + rotate 10 + compress + delaycompress + create 640 dtc dtcgrp +} --- sbox-dtc-1.11.7.orig/debian/po/POTFILES.in +++ sbox-dtc-1.11.7/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] templates --- sbox-dtc-1.11.7.orig/debian/po/cs.po +++ sbox-dtc-1.11.7/debian/po/cs.po @@ -0,0 +1,39 @@ +# translation of sbox-dtc_1.07-7_cs-utf8.po to czech +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# +# Jakub Kasparec , 2007. +msgid "" +msgstr "" +"Project-Id-Version: sbox-dtc_1.07-7_cs-utf8\n" +"Report-Msgid-Bugs-To: sbox-dtc@packages.debian.org\n" +"POT-Creation-Date: 2009-12-11 13:30+0800\n" +"PO-Revision-Date: 2009-12-11 22:25+0100\n" +"Last-Translator: Jakub Kasparec \n" +"Language-Team: czech \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Use dtc:dtcgrp for the sbox binary?" +msgstr "Použít pro binárku sboxu dtc:dtcgrp?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Under Debian, apache runs under www-data:www-data. This is ok if running " +"only apache, but if using sbox-dtc together with the DTC control panel, you " +"need to have sbox chown to dtc:dtcgrp. In that case, you want create the dtc " +"user and dtcgrp group, and chown the sbox binary to dtc:dtcgrp, otherwise " +"you don't." +msgstr "" +"V Debianu jsou apache spoušteni jako www-data:www-data. To je v pořádku, " +"pokud ovšem máte spuštěného pouze apache. Jestliže používáte sbox-dtc " +"společně s DTC control panelem, musíte změnit vlastníka programu sbox na dtc:" +"dtcgrp. Pokud tedy potřebujete, vytvoře uživatele dtc a skupinu dtcgrp a " +"změňte vlastníka binárky sbox na dtc:dtcgrp." --- sbox-dtc-1.11.7.orig/debian/po/da.po +++ sbox-dtc-1.11.7/debian/po/da.po @@ -0,0 +1,41 @@ +# Danish translation sbox-dtc. +# Copyright (C) 2010 sbox-dtc & nedenstående oversættere. +# This file is distributed under the same license as the sbox-dtc package. +# Joe Hansen , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: sbox-dtc\n" +"Report-Msgid-Bugs-To: sbox-dtc@packages.debian.org\n" +"POT-Creation-Date: 2009-12-11 13:30+0800\n" +"PO-Revision-Date: 2010-05-31 17:30+01:00\n" +"Last-Translator: Joe Hansen \n" +"Language-Team: Danish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Use dtc:dtcgrp for the sbox binary?" +msgstr "Brug dtc:dtcgrp til den binære sbox?" + +# The chown command is used on Unix-like systems to change the owner of a file. +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Under Debian, apache runs under www-data:www-data. This is ok if running " +"only apache, but if using sbox-dtc together with the DTC control panel, you " +"need to have sbox chown to dtc:dtcgrp. In that case, you want create the dtc " +"user and dtcgrp group, and chown the sbox binary to dtc:dtcgrp, otherwise " +"you don't." +msgstr "" +"Under Debian kører apache under www-data:www.data. Det er okay, hvis der " +"kun køres apache, men hvis sbox-dtc bruges sammen med panelprogrammet " +"DTC control, skal du have sbox chown til dtc:dtcgrp. I det tilfælde vil " +"du skulle oprette dtc-brugeren og dtcgrp-gruppen, og chown den binære sbox " +"til dtc:dtcgrp, ellers ikke." + + --- sbox-dtc-1.11.7.orig/debian/po/de.po +++ sbox-dtc-1.11.7/debian/po/de.po @@ -0,0 +1,39 @@ +# translation of po-debconf template to German +# Copyright (C) 2006, Matthias Julius +# This file is distributed under the same license as the sbox-dtc package. +# +# Matthias Julius , 2006. +msgid "" +msgstr "" +"Project-Id-Version: sbox-dtc 1.07-5\n" +"Report-Msgid-Bugs-To: sbox-dtc@packages.debian.org\n" +"POT-Creation-Date: 2009-12-11 13:30+0800\n" +"PO-Revision-Date: 2009-12-11 22:37-0500\n" +"Last-Translator: Matthias Julius \n" +"Language-Team: German \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Use dtc:dtcgrp for the sbox binary?" +msgstr "dtc:dtcgrp für das sbox-Programm verwenden?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Under Debian, apache runs under www-data:www-data. This is ok if running " +"only apache, but if using sbox-dtc together with the DTC control panel, you " +"need to have sbox chown to dtc:dtcgrp. In that case, you want create the dtc " +"user and dtcgrp group, and chown the sbox binary to dtc:dtcgrp, otherwise " +"you don't." +msgstr "" +"Unter Debian läuft apache als www-data:www-data. Dies ist in Ordnung, falls " +"nur Apache benutzt wird. Aber wenn sbox-dtc zusammen mit dem DTC Control " +"Panel verwendet wird, muss sbox dtc:dtcgrp gehören. In diesem Fall sollten " +"Sie den Benutzer dtc und die Gruppe dtcgrp anlegen und dtc:dtcgrp als " +"Eigentümer für sbox verwenden, anderenfalls nicht." --- sbox-dtc-1.11.7.orig/debian/po/es.po +++ sbox-dtc-1.11.7/debian/po/es.po @@ -0,0 +1,63 @@ +# sbox-dtc po-debconf translation to Spanish +# Copyright (C) 2007, 2009 Free Software Foundation, Inc. +# This file is distributed under the same license as the sbox-dtc package. +# +# Changes: +# - Initial translation +# Enrique Matias Sanchez , 2007 +# +# - Updates +# Francisco Javier Cuadrado , 2009 +# +# 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 y normas 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: sbox-dtc 1.11-5\n" +"Report-Msgid-Bugs-To: sbox-dtc@packages.debian.org\n" +"POT-Creation-Date: 2009-12-11 13:30+0800\n" +"PO-Revision-Date: 2009-12-15 13:50+0800\n" +"Last-Translator: Francisco Javier Cuadrado \n" +"Language-Team: Debian l10n Spanish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Use dtc:dtcgrp for the sbox binary?" +msgstr "¿Desea usar los permisos de «dtc:dtcgrp» para el binario sbox?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Under Debian, apache runs under www-data:www-data. This is ok if running " +"only apache, but if using sbox-dtc together with the DTC control panel, you " +"need to have sbox chown to dtc:dtcgrp. In that case, you want create the dtc " +"user and dtcgrp group, and chown the sbox binary to dtc:dtcgrp, otherwise " +"you don't." +msgstr "" +"En Debian, apache se ejecuta con los permisos de «www-data:www-data». Esto " +"está bien si sólo se ejecuta apache, pero si se usa sbox-dtc junto con el " +"panel de control DTC, necesitará cambiar el propietario y el grupo de sbox a " +"«dtc:dtcgrp». En ese caso, debe crear el usuario dtc y el grupo dtcgrp, y " +"cambiar el propietario y el grupo del binario sbox a «dtc:dtcgrp», de lo " +"contrario no necesitará realizar estas operaciones." --- sbox-dtc-1.11.7.orig/debian/po/fr.po +++ sbox-dtc-1.11.7/debian/po/fr.po @@ -0,0 +1,40 @@ +# sbox-dtc debconf templates French translation. +# Copyright (C) 2006 Debian +# Jean-Luc Coulon (f5ibh) , 2006. +# +msgid "" +msgstr "" +"Project-Id-Version: sbox-dtc\n" +"Report-Msgid-Bugs-To: sbox-dtc@packages.debian.org\n" +"POT-Creation-Date: 2009-12-11 13:30+0800\n" +"PO-Revision-Date: 2009-12-26 21:00+0800\n" +"Last-Translator: Jean-Luc Coulon (f5ibh) \n" +"Language-Team: French \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=iso-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: French\n" +"X-Poedit-Country: FRANCE\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Use dtc:dtcgrp for the sbox binary?" +msgstr "Faut-il utiliser dtc:dtcgrp pour l'excutable sbox?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Under Debian, apache runs under www-data:www-data. This is ok if running " +"only apache, but if using sbox-dtc together with the DTC control panel, you " +"need to have sbox chown to dtc:dtcgrp. In that case, you want create the dtc " +"user and dtcgrp group, and chown the sbox binary to dtc:dtcgrp, otherwise " +"you don't." +msgstr "" +"Sous Debian, apache fonctionne avec les privilges de " +"l'utilisateur www-data et du groupe de mme nom. Ceci est correct si seul " +"apache fonctionne, mais si sbx-dtc est utilis conjointement avec le panneau " +"de contrle de DTC, il faudra changer le propritaire en dtc:dtcgrp. Dans ce " +"cas, il vous faudra crer l'utilisateur dtc et le groupe dtcgrp, et modifier " +"le propritaire de l'excutable sbox en dtc:dtcgrp." --- sbox-dtc-1.11.7.orig/debian/po/ja.po +++ sbox-dtc-1.11.7/debian/po/ja.po @@ -0,0 +1,37 @@ +# Japanese translation of sbox-dtc debconf templates. +# Copyright (C) 2009 Hideki Yamane +# This file is distributed under the same license as the sbox-dtc package. +# +msgid "" +msgstr "" +"Project-Id-Version: sbox-dtc 1.11-5\n" +"Report-Msgid-Bugs-To: sbox-dtc@packages.debian.org\n" +"POT-Creation-Date: 2009-12-11 13:30+0800\n" +"PO-Revision-Date: 2009-12-11 14:26+0800\n" +"Last-Translator: Hideki Yamane (Debian-JP) \n" +"Language-Team: Japanese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Use dtc:dtcgrp for the sbox binary?" +msgstr "sbox のバイナリを dtc:dtcgrp にして使いますか?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Under Debian, apache runs under www-data:www-data. This is ok if running " +"only apache, but if using sbox-dtc together with the DTC control panel, you " +"need to have sbox chown to dtc:dtcgrp. In that case, you want create the dtc " +"user and dtcgrp group, and chown the sbox binary to dtc:dtcgrp, otherwise " +"you don't." +msgstr "" +"Debian では、apache は www.data:www-data 配下で動作します。apache のみを動か" +"すのであればこれは問題ないですが、DTC コントロールパネルと共に sbox-dtc を使" +"う場合は、sbox を dtc:dtcgrp に chown する必要があります。この場合、dtc ユー" +"ザと dtcgrp グループを作り、sbox バイナリを dtc:dtcgrp にchown したいでしょ" +"う。そうしないと、sbox は使えません。" --- sbox-dtc-1.11.7.orig/debian/po/nl.po +++ sbox-dtc-1.11.7/debian/po/nl.po @@ -0,0 +1,40 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE 'S COPYRIGHT HOLDER +# This file is distributed under the same license as the package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: sbox-dtc\n" +"Report-Msgid-Bugs-To: sbox-dtc@packages.debian.org\n" +"POT-Creation-Date: 2009-12-11 13:30+0800\n" +"PO-Revision-Date: 2009-12-11 19:02+0800\n" +"Last-Translator: Bart Cornelis \n" +"Language-Team: debian-l10n-dutch \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Dutch\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Use dtc:dtcgrp for the sbox binary?" +msgstr "Wilt u dtc:dtcgrp als eigenaar voor het binair bestand sbox gebruiken?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Under Debian, apache runs under www-data:www-data. This is ok if running " +"only apache, but if using sbox-dtc together with the DTC control panel, you " +"need to have sbox chown to dtc:dtcgrp. In that case, you want create the dtc " +"user and dtcgrp group, and chown the sbox binary to dtc:dtcgrp, otherwise " +"you don't." +msgstr "" +"In Debian draaien apache als gebruiker en groep www-data. Dit is prima als u " +"enkel apache gebruikt, maar wanneer u sbox-dtc samen met het DTC-" +"controlepaneel gebruikt dient u geëigend te zijn door gebruiker dtc en groep " +"dtcgrp. In dat geval dient dus eerst een gebruiker dtc en een groep dtcgrp " +"aangemaakt te worden, en vervolgens dient het eigenschap van het binair " +"bestand sbox omgezet te worden naar deze gebruiker en groep (via chown)." --- sbox-dtc-1.11.7.orig/debian/po/pt.po +++ sbox-dtc-1.11.7/debian/po/pt.po @@ -0,0 +1,39 @@ +# translation of sbox-dtc to Portuguese +# Copyright (C) 2007 Américo Monteiro +# This file is distributed under the same license as the sbox-dtc package. +# +# Américo Monteiro , 2007. +msgid "" +msgstr "" +"Project-Id-Version: sbox-dtc 1.07-8\n" +"Report-Msgid-Bugs-To: sbox-dtc@packages.debian.org\n" +"POT-Creation-Date: 2009-12-11 13:30+0800\n" +"PO-Revision-Date: 2009-12-11 14:07+0800\n" +"Last-Translator: Américo Monteiro \n" +"Language-Team: Portuguese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Use dtc:dtcgrp for the sbox binary?" +msgstr "Usar dtc:dtcgrp para o binário sbox?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Under Debian, apache runs under www-data:www-data. This is ok if running " +"only apache, but if using sbox-dtc together with the DTC control panel, you " +"need to have sbox chown to dtc:dtcgrp. In that case, you want create the dtc " +"user and dtcgrp group, and chown the sbox binary to dtc:dtcgrp, otherwise " +"you don't." +msgstr "" +"Em Debian, o apache corre sob www-data:www-data. Isto está bem se correr só " +"o apache, mas se usar o sbox-dtc em conjunto com o painel de controle DTC, " +"você precisa de ter o dono:grupo (chown) do sbox regulado para dtc:dtcgrp. " +"Nesse caso você vai querer criar o utilizador 'dtc' e o grupo 'dtcgrp', e " +"mudar dono:grupo do binário sbox para dtc:dtcgrp, caso contrário não o faça." --- sbox-dtc-1.11.7.orig/debian/po/ru.po +++ sbox-dtc-1.11.7/debian/po/ru.po @@ -0,0 +1,41 @@ +# translation of sbox-dtc_1.11-5_ru.po to Russian +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# +# Yuri Kozlov , 2009. +msgid "" +msgstr "" +"Project-Id-Version: sbox-dtc 1.11-5\n" +"Report-Msgid-Bugs-To: sbox-dtc@packages.debian.org\n" +"POT-Creation-Date: 2009-12-11 13:30+0800\n" +"PO-Revision-Date: 2009-12-11 13:56+0800\n" +"Last-Translator: Yuri Kozlov \n" +"Language-Team: Russian \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\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: boolean +#. Description +#: ../templates:1001 +msgid "Use dtc:dtcgrp for the sbox binary?" +msgstr "Использовать dtc:dtcgrp для исполняемого файла sbox?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Under Debian, apache runs under www-data:www-data. This is ok if running " +"only apache, but if using sbox-dtc together with the DTC control panel, you " +"need to have sbox chown to dtc:dtcgrp. In that case, you want create the dtc " +"user and dtcgrp group, and chown the sbox binary to dtc:dtcgrp, otherwise " +"you don't." +msgstr "" +"В Debian, apache запущены с правами www-data:www-data. Это нормально, если " +"работает только apache, но если он используется sbox-dtc вместе с панелью " +"управления DTC, то у sbox должны быть права dtc:dtcgrp. В этом случае, " +"создайте пользователя dtc и группу dtcgrp, и назначьте исполняемому файлу " +"sbox права доступа dtc:dtcgrp." --- sbox-dtc-1.11.7.orig/debian/po/sv.po +++ sbox-dtc-1.11.7/debian/po/sv.po @@ -0,0 +1,39 @@ +# translation of sbox-dtc.po to swedish +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the DTC package. +# +# Martin Bagge , 2008. +msgid "" +msgstr "" +"Project-Id-Version: sbox-dtc\n" +"Report-Msgid-Bugs-To: sbox-dtc@packages.debian.org\n" +"POT-Creation-Date: 2009-12-11 13:30+0800\n" +"PO-Revision-Date: 2009-12-11 13:32+0800\n" +"Last-Translator: Martin Bagge \n" +"Language-Team: swedish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Use dtc:dtcgrp for the sbox binary?" +msgstr "Ska dtc:dtcgrp användas för sbox binären?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Under Debian, apache runs under www-data:www-data. This is ok if running " +"only apache, but if using sbox-dtc together with the DTC control panel, you " +"need to have sbox chown to dtc:dtcgrp. In that case, you want create the dtc " +"user and dtcgrp group, and chown the sbox binary to dtc:dtcgrp, otherwise " +"you don't." +msgstr "" +"I Debian körs apache med användare och grupp www-data. Om du bara kör apache " +"är detta helt okej men och du kör sbox-dtc tillsammans med DTC " +"kontrollpanelen så måste sbox vara inställd på dtc:dtcgrp.I det fallet vill " +"du skapa användaren dtc och gruppen dtcgrp samt ändra inställningen på sbox-" +"binären - i övriga fall vill du inte göra detta." --- sbox-dtc-1.11.7.orig/debian/po/templates.pot +++ sbox-dtc-1.11.7/debian/po/templates.pot @@ -0,0 +1,34 @@ +# 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: sbox-dtc@packages.debian.org\n" +"POT-Creation-Date: 2009-12-11 13:30+0800\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Use dtc:dtcgrp for the sbox binary?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Under Debian, apache runs under www-data:www-data. This is ok if running " +"only apache, but if using sbox-dtc together with the DTC control panel, you " +"need to have sbox chown to dtc:dtcgrp. In that case, you want create the dtc " +"user and dtcgrp group, and chown the sbox binary to dtc:dtcgrp, otherwise " +"you don't." +msgstr "" --- sbox-dtc-1.11.7.orig/debian/postinst +++ sbox-dtc-1.11.7/debian/postinst @@ -0,0 +1,67 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule +db_version 2.0 + +# Simply fetch all values stored in debconf +db_get sbox-dtc/conf_use_dtc_dtcgrp +conf_use_dtc_dtcgrp=${RET} + +CONF_DTC_SYSTEM_USERNAME=dtc +CONF_DTC_SYSTEM_GROUPNAME=dtcgrp + +# Do a search and replace in a file using sh +# Params: +# $1 - File where to search +# $2 - String to search +# $3 - String to replace +MKTEMP="mktemp -t" +searchAndReplace () { + if ! grep ${2} ${1} >/dev/null 2>&1 ; then + TMP_FILE=`${MKTEMP} DTC_SAR_TEMP.XXXXXX` || exit 1 + sed "s/${2}/${3}/" ${1} >${TMP_FILE} + cat ${TMP_FILE} >${1} + rm -f ${TMP_FILE} + fi +} + +touch /var/log/sbox.log +mkdir -p /etc/sbox/vhosts.d +if [ ""${conf_use_dtc_dtcgrp} = "yes" -o ""${conf_use_dtc_dtcgrp} = "true" ] ; then + # Create our group and user + if getent group ${CONF_DTC_SYSTEM_GROUPNAME} >/dev/null ; then + echo "Group ${CONF_DTC_SYSTEM_GROUPNAME} already exists: skiping creation!" + else + groupadd -r ${CONF_DTC_SYSTEM_GROUPNAME} + fi + if getent passwd ${CONF_DTC_SYSTEM_USERNAME} >/dev/null ; then + echo "User ${CONF_DTC_SYSTEM_USERNAME} already exists: skiping creation!" + else + useradd -r -s /bin/false -g ${CONF_DTC_SYSTEM_GROUPNAME} ${CONF_DTC_SYSTEM_USERNAME} + fi + + chown ${CONF_DTC_SYSTEM_USERNAME}:${CONF_DTC_SYSTEM_GROUPNAME} /var/log/sbox.log + # Make sure the /etc/sbox/vhosts.d is owned by the correct user + chown ${CONF_DTC_SYSTEM_USERNAME}:${CONF_DTC_SYSTEM_GROUPNAME} /etc/sbox/vhosts.d +else + if getent passwd www-data >/dev/null ; then + if getent group www-data ; then + chown www-data:www-data /var/log/sbox.log + else + echo "sbox postinst: Can't find www-data group" + fi + else + echo "sbox postinst: Can't find www-data user" + fi + chown www-data:www-data /etc/sbox/vhosts.d +fi + +# Make sure our script is SUID to root, as this is how it works +chown root:root /usr/lib/cgi-bin/sbox +chmod u=+rws /usr/lib/cgi-bin/sbox + +#DEBHELPER# + +exit 0 --- sbox-dtc-1.11.7.orig/debian/postrm +++ sbox-dtc-1.11.7/debian/postrm @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e + +# Remove configuration if package is being purged +if [ "$1" = "purge" ]; then + rm -f /etc/sbox.conf + rm -rf /etc/sbox + rm -f /var/log/sbox.log +fi + +#DEBHELPER# + +exit 0 --- sbox-dtc-1.11.7.orig/debian/rules +++ sbox-dtc-1.11.7/debian/rules @@ -0,0 +1,57 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/buildflags.mk + +build-arch: build +build-indep: build +build: build-stamp +build-stamp: + dh_testdir + $(MAKE) + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + [ ! -f Makefile ] || $(MAKE) clean DESTDIR=$(CURDIR)/debian/tmp + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + $(MAKE) sbox + $(MAKE) env + install -D -m 4755 sbox debian/sbox-dtc/usr/lib/cgi-bin/sbox + install -D -m 0755 env debian/sbox-dtc/usr/share/doc/sbox-dtc/examples/env + install -D -m 0644 debian/lintian/sbox-dtc debian/sbox-dtc/usr/share/lintian/overrides/sbox-dtc + install -D -m 0644 sbox.conf debian/sbox-dtc/etc/sbox/sbox.conf + mkdir -p debian/sbox-dtc/etc/sbox/vhosts.d + +binary-indep: build install +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installlogrotate + dh_install + dh_installdirs + dh_installdebconf + dh_strip + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_compress + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- sbox-dtc-1.11.7.orig/debian/source/format +++ sbox-dtc-1.11.7/debian/source/format @@ -0,0 +1 @@ +1.0 --- sbox-dtc-1.11.7.orig/debian/templates +++ sbox-dtc-1.11.7/debian/templates @@ -0,0 +1,8 @@ +Template: sbox-dtc/conf_use_dtc_dtcgrp +Type: boolean +Default: true +_Description: Use dtc:dtcgrp for the sbox binary? + Under Debian, apache runs under www-data:www-data. This is ok if running only + apache, but if using sbox-dtc together with the DTC control panel, you need to + have sbox chown to dtc:dtcgrp. In that case, you want create the dtc user and + dtcgrp group, and chown the sbox binary to dtc:dtcgrp, otherwise you don't. --- sbox-dtc-1.11.7.orig/debian/watch +++ sbox-dtc-1.11.7/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://ftparchive.gplhost.com/debian/pool/squeeze/main/s/sbox-dtc/sbox-dtc_(.*).orig.tar.gz