changeset 382:5d2ca734dd20

7058584 Move memcached-java from SFW to Userland
author April Chin <april.chin@oracle.com>
date Fri, 08 Jul 2011 13:30:02 -0700
parents 5a447e1e7350
children e37246d1c149
files components/memcached-java/Makefile components/memcached-java/Solaris/build.xml components/memcached-java/memcached-java.license components/memcached-java/memcached-java.p5m components/meta-packages/history/SUNWmemcached-java.p5m
diffstat 5 files changed, 362 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/memcached-java/Makefile	Fri Jul 08 13:30:02 2011 -0700
@@ -0,0 +1,81 @@
+#
+# 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=		memcached-java
+COMPONENT_VERSION=	2.0.1
+COMPONENT_RELEASE=	release_$(COMPONENT_VERSION)
+COMPONENT_SRC=		java_memcached-$(COMPONENT_RELEASE)
+COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
+COMPONENT_ARCHIVE_HASH=	sha1:e1abde88ac21d337c42e4fc8d9bc217eab96f881
+COMPONENT_ARCHIVE_URL=	http://img.whalin.com/memcached/jdk5/standard/$(COMPONENT_ARCHIVE)
+COMPONENT_PROJECT_URL=  http://whalin.com/memcached/
+
+include $(WS_TOP)/make-rules/prep.mk
+include $(WS_TOP)/make-rules/ant.mk
+include $(WS_TOP)/make-rules/ips.mk
+
+# Make sure we remove unneeded pieces from the source (the test dir)
+# and also the existing source files which will be generated anew 
+# by the build (java_memcached-release_2.0.1.jar and the javadocs dir).
+# Remove these items during the prep phase, before cloney creates symlinks 
+# for these SOURCE_DIR files in $(BUILD_DIR_32), at the beginning of the 
+# build phase.
+COMPONENT_PREP_ACTION += \
+	$(RM) -r $(SOURCE_DIR)/$(COMPONENT_SRC).* \
+	$(SOURCE_DIR)/src/com/danga/MemCached/test \
+	$(SOURCE_DIR)/javadocs ;
+
+COMPONENT_PRE_BUILD_ACTION += \
+	$(CP) Solaris/build.xml $(BUILD_DIR_$(BITS))
+
+COMPONENT_BUILD_ARGS = -Dver=$(COMPONENT_RELEASE)
+COMPONENT_BUILD_TARGETS = package
+
+# A new $(COMPONENT_ARCHIVE) file was generated by the
+# build.  Unpack it here in the build directory.
+# We will use the extracted javadocs files for the package.
+COMPONENT_POST_BUILD_ACTION += \
+	(cd $(BUILD_DIR_$(BITS)); \
+	$(UNPACK) $(UNPACK_ARGS) $(COMPONENT_ARCHIVE); \
+	$(CP) -r $(COMPONENT_SRC)/javadocs . )
+
+# Nothing is installed into the proto area.
+# All files in the package will come from the build directory.
+PKG_PROTO_DIRS +=	$(BUILD_DIR_$(BITS))
+
+# common targets
+
+build:		$(BUILD_32)
+
+# Nothing needed for install; all files are generated
+# during the build.
+install:	build
+
+test:		$(NO_TESTS)
+
+BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
+
+include $(WS_TOP)/make-rules/depend.mk
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/memcached-java/Solaris/build.xml	Fri Jul 08 13:30:02 2011 -0700
@@ -0,0 +1,122 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<project name="java_memcached" default="package" basedir=".">
+
+	<property name="project.title"   value="java memcached client" />
+	<property name="code.dir"        value="src/com/danga/MemCached" />
+	<property name="doc.dir"         value="doc" />
+	<property name="src.dir"         value="src" />
+	<property name="build.dir"       value="classes" />
+	
+	<property environment="env"/>
+	<property file="build.properties"/>
+	<property name="project" value="java_memcached"/>
+
+	<path id="project.class.path">
+		<pathelement path = "lib/log4j.jar"/>
+	</path>
+
+	<!-- package release -->
+	<!-- ant package -Dver=release_1.3 -Dlog4j=1 -->
+	<target name="package" depends="clean, setup, log4j, logger, pkg-compile, jar, javadoc">
+		<tar tarfile="java_memcached-${ver}.tar.gz" basedir="." includes="java_memcached-${ver}/**" compression="gzip"/>
+		<zip destfile="java_memcached-${ver}.zip" basedir="." includes="java_memcached-${ver}/**"/>
+		<copy file="java_memcached-${ver}/java_memcached-${ver}.jar" todir="."/>
+
+		<checksum file="java_memcached-${ver}.tar.gz"/>
+		<checksum file="java_memcached-${ver}.zip"/>
+		<checksum file="java_memcached-${ver}.jar"/>
+		<delete dir="java_memcached-${ver}" />
+
+		<tar tarfile="java_memcached-${ver}.tar" basedir="." includes="java_memcached-${ver}.*"/>
+	</target>
+
+	<target name="clean">
+		<delete dir="${build.dir}"/>
+		<delete dir="java_memcached-${ver}" />
+		<delete file="java_memcached-${ver}.tar.gz"/>
+		<delete file="java_memcached-${ver}.zip"/>
+		<delete file="java_memcached-${ver}.jar"/>
+		<delete file="java_memcached-${ver}.tar.gz.MD5"/>
+		<delete file="java_memcached-${ver}.zip.MD5"/>
+		<delete file="java_memcached-${ver}.jar.MD5"/>
+	</target>
+
+	<target name="setup">
+		<mkdir dir="java_memcached-${ver}"/>
+		<mkdir dir="java_memcached-${ver}/javadocs"/>
+		<mkdir dir="java_memcached-${ver}/src/com/danga/MemCached"/>
+		<mkdir dir="java_memcached-${ver}/classes"/>
+		<mkdir dir="java_memcached-${ver}/doc"/>
+
+		<!-- copy source -->
+		<copy todir="java_memcached-${ver}/src/com/danga/MemCached">
+			<fileset dir="${code.dir}" defaultexcludes="true" excludes="**/*.xml **/*.swp **/*.swo"/>
+        </copy>
+
+		<!-- copy doc dir -->
+		<copy todir="java_memcached-${ver}/doc">
+			<fileset dir="${doc.dir}" defaultexcludes="true" excludes="**/*.swp **/*.swo"/>
+        </copy>
+
+		<!-- copy license to root -->
+		<copy file="${doc.dir}/LICENSE.txt" todir="java_memcached-${ver}"/>
+
+		<!-- copy changelog to root -->
+		<copy file="${doc.dir}/CHANGELOG.txt" todir="java_memcached-${ver}"/>
+	</target>
+
+	<!-- if logger is log4j then need to filter to make sure import exists -->
+	<target name="log4j" if="log4j" depends="clean, setup">
+		<replace dir="java_memcached-${ver}/src/com/danga/MemCached" token="//import org.apache.log4j.Logger;" value="import org.apache.log4j.Logger;">
+			<include name="**/*.java"/>
+		</replace>
+	</target>
+
+	<target name="logger" unless="log4j" depends="clean, setup">
+		<replace dir="java_memcached-${ver}/src/com/danga/MemCached" token="import org.apache.log4j.Logger;" value="//import org.apache.log4j.Logger;">
+			<include name="**/*.java"/>
+		</replace>
+	</target>
+
+	<!-- javadocs -->
+	<target name="javadoc" depends="clean, setup, log4j, logger">
+		<delete>
+			<fileset dir="java_memcached-${ver}/javadocs" />
+		</delete>
+
+		<javadoc sourcepath="java_memcached-${ver}/src"
+			destdir="java_memcached-${ver}/javadocs"
+			packagenames= "com.danga.*"
+			author= "true"
+			private="true"
+			version="true"
+			defaultexcludes="yes"
+			classpathref="project.class.path"
+			use="true"
+			windowtitle="java memcached client api documentation"
+			doctitle="&lt;h1&gt;${project.title} documentation (Version ${ver})&lt;/h1&gt;"
+			bottom="Copyright &#169; 2005 - greg whalin">
+			<arg value="-notimestamp" />
+		</javadoc>
+	</target> 
+
+	<!-- compilation target for packeging operations -->
+	<target name="pkg-compile" depends="clean, setup, log4j, logger">
+		<javac debug="yes" srcdir="java_memcached-${ver}/src" destdir="java_memcached-${ver}/classes" deprecation="true">
+			<classpath refid="project.class.path"/>
+		</javac>
+	</target>
+
+	<target name="jar" depends="pkg-compile">
+		<jar compress="yes" jarfile="java_memcached-${ver}/java_memcached-${ver}.jar" basedir="java_memcached-${ver}/classes"/>
+    </target>
+
+	<!-- compilation target -->
+	<target name="compile">
+		<mkdir dir="${build.dir}"/>
+		<javac debug="yes" srcdir="${src.dir}" destdir="${build.dir}" deprecation="true" compiler="modern">
+			<compilerarg value="-Xlint:unchecked"/>
+			<classpath refid="project.class.path"/>
+		</javac>
+	</target>
+</project>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/memcached-java/memcached-java.license	Fri Jul 08 13:30:02 2011 -0700
@@ -0,0 +1,24 @@
+* Copyright (c) 2007, Greg Whalin
+* All rights reserved.
+*
+* Redistribution and use in source and binary forms, with or without
+* modification, are permitted provided that the following conditions are met:
+*     * Redistributions of source code must retain the above copyright
+*       notice, this list of conditions and the following disclaimer.
+*     * Redistributions in binary form must reproduce the above copyright
+*       notice, this list of conditions and the following disclaimer in the
+*       documentation and/or other materials provided with the distribution.
+*     * Neither the name of the <organization> nor the
+*       names of its contributors may be used to endorse or promote products
+*       derived from this software without specific prior written permission.
+*
+* THIS SOFTWARE IS PROVIDED BY Greg Whalin ``AS IS'' AND ANY
+* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+* DISCLAIMED. IN NO EVENT SHALL Greg Whalin BE LIABLE FOR ANY
+* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/memcached-java/memcached-java.p5m	Fri Jul 08 13:30:02 2011 -0700
@@ -0,0 +1,102 @@
+#
+# 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.
+#
+
+<transform dir file path=usr/share/lib/java/javadoc* -> default group other>
+
+# all files in usr/share/lib/java/javadoc/memcached-java/api
+# come from the javadocs directory under the build directory
+<transform file path=usr/share/lib/java/javadoc/memcached-java/api/(.*) -> \
+	set action.hash javadocs/%<1>>
+
+set name=pkg.fmri value=pkg:/library/java/memcached-java@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+set name=pkg.summary value="memcached client for the java platform"
+set name=info.classification value="org.opensolaris.category.2008:Development/Java"
+set name=info.upstream_url value=$(COMPONENT_PROJECT_URL)
+set name=info.source_url value=$(COMPONENT_ARCHIVE_URL)
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+set name=opensolaris.arc_url \
+    value=http://arc.opensolaris.org/caselog/LSARC/2008/126
+
+license memcached-java.license license="BSD-like"
+
+dir path=usr
+dir path=usr/share
+dir path=usr/share/lib
+dir path=usr/share/lib/java
+dir path=usr/share/lib/java/javadoc
+dir path=usr/share/lib/java/javadoc/memcached-java
+dir path=usr/share/lib/java/javadoc/memcached-java/api
+dir path=usr/share/lib/java/javadoc/memcached-java/api/com
+dir path=usr/share/lib/java/javadoc/memcached-java/api/com/danga
+dir path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached
+dir path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/class-use
+dir path=usr/share/lib/java/javadoc/memcached-java/api/resources
+
+file java_memcached-release_2.0.1.jar path=usr/share/lib/java/java_memcached-release_2.0.1.jar group=sys
+file path=usr/share/lib/java/javadoc/memcached-java/api/allclasses-frame.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/allclasses-noframe.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/ByteBufArrayInputStream.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/ContextObjectInputStream.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/ErrorHandler.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/LineInputStream.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/Logger.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/MemCachedClient.NIOLoader.Connection.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/MemCachedClient.NIOLoader.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/MemCachedClient.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/NativeHandler.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/NestedIOException.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/SockIOPool.MaintThread.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/SockIOPool.SockIO.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/SockIOPool.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/class-use/ByteBufArrayInputStream.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/class-use/ContextObjectInputStream.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/class-use/ErrorHandler.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/class-use/LineInputStream.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/class-use/Logger.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/class-use/MemCachedClient.NIOLoader.Connection.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/class-use/MemCachedClient.NIOLoader.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/class-use/MemCachedClient.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/class-use/NativeHandler.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/class-use/NestedIOException.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/class-use/SockIOPool.MaintThread.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/class-use/SockIOPool.SockIO.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/class-use/SockIOPool.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/package-frame.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/package-summary.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/package-tree.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/com/danga/MemCached/package-use.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/constant-values.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/deprecated-list.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/help-doc.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/index-all.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/index.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/overview-tree.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/package-list
+file path=usr/share/lib/java/javadoc/memcached-java/api/resources/inherit.gif
+file path=usr/share/lib/java/javadoc/memcached-java/api/serialized-form.html
+file path=usr/share/lib/java/javadoc/memcached-java/api/stylesheet.css
+
+legacy pkg=SUNWmemcached-java \
+	name="memcached client for the java platform" \
+	desc="memcached client for java (2.0.1)"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/meta-packages/history/SUNWmemcached-java.p5m	Fri Jul 08 13:30:02 2011 -0700
@@ -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 SUNWmemcached-java package
+#
+
+set name=pkg.fmri value=pkg:/SUNWmemcached-java@2.0.1,5.11-0.133
+set name=pkg.renamed value=true
+
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+
+depend fmri=library/java/memcached-java@2.0.1-0.133 type=require