mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 06:48:31 +00:00
Add Info-ZIP unzip.com
This commit is contained in:
parent
1531f1a4a7
commit
af4687cc3f
55 changed files with 36744 additions and 2 deletions
44
third_party/unzip/unix/Packaging/README
vendored
Normal file
44
third_party/unzip/unix/Packaging/README
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
Solaris packaging
|
||||
-----------------
|
||||
|
||||
To generate a Solaris package for Info-ZIP UnZip utilities,
|
||||
first see the top level INSTALL and README files. Do a
|
||||
"make solaris", which will automatically build two Solaris
|
||||
installable package files for the package, IZunzip.
|
||||
|
||||
IZunzip -- Solaris installable package in directory format.
|
||||
IZunzip_$(arch).pkg -- Solaris installable package in "stream" format.
|
||||
|
||||
Where: $(arch) := system architecture, currently i386, sparc, or ppc.
|
||||
(use "uname -p" to determine)
|
||||
|
||||
The ".pkg" file is a single file datastream that can be compressed
|
||||
and/or ftp'd. This is the recommended form, because all required
|
||||
files are resident in the archive, and it is easily distributed.
|
||||
|
||||
To install, simply:
|
||||
|
||||
1) copy the package to the target system's /tmp directory.
|
||||
2) login or su to root
|
||||
3) pkgadd -d /tmp/IZunzip_$(arch).pkg
|
||||
4) add /opt/Info-ZIP/IZunzip/bin to PATH
|
||||
5) add /opt/Info-ZIP/IZunzip/man to MANPATH
|
||||
|
||||
This works for both SPARC and x86.
|
||||
|
||||
Ongoing maintenance:
|
||||
|
||||
Keep the files, "prototype" and "pkginfo.in" up to date.
|
||||
Observe variable substitutions made by "Makefile".
|
||||
See manpages for pkginfo(1), pkginfo(4), pkgmk(1), pkgproto(1)
|
||||
|
||||
Variations:
|
||||
|
||||
If you wish the base directory to be set to something other than
|
||||
/opt/Info-ZIP, change the setting BASEDIR in pkginfo.in and
|
||||
re-run the make.
|
||||
|
||||
|
||||
-John Bush (John.Bush@East.Sun.COM)
|
||||
July 20, 1996
|
||||
|
13
third_party/unzip/unix/Packaging/pkginfo.in
vendored
Normal file
13
third_party/unzip/unix/Packaging/pkginfo.in
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
PKG=IZunzip
|
||||
NAME=Info-ZIP UnZip Utilities
|
||||
CATEGORY=application
|
||||
VENDOR=Info-ZIP
|
||||
EMAIL=Zip-Bugs@lists.wku.edu
|
||||
HOTLINE=Zip-Bugs@lists.wku.edu
|
||||
DESC=Copyrighted FREEWARE. See README, WHERE, and LICENSE docs in pkg's doc dir.
|
||||
CLASSES=none
|
||||
BASEDIR=/opt/Info-ZIP
|
||||
#BASEDIR=/usr/local
|
||||
VERSION=".VERSION."
|
||||
PSTAMP=".PSTAMP."
|
||||
ARCH=".ARCH."
|
22
third_party/unzip/unix/Packaging/postinstall
vendored
Normal file
22
third_party/unzip/unix/Packaging/postinstall
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Post installation script (simply inform installer about PATH etc)
|
||||
#
|
||||
echo " "
|
||||
echo " "
|
||||
echo "Installation is complete. Now, you should add the following"
|
||||
echo "(or equivalnet) commands to the appropriate initial user shell"
|
||||
echo "scripts (such as .profile, .login, etc) -- "
|
||||
echo " "
|
||||
echo " For korn or bourne shell:"
|
||||
echo " PATH=\${PATH}:${BASEDIR}/${PKG}/bin"
|
||||
echo " MANPATH=\${MANPATH}:${BASEDIR}/${PKG}/man"
|
||||
echo " export PATH MANPATH"
|
||||
echo " "
|
||||
echo " For C shell:"
|
||||
echo " set path=(\$path ${BASEDIR}/${PKG}/bin)"
|
||||
echo " setenv MANPATH \$MANPATH:${BASEDIR}/${PKG}/man"
|
||||
echo " "
|
||||
echo " See the files under ${BASEDIR}/${PKG}/doc for more information."
|
||||
echo " "
|
||||
exit 0
|
26
third_party/unzip/unix/Packaging/preinstall.in
vendored
Normal file
26
third_party/unzip/unix/Packaging/preinstall.in
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
#!/bin/sh
|
||||
echo " "
|
||||
echo "REPORT ALL BUGS, PROBLEMS, AND ACCOLADES TO:"
|
||||
echo " "
|
||||
echo " Zip-Bugs@lists.wku.edu"
|
||||
echo " "
|
||||
echo "Checking architecture platform for .ARCH. ..."
|
||||
arch=`uname -p`
|
||||
if [ "arch_${arch}" != "arch_.ARCH." ]; then
|
||||
echo " "
|
||||
echo "This product MUST be installed on a Solaris .ARCH. platform."
|
||||
echo "Your machine looks like it is a ${arch} platform."
|
||||
echo "Please install the version for the .ARCH. architecture."
|
||||
echo "Aborting the installation because of this. "
|
||||
echo " "
|
||||
returncode=1
|
||||
else
|
||||
echo " "
|
||||
echo "This product works on .ARCH., which you happen to have!"
|
||||
echo " "
|
||||
returncode=0
|
||||
fi
|
||||
echo " "
|
||||
/usr/bin/sleep 4
|
||||
exit ${returncode:-1}
|
||||
#
|
33
third_party/unzip/unix/Packaging/prototype
vendored
Normal file
33
third_party/unzip/unix/Packaging/prototype
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
d none $BASEDIR 0755 root bin
|
||||
d none $BASEDIR/$PKG 0755 root bin
|
||||
d none $PKG/bin 0755 root bin
|
||||
f none $PKG/bin/unzip=unzip 0755 root bin
|
||||
f none $PKG/bin/funzip=funzip 0755 root bin
|
||||
f none $PKG/bin/unzipsfx=unzipsfx 0755 root bin
|
||||
f none $PKG/bin/zipgrep=unix/zipgrep 0755 root bin
|
||||
s none $PKG/bin/zipinfo=unzip
|
||||
d none $PKG/doc 0755 root bin
|
||||
f none $PKG/doc/ZipPorts=proginfo/ZipPorts 0644 root bin
|
||||
f none $PKG/doc/CONTRIBS=proginfo/CONTRIBS 0644 root bin
|
||||
f none $PKG/doc/COPYING.OLD=COPYING.OLD 0644 root bin
|
||||
f none $PKG/doc/LICENSE=LICENSE 0644 root bin
|
||||
f none $PKG/doc/README=README 0644 root bin
|
||||
f none $PKG/doc/WHERE=WHERE 0644 root bin
|
||||
f none $PKG/doc/INSTALL=INSTALL 0644 root bin
|
||||
f none $PKG/doc/funzip.txt=funzip.txt 0644 root bin
|
||||
f none $PKG/doc/unzip.txt=unzip.txt 0644 root bin
|
||||
f none $PKG/doc/unzipsfx.txt=unzipsfx.txt 0644 root bin
|
||||
f none $PKG/doc/zipgrep.txt=zipgrep.txt 0644 root bin
|
||||
f none $PKG/doc/zipinfo.txt=zipinfo.txt 0644 root bin
|
||||
d none $PKG/man 0755 root bin
|
||||
d none $PKG/man/man1 0755 root bin
|
||||
f none $PKG/man/man1/funzip.1=man/funzip.1 0644 root bin
|
||||
f none $PKG/man/man1/unzip.1=man/unzip.1 0644 root bin
|
||||
f none $PKG/man/man1/unzipsfx.1=man/unzipsfx.1 0644 root bin
|
||||
f none $PKG/man/man1/zipgrep.1=man/zipgrep.1 0644 root bin
|
||||
f none $PKG/man/man1/zipinfo.1=man/zipinfo.1 0644 root bin
|
||||
i pkginfo
|
||||
i prototype
|
||||
i README
|
||||
i preinstall
|
||||
i postinstall
|
Loading…
Add table
Add a link
Reference in a new issue