7021788 Migrate Info-Zip (zip) to Userland.
6986745 zip fails archiving a directory tree that results in a zip file > 2G
6957233 can open oracle enterprise linux iso zip file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/components/zip/Makefile Tue Mar 15 01:46:27 2011 +0100
@@ -0,0 +1,79 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+
+#
+# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../../make-rules/shared-macros.mk
+
+COMPONENT_NAME= zip
+COMPONENT_VERSION= 3.0
+COMPONENT_SRC= $(COMPONENT_NAME)30
+COMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
+COMPONENT_ARCHIVE_HASH= sha1:c9f4099ecf2772b53c2dd4a8e508064ce015d182
+COMPONENT_ARCHIVE_URL= ftp://ftp.info-zip.org/pub/infozip/src/$(COMPONENT_ARCHIVE)
+
+include ../../make-rules/prep.mk
+include ../../make-rules/justmake.mk
+include ../../make-rules/ips.mk
+
+# remove the unwanted file.
+COMPONENT_PREP_ACTION = rm -f $(SOURCE_DIR)/match.S
+
+# The Makefile we want is under unix/Makefile
+COMPONENT_BUILD_TARGETS += -f unix/Makefile generic
+COMPONENT_INSTALL_TARGETS += -f unix/Makefile
+
+# This doesn't respect DESTDIR, so overload BINDIR and MANDIR when we install.
+COMPONENT_INSTALL_TARGETS += BINDIR=$(PROTOUSRBINDIR)
+COMPONENT_INSTALL_TARGETS += MANDIR=$(PROTOUSRSHAREMAN1DIR)
+COMPONENT_INSTALL_TARGETS += install
+
+# fix the man pages
+INST_MAN1PGS = zip zipcloak zipnote zipsplit
+INST_MANSCRIPT = oracleman-stability
+PROTOMAN1 = $(INST_MAN1PGS:%=$(PROTOUSRSHAREMAN1DIR)/%.1)
+
+# Manpage files are already created by INSTALL_32 target
+# so currently only the contents of files could be changed.
+$(PROTOMAN1): $(INST_MAN1PGS:%=$(SOURCE_DIR)/man/%.1)
+ sed -f $(INST_MANSCRIPT) < $(SOURCE_DIR)/man/$(@F) > $@
+
+# It should be done without checking time-stamps of targets.
+.PHONY: $(PROTOMAN1)
+
+# But do no do it before the INSTALL_32 is really finished.
+$(INST_MAN1PGS:%=$(SOURCE_DIR)/man/%.1): $(INSTALL_32)
+
+# common targets
+
+build: $(BUILD_32)
+
+install: $(INSTALL_32) $(PROTOMAN1)
+
+test:
+ @echo "no tests available"
+
+BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
+
+include ../../make-rules/depend.mk
+
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/components/zip/SUNWzip.p5m Tue Mar 15 01:46:27 2011 +0100
@@ -0,0 +1,33 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+#
+
+#
+# Legacy package information for renamed SUNWzip package
+#
+
+set name=pkg.fmri value=pkg:/[email protected],5.11-0.133
+set name=pkg.renamed value=true
+
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+
+depend fmri=compress/[email protected] type=require
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/components/zip/info-zip.license Tue Mar 15 01:46:27 2011 +0100
@@ -0,0 +1,60 @@
+This is version 2007-Mar-4 of the Info-ZIP license.
+The definitive version of this document should be available at
+ftp://ftp.info-zip.org/pub/infozip/license.html indefinitely and
+a copy at http://www.info-zip.org/pub/infozip/license.html.
+
+
+Copyright (c) 1990-2007 Info-ZIP. All rights reserved.
+
+For the purposes of this copyright and license, "Info-ZIP" is defined as
+the following set of individuals:
+
+ Mark Adler, John Bush, Karl Davis, Harald Denker, Jean-Michel Dubois,
+ Jean-loup Gailly, Hunter Goatley, Ed Gordon, Ian Gorman, Chris Herborth,
+ Dirk Haase, Greg Hartwig, Robert Heath, Jonathan Hudson, Paul Kienitz,
+ David Kirschbaum, Johnny Lee, Onno van der Linden, Igor Mandrichenko,
+ Steve P. Miller, Sergio Monesi, Keith Owens, George Petrov, Greg Roelofs,
+ Kai Uwe Rommel, Steve Salisbury, Dave Smith, Steven M. Schweda,
+ Christian Spieler, Cosmin Truta, Antoine Verheijen, Paul von Behren,
+ Rich Wales, Mike White.
+
+This software is provided "as is," without warranty of any kind, express
+or implied. In no event shall Info-ZIP or its contributors be held liable
+for any direct, indirect, incidental, special or consequential damages
+arising out of the use of or inability to use this software.
+
+Permission is granted to anyone to use this software for any purpose,
+including commercial applications, and to alter it and redistribute it
+freely, subject to the above disclaimer and the following restrictions:
+
+ 1. Redistributions of source code (in whole or in part) must retain
+ the above copyright notice, definition, disclaimer, and this list
+ of conditions.
+
+ 2. Redistributions in binary form (compiled executables and libraries)
+ must reproduce the above copyright notice, definition, disclaimer,
+ and this list of conditions in documentation and/or other materials
+ provided with the distribution. The sole exception to this condition
+ is redistribution of a standard UnZipSFX binary (including SFXWiz) as
+ part of a self-extracting archive; that is permitted without inclusion
+ of this license, as long as the normal SFX banner has not been removed
+ from the binary or disabled.
+
+ 3. Altered versions--including, but not limited to, ports to new operating
+ systems, existing ports with new graphical interfaces, versions with
+ modified or added functionality, and dynamic, shared, or static library
+ versions not from Info-ZIP--must be plainly marked as such and must not
+ be misrepresented as being the original source or, if binaries,
+ compiled from the original source. Such altered versions also must not
+ be misrepresented as being Info-ZIP releases--including, but not
+ limited to, labeling of the altered versions with the names "Info-ZIP"
+ (or any variation thereof, including, but not limited to, different
+ capitalizations), "Pocket UnZip," "WiZ" or "MacZip" without the
+ explicit permission of Info-ZIP. Such altered versions are further
+ prohibited from misrepresentative use of the Zip-Bugs or Info-ZIP
+ e-mail addresses or the Info-ZIP URL(s), such as to imply Info-ZIP
+ will provide support for the altered versions.
+
+ 4. Info-ZIP retains the right to use the names "Info-ZIP," "Zip," "UnZip,"
+ "UnZipSFX," "WiZ," "Pocket UnZip," "Pocket Zip," and "MacZip" for its
+ own source and binary releases.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/components/zip/oracleman-stability Tue Mar 15 01:46:27 2011 +0100
@@ -0,0 +1,30 @@
+1i\
+'\\" t\
+\.\\"\
+\.\\" Modified for Solaris to to add the Solaris stability classification,\
+\.\\" and to add a note about source availability.\
+\.\\"\
+/^\.TH/ s/ 1L / 1 /g
+s/(1L)/(1)/g
+$a\
+\.\\" Begin Oracle update\
+.SH ATTRIBUTES\
+See\
+.BR attributes (5)\
+for descriptions of the following attributes:\
+.sp\
+.TS\
+box;\
+cbp-1 | cbp-1\
+l | l .\
+ATTRIBUTE TYPE ATTRIBUTE VALUE\
+=\
+Availability compress/zip\
+=\
+Interface Stability External\
+.TE \
+.PP\
+.SH NOTES\
+Sources to build zip on Solaris are available on http://opensolaris.org. \
+As Info-ZIP license mentions there are no Solaris speciffic source patches needed for build.\
+\.\\" End Oracle update
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/components/zip/zip.p5m Tue Mar 15 01:46:27 2011 +0100
@@ -0,0 +1,50 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+#
+
+set name=pkg.fmri value=pkg:/compress/zip@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+set name=pkg.summary value="Info-Zip (zip)"
+set name=pkg.description value="The Info-Zip (zip) compression utility"
+set name=info.classification value="org.opensolaris.category.2008:Applications/System Utilities"
+set name=info.upstream_url value=http://www.info-zip.org/Zip.html
+set name=info.source_url value=$(COMPONENT_ARCHIVE_URL)
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+
+dir path=usr
+dir path=usr/bin
+dir path=usr/share
+dir path=usr/share/man
+dir path=usr/share/man/man1
+file path=usr/bin/zip
+file path=usr/bin/zipcloak
+file path=usr/bin/zipnote
+file path=usr/bin/zipsplit
+file path=usr/share/man/man1/zip.1
+file path=usr/share/man/man1/zipcloak.1
+file path=usr/share/man/man1/zipnote.1
+file path=usr/share/man/man1/zipsplit.1
+
+license info-zip.license license="Info-ZIP"
+
+legacy pkg=SUNWzip \
+ name="The Info-Zip (zip) compression utility" \
+ desc="The Info-Zip (zip) compression utility"