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:   26-Sep-2002 19:33:59
  Branch: HEAD                             Handle: 2002092618335900

  Added files:
    openpkg-src/j2ee        j2ee.spec rc.j2ee

  Log:
    Add source for the new j2ee package.

  Summary:
    Revision    Changes     Path
    1.1         +155 -0     openpkg-src/j2ee/j2ee.spec
    1.1         +15 -0      openpkg-src/j2ee/rc.j2ee
  ____________________________________________________________________________

  Index: openpkg-src/j2ee/j2ee.spec
  ============================================================
  $ cvs update -p -r1.1 j2ee.spec
  ##
  ##  j2ee.spec -- OpenPKG RPM Specification
  ##  Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH
  ##  Copyright (c) 2000-2002 Ralf S. Engelschall <[EMAIL PROTECTED]>
  ##
  ##  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_3_1
  %define       V_filesys 1.3.1
  %define       V_openpkg 1.3.1.00
  
  #   package information
  Name:         j2ee
  Summary:      Java 2 Platform, Enterprise Edition (J2EE)
  URL:          http://java.sun.com/j2ee/
  Vendor:       Sun Microsystems, Inc.
  Packager:     The OpenPKG Project
  Distribution: OpenPKG [PRIV]
  Group:        Language
  License:      Commercial
  Version:      %{V_openpkg}
  Release:      20020926
  
  #   list of sources
  Source0:      j2sdkee-%{V_sunjava}-solsparc.sh
  Source0:      j2sdkee-%{V_sunjava}-linux.tar.gz
  Source3:      rc.j2ee
  
  #   build information
  Prefix:       %{l_prefix}
  BuildRoot:    %{l_buildroot}
  BuildPreReq:  OpenPKG, openpkg >= 20020714, JDK, tar, gzip
  PreReq:       OpenPKG, openpkg >= 20020714, JDK
  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.
  
  %prep
      %setup -q -c j2ee -T
  
  %build
  
  %install
      rm -rf $RPM_BUILD_ROOT
  
      #   select vendor source
      pkgfile=""
      pkgdir=%{V_filesys}
      case "%{l_target}" in
          ix86-linux2.[2-5]* | ix86-freebsd4* )
              pkgfile="j2sdkee-%{V_sunjava}-linux.tar.gz"
              pkgdir="j2sdkee%{V_filesys}"
              ;;
          sparc64-solaris2.[6-9]*)
              pkgfile="j2sdkee-%{V_sunjava}-solsparc.sh"
              pkgdir="j2sdkee%{V_filesys}"
              ;;
      esac
      if [ ".$pkgfile" = . ]; then
          echo "Sorry, unsupported architecture '%{l_target}'" 1>&2
          exit 1
      fi
  
      #   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 \
          $RPM_BUILD_ROOT%{l_prefix}/share/j2ee/doc
  
      #   unpack vendor distribution
      (   umask 022
          cd $RPM_BUILD_ROOT%{l_prefix}/libexec
          case "%{l_target}" in
              ix86-linux2.[2-5]* | ix86-freebsd4* )
                  tar zxf $RPM_SOURCE_DIR/$pkgfile
                  ;;
              sparc64-solaris2.[6-9]*)
                  echo "yes" | sh $RPM_SOURCE_DIR/$pkgfile \
                      >$RPM_BUILD_ROOT%{l_prefix}/share/j2ee/doc/COPYING.32
                  ;;
          esac
          mv $pkgdir j2ee
      )
  
      #   fix vendor distribution
      (   cd $RPM_BUILD_ROOT%{l_prefix}/libexec/j2ee/bin
          find . -type f -print | xargs chmod u+w
      )
  
      #   optionally brand ELF binaries (FreeBSD only)
      case "%{l_target}" in
          ix86-freebsd4* )
              brandelf -t Linux \
                  `find $RPM_BUILD_ROOT%{l_prefix}/libexec/j2ee/bin/ -type f -print` \
                  >/dev/null 2>&1 || true
              ;;
      esac
  
      #   link developer binaries
      ( cd $RPM_BUILD_ROOT%{l_prefix}/bin
        for bin in cleanup  j2ee         packager     setenv.sh \
            cloudscape      j2eeadmin    realmtool    userconfig.sh \
            deploytool      keytool      runclient    verifier; do
            ln -s ../libexec/j2ee/bin/$bin .
        done
        ( echo "#!/bin/sh"
          echo "exec %{l_prefix}/libexec/j2ee/bin/realpath \"\$@\""
        ) >realpath
        chmod 755 realpath
      )
  
      #   install run-command script
      %{l_shtool} install -c -m 755 -e 's;@l_prefix@;%{l_prefix};g' \
          %{SOURCE rc.j2ee} $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
  
  Index: openpkg-src/j2ee/rc.j2ee
  ============================================================
  $ cvs update -p -r1.1 rc.j2ee
  #!@l_prefix@/lib/openpkg/bash @l_prefix@/etc/rc
  ##
  ##  rc.j2ee -- Run-Commands for the Sun Java 2 Platform, Standard Edition
  ##
  
  %config
      j2ee_enable="yes"
      j2ee_home="@l_prefix@/libexec/j2ee"
  
  %env
      if opServiceEnabled j2ee; then
          J2EE_HOME="$j2ee_home"
          export J2EE_HOME
      fi
  
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to