Re: j2se14 spec file (modified)

2004-09-22 Thread David M. Fetter
On Wed, 2004-09-22 at 11:29, Ralf S. Engelschall wrote:
> On Wed, Sep 22, 2004, David M. Fetter wrote:
> I've taken it over but tried to simplify and cleanup a few parts.
> Especially the with_man option I've removed (we always install manual
> pages in OpenPKG) and your changes to %env in rc.j2se14 I do not
> understand (the JDK_home and JRE_home variables are meant as internal
> OpenPKG variables only). 

Ah, that might explain some things.  I was trying to extract those
variables for use with tomcat5 in it's rc script.  Then I just ended up
making the rc script for j2se14 and passed the variable that way to
tomcat5 as well as other potential apps.

> See http://cvs.openpkg.org/chngview?cn=19144
> what I've comitted until now. Thanks for your contribution.



-- 
David M. Fetter - UNIX Systems Administrator
Portland State University - www.oit.pdx.edu
"Only those who attempt the absurd can achieve the impossible."


signature.asc
Description: This is a digitally signed message part


Re: j2se14 spec file (modified)

2004-09-22 Thread Ralf S. Engelschall
On Wed, Sep 22, 2004, David M. Fetter wrote:

> I uploaded a new j2se14.spec file.  I added options to it so that you
> can keep the demos if you want, add docs, remove man pages and/or add
> the US Encryption policy files.  I tried to upload the src.rpm which
> included an rc script that just adds the JAVA_HOME into the environment,
> but it was rejected.  I attached the rc script to this email in case
> anyone wants it.
> [...]

I've taken it over but tried to simplify and cleanup a few parts.
Especially the with_man option I've removed (we always install manual
pages in OpenPKG) and your changes to %env in rc.j2se14 I do not
understand (the JDK_home and JRE_home variables are meant as internal
OpenPKG variables only). See http://cvs.openpkg.org/chngview?cn=19144
what I've comitted until now. Thanks for your contribution.

   Ralf S. Engelschall
   [EMAIL PROTECTED]
   www.engelschall.com

__
The OpenPKG Projectwww.openpkg.org
Developer Communication List   [EMAIL PROTECTED]


j2se14 spec file (modified)

2004-09-22 Thread David M. Fetter
I uploaded a new j2se14.spec file.  I added options to it so that you
can keep the demos if you want, add docs, remove man pages and/or add
the US Encryption policy files.  I tried to upload the src.rpm which
included an rc script that just adds the JAVA_HOME into the environment,
but it was rejected.  I attached the rc script to this email in case
anyone wants it.

-- 
David M. Fetter - UNIX Systems Administrator
Portland State University - www.oit.pdx.edu
"Only those who attempt the absurd can achieve the impossible."
#!/usr/local/lib/openpkg/bash /usr/local/etc/rc
##
##  rc.j2se14 -- Run-Commands
##

%config
j2se14_enable="$openpkg_rc_def"
j2se14_home="/usr/local/libexec/j2se14"
java_home="$j2se14_home"

%status -u root -o
j2se14_usable="unknown"
j2se14_active="no"

${j2se14_home}/bin/java -version 2> /dev/null 
status=$?

if [ $status -eq 0 ]; then
  j2se14_active="yes"
fi

echo "j2se14_enable=\"$j2se14_enable\""
# active is the same as usable
echo "j2se14_usable=\"$j2se14_active\""
echo "j2se14_active=\"$j2se14_active\""

%start
:
%stop
:
%env
rcService j2se14 enable yes || exit 0
JAVA_HOME="$JDK_home"
JDK_home="$j2se14_home"
JAVA_home="$j2se14_home"
export JAVA_HOME JDK_home JAVA_home



signature.asc
Description: This is a digitally signed message part