--- libcgi-ssi-perl-0.88.orig/debian/changelog +++ libcgi-ssi-perl-0.88/debian/changelog @@ -0,0 +1,48 @@ +libcgi-ssi-perl (0.88-2) unstable; urgency=low + + * Applied NMU patch. Thanks Thijs Kinkhorst, + * Skip tests in 'make test' that try to access remote sites. + Closes: #337391. + + -- Piotr Roszatycki Mon, 3 Apr 2006 21:51:30 +0200 + +libcgi-ssi-perl (0.88-1) unstable; urgency=low + + * New upstream release. Closes: #329501. + + -- Piotr Roszatycki Tue, 4 Oct 2005 11:32:50 +0200 + +libcgi-ssi-perl (0.53-5) unstable; urgency=low + + * Remove Origin field and make lintian happy. + + -- Piotr Roszatycki Mon, 9 Aug 2004 11:16:17 +0200 + +libcgi-ssi-perl (0.53-4) unstable; urgency=low + + * Fix wrong case in Origin field, closes: #154414. + * Remove Bugs field, closes: #220082. + * Section: perl + * Tweaked dependencies. + * `make test' on build. + + -- Piotr Roszatycki Thu, 11 Mar 2004 20:33:23 +0100 + +libcgi-ssi-perl (0.53-3) unstable; urgency=low + + * Architecture: all + + -- Piotr Roszatycki Wed, 19 Dec 2001 10:12:00 +0100 + +libcgi-ssi-perl (0.53-2) unstable; urgency=low + + * Build-Depends-Indep in debian/control + + -- Piotr Roszatycki Wed, 17 Oct 2001 14:46:49 +0200 + +libcgi-ssi-perl (0.53-1) unstable; urgency=low + + * Initial Debian version, closes: #104050 + + -- Piotr Roszatycki Mon, 9 Jul 2001 12:59:35 +0200 + --- libcgi-ssi-perl-0.88.orig/debian/rules +++ libcgi-ssi-perl-0.88/debian/rules @@ -0,0 +1,246 @@ +#!/usr/bin/make -f +# Generated automatically from debian/packages +# by yada v0.48, of Wed, 28 Sep 2005 + +DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH 2>/dev/null) +DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS 2>/dev/null) +DEB_HOST_ARCH_CPU := $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU 2>/dev/null) +DEB_HOST_GNU_CPU := $(shell dpkg-architecture -qDEB_HOST_GNU_CPU 2>/dev/null) +DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE 2>/dev/null) +DEB_HOST_GNU_SYSTEM := $(shell dpkg-architecture -qDEB_HOST_GNU_SYSTEM 2>/dev/null) + +DEB_BUILD_ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH 2>/dev/null) +DEB_BUILD_ARCH_OS := $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS 2>/dev/null) +DEB_BUILD_ARCH_CPU := $(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU 2>/dev/null) +DEB_BUILD_GNU_CPU := $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU 2>/dev/null) +DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE 2>/dev/null) +DEB_BUILD_GNU_SYSTEM := $(shell dpkg-architecture -qDEB_BUILD_GNU_SYSTEM 2>/dev/null) + +# Take account of old dpkg-architecture output. +ifeq ($(DEB_HOST_ARCH_CPU),) + DEB_HOST_ARCH_CPU := $(DEB_HOST_GNU_CPU)) + ifeq ($(DEB_HOST_ARCH_CPU),i486) + DEB_HOST_ARCH_OS := i386 + else + ifeq ($(DEB_HOST_ARCH_CPU),x86_64) + DEB_HOST_ARCH_OS := amd64 + endif + endif +endif +ifeq ($(DEB_HOST_ARCH_OS),) + DEB_HOST_ARCH_OS := $(subst -gnu,,$(DEB_HOST_GNU_SYSTEM)) + ifeq ($(DEB_HOST_ARCH_OS),gnu) + DEB_HOST_ARCH_OS := hurd + endif +endif +ifeq ($(DEB_BUILD_ARCH_CPU),) + DEB_BUILD_ARCH_CPU := $(DEB_BUILD_GNU_CPU)) + ifeq ($(DEB_BUILD_ARCH_CPU),i486) + DEB_BUILD_ARCH_OS := i386 + else + ifeq ($(DEB_BUILD_ARCH_CPU),x86_64) + DEB_BUILD_ARCH_OS := amd64 + endif + endif +endif +ifeq ($(DEB_BUILD_ARCH_OS),) + DEB_BUILD_ARCH_OS := $(subst -gnu,,$(DEB_BUILD_GNU_SYSTEM)) + ifeq ($(DEB_BUILD_ARCH_OS),gnu) + DEB_BUILD_ARCH_OS := hurd + endif +endif + +LEFT_PARENTHESIS:=( +VERSION:=$(shell head -n1 debian/changelog | sed -e "s/^[0-9a-zA-Z.-]* $(LEFT_PARENTHESIS)//" -e "s/[^0-9a-zA-Z.:+~-].*//") + +SHELL=/bin/bash + +.PHONY: default +default: + @echo "Specify a target:"; \ + echo " build compile the package"; \ + echo " build-arch compile the architecture-dependent package"; \ + echo " build-indep compile the architecture-independent package"; \ + echo " binary make all binary packages"; \ + echo " binary-arch make all architecture-dependent binary packages"; \ + echo " binary-indep make all architecture-independent binary packages"; \ + echo " clean clean up the source package"; \ + echo; \ + echo " clean-install-tree clean up only under debian/"; \ + echo + +# Build the package and prepare the install tree + +.PHONY: build-only build +build-only: debian/build-stamp +build: build-only + +.PHONY: build-arch-only build-arch +build-arch-only: debian/build-arch-stamp +build-arch: build-arch-only + +.PHONY: build-indep-only build-indep +build-indep-only: debian/build-indep-stamp +build-indep: build-indep-only + +# Make sure these rules and the control file are up-to-date + +.PHONY: rules control templates +rules: debian/rules +debian/rules: $(shell which yada) debian/packages-tmp + yada rebuild rules + +control: debian/control +debian/control: $(shell which yada) debian/packages-tmp + yada rebuild control + +templates: debian/templates debian/po/POTFILES.in +debian/templates: $(shell which yada) debian/packages-tmp + yada rebuild templates +debian/po/POTFILES.in: $(shell which yada) debian/packages-tmp + yada rebuild templates + +debian/build-stamp: debian/build-arch-stamp debian/build-indep-stamp + @[ -f $(shell which yada) -a -f debian/rules ] + yada patch "debian/patches/*.patch" + @umask 022 \ + && export pwd="$$(pwd)" \ + && export TMPROOT="$$(pwd)/debian/tmp" \ + && export SOURCE="libcgi-ssi-perl" \ + && export VERSION="$(VERSION)" \ + && export DEB_HOST_GNU_CPU="$(DEB_HOST_GNU_CPU)" \ + && export DEB_HOST_GNU_TYPE="$(DEB_HOST_GNU_TYPE)" \ + && export DEB_HOST_GNU_SYSTEM="$(DEB_HOST_GNU_SYSTEM)" \ + && export DEB_BUILD_GNU_CPU="$(DEB_BUILD_GNU_CPU)" \ + && export DEB_BUILD_GNU_TYPE="$(DEB_BUILD_GNU_TYPE)" \ + && export DEB_BUILD_GNU_SYSTEM="$(DEB_BUILD_GNU_SYSTEM)" && (\ + echo -E 'eval "yada () { perl $$(which yada) \"\$$@\"; }"; set -e; set -v';\ + echo -E 'PERL=$${PERL:-/usr/bin/perl}';\ + echo -E '$$PERL Makefile.PL INSTALLDIRS=vendor';\ + echo -E 'make';\ + echo -E 'make test') | /bin/sh + touch debian/build-stamp + +debian/build-arch-stamp: + @[ -f $(shell which yada) -a -f debian/rules ] + yada patch "debian/patches/*.patch" + touch debian/build-arch-stamp + +debian/build-indep-stamp: + @[ -f $(shell which yada) -a -f debian/rules ] + yada patch "debian/patches/*.patch" + touch debian/build-indep-stamp + +.PHONY: install-tree +install-tree: install-tree-any +install-tree-any: \ + debian/tmp-libcgi-ssi-perl/DEBIAN/control + +debian/tmp-libcgi-ssi-perl/DEBIAN/control: debian/build-stamp debian/control + rm -rf debian/tmp-libcgi-ssi-perl + umask 022 && install -d debian/tmp-libcgi-ssi-perl/DEBIAN + install -d debian/tmp-libcgi-ssi-perl/usr/share/doc/libcgi-ssi-perl + umask 022; yada generate copyright \ + > debian/tmp-libcgi-ssi-perl/usr/share/doc/libcgi-ssi-perl/copyright + install -m 644 -p debian/changelog \ + debian/tmp-libcgi-ssi-perl/usr/share/doc/libcgi-ssi-perl/changelog.Debian + @umask 022 \ + && export pwd="$$(pwd)" \ + && export ROOT="$$(pwd)/debian/tmp-libcgi-ssi-perl" \ + && export TMPROOT="$$(pwd)/debian/tmp" \ + && export CONTROL="$$(pwd)/debian/tmp-libcgi-ssi-perl/DEBIAN" \ + && export PACKAGE="libcgi-ssi-perl" \ + && export SOURCE="libcgi-ssi-perl" \ + && export VERSION="$(VERSION)" \ + && export DEB_HOST_GNU_CPU="$(DEB_HOST_GNU_CPU)" \ + && export DEB_HOST_GNU_TYPE="$(DEB_HOST_GNU_TYPE)" \ + && export DEB_HOST_GNU_SYSTEM="$(DEB_HOST_GNU_SYSTEM)" \ + && export DEB_BUILD_GNU_CPU="$(DEB_BUILD_GNU_CPU)" \ + && export DEB_BUILD_GNU_TYPE="$(DEB_BUILD_GNU_TYPE)" \ + && export DEB_BUILD_GNU_SYSTEM="$(DEB_BUILD_GNU_SYSTEM)" && (\ + echo -E 'eval "yada () { perl $$(which yada) \"\$$@\"; }"; set -e; set -v';\ + echo -E 'PERL=$${PERL:-/usr/bin/perl}';\ + echo -E 'make install PREFIX=$$ROOT/usr';\ + echo -E 'yada install -doc README';\ + echo -E 'yada install -doc -as changelog Changes') | /bin/sh + @umask 022 \ + && export pwd="$$(pwd)" \ + && export ROOT="$$(pwd)/debian/tmp-libcgi-ssi-perl" \ + && export TMPROOT="$$(pwd)/debian/tmp" \ + && export CONTROL="$$(pwd)/debian/tmp-libcgi-ssi-perl/DEBIAN" \ + && export PACKAGE="libcgi-ssi-perl" \ + && export SOURCE="libcgi-ssi-perl" \ + && export VERSION="$(VERSION)" && (\ + echo -E 'eval "yada () { perl $$(which yada) \"\$$@\"; }"; set -e; set -v';\ + echo -E 'yada perl';\ + echo -E 'yada python';\ + echo -E 'yada strip';\ + echo -E 'yada shlibdeps') | /bin/sh + yada compress libcgi-ssi-perl + yada generate maintscripts libcgi-ssi-perl + find debian/tmp-libcgi-ssi-perl -type f -print \ + | sed -n 's/^debian\/tmp-libcgi-ssi-perl\(\/etc\/.*\)$$/\1/p' \ + > debian/tmp-libcgi-ssi-perl/DEBIAN/conffiles + test -s debian/tmp-libcgi-ssi-perl/DEBIAN/conffiles || rm -f debian/tmp-libcgi-ssi-perl/DEBIAN/conffiles + yada rebuild control + yada generate substvars libcgi-ssi-perl + umask 022 && dpkg-gencontrol -isp -plibcgi-ssi-perl -Pdebian/tmp-libcgi-ssi-perl + +# Build package files + +.PHONY: binary binary-arch binary-indep +binary: binary-arch binary-indep +binary-arch: binary-arch-any + +.PHONY: binary-arch-any +binary-arch-any: +binary-indep: \ + binary-package-libcgi-ssi-perl + +.PHONY: binary-package-libcgi-ssi-perl +binary-package-libcgi-ssi-perl: check-root debian/tmp-libcgi-ssi-perl/DEBIAN/control + @[ -f $(shell which yada) -a -f debian/rules ] + chown -R 0.0 debian/tmp-libcgi-ssi-perl + chmod -R u=rwX,go=rX debian/tmp-libcgi-ssi-perl + @if [ -d debian/tmp-libcgi-ssi-perl/usr/doc/libcgi-ssi-perl ]; then \ + echo "*** Yada warning: /usr/doc/libcgi-ssi-perl should be /usr/share/doc/libcgi-ssi-perl";\ + fi + dpkg-deb --build debian/tmp-libcgi-ssi-perl .. + +.PHONY: check-root +check-root: + @[ `id -u` = 0 ] || (echo "You must be root to do this!"; false) + +debian/packages-tmp: debian/packages + yada rebuild packages + +## Clean up afterwards + +.PHONY: clean clean-install-tree clean-build + +clean: clean-install-tree clean-build debian/control debian/rules + rm -f debian/packages-tmp debian/packages-tmp-new debian/packages-tmp-include + +clean-build: + @[ -f $(shell which yada) -a -f debian/rules ] + rm -f debian/build-stamp debian/build-arch-stamp debian/build-indep-stamp + @umask 022 \ + && export pwd="$$(pwd)" \ + && export TMPROOT="$$(pwd)/debian/tmp" \ + && export SOURCE="libcgi-ssi-perl" \ + && export VERSION="$(VERSION)" \ + && export DEB_HOST_GNU_CPU="$(DEB_HOST_GNU_CPU)" \ + && export DEB_HOST_GNU_TYPE="$(DEB_HOST_GNU_TYPE)" \ + && export DEB_HOST_GNU_SYSTEM="$(DEB_HOST_GNU_SYSTEM)" \ + && export DEB_BUILD_GNU_CPU="$(DEB_BUILD_GNU_CPU)" \ + && export DEB_BUILD_GNU_TYPE="$(DEB_BUILD_GNU_TYPE)" \ + && export DEB_BUILD_GNU_SYSTEM="$(DEB_BUILD_GNU_SYSTEM)" && (\ + echo -E 'eval "yada () { perl $$(which yada) \"\$$@\"; }"; set -e; set -v';\ + echo -E 'test -f Makefile && touch Makefile && make distclean || true') | /bin/sh + yada unpatch + rm -rf debian/tmp + +clean-install-tree: debian/rules + @[ -f $(shell which yada) -a -f debian/rules ] + rm -f debian/install-tree-stamp + rm -rf debian/tmp-* debian/files* debian/substvars debian/shlibs.local debian/ucf --- libcgi-ssi-perl-0.88.orig/debian/watch +++ libcgi-ssi-perl-0.88/debian/watch @@ -0,0 +1,5 @@ +# format version number, currently 2; this line is compulsory! +version=2 + +# Automatically generated by cvsdebuscan at Thu, 11 Mar 2004 20:34:53 +0100 +http://www.cpan.org/modules/by-module/CGI/CGI-SSI-([0-9.]*)\.tar.gz --- libcgi-ssi-perl-0.88.orig/debian/patches/010-test_without_network.patch +++ libcgi-ssi-perl-0.88/debian/patches/010-test_without_network.patch @@ -0,0 +1,59 @@ +--- libcgi-ssi-perl-0.88.orig/test.pl ++++ libcgi-ssi-perl-0.88/test.pl +@@ -101,10 +101,12 @@ + # include file - with many types of input + # include virtual - with different types of input + +-{ +- my $ssi = CGI::SSI->new(); +- my $html = $ssi->process(q[]); +- ok($html =~ /yahoo/i && $html =~ /mail/i,'include virtual 1'); ++SKIP: { ++# Thijs Kinkhorst: disable tests that require network access ++# my $ssi = CGI::SSI->new(); ++# my $html = $ssi->process(q[]); ++# ok($html =~ /yahoo/i && $html =~ /mail/i,'include virtual 1'); ++ skip("skipping include virtual 1, remote test",1); + } + + # tough to do these well, without more info... +@@ -119,10 +121,12 @@ + + # exec cgi - with different input + +-{ +- my $ssi = CGI::SSI->new(); +- my $html = $ssi->process(q[]); +- ok($html =~ /yahoo/i,'exec cgi'); ++SKIP: { ++# Thijs Kinkhorst: disable tests that require network access ++# my $ssi = CGI::SSI->new(); ++# my $html = $ssi->process(q[]); ++# ok($html =~ /yahoo/i,'exec cgi'); ++ skip("skipping exec cgi, remote test",1); + } + + # exec cmd - with different input +@@ -267,13 +271,15 @@ + + # test cookie support + SKIP: { +- eval "use HTTP::Cookies; 1" or skip("HTTP::Cookies not installed", 1); +- my $jar = HTTP::Cookies->new({}); +- $jar->set_cookie(1,'mycookie','COOKIEVAL','/','www.bitperfect.com',80,0,0,100); +- +- my $ssi = CGI::SSI->new(COOKIE_JAR => $jar); +- my $html = $ssi->process(qq[]); +- ok($html =~ m'COOKIEVAL', "cookie support"); ++# Thijs Kinkhorst: disable tests that require network access ++# eval "use HTTP::Cookies; 1" or skip("HTTP::Cookies not installed", 1); ++# my $jar = HTTP::Cookies->new({}); ++# $jar->set_cookie(1,'mycookie','COOKIEVAL','/','www.bitperfect.com',80,0,0,100); ++# ++# my $ssi = CGI::SSI->new(COOKIE_JAR => $jar); ++# my $html = $ssi->process(qq[]); ++# ok($html =~ m'COOKIEVAL', "cookie support"); ++ skip("skipping cookie test, remote test", 1); + } + + SKIP: { --- libcgi-ssi-perl-0.88.orig/debian/packages +++ libcgi-ssi-perl-0.88/debian/packages @@ -0,0 +1,80 @@ +# $Id: /trunk/debian/dists/libcgi-ssi-perl/debian/packages 34 2006-04-03T20:03:07.921854Z dexter $ + +# If the debian/rules or debian/control file is missing, rebuild the file: +# +# $ yada rebuild control +# $ yada rebuild rules + + +# Environment variables: + +# don't run `make test' +# with_no_test=%{with_no_test} + + +Source: libcgi-ssi-perl +Section: perl +Priority: extra +Maintainer: Piotr Roszatycki +Standards-Version: 3.6.2 +Upstream-Source: +Patches: patches/*.patch +Major-Changes: +%`cd debian/patches && ls *.patch | sed -e 's/^/ /'` +Description: perl CGI::SSI - Use SSI from CGI scripts +Copyright: . + Copyright 2000 James Tolley All Rights Reserved. + . + This is free software. You may copy and/or modify it under + the same terms as perl itself. + . + This program is free software; you can redistribute it and/or modify + it under the terms of either: + . + a) the GNU General Public License as published by the Free Software + Foundation; either version 1, or (at your option) any later + version, or + . + b) the "Artistic License" which comes with Perl. + . + On Debian GNU/Linux systems, the complete text of the GNU General + Public License can be found in `/usr/share/common-licenses/GPL' and + the Artistic Licence in `/usr/share/common-licenses/Artistic'. +Build-Depends-Indep: perl (>= 5.8) +%if %{!?without_test:1} +Build-Depends-Indep: libhtml-simpleparse-perl +Build-Depends-Indep: perl-modules +Build-Depends-Indep: libwww-perl +Build-Depends-Indep: liburi-perl +Build-Depends-Indep: libtimedate-perl +%endif +Build: sh + PERL=${PERL:-/usr/bin/perl} + $PERL Makefile.PL INSTALLDIRS=vendor + make +%if %{without_no_test} + make test +%endif +Clean: sh + test -f Makefile && touch Makefile && make distclean || true + +Package: libcgi-ssi-perl +Architecture: all +Depends: libhtml-simpleparse-perl +Depends: perl-modules +Depends: libwww-perl +Depends: liburi-perl +Depends: libtimedate-perl +Depends: [] +Description: perl CGI::SSI - Use SSI from CGI scripts + CGI::SSI is meant to be used as an easy way to filter shtml through CGI + scripts in a loose imitation of Apache's mod_include. If you're using + Apache, you may want to use either mod_include or the Apache::SSI module + instead of CGI::SSI. Limitations in a CGI script's knowledge of how the + server behaves make some SSI directives impossible to imitate from a CGI + script. +Install: sh + PERL=${PERL:-/usr/bin/perl} + make install PREFIX=$ROOT/usr + yada install -doc README + yada install -doc -as changelog Changes --- libcgi-ssi-perl-0.88.orig/debian/control +++ libcgi-ssi-perl-0.88/debian/control @@ -0,0 +1,18 @@ +Source: libcgi-ssi-perl +Maintainer: Piotr Roszatycki +Section: perl +Priority: extra +Standards-Version: 3.6.2 +Build-Depends: yada (>= 0.48) +Build-Depends-Indep: perl (>= 5.8), libhtml-simpleparse-perl, perl-modules, libwww-perl, liburi-perl, libtimedate-perl, yada (>= 0.48) + +Package: libcgi-ssi-perl +Architecture: all +Depends: libhtml-simpleparse-perl, perl-modules, libwww-perl, liburi-perl, libtimedate-perl, ${libcgi-ssi-perl:Depends} +Description: perl CGI::SSI - Use SSI from CGI scripts + CGI::SSI is meant to be used as an easy way to filter shtml through CGI + scripts in a loose imitation of Apache's mod_include. If you're using + Apache, you may want to use either mod_include or the Apache::SSI module + instead of CGI::SSI. Limitations in a CGI script's knowledge of how the + server behaves make some SSI directives impossible to imitate from a CGI + script.