libcgi-xmlform-perl-0.10.orig/ 0042775 0001750 0001750 00000000000 07014571040 014706 5 ustar ardo ardo libcgi-xmlform-perl-0.10.orig/Path/ 0042775 0001750 0001750 00000000000 07014571040 015602 5 ustar ardo ardo libcgi-xmlform-perl-0.10.orig/Path/Changes 0100664 0001750 0001750 00000000203 07014567614 017077 0 ustar ardo ardo Revision history for Perl extension CGI::XMLForm::Path.
0.01 Wed Jan 20 14:31:54 1999
- original version; created by h2xs 1.18
libcgi-xmlform-perl-0.10.orig/Path/MANIFEST 0100664 0001750 0001750 00000000055 07014567614 016742 0 ustar ardo ardo Changes
MANIFEST
Makefile.PL
Path.pm
test.pl
libcgi-xmlform-perl-0.10.orig/Path/Makefile 0100664 0001750 0001750 00000024340 07014567614 017254 0 ustar ardo ardo # This Makefile is for the CGI::XMLForm::Path extension to perl.
#
# It was generated automatically by MakeMaker version
# 5.42 (Revision: 1.216) from the contents of
# Makefile.PL. Don't edit this file, edit Makefile.PL instead.
#
# ANY CHANGES MADE HERE WILL BE LOST!
#
# MakeMaker Parameters:
# NAME => q[CGI::XMLForm::Path]
# VERSION_FROM => q[Path.pm]
# --- MakeMaker post_initialize section:
# --- MakeMaker const_config section:
# These definitions are from config.sh (via /usr/lib/perl5/i386-linux/5.00404/Config.pm)
# They may have been overridden via Makefile.PL or on the command line
AR = ar
CC = cc
CCCDLFLAGS = -fpic
CCDLFLAGS = -rdynamic
DLEXT = so
DLSRC = dl_dlopen.xs
LD = cc
LDDLFLAGS = -shared -L/usr/local/lib
LDFLAGS = -L/usr/local/lib
LIBC =
LIB_EXT = .a
OBJ_EXT = .o
RANLIB = :
SO = so
EXE_EXT =
# --- MakeMaker constants section:
AR_STATIC_ARGS = cr
NAME = CGI::XMLForm::Path
DISTNAME = CGI-XMLForm-Path
NAME_SYM = CGI_XMLForm_Path
VERSION = 0.01
VERSION_SYM = 0_01
XS_VERSION = 0.01
INST_BIN = .././blib/bin
INST_EXE = .././blib/script
INST_LIB = .././blib/lib
INST_ARCHLIB = .././blib/arch
INST_SCRIPT = .././blib/script
PREFIX = /usr
INSTALLDIRS = site
INSTALLPRIVLIB = $(PREFIX)/lib/perl5
INSTALLARCHLIB = $(PREFIX)/lib/perl5/i386-linux/5.00404
INSTALLSITELIB = $(PREFIX)/lib/perl5/site_perl
INSTALLSITEARCH = $(PREFIX)/lib/perl5/site_perl/i386-linux
INSTALLBIN = $(PREFIX)/bin
INSTALLSCRIPT = $(PREFIX)/bin
PERL_LIB = /usr/lib/perl5
PERL_ARCHLIB = /usr/lib/perl5/i386-linux/5.00404
SITELIBEXP = /usr/lib/perl5/site_perl
SITEARCHEXP = /usr/lib/perl5/site_perl/i386-linux
LIBPERL_A = libperl.a
FIRST_MAKEFILE = Makefile
MAKE_APERL_FILE = Makefile.aperl
PERLMAINCC = $(CC)
PERL_INC = /usr/lib/perl5/i386-linux/5.00404/CORE
PERL = /usr/bin/perl
FULLPERL = /usr/bin/perl
VERSION_MACRO = VERSION
DEFINE_VERSION = -D$(VERSION_MACRO)=\"$(VERSION)\"
XS_VERSION_MACRO = XS_VERSION
XS_DEFINE_VERSION = -D$(XS_VERSION_MACRO)=\"$(XS_VERSION)\"
MAKEMAKER = /usr/lib/perl5/ExtUtils/MakeMaker.pm
MM_VERSION = 5.42
# FULLEXT = Pathname for extension directory (eg Foo/Bar/Oracle).
# BASEEXT = Basename part of FULLEXT. May be just equal FULLEXT. (eg Oracle)
# ROOTEXT = Directory part of FULLEXT with leading slash (eg /DBD) !!! Deprecated from MM 5.32 !!!
# PARENT_NAME = NAME without BASEEXT and no trailing :: (eg Foo::Bar)
# DLBASE = Basename part of dynamic library. May be just equal BASEEXT.
FULLEXT = CGI/XMLForm/Path
BASEEXT = Path
PARENT_NAME = CGI::XMLForm::
DLBASE = $(BASEEXT)
VERSION_FROM = Path.pm
OBJECT =
LDFROM = $(OBJECT)
LINKTYPE = dynamic
# Handy lists of source code files:
XS_FILES=
C_FILES =
O_FILES =
H_FILES =
MAN1PODS =
MAN3PODS =
INST_MAN1DIR = .././blib/man1
INSTALLMAN1DIR = /usr/man/man1
MAN1EXT = 1
INST_MAN3DIR = .././blib/man3
INSTALLMAN3DIR = $(PREFIX)/lib/perl5/man/man3
MAN3EXT = 3
# work around a famous dec-osf make(1) feature(?):
makemakerdflt: all
.SUFFIXES: .xs .c .C .cpp .cxx .cc $(OBJ_EXT)
# Nick wanted to get rid of .PRECIOUS. I don't remember why. I seem to recall, that
# some make implementations will delete the Makefile when we rebuild it. Because
# we call false(1) when we rebuild it. So make(1) is not completely wrong when it
# does so. Our milage may vary.
# .PRECIOUS: Makefile # seems to be not necessary anymore
.PHONY: all config static dynamic test linkext manifest
# Where is the Config information that we are using/depend on
CONFIGDEP = $(PERL_ARCHLIB)/Config.pm $(PERL_INC)/config.h
# Where to put things:
INST_LIBDIR = $(INST_LIB)/CGI/XMLForm
INST_ARCHLIBDIR = $(INST_ARCHLIB)/CGI/XMLForm
INST_AUTODIR = $(INST_LIB)/auto/$(FULLEXT)
INST_ARCHAUTODIR = $(INST_ARCHLIB)/auto/$(FULLEXT)
INST_STATIC =
INST_DYNAMIC =
INST_BOOT =
EXPORT_LIST =
PERL_ARCHIVE =
TO_INST_PM = Path.pm
PM_TO_BLIB = Path.pm \
$(INST_LIBDIR)/Path.pm
# --- MakeMaker tool_autosplit section:
# Usage: $(AUTOSPLITFILE) FileToSplit AutoDirToSplitInto
AUTOSPLITFILE = $(PERL) "-I$(PERL_ARCHLIB)" "-I$(PERL_LIB)" -e 'use AutoSplit;autosplit($$ARGV[0], $$ARGV[1], 0, 1, 1) ;'
# --- MakeMaker tool_xsubpp section:
# --- MakeMaker tools_other section:
SHELL = /bin/sh
CHMOD = chmod
CP = cp
LD = cc
MV = mv
NOOP = $(SHELL) -c true
RM_F = rm -f
RM_RF = rm -rf
TEST_F = test -f
TOUCH = touch
UMASK_NULL = umask 0
DEV_NULL = > /dev/null 2>&1
# The following is a portable way to say mkdir -p
# To see which directories are created, change the if 0 to if 1
MKPATH = $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) -MExtUtils::Command -e mkpath
# This helps us to minimize the effect of the .exists files A yet
# better solution would be to have a stable file in the perl
# distribution with a timestamp of zero. But this solution doesn't
# need any changes to the core distribution and works with older perls
EQUALIZE_TIMESTAMP = $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) -MExtUtils::Command -e eqtime
# --- MakeMaker dist section skipped.
# --- MakeMaker macro section:
# --- MakeMaker depend section:
# --- MakeMaker cflags section:
# --- MakeMaker const_loadlibs section:
# --- MakeMaker const_cccmd section:
# --- MakeMaker post_constants section:
# --- MakeMaker pasthru section:
PASTHRU = LIB="$(LIB)"\
LIBPERL_A="$(LIBPERL_A)"\
LINKTYPE="$(LINKTYPE)"\
PREFIX="$(PREFIX)"\
OPTIMIZE="$(OPTIMIZE)"
# --- MakeMaker c_o section:
# --- MakeMaker xs_c section:
# --- MakeMaker xs_o section:
# --- MakeMaker top_targets section:
#all :: config $(INST_PM) subdirs linkext manifypods
all :: pure_all manifypods
@$(NOOP)
pure_all :: config pm_to_blib subdirs linkext
@$(NOOP)
subdirs :: $(MYEXTLIB)
@$(NOOP)
config :: Makefile $(INST_LIBDIR)/.exists
@$(NOOP)
config :: $(INST_ARCHAUTODIR)/.exists
@$(NOOP)
config :: $(INST_AUTODIR)/.exists
@$(NOOP)
$(INST_AUTODIR)/.exists :: /usr/lib/perl5/i386-linux/5.00404/CORE/perl.h
@$(MKPATH) $(INST_AUTODIR)
@$(EQUALIZE_TIMESTAMP) /usr/lib/perl5/i386-linux/5.00404/CORE/perl.h $(INST_AUTODIR)/.exists
-@$(CHMOD) 755 $(INST_AUTODIR)
$(INST_LIBDIR)/.exists :: /usr/lib/perl5/i386-linux/5.00404/CORE/perl.h
@$(MKPATH) $(INST_LIBDIR)
@$(EQUALIZE_TIMESTAMP) /usr/lib/perl5/i386-linux/5.00404/CORE/perl.h $(INST_LIBDIR)/.exists
-@$(CHMOD) 755 $(INST_LIBDIR)
$(INST_ARCHAUTODIR)/.exists :: /usr/lib/perl5/i386-linux/5.00404/CORE/perl.h
@$(MKPATH) $(INST_ARCHAUTODIR)
@$(EQUALIZE_TIMESTAMP) /usr/lib/perl5/i386-linux/5.00404/CORE/perl.h $(INST_ARCHAUTODIR)/.exists
-@$(CHMOD) 755 $(INST_ARCHAUTODIR)
help:
perldoc ExtUtils::MakeMaker
Version_check:
@$(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) \
-MExtUtils::MakeMaker=Version_check \
-e "Version_check('$(MM_VERSION)')"
# --- MakeMaker linkext section:
linkext :: $(LINKTYPE)
@$(NOOP)
# --- MakeMaker dlsyms section:
# --- MakeMaker dynamic section:
## $(INST_PM) has been moved to the all: target.
## It remains here for awhile to allow for old usage: "make dynamic"
#dynamic :: Makefile $(INST_DYNAMIC) $(INST_BOOT) $(INST_PM)
dynamic :: Makefile $(INST_DYNAMIC) $(INST_BOOT)
@$(NOOP)
# --- MakeMaker dynamic_bs section:
BOOTSTRAP =
# --- MakeMaker dynamic_lib section:
# --- MakeMaker static section:
## $(INST_PM) has been moved to the all: target.
## It remains here for awhile to allow for old usage: "make static"
#static :: Makefile $(INST_STATIC) $(INST_PM)
static :: Makefile $(INST_STATIC)
@$(NOOP)
# --- MakeMaker static_lib section:
# --- MakeMaker manifypods section:
manifypods :
@$(NOOP)
# --- MakeMaker processPL section:
# --- MakeMaker installbin section:
# --- MakeMaker subdirs section:
# none
# --- MakeMaker clean section:
# Delete temporary files but do not touch installed files. We don't delete
# the Makefile here so a later make realclean still has a makefile to use.
clean ::
-rm -rf ./blib $(MAKE_APERL_FILE) $(INST_ARCHAUTODIR)/extralibs.all perlmain.c mon.out core so_locations pm_to_blib *~ */*~ */*/*~ *$(OBJ_EXT) *$(LIB_EXT) perl.exe $(BOOTSTRAP) $(BASEEXT).bso $(BASEEXT).def $(BASEEXT).exp
-mv Makefile Makefile.old $(DEV_NULL)
# --- MakeMaker realclean section:
# Delete temporary files (via clean) and also delete installed files
realclean purge :: clean
rm -rf $(INST_AUTODIR) $(INST_ARCHAUTODIR)
rm -f $(INST_LIBDIR)/Path.pm
rm -rf Makefile Makefile.old
# --- MakeMaker dist_basics section skipped.
# --- MakeMaker dist_core section skipped.
# --- MakeMaker dist_dir section skipped.
# --- MakeMaker dist_test section skipped.
# --- MakeMaker dist_ci section skipped.
# --- MakeMaker install section skipped.
# --- MakeMaker force section:
# Phony target to force checking subdirectories.
FORCE:
@$(NOOP)
# --- MakeMaker perldepend section:
# --- MakeMaker makefile section:
# We take a very conservative approach here, but it\'s worth it.
# We move Makefile to Makefile.old here to avoid gnu make looping.
Makefile : Makefile.PL $(CONFIGDEP)
@echo "Makefile out-of-date with respect to $?"
@echo "Cleaning current config before rebuilding Makefile..."
-@$(MV) Makefile Makefile.old
-$(MAKE) -f Makefile.old clean $(DEV_NULL) || $(NOOP)
$(PERL) "-I$(PERL_ARCHLIB)" "-I$(PERL_LIB)" Makefile.PL
@echo "==> Your Makefile has been rebuilt. <=="
@echo "==> Please rerun the make command. <=="
false
# To change behavior to :: would be nice, but would break Tk b9.02
# so you find such a warning below the dist target.
#Makefile :: $(VERSION_FROM)
# @echo "Warning: Makefile possibly out of date with $(VERSION_FROM)"
# --- MakeMaker staticmake section:
# --- MakeMaker makeaperl section ---
MAP_TARGET = ../perl
FULLPERL = /usr/bin/perl
# --- MakeMaker test section:
TEST_VERBOSE=0
TEST_TYPE=test_$(LINKTYPE)
TEST_FILE = test.pl
TEST_FILES =
TESTDB_SW = -d
testdb :: testdb_$(LINKTYPE)
test :: $(TEST_TYPE)
test_dynamic :: pure_all
PERL_DL_NONLAZY=1 $(FULLPERL) -I$(INST_ARCHLIB) -I$(INST_LIB) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(TEST_FILE)
testdb_dynamic :: pure_all
PERL_DL_NONLAZY=1 $(FULLPERL) $(TESTDB_SW) -I$(INST_ARCHLIB) -I$(INST_LIB) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(TEST_FILE)
test_ : test_dynamic
test_static :: test_dynamic
testdb_static :: testdb_dynamic
# --- MakeMaker pm_to_blib section:
pm_to_blib: $(TO_INST_PM)
@$(PERL) "-I$(INST_ARCHLIB)" "-I$(INST_LIB)" \
"-I$(PERL_ARCHLIB)" "-I$(PERL_LIB)" -MExtUtils::Install \
-e "pm_to_blib({qw{$(PM_TO_BLIB)}},'$(INST_LIB)/auto')"
@$(TOUCH) $@
# --- MakeMaker selfdocument section:
# --- MakeMaker postamble section:
# End.
libcgi-xmlform-perl-0.10.orig/Path/Makefile.PL 0100664 0001750 0001750 00000000361 07014567614 017563 0 ustar ardo ardo use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
'NAME' => 'CGI::XMLForm::Path',
'VERSION_FROM' => 'Path.pm', # finds $VERSION
);
libcgi-xmlform-perl-0.10.orig/Path/Path.pm 0100664 0001750 0001750 00000006223 07014567614 017046 0 ustar ardo ardo package CGI::XMLForm::Path;
use strict;
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
require Exporter;
require AutoLoader;
@ISA = qw(Exporter AutoLoader);
# Items to export into callers namespace by default. Note: do not export
# names by default without a very good reason. Use EXPORT_OK instead.
# Do not simply export all your public functions/methods/constants.
@EXPORT = qw(
);
$VERSION = '0.01';
1;
__END__
# This class allows comparison of current paths
sub new {
my $proto = shift;
my $class = ref($proto) || $proto;
my $self;
$self->{_path} = $_[0];
$self->{_fullpath} = [];
bless ($self, $class); # reconsecrate
if ($self->{_path}) {
$self->buildSelf($_[1] || new $class);
}
return $self;
}
sub buildSelf {
my $self = shift;
my $prev = shift;
if ($self->{_path} =~ s/\*$//) {
$self->{_repeat} = 1;
}
# warn "Building from ", $self->{_path}, "\n";
my @parts = split('/', $self->{_path});
my @fullpath;
$self->{Relative} = 0;
if ($self->{_path} !~ /^\//) {
# It's a relative path
$self->{_relative} = 1;
@fullpath = @{$prev->{_fullpath}};
if ($prev->isRelative) {
# prev was a relative path so remove top item
pop @fullpath;
}
foreach ( @parts ) {
if ($_ eq "..") {
pop @fullpath;
}
else {
push @fullpath, $_;
}
}
}
else {
# remove crap from beginning (empty because of preceding "/")
shift @parts;
@fullpath = @parts;
}
if ($fullpath[$#fullpath] =~ /^\@(\w+)$/) {
pop @fullpath;
pop @parts;
$self->{_attrib} = $1;
}
$self->{Parts} = \@parts;
$self->{_fullpath} = \@fullpath;
# warn "Built: ", $self->FullPath, "\n";
}
sub rebuildSelf {
my $self = shift;
$self->buildSelf(new CGI::XMLExt::Path);
}
sub isRelative {
$_[0]->{_relative};
}
sub isRepeat {
$_[0]->{_repeat};
}
sub isChildPath {
my $self = shift;
my $compare = shift;
# Now compare each level of the tree, and throw away attributes.
my @a = @{$self->{_fullpath}};
my @b = @{$compare->{_fullpath}};
if (@a >= @b) {
return 0;
}
foreach ($#a..0) {
$a[$_] =~ s/\[.*\]//;
$b[$_] =~ s/\[.*\]//;
return 0 if ($a[$_] ne $b[$_]);
}
return 1;
}
sub Attrib {
$_[0]->{_attrib};
}
sub isEqual {
my $self = shift;
my $compare = shift;
my @a = @{$self->{_fullpath}};
my @b = @{$compare->{_fullpath}};
# warn "Comparing: ", $self->FullPath, "\nTo : ", $compare->FullPath,
# "\n";
if (scalar @a != scalar @b) {
return 0;
}
foreach (0..$#a) {
$a[$_] =~ s/\[.*\]//;
$b[$_] =~ s/\[.*\]//;
if ($a[$_] ne $b[$_]) {
return 0;
}
}
# warn "*** FOUND ***\n";
return 1;
}
sub Append {
my $self = shift;
my $element = shift;
my %attribs = @_;
if (%attribs) {
$element .= "[";
$element .= join " and ",
(map "\@$_=\"$attribs{$_}\"", (keys %attribs));
$element .= "]";
}
push @{$self->{_fullpath}}, $element;
push @{$self->{Parts}}, $element;
$self->{_path} .= "/". $element;
}
sub Pop {
my $self = shift;
pop @{$self->{_fullpath}};
$self->{_path} =~ s/^(.*)\/.*?$/$1/;
pop @{$self->{Parts}};
}
sub Path {
$_[0]->{_path};
}
sub FullPath {
my $self = shift;
my $path = "/" . (join "/", @{$self->{_fullpath}});
$path .= ($self->Attrib ? "/\@" . $self->Attrib : '');
$path;
}
1;
libcgi-xmlform-perl-0.10.orig/Path/test.pl 0100664 0001750 0001750 00000001227 07014567614 017127 0 ustar ardo ardo # Before `make install' is performed this script should be runnable with
# `make test'. After `make install' it should work as `perl test.pl'
######################### We start with some black magic to print on failure.
# Change 1..1 below to 1..last_test_to_print .
# (It may become useful if the test is moved to ./t subdirectory.)
BEGIN { $| = 1; print "1..1\n"; }
END {print "not ok 1\n" unless $loaded;}
use CGI::XMLForm::Path;
$loaded = 1;
print "ok 1\n";
######################### End of black magic.
# Insert your test code below (better if it prints "ok 13"
# (correspondingly "not ok 13") depending on the success of chunk 13
# of the test code):
libcgi-xmlform-perl-0.10.orig/Changes 0100664 0001750 0001750 00000003267 07014567614 016220 0 ustar ardo ardo Revision history for Perl extension CGI::ToXML.
0.10 Tue Jun 8 1999
- Fixed stupid NT CRLF's... Grrr... (thanks Tim)
0.09 Mon Jun 7 1999
- Bug fix for when typing a / in the form field
0.08 Internal bug fix release
0.07 Wed Jan 27 1999
- Speed improvements. Now faster than XML::XQL (DOM) for all cases
- Some minor bug fixes
- Fixes to Stream mode
0.06 Fri Jan 22 1999
- "Pretty" XML fixed.
- Removed ToCGI - that was a dumb name!
- Fixed - the module was actually totally broken, except
in a mod-perl environment where we'd already included
XML::Parser at the server level.
0.05 Thu Jan 21 1999
- Used parse_params again. For some reason $self->query_string
isn't in the order it's recieved from the browser. Grr.
- Renamed to CGI::XMLForm after discussion with J.Eisenzopf.
- Added readXML function.
- tries to make "pretty" XML. Fails
value1 | value2 |
value3 |
value1 | value2 |
value3 |