OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Michael Schloh
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 09-Jul-2004 11:47:21
Branch: HEAD Handle: 2004070910472000
Added files:
openpkg-src/j2ee14 j2ee14.spec j2ee14.state rc.j2ee14
Log:
add accompanying package for consistency, most stable J2EE (1.4) for
most stable J2SE (1.4)
Summary:
Revision Changes Path
1.1 +195 -0 openpkg-src/j2ee14/j2ee14.spec
1.1 +22 -0 openpkg-src/j2ee14/j2ee14.state
1.1 +14 -0 openpkg-src/j2ee14/rc.j2ee14
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/j2ee14/j2ee14.spec
============================================================================
$ cvs diff -u -r0 -r1.1 j2ee14.spec
--- /dev/null 2004-07-09 11:47:20.000000000 +0200
+++ j2ee14.spec 2004-07-09 11:47:20.000000000 +0200
@@ -0,0 +1,195 @@
+##
+## j2ee14.spec -- OpenPKG RPM Specification
+## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
+## Copyright (c) 2000-2004 Ralf S. Engelschall <[EMAIL PROTECTED]>
+## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
+##
+## Permission to use, copy, modify, and distribute this software for
+## any purpose with or without fee is hereby granted, provided that
+## the above copyright notice and this permission notice appear in all
+## copies.
+##
+## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+## CONTRIBUTORS 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.
+##
+
+# package versions
+%define V_sunjava 1_4_01
+%define V_openpkg 1.4.01
+
+# package information
+Name: j2ee14
+Summary: Java 2 Platform, Enterprise Edition (J2EE)
+URL: http://java.sun.com/j2ee/
+Vendor: Sun Microsystems, Inc.
+Packager: The OpenPKG Project
+Distribution: OpenPKG
+Class: EVAL
+Group: Language
+License: Commercial
+Version: %{V_openpkg}
+Release: 20040709
+
+# package options
+%option with_sampleserver no
+
+# list of sources
+Source0: http://java.sun.com/j2ee/::/j2eesdk-%{V_sunjava}-solaris-sparc.bin
+Source1: http://java.sun.com/j2ee/::/j2eesdk-%{V_sunjava}-solaris-i586.bin
+Source2: http://java.sun.com/j2ee/::/j2eesdk-%{V_sunjava}-linux.bin
+Source3: j2ee14.state
+Source4: rc.j2ee14
+%NoSource 0
+%NoSource 1
+%NoSource 2
+
+# build information
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+BuildPreReq: OpenPKG, openpkg >= 20040122, j2se14 >= 1.4.2.04
+PreReq: OpenPKG, openpkg >= 20040122, j2se14 >= 1.4.2.04
+AutoReq: no
+AutoReqProv: no
+Conflicts: j2ee
+
+%description
+ J2EE technology and its component based model simplifies
+ enterprise development and deployment. The J2EE platform manages
+ the infrastructure and supports the Web services to enable
+ development of secure, robust and interoperable business
+ applications.
+
+ The J2EE SDK is intended as a proof of concept and example for
+ implementations in the application server marketplace. The J2EE
+ SDK includes a J2EE application server and various tools to help
+ developers prototype J2EE applications and learn about the J2EE
+ platform and technologies. It can be used as a J2EE development
+ enviroment for applications prior to their deployment and
+ distribution.
+
+%track
+ prog j2ee14 = {
+ disabled
+ comment = "ms: no tracking possible"
+ version = 1_4_01
+ url = http://java.sun.com/j2ee/
+ regex = j2eesdk-(__VER__)-solaris-sparc.bin
+ }
+
+%prep
+
+%build
+
+%install
+ rm -rf $RPM_BUILD_ROOT
+
+ # create installation tree
+ %{l_shtool} mkdir -f -p -m 755 \
+ $RPM_BUILD_ROOT%{l_prefix}/bin \
+ $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
+ $RPM_BUILD_ROOT%{l_prefix}/libexec
+
+ # prepare state file for installation binary
+%if "%{with_sampleserver}" == "yes"
+ %{l_shtool} install -c %{l_value -s -a} \
+ -e 's;@rpmbldroot@;%{l_buildroot};g' \
+ -e 's;@sampdomain@;TRUE;g' \
+ %{SOURCE j2ee14.state} \
+ $RPM_BUILD_ROOT
+%else
+ %{l_shtool} install -c %{l_value -s -a} \
+ -e 's;@rpmbldroot@;%{l_buildroot};g' \
+ -e 's;@sampdomain@;FALSE;g' \
+ %{SOURCE j2ee14.state} \
+ $RPM_BUILD_ROOT
+%endif
+
+ # unpack vendor distribution
+ ( umask 022
+ cd $RPM_BUILD_ROOT%{l_prefix}/libexec
+ case "%{l_platform -t}" in
+ i686-freebsd[45]* )
+ %{l_shtool} subst \
+ -e 's;@platformid@;97c6adba9d2ee77580fdce6054fcd1c29a83bdc7;g' \
+ $RPM_BUILD_ROOT/j2ee14.state
+ ( %{SOURCE j2eesdk-%{V_sunjava}-linux.bin} \
+ -javahome %{l_prefix}/libexec/j2se14/jre \
+ -silent $RPM_BUILD_ROOT/j2ee14.state
+ true
+ ) || exit $?
+ ;;
+ i686-linux2* )
+ %{l_shtool} subst \
+ -e 's;@platformid@;bf7a62b01847d6121fcb2922d452b9bf2fad4ac5;g' \
+ $RPM_BUILD_ROOT/j2ee14.state
+ ( %{SOURCE j2eesdk-%{V_sunjava}-linux.bin} \
+ -javahome %{l_prefix}/libexec/j2se14/jre \
+ -silent $RPM_BUILD_ROOT/j2ee14.state
+ true
+ ) || exit $?
+ ;;
+ ix86-sunos5* )
+ %{l_shtool} subst \
+ -e 's;@platformid@;83ef175f1d5761f34b76c6c8269c803de9f3abcf;g' \
+ $RPM_BUILD_ROOT/j2ee14.state
+ ( %{SOURCE j2eesdk-%{V_sunjava}-solaris-i586.bin} \
+ -javahome %{l_prefix}/libexec/j2se14/jre \
+ -silent $RPM_BUILD_ROOT/j2ee14.state
+ true
+ ) || exit $?
+ ;;
+ sun4u-sunos5* )
+ %{l_shtool} subst \
+ -e 's;@platformid@;ba2d03febe84d6f4e6332aadb38428d50573b5cc;g' \
+ $RPM_BUILD_ROOT/j2ee14.state
+ ( %{SOURCE j2eesdk-%{V_sunjava}-solaris-sparc.bin} \
+ -javahome %{l_prefix}/libexec/j2se14/jre \
+ -silent $RPM_BUILD_ROOT/j2ee14.state
+ true
+ ) || exit $?
+ ;;
+
+ * )
+ ( echo "Sorry, either your platform '%{l_platform -t} is unsupported,"
+ echo "or the OpenPKG team doesn't have a proper state file
identifier"
+ echo "for it yet. Please contact [EMAIL PROTECTED] to contribute."
+ ) | %{l_rpmtool} msg -b -t notice
+ exit 1
+ ;;
+ esac
+ ) || exit $?
+
+ # remove leftover installation state file
+ rm -f $RPM_BUILD_ROOT/j2ee14.state
+
+ # activate binaries
+ ( cd $RPM_BUILD_ROOT%{l_prefix}/bin
+ for bin in appclient capture-schema \
+ uninstall asadmin deploytool verifier \
+ asant jspc wscompile asupgrade \
+ package-appclient wsdeploy; do
+ ln -s ../libexec/j2ee/bin/$bin .
+ done
+ ) || exit $?
+
+ # install run-command script
+ %{l_shtool} install -c -m 755 %{l_value -s -a} \
+ %{SOURCE rc.j2ee14} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
+
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
+
+%files -f files
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/j2ee14/j2ee14.state
============================================================================
$ cvs diff -u -r0 -r1.1 j2ee14.state
--- /dev/null 2004-07-09 11:47:20.000000000 +0200
+++ j2ee14.state 2004-07-09 11:47:20.000000000 +0200
@@ -0,0 +1,22 @@
+#
+# Wizard Statefile created: Thu Mar 25 17:57:32 CET 2004
+# Wizard path: /tmp/j2eesAAA3YaG3P/appserv.class
+#
+
+#
+# Install Wizard Statefile section for J2EE 1.4 SDK
+#
+#
+[STATE_BEGIN J2EE 1.4 SDK @[EMAIL PROTECTED]
+defaultInstallDirectory = /home/user/SUNWappserver
+currentInstallDirectory = @rpmbldroot@@l_prefix@/libexec/j2ee14
+INST_ASADMIN_USERNAME = admin
+INST_ASADMIN_PASSWORD = araidcefdobofvulinhovlghabargehr2
+INST_ASADMIN_PORT = 4848
+INST_ASWEB_PORT = 8080
+INST_HTTPS_PORT = 1043
+STORE_ADMIN_AUTH = TRUE
+ADMIN_PASSWORD_ENCRYPTED = TRUE
+CREATE_SAMPLES_DOMAIN = @sampdomain@
+CREATE_DESKTOP_SHORTCUT = FALSE
+[STATE_DONE J2EE 1.4 SDK @[EMAIL PROTECTED]
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/j2ee14/rc.j2ee14
============================================================================
$ cvs diff -u -r0 -r1.1 rc.j2ee14
--- /dev/null 2004-07-09 11:47:20.000000000 +0200
+++ rc.j2ee14 2004-07-09 11:47:21.000000000 +0200
@@ -0,0 +1,14 @@
[EMAIL PROTECTED]@/lib/openpkg/bash @l_prefix@/etc/rc
+##
+## rc.j2ee14 -- Run-Commands
+##
+
+%config
+ j2ee14_enable="$openpkg_rc_def"
+ j2ee14_home="@l_prefix@/libexec/j2ee14"
+
+%env
+ rcService j2ee14 enable yes || exit 0
+ J2EE_HOME="$j2ee_home"
+ export J2EE_HOME
+
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]