OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  r...@openpkg.org
  Module: openpkg-src                      Date:   01-Apr-2009 21:51:34
  Branch: HEAD                             Handle: 2009040120513300

  Added files:
    openpkg-src/openssl10   openssl10.patch openssl10.spec

  Log:
    new package: openssl10 1.0.0b1 (Cryptography and SSL/TLS Toolkit)

  Summary:
    Revision    Changes     Path
    1.1         +34 -0      openpkg-src/openssl10/openssl10.patch
    1.1         +179 -0     openpkg-src/openssl10/openssl10.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/openssl10/openssl10.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 openssl10.patch
  --- /dev/null 2009-04-01 21:51:32 +0200
  +++ openssl10.patch   2009-04-01 21:51:33 +0200
  @@ -0,0 +1,34 @@
  +Index: Configure
  +--- Configure.orig   2009-02-19 10:43:18 +0100
  ++++ Configure        2009-04-01 20:27:46 +0200
  +@@ -428,8 +428,8 @@
  + 
  + #### IBM's AIX.
  + "aix3-cc",  "cc:-O -DB_ENDIAN -qmaxmem=16384::(unknown):AIX::BN_LLONG 
RC4_CHAR:::",
  +-"aix-gcc",  "gcc:-O -DB_ENDIAN::-pthread:AIX::BN_LLONG 
RC4_CHAR:${ppc32_asm}:aix32:dlfcn:aix-shared::-shared 
-Wl,-G:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)::-X32",
  +-"aix64-gcc","gcc:-maix64 -O -DB_ENDIAN::-pthread:AIX::SIXTY_FOUR_BIT_LONG 
RC4_CHAR:${ppc64_asm}:aix64:dlfcn:aix-shared::-maix64 -shared 
-Wl,-G:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)::-X64",
  ++"aix-gcc",  "gcc:-O -DB_ENDIAN::-pthread:AIX::BN_LLONG 
RC4_CHAR:${ppc32_asm}:aix32:dlfcn:aix-shared::-shared 
-Wl,-G:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)::",
  ++"aix64-gcc","gcc:-maix64 -O -DB_ENDIAN::-pthread:AIX::SIXTY_FOUR_BIT_LONG 
RC4_CHAR:${ppc64_asm}:aix64:dlfcn:aix-shared::-maix64 -shared 
-Wl,-G:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)::",
  + # Below targets assume AIX 5. Idea is to effectively disregard $OBJECT_MODE
  + # at build time. $OBJECT_MODE is respected at ./config stage!
  + "aix-cc",   "cc:-q32 -O -DB_ENDIAN -qmaxmem=16384 -qro 
-qroconst::-qthreaded:AIX::BN_LLONG 
RC4_CHAR:${ppc32_asm}:aix32:dlfcn:aix-shared::-q32 
-G:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)::-X 32",
  +Index: config
  +--- config.orig      2009-01-18 13:06:37 +0100
  ++++ config   2009-04-01 20:27:00 +0200
  +@@ -483,6 +483,7 @@
  + 
  + if [ "${SYSTEM}" = "AIX" ]; then    # favor vendor cc over gcc
  +     (cc) 2>&1 | grep -iv "not found" > /dev/null && CC=cc
  ++    (gcc) 2>&1 | grep -iv "not found" > /dev/null && CC=gcc
  + fi
  + 
  + CCVER=${CCVER:-0}
  +@@ -678,7 +679,7 @@
  +   sun4*-*-solaris2) OUT="solaris-sparcv7-$CC" ;;
  +   *86*-*-solaris2)
  +     ISA64=`(isalist) 2>/dev/null | grep amd64`
  +-    if [ "$ISA64" != "" ]; then
  ++    if [ "$ISA64" != "" -a "$CC" = "gcc" -a "$GCC_ARCH" = "-m64" ]; then
  +         OUT="solaris64-x86_64-$CC"
  +     else
  +         OUT="solaris-x86-$CC"
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/openssl10/openssl10.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 openssl10.spec
  --- /dev/null 2009-04-01 21:51:32 +0200
  +++ openssl10.spec    2009-04-01 21:51:33 +0200
  @@ -0,0 +1,179 @@
  +##
  +##  openssl10.spec -- OpenPKG RPM Package Specification
  +##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
  +##
  +##  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 version
  +%define       V_opkg  1.0.0b1
  +%define       V_dist  1.0.0-beta1
  +
  +#   package information
  +Name:         openssl10
  +Summary:      Cryptography and SSL/TLS Toolkit
  +URL:          http://www.openssl.org/
  +Vendor:       The OpenSSL Project
  +Packager:     OpenPKG Foundation e.V.
  +Distribution: OpenPKG Community
  +Class:        EVAL
  +Group:        SSL
  +License:      BSD-style
  +Version:      %{V_opkg}
  +Release:      20090401
  +
  +#   package options
  +%option       with_zlib     no
  +%option       with_idea     no
  +%option       with_threads  no
  +%option       with_pic      no
  +
  +#   package options sanity check
  +%if "%{with_zlib}" == "yes"
  +    %{warn: WARNING: enabling ZLib compression causes packages depending on 
OpenSSL to fail building! }
  +%endif
  +
  +#   list of sources
  +Source0:      http://www.openssl.org/source/openssl-%{V_dist}.tar.gz
  +Patch0:       openssl10.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20040130, perl, make, gcc
  +PreReq:       OpenPKG, openpkg >= 20040130, perl
  +%if "%{with_zlib}" == "yes"
  +BuildPreReq:  zlib
  +PreReq:       zlib
  +%endif
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    The OpenSSL Project is a collaborative effort to develop a robust,
  +    commercial-grade, full-featured, and Open Source toolkit implementing the
  +    Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1)
  +    protocols with full-strength cryptography world-wide. The project is
  +    managed by a worldwide community of volunteers that use the Internet to
  +    communicate, plan, and develop the OpenSSL tookit and its related
  +    documentation.
  +
  +%track
  +    prog openssl10 = {
  +        disabled
  +        comment   = "rse: snapshots change daily"
  +        version   = %{version}
  +        url       = ftp://ftp.openssl.org/source/
  +        regex     = openssl-(\d+\.\d+\.\d+[a-z]?)\.tar\.gz
  +    }
  +
  +%prep
  +    %setup -q -n openssl-%{V_dist}
  +    %patch -p0
  +    %{l_shtool} subst \
  +        -e 's;-march=pentium;;g' \
  +        -e 's;-m486;-march=i486;g' \
  +        -e 's;-DZLIB;%{l_cppflags} -DZLIB;' \
  +        -e 's;-lz;%{l_ldflags} -lz;' \
  +        Configure
  +    %{l_shtool} subst \
  +        -e 's;BN_LLONG *;;' \
  +        Configure
  +    %{l_shtool} subst \
  +        -e 's;test "$OSTYPE" = msdosdjgpp;true;' \
  +        util/point.sh
  +    %{l_shtool} subst \
  +        -e 's;^\(#define DEVRANDOM_EGD\);\1 
"%{l_prefix}/var/prngd/prngd.socket",;' \
  +        e_os.h
  +    %{l_shtool} subst \
  +        -e 's;^\(my $openssl\)\;;\1 = "%{l_prefix}/bin/openssl10"\;;' \
  +        tools/c_rehash.in
  +
  +%build
  +    %{l_prefix}/bin/perl util/perlpath.pl %{l_prefix}/bin/perl
  +    options="no-shared no-dso"
  +%if "%{with_pic}" == "yes"
  +    options="$options -fPIC"
  +    case "%{l_platform -t}" in
  +        amd64-*          ) options="$options no-asm" ;;
  +        sparc64-freebsd* ) options="$options no-asm" ;;
  +    esac
  +%else
  +    case "%{l_platform -t}" in
  +        amd64-*          ) options="$options -fPIC no-asm" ;;
  +        ia64-*           ) options="$options -fPIC"        ;;
  +        sparc64-freebsd* ) options="$options -fPIC no-asm" ;;
  +    esac
  +%endif
  +%if "%{with_zlib}" == "yes"
  +    options="$options zlib"
  +%else
  +    options="$options no-zlib"
  +%endif
  +%if "%{with_idea}" != "yes"
  +    options="$options no-idea"
  +%endif
  +%if "%{with_threads}" == "yes"
  +    options="$options threads"
  +%else
  +    options="$options no-threads"
  +%endif
  +    PERL=%{l_prefix}/bin/perl \
  +    ./config \
  +        --prefix=%{l_prefix} \
  +        --openssldir=%{l_prefix}/etc/openssl10 \
  +        $options
  +    %{l_make} %{l_mflags}
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +    %{l_make} %{l_mflags} install INSTALL_PREFIX=$RPM_BUILD_ROOT
  +    strip $RPM_BUILD_ROOT%{l_prefix}/bin/openssl >/dev/null 2>&1 || true
  +    ( cd $RPM_BUILD_ROOT%{l_prefix}
  +      rmdir lib/engines
  +      rm -rf etc/openssl10/private
  +      rm -rf etc/openssl10/certs
  +      rm -rf etc/openssl10/misc
  +      rm -rf etc/openssl10/lib
  +      mv etc/openssl10/man man
  +      mv bin/c_rehash bin/openssl10-crehash
  +      cd man
  +      for dir in man[1-9]; do
  +          for file in `cd $dir; echo *`; do
  +              mv $dir/$file $dir/openssl10_$file
  +          done
  +      done
  +    ) || exit $?
  +    ( cd $RPM_BUILD_ROOT%{l_prefix}
  +      mv bin/openssl bin/openssl10
  +      mv lib/libssl.a lib/libssl10.a
  +      mv lib/libcrypto.a lib/libcrypto10.a
  +      mv lib/pkgconfig/libssl.pc lib/pkgconfig/libssl10.pc
  +      mv lib/pkgconfig/libcrypto.pc lib/pkgconfig/libcrypto10.pc
  +      mv lib/pkgconfig/openssl.pc lib/pkgconfig/openssl10.pc
  +    ) || exit $?
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  +        %{l_files_std} \
  +        '%config %{l_prefix}/etc/openssl10/openssl.cnf'
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to