debian/0000755000000000000000000000000011773402450007171 5ustar debian/changelog0000644000000000000000000000326611773402730011053 0ustar libkohana2-php (2.3.4-2) unstable; urgency=low * debian/patches: - Added 02-php5.4.diff -- use ob_end_flush() in favor of ob_end_clean() if the buffer contains any data to make sure the rendered page is actually displayed (PHP 5.4 handles end_clean() a bit different than previous versions); thanks to Bernhard Schmidt for reporting this and Jörg Linge and 'Federico' for tracking down to problem (Closes: #665197). * debian/rules: - Provide recommended targets build-arch and build-indep. * debian/control: - Updated standards-version to 3.9.3 -- no changes. -- Sebastian Harl Fri, 29 Jun 2012 21:45:04 +0200 libkohana2-php (2.3.4-1) unstable; urgency=low [ Sven Velt ] * Initial release (Closes: #611240). - Strip out DejaVu-Font and depend on ttf-dejavu-core. * libkohana2-php.lintian-overrides: Overwrite warning about embedded Markdown.php -- Kohana2 ships a modified version of that library. [ Sebastian Harl ] * debian/patches: - Added 01-font-path.diff -- let 'fontpath' point to the DejaVu fonts in '/usr/share/fonts'. * Symlink and depend on libjs-jquery rather than shipping a private copy. * Build two binary packages: libkohana2-php and libkohana2-modules-php. * debian/rules: - Repack the upstream .zip archive in 'get-orig-source' using uscan. - Ship all 'config' directories in /etc and create appropriate symlinks in the 'system' and 'modules' directories. - Do not ship a local copy of DejaVuSerif.ttf in the binary packages. * debian/watch: mangle upstream version to prefix "b" and "rc" with a tilde. -- Sebastian Harl Wed, 02 Feb 2011 14:40:13 +0100 debian/copyright0000644000000000000000000002740511736555332011143 0ustar Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=166 Upstream-Name: Kohana Upstream-Contact: Kohana Team Source: http://kohanaframework.org/download Files: * Copyright: 2007-2009 Kohana Team License: BSD-3-clause Comment: See for the list of team members. Files: system/core/utf8.php system/core/utf8/* Copyright: 2007, Kohana Team 2005, Harry Fuecks License: LGPL-2.1 Files: system/fonts/* Copyright: 2003, Bitstream, Inc. 2006, Tavmjong Bah. License: fonts-copyright Files: system/libraries/drivers/Database/Pdosqlite.php Copyright: Doutu Greg MacLellan License: BSD-3-clause Files: system/vendor/swift/* Copyright: Chris Corbyn License: LGPL-2.1 Comment: Swift was imported into Kohana in 2006 before LGPL 3 was introduced. Files: system/vendor/Markdown.php Copyright: 2004-2006, John Gruber 2004-2008, Michel Fortin License: BSD-3-clause Files: modules/kodoc/views/kodoc/media/js/jquery.js Copyright: 2007, John Resig (jquery.com) License: MIT and GPL-2+ Comment: The GPL version has been extracted from jQuery's upstream sources. Files: modules/kodoc/views/kodoc/media/js/plugins.js Copyright: 2007, George Smith License: MIT Files: debian/* Copyright: 2009-2011, Sven Velt 2011, Sebastian Harl License: BSD-2-clause License: BSD-3-clause All rights reserved. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . * Neither the name of the Kohana nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. License: BSD-2-clause All rights reserved. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 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.1 of the License, or (at your option) any later version. . This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU Lesser General Public License version 2.1 can be found in the file `/usr/share/common-licenses/LGPL-2.1'. License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. The latest version of the library can be found in the file `/usr/share/common-licenses/GPL'. License: fonts-copyright Fonts are (c) Bitstream (see below). DejaVu changes are in public domain. Glyphs imported from Arev fonts are (c) Tavmjong Bah (see below) . Bitstream Vera Fonts Copyright ------------------------------ . Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is a trademark of Bitstream, Inc. . Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions: . The above copyright and trademark notices and this permission notice shall be included in all copies of one or more of the Font Software typefaces. . The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing either the words "Bitstream" or the word "Vera". . This License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "Bitstream Vera" names. . The Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself. . THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. . Except as contained in this notice, the names of Gnome, the Gnome Foundation, and Bitstream Inc., shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Font Software without prior written authorization from the Gnome Foundation or Bitstream Inc., respectively. For further information, contact: fonts at gnome dot org. . Arev Fonts Copyright ------------------------------ . Copyright (c) 2006 by Tavmjong Bah. All Rights Reserved. . Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the modifications to the Bitstream Vera Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions: . The above copyright and trademark notices and this permission notice shall be included in all copies of one or more of the Font Software typefaces. . The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing either the words "Tavmjong Bah" or the word "Arev". . This License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "Tavmjong Bah Arev" names. . The Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself. . THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL TAVMJONG BAH BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. . Except as contained in this notice, the name of Tavmjong Bah shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Font Software without prior written authorization from Tavmjong Bah. For further information, contact: tavmjong @ free . fr. debian/libkohana2-php.lintian-overrides0000644000000000000000000000027311520251507015345 0ustar # The package includes an extended version of the library which is not # available in Debian. libkohana2-php binary: embedded-php-library usr/share/php/kohana2/system/vendor/Markdown.php debian/source/0000755000000000000000000000000011520252373010466 5ustar debian/source/format0000644000000000000000000000001411520252373011674 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000211516016056010365 0ustar 7 debian/libkohana2-modules-php.dirs0000644000000000000000000000005211522250123014304 0ustar etc/kohana2/modules usr/share/php/kohana2 debian/rules0000755000000000000000000000550511736555060010263 0ustar #!/usr/bin/make -f # debian/rules for kohana2 # # Written by Sven Velt and Sebastian Harl . # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 get-orig-source: uscan --force --verbose --repack --rename build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: dh_testdir touch $@ clean: dh_testdir dh_testroot rm -f build-stamp dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs -A cp -a system debian/libkohana2-php/usr/share/php/kohana2/ # install modules cp -a modules debian/libkohana2-modules-php/usr/share/php/kohana2/ # move config to /etc mv debian/libkohana2-php/usr/share/php/kohana2/system/config \ debian/libkohana2-php/etc/kohana2/system ln -s /etc/kohana2/system/config \ debian/libkohana2-php/usr/share/php/kohana2/system/config ( \ set -e; \ cd debian/libkohana2-modules-php/usr/share/php/kohana2/modules; \ for config in */config; do \ mkdir ../../../../../etc/kohana2/modules/$${config%\/*}; \ mv $$config ../../../../../etc/kohana2/modules/$${config%\/*}; \ ln -s /etc/kohana2/modules/$$config $$config; \ done \ ) # remove local copy of the DejaVu fonts rm -rf debian/libkohana2-php/usr/share/php/kohana2/system/fonts # replace jQuery with a symlink to the JavaScript provided by libjs-jquery rm -f debian/libkohana2-modules-php/usr/share/php/kohana2/modules/kodoc/views/kodoc/media/js/jquery.js ln -s /usr/share/javascript/jquery/jquery.js \ debian/libkohana2-modules-php/usr/share/php/kohana2/modules/kodoc/views/kodoc/media/js/jquery.js # fix permissions for file in `find debian/libkohana2-* -name '*.php'`; do \ chmod 644 $$file; \ done # remove empty directories rmdir debian/libkohana2-php/usr/share/php/kohana2/system/i18n/el_GR/ rmdir debian/libkohana2-php/usr/share/php/kohana2/system/tests/ rmdir debian/libkohana2-modules-php/usr/share/php/kohana2/modules/archive/i18n/el_GR/ rmdir debian/libkohana2-modules-php/usr/share/php/kohana2/modules/auth/controllers/ rmdir debian/libkohana2-modules-php/usr/share/php/kohana2/modules/auth/views/ rmdir debian/libkohana2-modules-php/usr/share/php/kohana2/modules/kodoc/views/kodoc/media/css/ rmdir debian/libkohana2-modules-php/usr/share/php/kohana2/modules/payment/i18n/el_GR/ rmdir debian/libkohana2-modules-php/usr/share/php/kohana2/modules/payment/i18n/es_AR/ rmdir debian/libkohana2-modules-php/usr/share/php/kohana2/modules/payment/i18n/zh_CN/ binary-indep: install dh_testdir dh_testroot dh_installchangelogs -i dh_installdocs -i dh_installexamples -i dh_lintian -i dh_installman -i dh_link -i dh_compress -i dh_fixperms -i dh_installdeb -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i binary-arch: install binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure debian/control0000644000000000000000000000327711736555634010621 0ustar Source: libkohana2-php Section: php Priority: optional Maintainer: Sven Velt Uploaders: Sebastian Harl Build-Depends: debhelper (>= 7) Standards-Version: 3.9.3 Homepage: http://kohanaframework.org/ Vcs-Git: git://git.debian.org/collab-maint/libkohana2-php.git Vcs-Browser: http://git.debian.org/?p=collab-maint/libkohana2-php.git Package: libkohana2-php Architecture: all Depends: php5 | php5-cli, ttf-dejavu-core, ${misc:Depends} Suggests: libkohana2-modules-php Description: lightweight PHP5 MVC framework Kohana is an object-oriented PHP 5 framework for developing applications using PHP. It uses the Model View Controller (MVC) design pattern and aims to be secure, lightweight, and easy to use. . This package contains the core system of the framework. Package: libkohana2-modules-php Architecture: all Depends: libkohana2-php, php5 | php5-cli, libjs-jquery, ${misc:Depends} Description: lightweight PHP5 MVC framework (extension modules) Kohana is an object-oriented PHP 5 framework for developing applications using PHP. It uses the Model View Controller (MVC) design pattern and aims to be secure, lightweight, and easy to use. . This package contains the following modules: . * archive: compressed archive creation (zip, tar, gzip, bzip) * auth: simple authentication and user management * flot: Flot (jQuery plotting plugin) integration * gmaps: Google Maps integration (geolocation and API support) * kodocs: dynamic self-generated documentation * payment: merchant and payment gateway wrappers (authorize.net, PayPal, Trident, Trust Commerce, YourPay) * smarty: Smarty (PHP template engine) integration * unit_test: unit test library debian/watch0000644000000000000000000000024011516022572010214 0ustar version=3 opts="uversionmangle=s/((?:b|rc).+)$/~$1/" \ http://dev.kohanaframework.org/projects/kohana2/files \ /attachments/download/\d+/kohana-v?(.+)\.zip debian/libkohana2-php.dirs0000644000000000000000000000005111522250140012634 0ustar etc/kohana2/system usr/share/php/kohana2 debian/patches/0000755000000000000000000000000011773402244010621 5ustar debian/patches/02-php5.4.diff0000644000000000000000000000114211773402237012710 0ustar Description: Fix for PHP 5.4. PHP 5.4 seems to handle ob_end_clean() a bit different than previous versions. Author: Sebastian Harl , Federico --- a/system/core/Kohana.php +++ b/system/core/Kohana.php @@ -692,10 +692,9 @@ Event::run('system.send_headers'); } - self::$output = $output; - - // Set and return the final output - return self::$output; + // Set the final output + self::$output = $output; + return TRUE; } /** @@ -719,7 +719,7 @@ } // Store the Kohana output buffer - ob_end_clean(); + ob_end_flush(); } } debian/patches/01-font-path.diff0000644000000000000000000000105511521544506013571 0ustar Description: Point 'fontpath' to the DejaVu fonts in '/usr/share/fonts/'. Author: Sebastian Harl Forwarded: not-needed --- libkohana2-php-2.3.4.orig/system/config/captcha.php +++ libkohana2-php-2.3.4/system/config/captcha.php @@ -23,7 +23,7 @@ $config['default'] = array 'height' => 50, 'complexity' => 4, 'background' => '', - 'fontpath' => SYSPATH.'fonts/', + 'fontpath' => '/usr/share/fonts/truetype/ttf-dejavu/', 'fonts' => array('DejaVuSerif.ttf'), 'promote' => FALSE, -); \ No newline at end of file +); debian/patches/series0000644000000000000000000000004211736544513012037 0ustar 01-font-path.diff 02-php5.4.diff