Browse Source

remove obsolete package

master
parent
commit
369c5e0670
  1. 259
      j2ee/j2ee.spec
  2. 31
      j2ee/j2ee.state
  3. 51
      j2ee/rc.j2ee

259
j2ee/j2ee.spec

@ -1,259 +0,0 @@
##
## j2ee.spec -- OpenPKG RPM Package Specification
## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
## Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.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_openpkg 8.1.02.2005Q2
%define V_sunjava 8_1_02_2005Q2
%define V_sunsamp 1_4_02_2005Q2
%define V_sundocs 1_4
%define V_basever 1.4
# package information
Name: j2ee
Summary: Java 2 Platform, Enterprise Edition (J2EE)
URL: http://java.sun.com/j2ee/
Vendor: Sun Microsystems, Inc.
Packager: OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class: EVAL
Group: Language
License: Commercial
Version: %{V_openpkg}
Release: 20061013
# package options
%option with_docs no
%option with_samples no
# list of sources
Source0: http://java.sun.com/j2ee/::/sjsas_pe-%{V_sunjava}-solaris-sparc.bin
Source1: http://java.sun.com/j2ee/::/sjsas_pe-%{V_sunjava}-solaris-i586.bin
Source2: http://java.sun.com/j2ee/::/sjsas_pe-%{V_sunjava}-linux.bin
Source3: http://java.sun.com/j2ee/::/j2eeri-%{V_sundocs}-doc-api.zip
Source4: http://java.sun.com/j2ee/::/j2eesdk-%{V_sunsamp}-samples.zip
Source5: j2ee.state
Source6: rc.j2ee
%NoSource 0
%NoSource 1
%NoSource 2
%NoSource 3
%NoSource 4
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20060823, j2se >= 1.4.2.04, infozip
PreReq: OpenPKG, openpkg >= 20060823, j2se >= 1.4.2.04
AutoReq: no
AutoReqProv: no
%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 j2ee = {
version = %{V_sunjava}
url = http://java.sun.com/j2ee/%{V_basever}/download.html
regex = sjsas_pe-%{V_sunjava}-
}
%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
# hack to correctly set JAVA_HOME variable
JDK_HOME=%{l_prefix}/libexec/j2se
JAVA_HOME=${JDK_HOME}/jre
# prepare state file for installation binary
%if "%{with_samples}" == "yes"
sampvar=TRUE
%else
sampvar=FALSE
%endif
%{l_shtool} install -c %{l_value -s -a} \
-e 's;@rpmbldroot@;%{l_buildroot};g' \
-e "s;@sampdomain@;$sampvar;g" \
-e "s;@jdkhome@;`echo $JDK_HOME`;g" \
%{SOURCE j2ee.state} \
$RPM_BUILD_ROOT
# 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/j2ee.state
unzip -q %{SOURCE sjsas_pe-%{V_sunjava}-linux.bin}
;;
i686-linux2* )
%{l_shtool} subst \
-e 's;@platformid@;1c3c0bd104d5002ac9ba16804406ada0ee89ef5f;g' \
$RPM_BUILD_ROOT/j2ee.state
unzip -q %{SOURCE sjsas_pe-%{V_sunjava}-linux.bin}
;;
ix86-sunos5.10 )
%{l_shtool} subst \
-e 's;@platformid@;dc9c042e66c9d5463a4c8bf3cddc1c8bcad58388;g' \
$RPM_BUILD_ROOT/j2ee.state
unzip -q %{SOURCE sjsas_pe-%{V_sunjava}-solaris-i586.bin}
;;
ix86-sunos5* )
%{l_shtool} subst \
-e 's;@platformid@;7ea13f093e17c85d0fb7b90f78c1cb2718158ddc;g' \
$RPM_BUILD_ROOT/j2ee.state
unzip -q %{SOURCE sjsas_pe-%{V_sunjava}-solaris-i586.bin}
;;
sun4u-sunos5* )
%{l_shtool} subst \
-e 's;@platformid@;ba2d03febe84d6f4e6332aadb38428d50573b5cc;g' \
$RPM_BUILD_ROOT/j2ee.state
unzip -q %{SOURCE sjsas_pe-%{V_sunjava}-solaris-sparc.bin}
;;
* )
( 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. Please contact openpkg-dev@openpkg.org to contribute one."
) | %{l_rpmtool} msg -b -t notice
exit 1
;;
esac
if [ -f /var/tmp/productregistry ]; then
cp -p /var/tmp/productregistry ./prdrgvartmp
fi
if [ -f /var/sadm/install/productregistry ]; then
cp -p /var/sadm/install/productregistry ./prdrgvarsdm
fi
chmod +x setup
./setup -noportcheck \
-javahome $JAVA_HOME \
-silent $RPM_BUILD_ROOT/j2ee.state
if [ -f ./prdrgvartmp ]; then
cp ./prdrgvartmp /var/tmp/productregistry
elif [ -f /var/tmp/productregistry ]; then
rm /var/tmp/productregistry
fi
if [ -f ./prdrgvarsdm ]; then
cp ./prdrgvarsdm /var/sadm/install/productregistry
elif [ -f /var/sadm/install/productregistry ]; then
rm /var/sadm/install/productregistry
fi
) || exit $?
# move and remove leftover residue
rm -f $RPM_BUILD_ROOT/j2ee.state
rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/*.txt
rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/setup
rm -rf $RPM_BUILD_ROOT%{l_prefix}/libexec/package
mv $RPM_BUILD_ROOT%{l_prefix}/libexec/appserv.class \
$RPM_BUILD_ROOT%{l_prefix}/libexec/j2ee
# activate and correct hard coded configure paths in binaries
( cd $RPM_BUILD_ROOT%{l_prefix}/bin
for bin in appclient asadmin asant asupgrade capture-schema deploytool \
jspc package-appclient uninstall verifier wscompile wsdeploy; do
ln -s %{l_prefix}/libexec/j2ee/bin/$bin .
%{l_shtool} subst -e "s;$RPM_BUILD_ROOT;;" \
$RPM_BUILD_ROOT%{l_prefix}/libexec/j2ee/bin/$bin
done
) || exit $?
# correct hard coded configure paths in config file
%{l_shtool} subst \
-e "s;$RPM_BUILD_ROOT;;" \
-e "s;\(AS_PERL=\"\).*$;\1%{l_prefix}/bin/perl/nodependency\";" \
$RPM_BUILD_ROOT%{l_prefix}/libexec/j2ee/config/asenv.conf
# conditionally install apidocs
%if "%{with_docs}" == "yes"
( cd $RPM_BUILD_ROOT%{l_prefix}/libexec/j2ee
unzip -q %{SOURCE j2eeri-%{V_sundocs}-doc-api.zip}
) || exit $?
%endif
# conditionally install samples
%if "%{with_samples}" == "yes"
( cd $RPM_BUILD_ROOT%{l_prefix}/libexec/j2ee
unzip -q %{SOURCE j2eesdk-%{V_sunsamp}-samples.zip}
) || exit $?
%endif
# install run command script
%{l_shtool} install -c -m 755 %{l_value -s -a} \
%{SOURCE rc.j2ee} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
'%config %{l_prefix}/libexec/j2ee/config/*' \
'%config %{l_prefix}/libexec/j2ee/domains/domain1/config/*'
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
%post
if [ $1 -eq 1 ]; then
# display final hints on initial installation
( echo "Next Steps:"
echo " 1. Read the Application Server welcome page at:"
echo " file://$RPM_INSTALL_PREFIX/libexec/j2ee/docs/about.html"
echo ""
echo " 2. Start the Application Server by executing:"
echo " $RPM_INSTALL_PREFIX/bin/asadmin start-domain domain1"
echo ""
echo " 3. Configure the Admin Console at:"
echo " http://localhost:4848"
) | %{l_rpmtool} msg -b -t notice
fi
if [ $1 -eq 2 ]; then
# after upgrade, restart service
eval `%{l_rc} j2ee status 2>/dev/null`
[ ".$j2ee_active" = .yes ] && %{l_rc} j2ee restart
fi
exit 0

31
j2ee/j2ee.state

@ -1,31 +0,0 @@
#
# Wizard Statefile created: Thu Mar 10 15:56:06 CET 2005
# Wizard path: /tmp/sjsasAAAXTa4gY/appserv.class
#
#
# Install Wizard Statefile section for Sun Java System Application Server
#
#
[STATE_BEGIN Sun Java System Application Server @platformid@]
defaultInstallDirectory = @rpmbldroot@@l_prefix@/libexec/j2ee
currentInstallDirectory = @rpmbldroot@@l_prefix@/libexec/j2ee
JDK_LOCATION = @jdkhome@
INST_ASADMIN_USERNAME = admin
INST_ASADMIN_PASSWORD = bibrntuopjrttkrwybdmreusctcracxtnqzva
INST_MASTER_PASSWORD = pfqvycktptyscxdrshenunatrvg
INST_ASADMIN_PORT = 4848
INST_ASWEB_PORT = 8080
INST_HTTPS_PORT = 8181
STORE_ADMIN_AUTH = TRUE
ADMIN_PASSWORD_ENCRYPTED = TRUE
INST_JMS_PORT = 7676
INST_ORB_PORT = 3700
INST_ORB_SSL_PORT = 3820
INST_ORB_MUTUALAUTH_PORT = 3920
INST_JMX_PORT = 8686
INST_POINTBASE_PORT = 9092
CREATE_SAMPLES_DOMAIN = @sampdomain@
CREATE_DESKTOP_SHORTCUT = FALSE
UPDATE_PATH = FALSE
[STATE_DONE Sun Java System Application Server @platformid@]

51
j2ee/rc.j2ee

@ -1,51 +0,0 @@
#!@l_prefix@/bin/openpkg rc
##
## rc.j2ee -- Run-Commands
##
%config
j2ee_enable="$openpkg_rc_def"
j2ee_home="@l_prefix@/libexec/j2ee"
%status -u @l_susr@ -o
j2ee_usable="unknown"
j2ee_active="no"
false >/dev/null 2>&1 && j2ee_usable="yes"
false >/dev/null 2>&1 && j2ee_active="yes"
echo "j2ee_enable=\"$j2ee_enable\""
echo "j2ee_usable=\"$j2ee_usable\""
echo "j2ee_active=\"$j2ee_active\""
%start -u @l_susr@
rcService j2ee enable yes || exit 0
rcService j2ee active yes && exit 0
false @l_prefix@/libexec/j2ee start
%stop -u @l_susr@
rcService j2ee enable yes || exit 0
rcService j2ee active no && exit 0
false @l_prefix@/libexec/j2ee stop
sleep 2
%restart -u @l_susr@
rcService j2ee enable yes || exit 0
rcService j2ee active no && exit 0
false @l_prefix@/libexec/j2ee restart
%reload -u @l_susr@
rcService j2ee enable yes || exit 0
rcService j2ee active no && exit 0
false @l_prefix@/libexec/j2ee reload
%daily -u @l_susr@
rcService j2ee enable yes || exit 0
shtool rotate -f \
-n ${j2ee_log_numfiles} -s 0 \
-z ${j2ee_log_complevel} -m 644 -o @l_musr@ -g @l_mgrp@ \
@l_prefix@/var/j2ee/j2ee.log
%env
rcService j2ee enable yes || exit 0
J2EE_HOME="$j2ee_home"
export J2EE_HOME
Loading…
Cancel
Save