Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
MiniVend 3.10
  • Loading branch information
perusionmike authored and jonjensen committed Jan 2, 2009
1 parent 80525d6 commit 4da7cf6
Show file tree
Hide file tree
Showing 39 changed files with 1,133 additions and 391 deletions.
19 changes: 10 additions & 9 deletions INSTALL
Expand Up @@ -17,17 +17,18 @@ IMPORTANT NOTE: If you don't give evidence of having read and
WINDOWS INSTALLATION
--------------------

Obtain the self-extracting executable minivend-3.09.exe
Obtain the self-extracting executable minivend-3.10.exe
and double-click on it.

IMPORTANT NOTE: If you get the message "Bad command or file name"
when trying to install, then that means that Perl is not installed
on your machine or is not in your path. Go to http://www.perl.com
and install the *standard* 5.004 version (AKA the Gurusamy Sarathy
port). MiniVend will not work with the ActiveState 5.003 port.
port). MiniVend will not work with the ActiveState 5.003 port; it
appears to work well with the "Merge" port.

If you already have the CYGWIN.DLL executable or plan on using the
Perl link CGI, you can download the file minivend-3.09-nodll.exe
Perl link CGI, you can download the file minivend-3.10-nodll.exe
and do the same.

The defaults are set for Microsoft Personal Web Server on Win95 --
Expand All @@ -42,26 +43,26 @@ WINDOWS INSTALLATION
You should get PGP as soon as possible so that you might have
secure credit card number storage.

Many features are untested in the Windows version, and it
Some features are untested in the Windows version, and it
can be considered a beta.

UNIX INSTALLATION
------------------
Here is the short version:

gzip -dc minivend-3.09.tar.gz | tar xvf -
cd minivend-3.09
gzip -dc minivend-3.10.tar.gz | tar xvf -
cd minivend-3.10
./configure

Long version with comments:

# Unzip and untar the file -- if you have GNU tar, you can substitute
# 'tar xzf minivend-3.09.tar.gz'
gzip -dc minivend-3.09.tar.gz | tar xvf -
# 'tar xzf minivend-3.10.tar.gz'
gzip -dc minivend-3.10.tar.gz | tar xvf -

# Change directory to the one that was created
#
cd minivend-3.09
cd minivend-3.10

# If you have trouble with picking up the wrong Perl version,
# try '/dir/where/perl/is/perl Makefile.PL
Expand Down
6 changes: 6 additions & 0 deletions MANIFEST
Expand Up @@ -10,10 +10,14 @@ WHATSNEW
configure
configure.bat
dist/README
dist/README-win.txt
dist/README.OS
dist/WHATSNEW
dist/bin/autosplit
dist/bin/buildtree
dist/bin/check
dist/bin/checkstat.sh
dist/bin/compact
dist/bin/dump
dist/bin/expire
dist/bin/htpasswd.pl
Expand All @@ -36,10 +40,12 @@ dist/configure
dist/configure.pl
dist/error.log
dist/etc/mvconf.cmt
dist/locale.error
dist/manifest
dist/minivend.cfg.dist
dist/simple/catalog.cfg
dist/simple/config/.empty
dist/simple/etc/order.number
dist/simple/etc/order.profiles
dist/simple/etc/report
dist/simple/etc/search.profiles
Expand Down
28 changes: 21 additions & 7 deletions Makefile.PL
Expand Up @@ -26,7 +26,7 @@ my @mods_to_get;
my $Lock_troubles;
my $Windows;

$VERSION = '3.09';
$VERSION = '3.10';

# See if we have the CPAN module
my $Cpan = 0;
Expand Down Expand Up @@ -174,7 +174,10 @@ sub install_file {
or die "Couldn't make directory $mkdir: $!\n";
}

if (! -f $srcfile) {
if ($Windows) {
$perms = 0777;
}
elsif (! -f $srcfile) {
die "Source file $srcfile missing.\n";
}
else {
Expand Down Expand Up @@ -359,7 +362,7 @@ EOF
eval {
require IniConf;
};
if ($@) {
if ($Windows or $@) {
push @extra_lib_files, 'IniConf.pm';
}

Expand Down Expand Up @@ -526,11 +529,13 @@ EOF

}
}

umask 0;
require Win32::Shortcut;
import Win32::Shortcut;
my $short = new Win32::Shortcut;
$short->Load("win/minivend.pif");
# Apparently Win32::Shortcut won't reliably work when starting
# from here
#$short->Load("win/minivend.pif");
open(WINBAT, ">minivend.bat")
or die "create minivend.bat: $!\n";
print WINBAT "set PGPPATH=$ENV{PGPPATH}\n" if $ENV{PGPPATH};
Expand All @@ -545,21 +550,30 @@ EOF
$short->{WorkingDirectory} =~ s:/:\\:g;
$short->{File} = "Start MiniVend Server";
$short->Save();
undef $short;
open(WINBAT, ">makecat.bat")
or die "create makecat.bat: $!\n";
print WINBAT <<EOF;
$Config{perlpath} $realdir/bin/makecat
EOF
close(WINBAT);
$short = new Win32::Shortcut;
# Apparently Win32::Shortcut won't reliably work when starting
# from here
#$short->Load("win/minivend.pif");
$short->{Path} = "$realdir/makecat.bat";
$short->{WorkingDirectory} = "$realdir";
$short->{Path} =~ s:/:\\:g;
$short->{WorkingDirectory} =~ s:/:\\:g;
$short->{ShowCmd} = 3;
$short->{File} = "Make MiniVend Catalog";
$short->Save();

File::Copy::copy('win/POSIX.pm', 'lib/POSIX.pm');
File::Copy::copy('win/POSIX.pm', 'lib/POSIX.pm')
or die "File::Copy::copy error 'win/POSIX.pm': $!\n";
File::Copy::copy('Start MiniVend Server.pif', 'dist')
or die "File::Copy::copy error 'Start MiniVend Server.pif': $!\n";
File::Copy::copy('Make MiniVend Catalog.pif', 'dist')
or die "File::Copy::copy error 'Make MiniVend Catalog.pif': $!\n";
@winfiles = grep m:^lib/:, @files;
push @winfiles, 'makecat.bat', 'minivend.bat';
push @winfiles, 'lib/POSIX.pm';
Expand Down
7 changes: 6 additions & 1 deletion UPGRADE
Expand Up @@ -5,13 +5,18 @@ current software and then restart the server. The only
incompatible changes are bug fixes (which may fool any
workarounds you have made).

The "simple" demo runs unchanged from MiniVend 3.01 to
The "simple" demo runs mostly unchanged from MiniVend 3.01 to
3.09. The usual source of any upgrade problems is illegal
syntax in tags, which might work on earlier versions but
is rejected in later, stricter versions. Especially check
nested [if ...] tags -- some problems can be solved by
putting a [then] [/then] around the true-executed condition.

One gotcha has to do with the [page scan/se=whatever] tag
in NewTags mode. If you have a URL like this you will need
to surround it with a [compat] [/compat] pair, or better
yet remove the first slash and make it [page scan se=whatever].

IMPORTANT NOTE: It is highly recommended that you copy the
current software to a backup directory or an archive in case
there is a problem and you wish to return to the earlier
Expand Down
2 changes: 1 addition & 1 deletion configure.bat
Expand Up @@ -8,5 +8,5 @@ echo ------------------------------------------------------------
echo IF YOU DO HAVE PERL 5.004 installed,
echo unzip the file to a directory and try:
echo ------------------------------------------------------------
echo cd minivend-3.09
echo cd minivend-3.10
echo c:\perl\bin\perl Makefile.PL
13 changes: 8 additions & 5 deletions dist/README
@@ -1,4 +1,4 @@
# MiniVend V3.09
# MiniVend V3.10
#
# Copyright 1996-1998 by Michael J. Heins <mikeh@minivend.com>
#
Expand Down Expand Up @@ -30,7 +30,7 @@ interested in problems, suggestions, or comments, but does not have time
to offer free individual support in most cases. See the MiniVend website at
http://www.minivend.com/minivend/ for more information.

IMPORTANT NOTE: MiniVend 3.09 requires Perl 5.004 or higher.
IMPORTANT NOTE: MiniVend 3.10 requires Perl 5.004 or higher.
(It will probably work with 5.003 on some UNIX systems and *may*
work with Perl 5.002 -- IF you comment out any lines which
contain "use locale;". Neither are supported.)
Expand Down Expand Up @@ -204,16 +204,19 @@ need to run in INET/TLINK mode instead of UNIX/VLINK mode.
WINDOWS INSTALLATION
--------------------

Obtain the self-extracting executable minivend-3.09.exe
Obtain the self-extracting executable minivend-3.10.exe
and double-click on it. You MUST already have Perl 5.004
INSTALLED and in your PATH.

Alternatively, you can unzip the file yourself and run
"setup".

UNIX INSTALLATION
------------------
Here is the short version:

gzip -dc minivend-3.09.tar.gz | tar xvf -
cd minivend-3.09
gzip -dc minivend-3.10.tar.gz | tar xvf -
cd minivend-3.10
./configure

More information is in the file INSTALL.
Expand Down
17 changes: 9 additions & 8 deletions README-win.txt → dist/README-win.txt
@@ -1,4 +1,4 @@
# MiniVend V3.09
# MiniVend V3.10
#
# Copyright 1996-1998 by Michael J. Heins <mikeh@iac.net>
#
Expand Down Expand Up @@ -31,10 +31,11 @@
and NT 4.0 workstation.

* Perl 5.004 for Win32 -- accept no substitutes. THIS
PROGRAM WILL RUN ON NO EARLIER VERSION OF PERL. PERIOD.
IT WILL NOT RUN on the ActiveState port. The version
you need is variously known as the "CORE", "Standard",
or "Gurusamy Sarathy" version.
PROGRAM WILL RUN ON NO EARLIER VERSION OF PERL. PERIOD. It
will not run on the ActiveState port build 3xx series;
it does appear to run very well with the "Merge" version. The
version you need is also variously known as the "CORE",
"Standard", or "Gurusamy Sarathy" version.

* Web server. Almost any that has CGI capability
should work. Tested on Microsoft Personal Web Server,
Expand Down Expand Up @@ -103,16 +104,16 @@

Installation:

1. Download the minivend-3.09.exe distribution file
1. Download the minivend-3.10.exe distribution file
and run it in the normal Windows fashion.

( If you don't want to execute the self-extracting ZIP file,
then you can obtain the standard minivend-3.09.tar.gz file and
then you can obtain the standard minivend-3.10.tar.gz file and
install that instead. )

You will have to obtain the CYGWIN.DLL file if you want to
use TLINK.EXE as your link CGI. The standard distribution .EXE
file has it included -- the minivend-3.09-nodll.exe file
file has it included -- the minivend-3.10-nodll.exe file
eliminates it.

2. Select a directory to install MiniVend in -- it defaults
Expand Down
5 changes: 3 additions & 2 deletions README.OS → dist/README.OS
@@ -1,4 +1,4 @@
# MiniVend V3.09
# MiniVend V3.10
#
# Copyright 1996-1998 by Michael J. Heins <mikeh@minivend.com>
#
Expand All @@ -24,7 +24,8 @@ Windows 95 DB_File ????? MiniVend may not stand up
catalogs. Server will not stop
from the keyboard, you must close
the DOS window to stop (unless
you get the GNU toolset).
you get the GNU toolset or
use the ActiveState "Merge").


Windows NT DB_File ????? Some features of MiniVend
Expand Down
58 changes: 58 additions & 0 deletions WHATSNEW → dist/WHATSNEW
@@ -1,6 +1,64 @@

W H A T ' S N E W

MiniVend 3.10 is a bug-fix release with a few minor updates.

* New IpQuad global directive allows removal of any IP address
qualification from the session name, allowing transferred
sessions from server to server. Just set

DomainTail No
IpHead Yes
IpQuad 0

in minivend.cfg and transfer of sessions from AOL or WebTV
should now be possible. This makes it possible to use different
domains for the secure server and the non-secure server, even
when the browser will not set cookies outside the current
domain.

IMPORTANT NOTE: Remember that security is compromised
greatly by this; it should be used in combination with
PGP-encrypted credit card information with CreditCardAuto,
or with MiniVend's internal CyberCash routines. YOU SHOULD
NEVER STORE ANY UNENCRYPTED CREDIT CARD INFORMATION ANYWHERE
WHEN USING THIS WORKAROUND.

* New URLDECODE tag, specific to the new/HTML tag style, provides
unescape and URL translation services for <A HREF...> and
<IMG ....> tags. If you use FrontPage or other
HTML editors they will translate spaces to %20 within
an image SRC or anchor HREF. Now you can do:

<IMG MV=urldecode SRC="[value%20saved_image]">

Flypages and search lists are done automatically.

* HTML-style CHECKED and SELECTED now works properly.

* Fixed EXCEL import mode so it also strips paired double quotes.

* Lotus NOTES format can now be exported.

* Now can have separate language and currency locales,
using the mv_currency scratch variable just as with mv_locale;
and with [setlocale locale=fr_FR currency=en_US].

* New Global Locale tag gives global default for error
messages. Error messages are numbered by module, and can
be changed. A default file locale.error will define the
usable keys; it is not configured in by default.

* Error messages are numbered and the current locale can
be used to generate many of them. This is not yet complete,
but should be much improved. See the locale.error file for
a list of keys to define for translation.

* MiniVend should work with the Storable module version
0.6@3 or higher, greatly increasing speed of session
storage and recall. To use, install at least that version
and set the environment variable MINIVEND_STORABLE to 1.

MiniVend 3.09 is a release that optimizes speed and adds features
that allow operation with some HTML editors.

Expand Down

0 comments on commit 4da7cf6

Please sign in to comment.