From a679d05dbe9100b623f3bf5d837bda768cbe8cf8 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Mon, 18 Nov 2019 10:49:54 +0100 Subject: [PATCH] Import Debian changes 3.1.34+20190228.1.c9f0de05+selfpack1-1 smarty3 (3.1.34+20190228.1.c9f0de05+selfpack1-1) unstable; urgency=medium * New upstream release. * debian/control: + Bump Standards-Version: to 4.4.1. No changes needed. + Add Rules-Requires-Root: field and set it to "no". * debian/{control,compat}: + Switch to debhelper-compat notation. Bump DH comat level to version 12. smarty3 (3.1.33+20180830.1.3a78a21f+selfpack1-1) unstable; urgency=medium * New upstream release. - CVE-2018-16831: Don't bypass trusted directories with "../". (Closes: #908698). * debian/control: + Bump Standards-Version: to 4.2.1. No changes needed. smarty3 (3.1.32+20180424.1.ac9d4b58+selfpack1-1) unstable; urgency=medium * New upstream release. * debian/*: White-space clean-up at EOL. * debian/patches: + Drop 0001_CVE-2017-1000480.patch. Applied upstream. * debian/rules: + Avoid using dpkg-parsechangelog. * debian/copyright: + Update copyright attributions. + Use secure URI to obtain copyright references. + Add global Comment: field. Explain about brokenness of upstream tarballs. * debian/control: + Update Vcs-*: fields. Packaging Git has been migrated to salsa.debian.org. + Bump Standards-Version: to 4.1.4. No changes needed. * debian/{control,compat}: + Bump DH version level to 11. smarty3 (3.1.31+20161214.1.c7d42e4+selfpack1-3) unstable; urgency=medium * debian/patches: + Add 0001_CVE-2017-1000480.patch. Fixes CVE-2017-1000480. (Closes: #886460). smarty3 (3.1.31+20161214.1.c7d42e4+selfpack1-2) unstable; urgency=medium * Re-upload to Debian unstable to enforce package rebuild (as we don't have binNMUs for arch:all packages). * debian/control: + Update versioned B-D on smarty-lexer (>= 3.1.30+dfsg1-1.1~). This is to assure correct lexer/parser generation which was broken by smarty-lexer 3.1.30+dfsg1-1. See Debian bug #847571 for further reference. smarty3 (3.1.31+20161214.1.c7d42e4+selfpack1-1) unstable; urgency=medium * New upstream release. * debian/rules: + Self-pack orig tarball from Git commit, due to broken upstream tarball generation on Github. For details see: https://github.com/smarty-php/smarty/issues/325 * debian/copyright: + Update copyright attributions. smarty3 (3.1.30-1) unstable; urgency=medium * Upload to unstable. * Update versioned B-D: + smarty-lexert (>= 3.1.30+dfsg1-1~). smarty3 (3.1.30-1~exp1) experimental; urgency=medium * New upstream release. Upload to experimental for testing with GOsa, FusionDirectory and other web portals that depend on Smarty3. * debian/copyright: + Update copyright attributions. smarty3 (3.1.29-2) unstable; urgency=medium * Re-upload unchanged to unstable. smarty3 (3.1.29-1) experimental; urgency=medium * New upstream release. (Closes: #825250). * debian/smarty3-lexer: + Remove shipped-with .plex and .y files for template and configfile parser/lexer. This version uses smarty-lexer src:package at build time instead. * debian/control: + Add B-D pkg-php-tools (for dh_phpcomposer) + Versioned B-D: debhelper (>= 9). + Use encrypted URLs for Vcs-*: field. + Bump Standards: to 3.9.8. No changes needed. * debian/{control,rules}: + Create internal lexer and parser PHP code at package build time (using B-D smarty-lexer). (Closes: #765730). This also solves issues in Debian package smarty3 3.1.21-1 caused by lexer/parser PHP files using the old trigger_error class API of Smarty.class.php. (Closes: #799282). * debian/smarty3.{install,docs}: + Use debhelper for installing bin:package files. * debian/compat: + Bump to DH version level 9. * debian/watch: + Upstream location has changed, now on Github. * debian/rules: + Use pure debhelper, with phpcomposer. + Make package build idempotent. * debian/copyright: + Update copyright attributions. smarty3 (3.1.21-1.1) unstable; urgency=medium * Non-maintainer upload in coordination with the maintainer. * Update depends and README.Debian for the php 7.0 transition. Thanks to Wolfgang Schweer for the patch! (Closes: #821660) smarty3 (3.1.21-1) unstable; urgency=medium * New upstream release. (Closes: #765920). * debian/smarty3-lexer: + Add 4 files from smarty3 SVN that are used to generate some PHP files in the upstream tarball. See README.lexer for details. (Closes: #636148). * debian/copyright: + Add copyright information for debian/smarty3-lexer/*. + Fix upstream license (LGPL-3 -> LGPL-3+) after reading the upstream- shipped COPYING.lib file more thoroughly. + Relicense debian/* under same license as upstream sources (LGPL-3+). * debian/control: + Bump Standards: to 3.9.6. No changes needed. smarty3 (3.1.19-1) unstable; urgency=medium * New upstream release. + Obtain upstream sources as zip files from upstream. Stop checking out SVN tags. This change drops three embedded PHP libraries and files with problematic PHP licenses. (Closes: #752614). * debian/control: + Alioth-canonicalize Vcs-Git field. + Bump Standards: to 3.9.5. No changes needed. * lintian: + Drop unused override: embedded-php-library. smarty3 (3.1.13-1) unstable; urgency=low * New upstream release. * /debian/control: + Use my DD address in Maintainer: field. + Bump Standards: to 3.9.4. No changes needed. * /debian/patches: + Drop patch: 001_escape-smarty-exception-messages.patch, included in new upstream release. smarty3 (3.1.10-2) unstable; urgency=low * Fix CVE-2012-4437: Add patch 001_escape-smarty-exception-messages.patch. Closes: #688153. smarty3 (3.1.10-1) unstable; urgency=low * New upstream release. Closes: #678095. smarty3 (3.1.8-2) unstable; urgency=low * Package smarty3 provides smarty (closes: #657536). * Make /debian/copyright machine parsable, explicitly names files that have dissenting licenses, license /debian folder under GPLv2+. smarty3 (3.1.8-1) experimental; urgency=low * New upstream release (rev. 4611). * New package maintainer (closes: #668200). * Add watch file (closes: #657385). * Add Vcs-* lines to control file. * Add README.source that explains how we obtain code from upstream SVN. Make sure all upstream source files are shipped with the Debian source package (closes: #636148). smarty3 (3.1.0-1) experimental; urgency=low * New upstream release (rev. 4284) * Used the code source from subversion (Closes: #636148) * debian/copyright: + added LexerGenerator copyright + added ParserGenerator copyright * Fixed security holes: + multiple unspecified vulnerabilities (CVE-2009-5052, CVE-2009-5053, CVE-2010-4722, CVE-2010-4724, CVE-2010-4726) + not consider the umask value when setting the permissions of files (CVE-2009-5054) + not prevent access to the dynamic and private object members of an assigned object (CVE-2010-4723) + not properly handle an on value of the asp_tags option in the php.ini file (CVE-2010-4725) + not properly handle the tags (CVE-2010-4727) smarty3 (3.0.8-1) unstable; urgency=low * New upstream release (Closes: #631619) * Bumped Standards-Version to 3.9.2 * Updated licence to LGPL-3 smarty3 (3.0~rc1-2) unstable; urgency=low * Bumped Standards-Version to 3.9.1 * Removed debian/watch smarty3 (3.0~rc1-1) unstable; urgency=low * Initial release (Closes: #580754) --- debian/README.Debian | 12 ++ debian/changelog | 253 +++++++++++++++++++++++++++++++++++++++++ debian/control | 37 ++++++ debian/copyright | 52 +++++++++ debian/rules | 97 ++++++++++++++++ debian/smarty3.dirs | 2 + debian/smarty3.docs | 3 + debian/smarty3.install | 1 + debian/source/format | 1 + debian/watch | 3 + 10 files changed, 461 insertions(+) create mode 100644 debian/README.Debian create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/smarty3.dirs create mode 100644 debian/smarty3.docs create mode 100644 debian/smarty3.install create mode 100644 debian/source/format create mode 100644 debian/watch diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..5d392cf --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,12 @@ +smarty3 for Debian +------------------ + +In order to use Smarty 3 from your php scripts, you'll have to add +/usr/share/php/smarty3 on the include_path of php, that is in the +file /etc/php/{apache,apache2}/php.ini or use +require("smarty3/Smarty.class.php"); + +On smarty update, please note you will have to clear out all smarty +generated files, by default in a templates_c directory. + + -- Thierry Randrianiriana , Sat, 8 May 2010 15:05:10 +0300 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..905c695 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,253 @@ +smarty3 (3.1.34+20190228.1.c9f0de05+selfpack1-1) unstable; urgency=medium + + * New upstream release. + * debian/control: + + Bump Standards-Version: to 4.4.1. No changes needed. + + Add Rules-Requires-Root: field and set it to "no". + * debian/{control,compat}: + + Switch to debhelper-compat notation. Bump DH comat level to version 12. + + -- Mike Gabriel Mon, 18 Nov 2019 10:49:54 +0100 + +smarty3 (3.1.33+20180830.1.3a78a21f+selfpack1-1) unstable; urgency=medium + + * New upstream release. + - CVE-2018-16831: Don't bypass trusted directories with "../". (Closes: + #908698). + * debian/control: + + Bump Standards-Version: to 4.2.1. No changes needed. + + -- Mike Gabriel Mon, 17 Sep 2018 13:04:18 +0200 + +smarty3 (3.1.32+20180424.1.ac9d4b58+selfpack1-1) unstable; urgency=medium + + * New upstream release. + * debian/*: White-space clean-up at EOL. + * debian/patches: + + Drop 0001_CVE-2017-1000480.patch. Applied upstream. + * debian/rules: + + Avoid using dpkg-parsechangelog. + * debian/copyright: + + Update copyright attributions. + + Use secure URI to obtain copyright references. + + Add global Comment: field. Explain about brokenness of upstream tarballs. + * debian/control: + + Update Vcs-*: fields. Packaging Git has been migrated to + salsa.debian.org. + + Bump Standards-Version: to 4.1.4. No changes needed. + * debian/{control,compat}: + + Bump DH version level to 11. + + -- Mike Gabriel Sun, 27 May 2018 23:21:33 +0200 + +smarty3 (3.1.31+20161214.1.c7d42e4+selfpack1-3) unstable; urgency=medium + + * debian/patches: + + Add 0001_CVE-2017-1000480.patch. Fixes CVE-2017-1000480. (Closes: + #886460). + + -- Mike Gabriel Sun, 14 Jan 2018 11:13:16 +0100 + +smarty3 (3.1.31+20161214.1.c7d42e4+selfpack1-2) unstable; urgency=medium + + * Re-upload to Debian unstable to enforce package rebuild (as we don't + have binNMUs for arch:all packages). + + * debian/control: + + Update versioned B-D on smarty-lexer (>= 3.1.30+dfsg1-1.1~). + This is to assure correct lexer/parser generation which was broken by + smarty-lexer 3.1.30+dfsg1-1. See Debian bug #847571 for further + reference. + + -- Mike Gabriel Tue, 21 Mar 2017 10:13:01 +0100 + +smarty3 (3.1.31+20161214.1.c7d42e4+selfpack1-1) unstable; urgency=medium + + * New upstream release. + * debian/rules: + + Self-pack orig tarball from Git commit, due to broken upstream + tarball generation on Github. For details see: + https://github.com/smarty-php/smarty/issues/325 + * debian/copyright: + + Update copyright attributions. + + -- Mike Gabriel Tue, 24 Jan 2017 21:17:51 +0100 + +smarty3 (3.1.30-1) unstable; urgency=medium + + * Upload to unstable. + * Update versioned B-D: + + smarty-lexert (>= 3.1.30+dfsg1-1~). + + -- Mike Gabriel Fri, 25 Nov 2016 19:52:30 +0100 + +smarty3 (3.1.30-1~exp1) experimental; urgency=medium + + * New upstream release. Upload to experimental for testing with + GOsa, FusionDirectory and other web portals that depend on Smarty3. + * debian/copyright: + + Update copyright attributions. + + -- Mike Gabriel Thu, 20 Oct 2016 14:00:22 +0200 + +smarty3 (3.1.29-2) unstable; urgency=medium + + * Re-upload unchanged to unstable. + + -- Mike Gabriel Fri, 07 Oct 2016 14:03:44 +0200 + +smarty3 (3.1.29-1) experimental; urgency=medium + + * New upstream release. (Closes: #825250). + * debian/smarty3-lexer: + + Remove shipped-with .plex and .y files for template and configfile + parser/lexer. This version uses smarty-lexer src:package at build + time instead. + * debian/control: + + Add B-D pkg-php-tools (for dh_phpcomposer) + + Versioned B-D: debhelper (>= 9). + + Use encrypted URLs for Vcs-*: field. + + Bump Standards: to 3.9.8. No changes needed. + * debian/{control,rules}: + + Create internal lexer and parser PHP code at package build time (using + B-D smarty-lexer). (Closes: #765730). This also solves issues in Debian + package smarty3 3.1.21-1 caused by lexer/parser PHP files using the old + trigger_error class API of Smarty.class.php. (Closes: #799282). + * debian/smarty3.{install,docs}: + + Use debhelper for installing bin:package files. + * debian/compat: + + Bump to DH version level 9. + * debian/watch: + + Upstream location has changed, now on Github. + * debian/rules: + + Use pure debhelper, with phpcomposer. + + Make package build idempotent. + * debian/copyright: + + Update copyright attributions. + + -- Mike Gabriel Mon, 30 May 2016 14:03:16 +0200 + +smarty3 (3.1.21-1.1) unstable; urgency=medium + + * Non-maintainer upload in coordination with the maintainer. + * Update depends and README.Debian for the php 7.0 transition. Thanks to + Wolfgang Schweer for the patch! (Closes: #821660) + + -- Holger Levsen Mon, 23 May 2016 11:32:02 +0200 + +smarty3 (3.1.21-1) unstable; urgency=medium + + * New upstream release. (Closes: #765920). + * debian/smarty3-lexer: + + Add 4 files from smarty3 SVN that are used to generate some PHP + files in the upstream tarball. See README.lexer for details. + (Closes: #636148). + * debian/copyright: + + Add copyright information for debian/smarty3-lexer/*. + + Fix upstream license (LGPL-3 -> LGPL-3+) after reading the upstream- + shipped COPYING.lib file more thoroughly. + + Relicense debian/* under same license as upstream sources (LGPL-3+). + * debian/control: + + Bump Standards: to 3.9.6. No changes needed. + + -- Mike Gabriel Sun, 19 Oct 2014 23:45:18 +0200 + +smarty3 (3.1.19-1) unstable; urgency=medium + + * New upstream release. + + Obtain upstream sources as zip files from upstream. Stop checking out + SVN tags. This change drops three embedded PHP libraries and files with + problematic PHP licenses. (Closes: #752614). + * debian/control: + + Alioth-canonicalize Vcs-Git field. + + Bump Standards: to 3.9.5. No changes needed. + * lintian: + + Drop unused override: embedded-php-library. + + -- Mike Gabriel Mon, 04 Aug 2014 21:32:20 +0200 + +smarty3 (3.1.13-1) unstable; urgency=low + + * New upstream release. + * /debian/control: + + Use my DD address in Maintainer: field. + + Bump Standards: to 3.9.4. No changes needed. + * /debian/patches: + + Drop patch: 001_escape-smarty-exception-messages.patch, included in new + upstream release. + + -- Mike Gabriel Mon, 06 May 2013 10:19:14 +0200 + +smarty3 (3.1.10-2) unstable; urgency=low + + * Fix CVE-2012-4437: Add patch 001_escape-smarty-exception-messages.patch. + Closes: #688153. + + -- Mike Gabriel Sat, 22 Sep 2012 21:32:58 +0200 + +smarty3 (3.1.10-1) unstable; urgency=low + + * New upstream release. Closes: #678095. + + -- Mike Gabriel Tue, 19 Jun 2012 16:41:06 +0200 + +smarty3 (3.1.8-2) unstable; urgency=low + + * Package smarty3 provides smarty (closes: #657536). + * Make /debian/copyright machine parsable, explicitly names files that + have dissenting licenses, license /debian folder under GPLv2+. + + -- Mike Gabriel Thu, 17 May 2012 00:32:29 +0200 + +smarty3 (3.1.8-1) experimental; urgency=low + + * New upstream release (rev. 4611). + * New package maintainer (closes: #668200). + * Add watch file (closes: #657385). + * Add Vcs-* lines to control file. + * Add README.source that explains how we obtain code from + upstream SVN. Make sure all upstream source files are + shipped with the Debian source package (closes: #636148). + + -- Mike Gabriel Thu, 10 May 2012 10:44:55 +0200 + +smarty3 (3.1.0-1) experimental; urgency=low + + * New upstream release (rev. 4284) + * Used the code source from subversion (Closes: #636148) + * debian/copyright: + + added LexerGenerator copyright + + added ParserGenerator copyright + * Fixed security holes: + + multiple unspecified vulnerabilities (CVE-2009-5052, CVE-2009-5053, + CVE-2010-4722, CVE-2010-4724, CVE-2010-4726) + + not consider the umask value when setting the permissions of files + (CVE-2009-5054) + + not prevent access to the dynamic and private object members of an + assigned object (CVE-2010-4723) + + not properly handle an on value of the asp_tags option in the php.ini file + (CVE-2010-4725) + + not properly handle the tags (CVE-2010-4727) + + -- Thierry Randrianiriana Sat, 17 Sep 2011 21:22:11 +0300 + +smarty3 (3.0.8-1) unstable; urgency=low + + * New upstream release (Closes: #631619) + * Bumped Standards-Version to 3.9.2 + * Updated licence to LGPL-3 + + -- Thierry Randrianiriana Wed, 20 Jul 2011 11:29:24 +0300 + +smarty3 (3.0~rc1-2) unstable; urgency=low + + * Bumped Standards-Version to 3.9.1 + * Removed debian/watch + + -- Thierry Randrianiriana Tue, 21 Sep 2010 14:45:44 +0300 + +smarty3 (3.0~rc1-1) unstable; urgency=low + + * Initial release (Closes: #580754) + + -- Thierry Randrianiriana Sat, 08 May 2010 14:36:04 +0300 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..107902a --- /dev/null +++ b/debian/control @@ -0,0 +1,37 @@ +Source: smarty3 +Section: web +Priority: optional +Maintainer: Mike Gabriel +Uploaders: + Debian Edu Packaging Team , +Build-Depends: + debhelper-compat (= 12), + pkg-php-tools (>= 1.7~), + smarty-lexer (>= 3.1.30+dfsg1-1.1~), +Standards-Version: 4.4.1 +Rules-Requires-Root: no +Vcs-Git: https://salsa.debian.org/debian/smarty3.git +Vcs-Browser: https://salsa.debian.org/debian/smarty3 +Homepage: http://www.smarty.net/ + +Package: smarty3 +Architecture: all +Depends: + php | php-cgi | php-cli, + ${misc:Depends}, + ${phpcomposer:Debian-require}, +Provides: + ${phpcomposer:Debian-provide}, +Suggests: + ${phpcomposer:Debian-suggest}, +Conflicts: + ${phpcomposer:Debian-conflict}, +Description: ${phpcomposer:description} + Smarty is a template engine for PHP. More specifically, it + facilitates a manageable way to separate application logic and content + from its presentation. + . + Smarty 3.1 is a departure from 2.0 compatibility. Most notably, all + backward compatibility has been moved to a separate class file named + SmartyBC.class.php. If you require compatibility with 2.0, you will + need to use this class. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..c1a40ef --- /dev/null +++ b/debian/copyright @@ -0,0 +1,52 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Smarty +Upstream-Contact: + Monte Ohrt + Uwe Tews +Source: http://www.smarty.net +Comment: + Tarball self-packed due to broken upstream tarballs (since 3.1.31). + See: https://github.com/smarty-php/smarty/issues/325 + +Files: change_log.txt + COMPOSER_RELEASE_NOTES.txt + demo/* + lexer/* + libs/* + utilities/* + INHERITANCE_RELEASE_NOTES.txt + NEW_FEATURES.txt + README + README.md + SMARTY_2_BC_NOTES.txt + SMARTY_3.0_BC_NOTES.txt + SMARTY_3.1_NOTES.txt + composer.json + error_reporting.ini +Copyright: + 2001-2008, New Digital Group, Inc. +License: LGPL-3+ + +Files: debian/* +Copyright: + 2010-2011, Thierry Randrianiriana + 2012, Mike Gabriel +License: LGPL-3+ + +License: LGPL-3+ + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 3 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 + Library General Public License for more details. + . + You should have received a copy of the GNU Library 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 complete text of the GNU Library General + Public License version 3 can be found in "/usr/share/common-licenses/LGPL-3". diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..ed9468f --- /dev/null +++ b/debian/rules @@ -0,0 +1,97 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +#export DH_VERBOSE=1 + +include /usr/share/dpkg/pkg-info.mk + +%: + dh $@ --with phpcomposer + +override_dh_auto_build: + if [ ! -e libs/sysplugins/smarty_internal_configfilelexer.php.orig ]; then \ + cp libs/sysplugins/smarty_internal_configfilelexer.php libs/sysplugins/smarty_internal_configfilelexer.php.orig; \ + fi + if [ ! -e libs/sysplugins/smarty_internal_configfileparser.php.orig ]; then \ + cp libs/sysplugins/smarty_internal_configfileparser.php libs/sysplugins/smarty_internal_configfileparser.php.orig; \ + fi + php /usr/share/php/smarty-lexer/Create_Config_Parser.php + + if [ ! -e libs/sysplugins/smarty_internal_templatelexer.php.orig ]; then \ + cp libs/sysplugins/smarty_internal_templatelexer.php libs/sysplugins/smarty_internal_templatelexer.php.orig; \ + fi + if [ ! -e libs/sysplugins/smarty_internal_templateparser.php.orig ]; then \ + cp libs/sysplugins/smarty_internal_templateparser.php libs/sysplugins/smarty_internal_templateparser.php.orig; \ + fi + php /usr/share/php/smarty-lexer/Create_Template_Parser.php + + dh_auto_build + +override_dh_auto_clean: + if [ -e libs/sysplugins/smarty_internal_configfilelexer.php.orig ]; then \ + mv libs/sysplugins/smarty_internal_configfilelexer.php.orig libs/sysplugins/smarty_internal_configfilelexer.php; \ + fi + if [ -e libs/sysplugins/smarty_internal_configfileparser.php.orig ]; then \ + mv libs/sysplugins/smarty_internal_configfileparser.php.orig libs/sysplugins/smarty_internal_configfileparser.php; \ + fi + + if [ -e libs/sysplugins/smarty_internal_templatelexer.php.orig ]; then \ + mv libs/sysplugins/smarty_internal_templatelexer.php.orig libs/sysplugins/smarty_internal_templatelexer.php; \ + fi + if [ -e libs/sysplugins/smarty_internal_templateparser.php.orig ]; then \ + mv libs/sysplugins/smarty_internal_templateparser.php.orig libs/sysplugins/smarty_internal_templateparser.php; \ + fi + + rm -f lexer/smarty_internal_configfilelexer.php + rm -f lexer/smarty_internal_configfileparser.out + rm -f lexer/smarty_internal_configfileparser.php + rm -f lexer/smarty_internal_templatelexer.php + rm -f lexer/smarty_internal_templateparser.out + rm -f lexer/smarty_internal_templateparser.php + +override_dh_install: + dh_install + rm -f debian/smarty3/usr/share/php/smarty3/sysplugins/*.php.bak + rm -f debian/smarty3/usr/share/php/smarty3/sysplugins/*.php.bak + rm -f debian/smarty3/usr/share/php/smarty3/sysplugins/*.php.orig + rm -f debian/smarty3/usr/share/php/smarty3/sysplugins/*.php.orig + +override_dh_installchangelogs: + dh_installchangelogs change_log.txt + +PKD = $(word 1,$(abspath $(dir $(MAKEFILE_LIST)))) +PKG = $(DEB_SOURCE) +UVER = $(shell echo $(DEB_VERSION) | cut -d "-" -f1) +DTYPE = +selfpack1 +VER ?= $(subst $(DTYPE),,$(UVER)) + +UURL = git://github.com/smarty-php/smarty.git +UREV = $(shell echo $(VER) | cut -d"." -f5) + +## http://wiki.debian.org/onlyjob/get-orig-source +.PHONY: get-orig-source +get-orig-source: $(PKG)_$(VER)$(DTYPE).orig.tar.xz $(info I: $(PKG)_$(VER)$(DTYPE)) + @ + +$(PKG)_$(VER)$(DTYPE).orig.tar.xz: $(info I: GIT Revision=$(UREV)) + $(if $(wildcard $(PKG)-$(VER)),$(error $(PKG)-$(VER) exist, aborting..)) + @echo "# Downloading..." + git clone $(UURL) $(PKG)-$(VER) \ + || $(RM) -r $(PKG)-$(VER) + cd $(PKG)-$(VER) \ + && git checkout "$(UREV)" \ + && echo "# Setting times..." \ + && for F in $$(git ls-tree -r --name-only HEAD); do touch --no-dereference -d "$$(git log -1 --format="%ai" -- $$F)" "$$F"; done \ + && echo "# Cleaning-up..." \ + && rm -rf \ + .travis.yml \ + travis.ini \ + && $(RM) -r .git .git* + @echo "# Packing..." + find -L "$(PKG)-$(VER)" -xdev -type f -print | sort \ + | XZ_OPT="-6v" tar -caf "../$(PKG)_$(VER)$(DTYPE).orig.tar.xz" -T- --owner=root --group=root --mode=a+rX \ + && $(RM) -r "$(PKG)-$(VER)" + +### Github provides broken tarballs for 3.1.31, see https://github.com/smarty-php/smarty/issues/325 +#get-orig-source: +# uscan --noconf --force-download --rename --download-current-version --destdir=.. diff --git a/debian/smarty3.dirs b/debian/smarty3.dirs new file mode 100644 index 0000000..64a3c93 --- /dev/null +++ b/debian/smarty3.dirs @@ -0,0 +1,2 @@ +usr/share/php/smarty3 +usr/share/doc/smarty3 diff --git a/debian/smarty3.docs b/debian/smarty3.docs new file mode 100644 index 0000000..d7e1c7d --- /dev/null +++ b/debian/smarty3.docs @@ -0,0 +1,3 @@ +README +SMARTY* +demo/ diff --git a/debian/smarty3.install b/debian/smarty3.install new file mode 100644 index 0000000..eeee7b3 --- /dev/null +++ b/debian/smarty3.install @@ -0,0 +1 @@ +libs/* usr/share/php/smarty3/ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..478d2fc --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts=filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/smarty-$1.tar.gz/ \ +https://github.com/smarty-php/smarty/tags .*/archive/v?([\d\.]+).tar.gz