[Lunar-commits] r22327 - in moonbase/trunk/compilers: . j2sdk sun-jre

Auke Kok sofar at foo-projects.org
Mon Nov 27 18:20:32 CET 2006


Moritz Heiber wrote:
> Author: moe
> Date: 2006-11-27 15:45:51 +0100 (Mon, 27 Nov 2006)
> New Revision: 22327
> 
> Added:
>    moonbase/trunk/compilers/j2sdk/CONFLICTS
>    moonbase/trunk/compilers/sun-jre/
>    moonbase/trunk/compilers/sun-jre/BUILD
>    moonbase/trunk/compilers/sun-jre/CONFLICTS
>    moonbase/trunk/compilers/sun-jre/DETAILS
>    moonbase/trunk/compilers/sun-jre/PRE_BUILD
> Log:
> Adding the sun-jre module. It correctly identifies itself as a proprietary
> licensened module. The package cannot be downloaded from sun directly
> (they implent some sort of weird time-based download restrictions) so
> I put it into my homedir on doppio. Not sure wether thats the right place
> yet, that can be changed easily. 

we have /lunar/mirrors/ for that, which is mirrored across all mirrors.

> 
> Added: moonbase/trunk/compilers/j2sdk/CONFLICTS
> ===================================================================
> --- moonbase/trunk/compilers/j2sdk/CONFLICTS	                        (rev 0)
> +++ moonbase/trunk/compilers/j2sdk/CONFLICTS	2006-11-27 14:45:51 UTC (rev 22327)
> @@ -0,0 +1 @@
> +conflicts sun-jre
> 
> Added: moonbase/trunk/compilers/sun-jre/BUILD
> ===================================================================
> --- moonbase/trunk/compilers/sun-jre/BUILD	                        (rev 0)
> +++ moonbase/trunk/compilers/sun-jre/BUILD	2006-11-27 14:45:51 UTC (rev 22327)
> @@ -0,0 +1,27 @@
> +(
> +
> +  chmod +x $SOURCE &&
> +  ./$SOURCE        &&
> +
> +  prepare_install  &&
> +
> +  cp -a $SOURCE_DIRECTORY/jre${VERSION} /usr/lib/ &&
> +
> +  if [ ! -d /opt/lunar/plugins ] ; then
> +    mkdir -p /opt/lunar/plugins;
> +    ln -sf /usr/lib/jre${VERSION}/plugin/i386/ns7/libjavaplugin_oji.so \
> +           /opt/lunar/plugins/;
> +  elif [ ! -x /opt/lunar/plugins/libjavaplugin_oji.so ] ; then
> +    ln -sf /usr/lib/jre${VERSION}/plugin/i386/ns7/libjavaplugin_oji.so \
> +           /opt/lunar/plugins/;
> +  else
> +    rm -f /opt/lunar/plugins/libjavaplugin_oji.so;
> +    ln -sf /usr/lib/jre${VERSION}/plugin/i386/ns7/libjavaplugin_oji.so \
> +           /opt/lunar/plugins/;
> +  fi &&

that would be the same as.... this:

if [ ! -d /opt/lunar/plugins ] ; then
   mkdir -p /opt/lunar/plugins;
elif [ -x /opt/lunar/plugins/libjavaplugin_oji.so ] ; then
   rm -f /opt/lunar/plugins/libjavaplugin_oji.so;
fi
   ln -sf /usr/lib/jre${VERSION}/plugin/i386/ns7/libjavaplugin_oji.so \
          /opt/lunar/plugins/;

right?

can even be as short as this:

   mkdir -p /opt/lunar/plugins
   rm -f /opt/lunar/plugins/libjavaplugin_oji.so
   ln -sf /usr/lib/jre${VERSION}/plugin/i386/ns7/libjavaplugin_oji.so \
          /opt/lunar/plugins/

it's really all the same!

Cheers,

Auke


More information about the Lunar-dev mailing list