From 9d3d4cfeb8cf5ce4bd84a5e509a5b97af9e8ec90 Mon Sep 17 00:00:00 2001 From: Sven Velt Date: Thu, 20 Jan 2011 12:28:52 +0100 Subject: [PATCH 1/1] Initial import of packaging for version 2.3.4. --- debian/changelog | 6 ++ debian/compat | 1 + debian/control | 15 +++++ debian/copyright | 89 ++++++++++++++++++++++++++ debian/dirs | 1 + debian/libkohana-php.lintian-overrides | 3 + debian/rules | 85 ++++++++++++++++++++++++ 7 files changed, 200 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/dirs create mode 100644 debian/libkohana-php.lintian-overrides create mode 100644 debian/rules diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..fe7e4b0 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +libkohana-php (2.3.4-1) unstable; urgency=low + + * Initial release (Closes: #nnnnnn) + + Strip out DejaVu-Font and depend on ttf-dejavu-core + + -- Sven Velt Thu, 16 Jul 2009 11:47:47 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..37d92e2 --- /dev/null +++ b/debian/control @@ -0,0 +1,15 @@ +Source: libkohana-php +Section: php +Priority: extra +Maintainer: Sven Velt +Build-Depends: debhelper (>= 7) +Standards-Version: 3.8.1 +Homepage: http://kohanaphp.com + +Package: libkohana-php +Architecture: all +Depends: php5 | php5-cli, ttf-dejavu-core, ${misc:Depends} +Description: Lightweight PHP5 MVC framework Version 2.3 + Kohana is a PHP 5 framework that uses the Model View Controller architectural + pattern. It aims to be secure, lightweight, and easy to use. + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..a819aab --- /dev/null +++ b/debian/copyright @@ -0,0 +1,89 @@ +This package was debianized by: + + Sven Velt on Thu, 16 Jul 2009 11:47:47 +0200 + +It was downloaded from: + + http://kohanaphp.com + +Upstream Authors: + + Kohana Team + +Copyright: + + Copyright (C) 2007-2008 Kohana Team + +License: + + This package 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 package 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 package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'. + +The Debian packaging is: + + Copyright (C) 2009 Sven Velt + +and is licensed under the GPL version 3, +see `/usr/share/common-licenses/GPL-3'. + +############################################################################## +/usr/share/php/kohana/system/vendor/Markdown.php: + +PHP Markdown & Extra +Copyright (c) 2004-2008 Michel Fortin + +All rights reserved. + +Based on Markdown +Copyright (c) 2003-2006 John Gruber + +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 "Markdown" 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. + +############################################################################## +/usr/share/php/kohana/system/vendor/swift/*: + +Copyright Chris Corbyn +Licence: GNU Lesser General Public License + see '/usr/share/common-licenses/LGPL' + diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..7d024b3 --- /dev/null +++ b/debian/dirs @@ -0,0 +1 @@ +usr/share/php/kohana diff --git a/debian/libkohana-php.lintian-overrides b/debian/libkohana-php.lintian-overrides new file mode 100644 index 0000000..b6085b9 --- /dev/null +++ b/debian/libkohana-php.lintian-overrides @@ -0,0 +1,3 @@ +# Included is an extended version of the library which is not available in +# Debian +libkohana-php binary: embedded-php-library usr/share/php/kohana/system/vendor/Markdown.php diff --git a/debian/rules b/debian/rules new file mode 100644 index 0000000..9b375b0 --- /dev/null +++ b/debian/rules @@ -0,0 +1,85 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + #$(MAKE) + #docbook-to-man debian/libkohana-php.sgml > libkohana-php.1 + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + # Add here commands to install the package into debian/libkohana-php. + cp -a system $(CURDIR)/debian/libkohana-php/usr/share/php/kohana/ + # Remove DejaVu-Fonts and create symlink + rm -rf $(CURDIR)/debian/libkohana-php/usr/share/php/kohana/system/fonts + ln -s /usr/share/fonts/truetype/ttf-dejavu $(CURDIR)/debian/libkohana-php/usr/share/php/kohana/system/fonts + + +# Build architecture-independent files here. +binary-indep: install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_installwm +# dh_installudev + dh_lintian +# dh_undocumented + dh_installman + dh_link + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: install + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure -- 2.30.2