PATCH_LIST="default_ciphers.patch" SRC_FETCH_PATH="http://www.openssl.org/source/openssl-0.9.8r.tar.gz" SRC_FETCH_METHOD="http" function do_config { # To find these options, try "./Configure TABLE" and "./Configure LIST". if [ "$FLXARCH" == "x86_64" ]; then ./Configure --prefix=/usr -DSSL_ALLOW_ADH --openssldir=/usr/share/openssl threads shared "linux-x86_64:$CC:-DL_ENDIAN -DTERMIO $GCC_ARCH_COMMON $GCC_CPU_COMMON $GCC_OPT_SMALL -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL:\${x86_64_asm}:dlfcn:linux-shared:-fPIC::.so.\\\$(SHLIB_MAJOR).\\\$(SHLIB_MINOR)" elif [ "$FLX_ARCH_SMALL" == "i386" ]; then ./Configure --prefix=/usr -DSSL_ALLOW_ADH --openssldir=/usr/share/openssl threads shared "linux-elf:$CC:-DL_ENDIAN -DTERMIO $GCC_ARCH_COMMON $GCC_CPU_COMMON $GCC_OPT_SMALL -Wall::-D_REENTRANT::-ldl:BN_LLONG \${x86_gcc_des} \${x86_gcc_opts}:\${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\\\$(SHLIB_MAJOR).\\\$(SHLIB_MINOR)" else ./Configure --prefix=/usr -DSSL_ALLOW_ADH --openssldir=/usr/share/openssl threads shared "linux-elf:$CC:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_RISC1::::::::::::dlfcn:linux-shared:-fPIC::.so.\\\$(SHLIB_MAJOR).\\\$(SHLIB_MINOR)" fi } function do_compile_only { $FLXMAKE CC=$CC AR='${FLXCROSS}ar r' RANLIB='${FLXCROSS}ranlib' $FLXMAKE build-shared CC=$CC AR='${FLXCROSS}ar r' RANLIB='${FLXCROSS}ranlib' $FLXMAKE -C apps CC=$CC DLIBCRYPTO=../libcrypto.so AR='${FLXCROSS}ar r' RANLIB='${FLXCROSS}ranlib' } function do_prepack { local SONAME LIB="lib" make install LIBDIR=$LIB MANDIR=/usr/man INSTALL_PREFIX=$ROOTDIR cp libcrypto.so.0.* $ROOTDIR/usr/$LIB/libcrypto-${PKGVER}.so cp libssl.so.0.* $ROOTDIR/usr/$LIB/libssl-${PKGVER}.so ln -s libcrypto-${PKGVER}.so $ROOTDIR/usr/$LIB/libcrypto.so ln -s libssl-${PKGVER}.so $ROOTDIR/usr/$LIB/libssl.so rm -f $ROOTDIR/usr/$LIB/libcrypto.so.${PKGVER} ; ln -s libcrypto-${PKGVER}.so $ROOTDIR/usr/$LIB/libcrypto.so.${PKGVER} rm -f $ROOTDIR/usr/$LIB/libssl.so.${PKGVER} ; ln -s libssl-${PKGVER}.so $ROOTDIR/usr/$LIB/libssl.so.${PKGVER} set -- $( $OBJDUMP -p $ROOTDIR/usr/$LIB/libcrypto.so|grep SONAME) SONAME=${2%%[0-9]*} SONAME=${2##$SONAME} mv $ROOTDIR/usr/$LIB/libcrypto.so.${SONAME} $ROOTDIR/usr/$LIB/libcrypto-${PKGVER}.so && ln -s libcrypto-${PKGVER}.so $ROOTDIR/usr/$LIB/libcrypto.so.${SONAME} mv $ROOTDIR/usr/$LIB/libssl.so.${SONAME} $ROOTDIR/usr/$LIB/libssl-${PKGVER}.so && ln -s libssl-${PKGVER}.so $ROOTDIR/usr/$LIB/libssl.so.${SONAME} mkdir -p $ROOTDIR/etc/profile.d && cp $PKGDIR/add-ons/openssl.var $ROOTDIR/etc/profile.d/ set_default_perm $ROOTDIR }