OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 02-Aug-2008 20:22:06
Branch: HEAD Handle: 2008080219220500
Added files:
openpkg-src/openssl099 openssl099.patch openssl099.spec
Log:
new package: openssl099 0.9.9.20080802 (Cryptography and SSL/TLS
Toolkit)
Summary:
Revision Changes Path
1.1 +79 -0 openpkg-src/openssl099/openssl099.patch
1.1 +176 -0 openpkg-src/openssl099/openssl099.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/openssl099/openssl099.patch
============================================================================
$ cvs diff -u -r0 -r1.1 openssl099.patch
--- /dev/null 2008-08-02 20:22:00 +0200
+++ openssl099.patch 2008-08-02 20:22:06 +0200
@@ -0,0 +1,79 @@
+Index: Configure
+--- Configure.orig 2008-07-10 23:00:10 +0200
++++ Configure 2008-08-02 19:55:15 +0200
+@@ -426,8 +426,8 @@
+
+ #### IBM's AIX.
+ "aix3-cc", "cc:-O -DB_ENDIAN -qmaxmem=16384::(unknown):AIX::BN_LLONG
RC4_CHAR:::",
+-"aix-gcc", "gcc:-O -DB_ENDIAN::-D_THREAD_SAFE:AIX::BN_LLONG
RC4_CHAR:${ppc32_asm}:aix32:dlfcn:aix-shared:::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)::-X
32",
+-"aix64-gcc","gcc:-maix64 -O
-DB_ENDIAN::-D_THREAD_SAFE:AIX::SIXTY_FOUR_BIT_LONG
RC4_CHAR:${ppc64_asm}:aix64:dlfcn:aix-shared::-maix64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)::-X64",
++"aix-gcc", "gcc:-O -DB_ENDIAN::-D_THREAD_SAFE:AIX::BN_LLONG
RC4_CHAR:${ppc32_asm}:aix32:dlfcn:aix-shared:::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)::",
++"aix64-gcc","gcc:-maix64 -O
-DB_ENDIAN::-D_THREAD_SAFE:AIX::SIXTY_FOUR_BIT_LONG
RC4_CHAR:${ppc64_asm}:aix64:dlfcn:aix-shared::-maix64:.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:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)::-X
32",
+Index: config
+--- config.orig 2007-12-18 19:00:08 +0100
++++ config 2008-08-02 19:54:24 +0200
+@@ -477,6 +477,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}
+@@ -672,7 +673,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"
+Index: crypto/evp/Makefile
+--- crypto/evp/Makefile.orig 2008-06-04 14:00:30 +0200
++++ crypto/evp/Makefile 2008-08-02 20:08:20 +0200
+@@ -246,7 +246,7 @@
+ e_idea.o: ../../e_os.h ../../include/openssl/asn1.h
../../include/openssl/bio.h
+ e_idea.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
+ e_idea.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
+-e_idea.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
++e_idea.o: ../../include/openssl/evp.h
+ e_idea.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
+ e_idea.o: ../../include/openssl/objects.h
../../include/openssl/opensslconf.h
+ e_idea.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
+Index: apps/Makefile
+--- apps/Makefile.orig 2008-06-04 14:00:11 +0200
++++ apps/Makefile 2008-08-02 20:11:30 +0200
+@@ -931,7 +931,7 @@
+ speed.o: ../include/openssl/ec.h ../include/openssl/ecdh.h
+ speed.o: ../include/openssl/ecdsa.h ../include/openssl/engine.h
+ speed.o: ../include/openssl/err.h ../include/openssl/evp.h
+-speed.o: ../include/openssl/hmac.h ../include/openssl/idea.h
++speed.o: ../include/openssl/hmac.h
+ speed.o: ../include/openssl/lhash.h ../include/openssl/md2.h
+ speed.o: ../include/openssl/md4.h ../include/openssl/md5.h
+ speed.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
+@@ -1004,7 +1004,7 @@
+ version.o: ../include/openssl/des_old.h ../include/openssl/e_os2.h
+ version.o: ../include/openssl/ec.h ../include/openssl/ecdh.h
+ version.o: ../include/openssl/ecdsa.h ../include/openssl/engine.h
+-version.o: ../include/openssl/evp.h ../include/openssl/idea.h
++version.o: ../include/openssl/evp.h
+ version.o: ../include/openssl/lhash.h ../include/openssl/md2.h
+ version.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
+ version.o: ../include/openssl/ocsp.h ../include/openssl/opensslconf.h
+Index: test/Makefile
+--- test/Makefile.orig 2008-06-04 13:02:04 +0200
++++ test/Makefile 2008-08-02 20:14:45 +0200
+@@ -559,7 +559,7 @@
+ hmactest.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
+ hmactest.o: ../include/openssl/safestack.h ../include/openssl/stack.h
+ hmactest.o: ../include/openssl/symhacks.h hmactest.c
+-ideatest.o: ../e_os.h ../include/openssl/e_os2.h ../include/openssl/idea.h
++ideatest.o: ../e_os.h ../include/openssl/e_os2.h
+ ideatest.o: ../include/openssl/opensslconf.h ideatest.c
+ igetest.o: ../include/openssl/aes.h ../include/openssl/e_os2.h
+ igetest.o: ../include/openssl/opensslconf.h ../include/openssl/ossl_typ.h
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/openssl099/openssl099.spec
============================================================================
$ cvs diff -u -r0 -r1.1 openssl099.spec
--- /dev/null 2008-08-02 20:22:00 +0200
+++ openssl099.spec 2008-08-02 20:22:06 +0200
@@ -0,0 +1,176 @@
+##
+## openssl099.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_snapshot 20080802
+
+# package information
+Name: openssl099
+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: 0.9.9.%{V_snapshot}
+Release: 20080802
+
+# 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:
ftp://ftp.openssl.org/snapshot/openssl-SNAP-%{V_snapshot}.tar.gz
+Patch0: openssl099.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 openssl = {
+ 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-SNAP-%{V_snapshot}
+ %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/openssl099"\;;' \
+ 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/openssl099 \
+ $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/openssl099/private
+ rm -rf etc/openssl099/certs
+ rm -rf etc/openssl099/misc
+ rm -rf etc/openssl099/lib
+ mv etc/openssl099/man man
+ mv bin/c_rehash bin/openssl099-crehash
+ cd man
+ for dir in man[1-9]; do
+ for file in `cd $dir; echo *`; do
+ mv $dir/$file $dir/openssl099_$file
+ done
+ done
+ mv bin/openssl bin/openssl099
+ mv lib/libssl.a lib/libssl099.a
+ mv lib/libcrypto.a lib/libcrypto099.a
+ mv lib/pkgconfig/libssl.pc lib/pkgconfig/libssl099.pc
+ mv lib/pkgconfig/libcrypto.pc lib/pkgconfig/libcrypto099.pc
+ mv lib/pkgconfig/openssl.pc lib/pkgconfig/openssl099.pc
+ ) || exit $?
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
+ %{l_files_std} \
+ '%config %{l_prefix}/etc/openssl099/openssl.cnf'
+
+%files -f files
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
@@ .
______________________________________________________________________
OpenPKG http://openpkg.org
CVS Repository Commit List [email protected]