mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-26 22:38:30 +00:00
added zip from Info-ZIP
This commit is contained in:
parent
98c53ae526
commit
4ce5664c4b
363 changed files with 119113 additions and 0 deletions
44
third_party/infozip/zip/unix/Packaging/README
vendored
Normal file
44
third_party/infozip/zip/unix/Packaging/README
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
Solaris packaging
|
||||
-----------------
|
||||
|
||||
To generate a Solaris package for Info-ZIP zip 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, IZzip.
|
||||
|
||||
IZzip -- Solaris installable package in directory format.
|
||||
IZzip_$(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/IZzip_$(arch).pkg
|
||||
4) add /opt/Info-ZIP/IZzip/bin to PATH
|
||||
5) add /opt/Info-ZIP/IZzip/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/infozip/zip/unix/Packaging/pkginfo.in
vendored
Normal file
13
third_party/infozip/zip/unix/Packaging/pkginfo.in
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
PKG=IZzip
|
||||
NAME=Info-ZIP Zip Utilities
|
||||
CATEGORY=application
|
||||
VENDOR=Info-ZIP
|
||||
EMAIL=http://info-zip.org/zip-bug.html
|
||||
HOTLINE=http://info-zip.org/zip-bug.html
|
||||
DESC=Copyrighted FREEWARE. See README, WHERE, and docs in pkg's doc dir.
|
||||
CLASSES=none
|
||||
BASEDIR=/opt/Info-ZIP
|
||||
#BASEDIR=/usr/local
|
||||
VERSION=".VERSION."
|
||||
PSTAMP=".PSTAMP."
|
||||
ARCH=".ARCH."
|
29
third_party/infozip/zip/unix/Packaging/postinstall
vendored
Normal file
29
third_party/infozip/zip/unix/Packaging/postinstall
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Info-ZIP Zip post-installation script.
|
||||
#
|
||||
# Last revised: 2007-09-29 SMS. Zip 3.0.
|
||||
#
|
||||
# Post installation script (simply inform installer about PATH etc)
|
||||
#
|
||||
echo ''
|
||||
echo 'Installation is complete. Users should adjust their environment'
|
||||
echo 'variables to include these directories:'
|
||||
echo " PATH: ${BASEDIR}/${PKG}/bin"
|
||||
echo " MANPATH: ${BASEDIR}/${PKG}/man"
|
||||
echo ''
|
||||
echo "Commands like the following may be added to a user's shell start-up"
|
||||
echo 'file (.cshrc, .login, .profile, ...) to do this:'
|
||||
echo ''
|
||||
echo ' For a Bourne-like shell:'
|
||||
echo " PATH=\"\${PATH}:${BASEDIR}/${PKG}/bin\""
|
||||
echo " MANPATH=\"\${MANPATH}:${BASEDIR}/${PKG}/man\""
|
||||
echo ' export PATH MANPATH'
|
||||
echo ''
|
||||
echo ' For a C shell:'
|
||||
echo " setenv 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
|
29
third_party/infozip/zip/unix/Packaging/preinstall.in
vendored
Normal file
29
third_party/infozip/zip/unix/Packaging/preinstall.in
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Info-ZIP Zip pre-installation script.
|
||||
#
|
||||
# Last revised: 2007-09-29 SMS. Zip 3.0.
|
||||
#
|
||||
# pkgadd should set a good PATH, but just in case, ...
|
||||
PATH="/sbin:/usr/bin:${PATH}"
|
||||
export PATH
|
||||
echo ''
|
||||
echo 'Please report problems to Info-ZIP using:'
|
||||
echo ''
|
||||
echo ' http://info-zip.org/zip-bug.html'
|
||||
echo ''
|
||||
arch=`uname -p`
|
||||
if [ "arch_${arch}" != "arch_.ARCH." ]; then
|
||||
echo "This product MUST be installed on a Solaris \".ARCH.\" system."
|
||||
echo "This system appears to have \"${arch}\" architecture, not \".ARCH.\"."
|
||||
echo "Please install the version for the \".ARCH.\" architecture."
|
||||
echo 'Aborting installation...'
|
||||
returncode=1
|
||||
else
|
||||
echo "Installing on \".ARCH.\" architecture..."
|
||||
returncode=0
|
||||
fi
|
||||
echo ''
|
||||
sleep 4
|
||||
exit ${returncode:-1}
|
||||
#
|
29
third_party/infozip/zip/unix/Packaging/prototype
vendored
Normal file
29
third_party/infozip/zip/unix/Packaging/prototype
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
d none $BASEDIR 0755 root bin
|
||||
d none $PKG 0755 root bin
|
||||
d none $PKG/doc 0755 root bin
|
||||
f none $PKG/doc/BUGS=BUGS 0644 root bin
|
||||
f none $PKG/doc/CHANGES=CHANGES 0644 root bin
|
||||
f none $PKG/doc/INSTALL=INSTALL 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/TODO=TODO 0644 root bin
|
||||
f none $PKG/doc/USexport.msg=USexport.msg 0644 root bin
|
||||
f none $PKG/doc/WHATSNEW=WHATSNEW 0644 root bin
|
||||
f none $PKG/doc/WHERE=WHERE 0644 root bin
|
||||
f none $PKG/doc/zip.txt=zip.txt 0644 root bin
|
||||
d none $PKG/man 0755 root bin
|
||||
d none $PKG/man/man1 0755 root bin
|
||||
f none $PKG/man/man1/zip.1=man/zip.1 0644 root bin
|
||||
f none $PKG/man/man1/zipcloak.1=man/zipcloak.1 0644 root bin
|
||||
f none $PKG/man/man1/zipnote.1=man/zipnote.1 0644 root bin
|
||||
f none $PKG/man/man1/zipsplit.1=man/zipsplit.1 0644 root bin
|
||||
d none $PKG/bin 0755 root bin
|
||||
f none $PKG/bin/zip=zip 0755 root bin
|
||||
f none $PKG/bin/zipcloak=zipcloak 0755 root bin
|
||||
f none $PKG/bin/zipnote=zipnote 0755 root bin
|
||||
f none $PKG/bin/zipsplit=zipsplit 0755 root bin
|
||||
i README
|
||||
i pkginfo
|
||||
i prototype
|
||||
i preinstall
|
||||
i postinstall
|
Loading…
Add table
Add a link
Reference in a new issue