diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2fa9614 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +file.tgz +*.tar.gz +lib +opensslIncludes diff --git a/1.0.1/OpenSSL.podspec b/1.0.1/OpenSSL.podspec deleted file mode 100644 index 21075d5..0000000 --- a/1.0.1/OpenSSL.podspec +++ /dev/null @@ -1,90 +0,0 @@ -Pod::Spec.new do |s| - s.name = "OpenSSL" - s.version = "1.0.1" - s.summary = "OpenSSL is an SSL/TLS and Crypto toolkit. Deprecated in Mac OS and gone in iOS, this spec gives your project non-deprecated OpenSSL support." - s.author = "OpenSSL Project " - - s.homepage = "http://www.openssl.org/" - s.license = 'BSD-style Open Source' - s.source = { :http => "https://www.openssl.org/source/openssl-1.0.1g.tar.gz"} - s.preserve_paths = "file.tgz", "lib/*","include/*", "include/**/*.h", "crypto/*.h", "crypto/**/*.h", "e_os.h", "e_os2.h", "ssl/*.h", "ssl/**/*.h", "MacOS/*.h" - s.prepare_command = <<-CMD - - VERSION="1.0.1g" - SDKVERSION=`/usr/bin/xcodebuild -version -sdk 2> /dev/null | grep SDKVersion | tail -n 1 | awk '{ print $2 }'` - - CURRENTPATH=`pwd` - ARCHS="i386 x86_64 armv7 armv7s arm64" - DEVELOPER=`xcode-select -print-path` - - mkdir -p "${CURRENTPATH}/bin" - mkdir -p "${CURRENTPATH}/lib" - mkdir -p "${CURRENTPATH}/openssl" - - hash=$(cat file.tgz | openssl dgst -sha1 | sed 's/^.* //') - - if [ "$hash" != "b28b3bcb1dc3ee7b55024c9f795be60eb3183e3c" ]; then - echo "OpenSSL downloaded doesn't seem valid" - exit 1; - fi - - tar -xzf file.tgz - - cd openssl-${VERSION} - - for ARCH in ${ARCHS} - do - - CONFIGURE_FOR="iphoneos-cross" - - if [ "${ARCH}" == "i386" ] || [ "${ARCH}" == "x86_64" ] ; - then - PLATFORM="iPhoneSimulator" - if [ "${ARCH}" == "x86_64" ] ; - then - CONFIGURE_FOR="darwin64-x86_64-cc" - fi - else - sed -ie "s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!" "crypto/ui/ui_openssl.c" - PLATFORM="iPhoneOS" - fi - - export CROSS_TOP="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer" - export CROSS_SDK="${PLATFORM}${SDKVERSION}.sdk" - - echo "Building openssl-${VERSION} for ${PLATFORM} ${SDKVERSION} ${ARCH}" - echo "Please stand by..." - - export CC="${DEVELOPER}/usr/bin/gcc -arch ${ARCH} -miphoneos-version-min=${SDKVERSION}" - mkdir -p "${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" - LOG="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/build-openssl-${VERSION}.log" - - ./Configure ${CONFIGURE_FOR} --openssldir="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" > "${LOG}" 2>&1 - sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} !" "Makefile" - - make >> "${LOG}" 2>&1 - make install >> "${LOG}" 2>&1 - make clean >> "${LOG}" 2>&1 - done - - - echo "Build library..." - lipo -create ${CURRENTPATH}/bin/iPhoneSimulator${SDKVERSION}-i386.sdk/lib/libssl.a ${CURRENTPATH}/bin/iPhoneSimulator${SDKVERSION}-x86_64.sdk/lib/libssl.a ${CURRENTPATH}/bin/iPhoneOS${SDKVERSION}-armv7.sdk/lib/libssl.a ${CURRENTPATH}/bin/iPhoneOS${SDKVERSION}-armv7s.sdk/lib/libssl.a ${CURRENTPATH}/bin/iPhoneOS${SDKVERSION}-arm64.sdk/lib/libssl.a -output ${CURRENTPATH}/lib/libssl.a - lipo -create ${CURRENTPATH}/bin/iPhoneSimulator${SDKVERSION}-i386.sdk/lib/libcrypto.a ${CURRENTPATH}/bin/iPhoneSimulator${SDKVERSION}-x86_64.sdk/lib/libcrypto.a ${CURRENTPATH}/bin/iPhoneOS${SDKVERSION}-armv7.sdk/lib/libcrypto.a ${CURRENTPATH}/bin/iPhoneOS${SDKVERSION}-armv7s.sdk/lib/libcrypto.a ${CURRENTPATH}/bin/iPhoneOS${SDKVERSION}-arm64.sdk/lib/libcrypto.a -output ${CURRENTPATH}/lib/libcrypto.a - - echo "Building done." - echo "Cleaning up..." - rm -rf ${CURRENTPATH}/openssl-${VERSION} - rm -R ${CURRENTPATH}/bin - rm -rf file.tgz - echo "Done." - CMD - - s.header_dir = "openssl" - s.platform = :ios - s.source_files = "include/openssl/*.h" - s.library = 'crypto', 'ssl' - s.xcconfig = {'LIBRARY_SEARCH_PATHS' => '"$(PODS_ROOT)/OpenSSL/lib"'} - s.requires_arc = false - -end diff --git a/1.0.108/OpenSSL.podspec b/1.0.108/OpenSSL.podspec deleted file mode 100644 index f4805d8..0000000 --- a/1.0.108/OpenSSL.podspec +++ /dev/null @@ -1,94 +0,0 @@ -Pod::Spec.new do |s| - s.name = "OpenSSL" - s.version = "1.0.108" - s.summary = "OpenSSL is an SSL/TLS and Crypto toolkit. Deprecated in Mac OS and gone in iOS, this spec gives your project non-deprecated OpenSSL support." - s.author = "OpenSSL Project " - - s.homepage = "https://github.com/FredericJacobs/OpenSSL-Pod" - s.license = 'BSD-style Open Source' - s.source = { :http => "https://www.openssl.org/source/openssl-1.0.1h.tar.gz", :sha1 => "b2239599c8bf8f7fc48590a55205c26abe560bf8"} - s.preserve_paths = "file.tgz", "opensslIncludes/*" - s.source_files = "opensslIncludes/*.h", "**/*.h" - s.header_dir = "openssl" - s.license = { :type => 'OpenSSL (OpenSSL/SSLeay)', :file => 'LICENSE' } - - s.prepare_command = <<-CMD - VERSION="1.0.1h" - SDKVERSION=`/usr/bin/xcodebuild -version -sdk 2> /dev/null | grep SDKVersion | tail -n 1 | awk '{ print $2 }'` - - CURRENTPATH=`pwd` - ARCHS="i386 x86_64 armv7 armv7s arm64" - DEVELOPER=`xcode-select -print-path` - - mkdir -p "${CURRENTPATH}/bin" - mkdir -p "${CURRENTPATH}/lib" - mkdir -p "${CURRENTPATH}/opensslIncludes" - mkdir -p "${CURRENTPATH}/opensslIncludes/openssl" - - tar -xzf file.tgz - - cd openssl-${VERSION} - cd include/openssl - - for link in $(find . -type l) - do - dir=$(readlink $link) - cp $dir ../../../opensslIncludes/openssl - done - - cd ../.. - for ARCH in ${ARCHS} - do - CONFIGURE_FOR="iphoneos-cross" - - if [ "${ARCH}" == "i386" ] || [ "${ARCH}" == "x86_64" ] ; - then - PLATFORM="iPhoneSimulator" - if [ "${ARCH}" == "x86_64" ] ; - then - CONFIGURE_FOR="darwin64-x86_64-cc" - fi - else - sed -ie "s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!" "crypto/ui/ui_openssl.c" - PLATFORM="iPhoneOS" - fi - - export CROSS_TOP="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer" - export CROSS_SDK="${PLATFORM}${SDKVERSION}.sdk" - - echo "Building openssl-${VERSION} for ${PLATFORM} ${SDKVERSION} ${ARCH}" - echo "Please stand by..." - - export CC="${DEVELOPER}/usr/bin/gcc -arch ${ARCH} -miphoneos-version-min=${SDKVERSION}" - mkdir -p "${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" - LOG="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/build-openssl-${VERSION}.log" - - ./Configure ${CONFIGURE_FOR} --openssldir="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" > "${LOG}" 2>&1 - sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} !" "Makefile" - - make >> "${LOG}" 2>&1 - make install >> "${LOG}" 2>&1 - make clean >> "${LOG}" 2>&1 - done - - - echo "Build library..." - lipo -create ${CURRENTPATH}/bin/iPhoneSimulator${SDKVERSION}-i386.sdk/lib/libssl.a ${CURRENTPATH}/bin/iPhoneSimulator${SDKVERSION}-x86_64.sdk/lib/libssl.a ${CURRENTPATH}/bin/iPhoneOS${SDKVERSION}-armv7.sdk/lib/libssl.a ${CURRENTPATH}/bin/iPhoneOS${SDKVERSION}-armv7s.sdk/lib/libssl.a ${CURRENTPATH}/bin/iPhoneOS${SDKVERSION}-arm64.sdk/lib/libssl.a -output ${CURRENTPATH}/lib/libssl.a - lipo -create ${CURRENTPATH}/bin/iPhoneSimulator${SDKVERSION}-i386.sdk/lib/libcrypto.a ${CURRENTPATH}/bin/iPhoneSimulator${SDKVERSION}-x86_64.sdk/lib/libcrypto.a ${CURRENTPATH}/bin/iPhoneOS${SDKVERSION}-armv7.sdk/lib/libcrypto.a ${CURRENTPATH}/bin/iPhoneOS${SDKVERSION}-armv7s.sdk/lib/libcrypto.a ${CURRENTPATH}/bin/iPhoneOS${SDKVERSION}-arm64.sdk/lib/libcrypto.a -output ${CURRENTPATH}/lib/libcrypto.a - - echo "Building done." - echo "Cleaning up..." - rm -rf ${CURRENTPATH}/openssl-${VERSION} - rm -R ${CURRENTPATH}/bin - rm -rf file.tgz - echo "Done." - CMD - - s.ios.platform = :ios - s.ios.public_header_files = "opensslIncludes/*.h" - s.ios.vendored_libraries = "lib/libcrypto.a", "lib/libssl.a" - - s.libraries = 'crypto', 'ssl' - s.requires_arc = false - -end diff --git a/1.0.109/OpenSSL.podspec b/1.0.109/OpenSSL.podspec deleted file mode 100644 index aad92f2..0000000 --- a/1.0.109/OpenSSL.podspec +++ /dev/null @@ -1,95 +0,0 @@ -Pod::Spec.new do |s| - s.name = "OpenSSL" - s.version = "1.0.109" - s.summary = "OpenSSL is an SSL/TLS and Crypto toolkit. Deprecated in Mac OS and gone in iOS, this spec gives your project non-deprecated OpenSSL support." - s.author = "OpenSSL Project " - - s.homepage = "https://github.com/FredericJacobs/OpenSSL-Pod" - s.license = 'BSD-style Open Source' - s.source = { :http => "https://www.openssl.org/source/openssl-1.0.1i.tar.gz", :sha1 => "74eed314fa2c93006df8d26cd9fc630a101abd76"} - s.source_files = "opensslIncludes/openssl/*.h" - s.header_dir = "openssl" - s.license = { :type => 'OpenSSL (OpenSSL/SSLeay)', :file => 'LICENSE' } - - s.prepare_command = <<-CMD - VERSION="1.0.1i" - SDKVERSION=`xcrun --sdk iphoneos --show-sdk-version 2> /dev/null` - - BASEPATH="${PWD}" - CURRENTPATH="/tmp/openssl" - ARCHS="i386 x86_64 armv7 armv7s arm64" - DEVELOPER=`xcode-select -print-path` - - mkdir -p "${CURRENTPATH}" - mkdir -p "${CURRENTPATH}/bin" - - cp "file.tgz" "${CURRENTPATH}/file.tgz" - cd "${CURRENTPATH}" - tar -xzf file.tgz - cd "openssl-${VERSION}" - - for ARCH in ${ARCHS} - do - CONFIGURE_FOR="iphoneos-cross" - - if [ "${ARCH}" == "i386" ] || [ "${ARCH}" == "x86_64" ] ; - then - PLATFORM="iPhoneSimulator" - if [ "${ARCH}" == "x86_64" ] ; - then - CONFIGURE_FOR="darwin64-x86_64-cc" - fi - else - sed -ie "s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!" "crypto/ui/ui_openssl.c" - PLATFORM="iPhoneOS" - fi - - export CROSS_TOP="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer" - export CROSS_SDK="${PLATFORM}${SDKVERSION}.sdk" - - echo "Building openssl-${VERSION} for ${PLATFORM} ${SDKVERSION} ${ARCH}" - echo "Please stand by..." - - export CC="${DEVELOPER}/usr/bin/gcc -arch ${ARCH} -miphoneos-version-min=${SDKVERSION}" - mkdir -p "${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" - LOG="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/build-openssl-${VERSION}.log" - - LIPO_LIBSSL="${LIPO_LIBSSL} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libssl.a" - LIPO_LIBCRYPTO="${LIPO_LIBCRYPTO} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libcrypto.a" - - ./Configure ${CONFIGURE_FOR} --openssldir="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" > "${LOG}" 2>&1 - sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} !" "Makefile" - - make >> "${LOG}" 2>&1 - make all install_sw >> "${LOG}" 2>&1 - make clean >> "${LOG}" 2>&1 - done - - - echo "Build library..." - rm -rf "${BASEPATH}/lib/" - mkdir -p "${BASEPATH}/lib/" - lipo -create ${LIPO_LIBSSL} -output "${BASEPATH}/lib/libssl.a" - lipo -create ${LIPO_LIBCRYPTO} -output "${BASEPATH}/lib/libcrypto.a" - - echo "Copying headers..." - rm -rf "${BASEPATH}/opensslIncludes/" - mkdir -p "${BASEPATH}/opensslIncludes/" - cp -RL "${CURRENTPATH}/openssl-${VERSION}/include/openssl" "${BASEPATH}/opensslIncludes/" - - cd "${BASEPATH}" - echo "Building done." - - echo "Cleaning up..." - rm -rf "${CURRENTPATH}" - echo "Done." - CMD - - s.ios.platform = :ios - s.ios.public_header_files = "opensslIncludes/openssl/*.h" - s.ios.vendored_libraries = "lib/libcrypto.a", "lib/libssl.a" - - s.libraries = 'crypto', 'ssl' - s.requires_arc = false - -end diff --git a/1.0.110/OpenSSL.podspec b/1.0.110/OpenSSL.podspec deleted file mode 100644 index 52791c6..0000000 --- a/1.0.110/OpenSSL.podspec +++ /dev/null @@ -1,95 +0,0 @@ -Pod::Spec.new do |s| - s.name = "OpenSSL" - s.version = "1.0.110" - s.summary = "OpenSSL is an SSL/TLS and Crypto toolkit. Deprecated in Mac OS and gone in iOS, this spec gives your project non-deprecated OpenSSL support." - s.author = "OpenSSL Project " - - s.homepage = "https://github.com/FredericJacobs/OpenSSL-Pod" - s.license = 'BSD-style Open Source' - s.source = { :http => "https://www.openssl.org/source/openssl-1.0.1j.tar.gz", :sha1 => "cff86857507624f0ad42d922bb6f77c4f1c2b819"} - s.source_files = "opensslIncludes/openssl/*.h" - s.header_dir = "openssl" - s.license = { :type => 'OpenSSL (OpenSSL/SSLeay)', :file => 'LICENSE' } - - s.prepare_command = <<-CMD - VERSION="1.0.1j" - SDKVERSION=`xcrun --sdk iphoneos --show-sdk-version 2> /dev/null` - - BASEPATH="${PWD}" - CURRENTPATH="/tmp/openssl" - ARCHS="i386 x86_64 armv7 armv7s arm64" - DEVELOPER=`xcode-select -print-path` - - mkdir -p "${CURRENTPATH}" - mkdir -p "${CURRENTPATH}/bin" - - cp "file.tgz" "${CURRENTPATH}/file.tgz" - cd "${CURRENTPATH}" - tar -xzf file.tgz - cd "openssl-${VERSION}" - - for ARCH in ${ARCHS} - do - CONFIGURE_FOR="iphoneos-cross" - - if [ "${ARCH}" == "i386" ] || [ "${ARCH}" == "x86_64" ] ; - then - PLATFORM="iPhoneSimulator" - if [ "${ARCH}" == "x86_64" ] ; - then - CONFIGURE_FOR="darwin64-x86_64-cc" - fi - else - sed -ie "s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!" "crypto/ui/ui_openssl.c" - PLATFORM="iPhoneOS" - fi - - export CROSS_TOP="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer" - export CROSS_SDK="${PLATFORM}${SDKVERSION}.sdk" - - echo "Building openssl-${VERSION} for ${PLATFORM} ${SDKVERSION} ${ARCH}" - echo "Please stand by..." - - export CC="${DEVELOPER}/usr/bin/gcc -arch ${ARCH} -miphoneos-version-min=${SDKVERSION}" - mkdir -p "${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" - LOG="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/build-openssl-${VERSION}.log" - - LIPO_LIBSSL="${LIPO_LIBSSL} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libssl.a" - LIPO_LIBCRYPTO="${LIPO_LIBCRYPTO} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libcrypto.a" - - ./Configure ${CONFIGURE_FOR} --openssldir="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" > "${LOG}" 2>&1 - sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} !" "Makefile" - - make >> "${LOG}" 2>&1 - make all install_sw >> "${LOG}" 2>&1 - make clean >> "${LOG}" 2>&1 - done - - - echo "Build library..." - rm -rf "${BASEPATH}/lib/" - mkdir -p "${BASEPATH}/lib/" - lipo -create ${LIPO_LIBSSL} -output "${BASEPATH}/lib/libssl.a" - lipo -create ${LIPO_LIBCRYPTO} -output "${BASEPATH}/lib/libcrypto.a" - - echo "Copying headers..." - rm -rf "${BASEPATH}/opensslIncludes/" - mkdir -p "${BASEPATH}/opensslIncludes/" - cp -RL "${CURRENTPATH}/openssl-${VERSION}/include/openssl" "${BASEPATH}/opensslIncludes/" - - cd "${BASEPATH}" - echo "Building done." - - echo "Cleaning up..." - rm -rf "${CURRENTPATH}" - echo "Done." - CMD - - s.ios.platform = :ios - s.ios.public_header_files = "opensslIncludes/openssl/*.h" - s.ios.vendored_libraries = "lib/libcrypto.a", "lib/libssl.a" - - s.libraries = 'crypto', 'ssl' - s.requires_arc = false - -end diff --git a/1.0.111/OpenSSL.podspec b/1.0.111/OpenSSL.podspec deleted file mode 100644 index 7be2950..0000000 --- a/1.0.111/OpenSSL.podspec +++ /dev/null @@ -1,95 +0,0 @@ -Pod::Spec.new do |s| - s.name = "OpenSSL" - s.version = "1.0.111" - s.summary = "OpenSSL is an SSL/TLS and Crypto toolkit. Deprecated in Mac OS and gone in iOS, this spec gives your project non-deprecated OpenSSL support." - s.author = "OpenSSL Project " - - s.homepage = "https://github.com/FredericJacobs/OpenSSL-Pod" - s.license = 'BSD-style Open Source' - s.source = { :http => "https://www.openssl.org/source/openssl-1.0.1k.tar.gz", :sha1 => "19d818e202558c212a9583fcdaf876995a633ddf"} - s.source_files = "opensslIncludes/openssl/*.h" - s.header_dir = "openssl" - s.license = { :type => 'OpenSSL (OpenSSL/SSLeay)', :file => 'LICENSE' } - - s.prepare_command = <<-CMD - VERSION="1.0.1k" - SDKVERSION=`xcrun --sdk iphoneos --show-sdk-version 2> /dev/null` - - BASEPATH="${PWD}" - CURRENTPATH="/tmp/openssl" - ARCHS="i386 x86_64 armv7 armv7s arm64" - DEVELOPER=`xcode-select -print-path` - - mkdir -p "${CURRENTPATH}" - mkdir -p "${CURRENTPATH}/bin" - - cp "file.tgz" "${CURRENTPATH}/file.tgz" - cd "${CURRENTPATH}" - tar -xzf file.tgz - cd "openssl-${VERSION}" - - for ARCH in ${ARCHS} - do - CONFIGURE_FOR="iphoneos-cross" - - if [ "${ARCH}" == "i386" ] || [ "${ARCH}" == "x86_64" ] ; - then - PLATFORM="iPhoneSimulator" - if [ "${ARCH}" == "x86_64" ] ; - then - CONFIGURE_FOR="darwin64-x86_64-cc" - fi - else - sed -ie "s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!" "crypto/ui/ui_openssl.c" - PLATFORM="iPhoneOS" - fi - - export CROSS_TOP="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer" - export CROSS_SDK="${PLATFORM}${SDKVERSION}.sdk" - - echo "Building openssl-${VERSION} for ${PLATFORM} ${SDKVERSION} ${ARCH}" - echo "Please stand by..." - - export CC="${DEVELOPER}/usr/bin/gcc -arch ${ARCH} -miphoneos-version-min=${SDKVERSION}" - mkdir -p "${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" - LOG="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/build-openssl-${VERSION}.log" - - LIPO_LIBSSL="${LIPO_LIBSSL} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libssl.a" - LIPO_LIBCRYPTO="${LIPO_LIBCRYPTO} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libcrypto.a" - - ./Configure ${CONFIGURE_FOR} --openssldir="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" > "${LOG}" 2>&1 - sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} !" "Makefile" - - make >> "${LOG}" 2>&1 - make all install_sw >> "${LOG}" 2>&1 - make clean >> "${LOG}" 2>&1 - done - - - echo "Build library..." - rm -rf "${BASEPATH}/lib/" - mkdir -p "${BASEPATH}/lib/" - lipo -create ${LIPO_LIBSSL} -output "${BASEPATH}/lib/libssl.a" - lipo -create ${LIPO_LIBCRYPTO} -output "${BASEPATH}/lib/libcrypto.a" - - echo "Copying headers..." - rm -rf "${BASEPATH}/opensslIncludes/" - mkdir -p "${BASEPATH}/opensslIncludes/" - cp -RL "${CURRENTPATH}/openssl-${VERSION}/include/openssl" "${BASEPATH}/opensslIncludes/" - - cd "${BASEPATH}" - echo "Building done." - - echo "Cleaning up..." - rm -rf "${CURRENTPATH}" - echo "Done." - CMD - - s.ios.platform = :ios - s.ios.public_header_files = "opensslIncludes/openssl/*.h" - s.ios.vendored_libraries = "lib/libcrypto.a", "lib/libssl.a" - - s.libraries = 'crypto', 'ssl' - s.requires_arc = false - -end diff --git a/1.0.200/OpenSSL.podspec b/1.0.200/OpenSSL.podspec deleted file mode 100644 index 496dfc6..0000000 --- a/1.0.200/OpenSSL.podspec +++ /dev/null @@ -1,95 +0,0 @@ -Pod::Spec.new do |s| - s.name = "OpenSSL" - s.version = "1.0.200" - s.summary = "OpenSSL is an SSL/TLS and Crypto toolkit. Deprecated in Mac OS and gone in iOS, this spec gives your project non-deprecated OpenSSL support." - s.author = "OpenSSL Project " - - s.homepage = "https://github.com/FredericJacobs/OpenSSL-Pod" - s.license = 'BSD-style Open Source' - s.source = { :http => "https://www.openssl.org/source/openssl-1.0.2.tar.gz", :sha1 => "2f264f7f6bb973af444cd9fc6ee65c8588f610cc"} - s.source_files = "opensslIncludes/openssl/*.h" - s.header_dir = "openssl" - s.license = { :type => 'OpenSSL (OpenSSL/SSLeay)', :file => 'LICENSE' } - - s.prepare_command = <<-CMD - VERSION="1.0.2" - SDKVERSION=`xcrun --sdk iphoneos --show-sdk-version 2> /dev/null` - - BASEPATH="${PWD}" - CURRENTPATH="/tmp/openssl" - ARCHS="i386 x86_64 armv7 armv7s arm64" - DEVELOPER=`xcode-select -print-path` - - mkdir -p "${CURRENTPATH}" - mkdir -p "${CURRENTPATH}/bin" - - cp "file.tgz" "${CURRENTPATH}/file.tgz" - cd "${CURRENTPATH}" - tar -xzf file.tgz - cd "openssl-${VERSION}" - - for ARCH in ${ARCHS} - do - CONFIGURE_FOR="iphoneos-cross" - - if [ "${ARCH}" == "i386" ] || [ "${ARCH}" == "x86_64" ] ; - then - PLATFORM="iPhoneSimulator" - if [ "${ARCH}" == "x86_64" ] ; - then - CONFIGURE_FOR="darwin64-x86_64-cc" - fi - else - sed -ie "s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!" "crypto/ui/ui_openssl.c" - PLATFORM="iPhoneOS" - fi - - export CROSS_TOP="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer" - export CROSS_SDK="${PLATFORM}${SDKVERSION}.sdk" - - echo "Building openssl-${VERSION} for ${PLATFORM} ${SDKVERSION} ${ARCH}" - echo "Please stand by..." - - export CC="${DEVELOPER}/usr/bin/gcc -arch ${ARCH} -miphoneos-version-min=${SDKVERSION}" - mkdir -p "${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" - LOG="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/build-openssl-${VERSION}.log" - - LIPO_LIBSSL="${LIPO_LIBSSL} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libssl.a" - LIPO_LIBCRYPTO="${LIPO_LIBCRYPTO} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libcrypto.a" - - ./Configure ${CONFIGURE_FOR} --openssldir="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" > "${LOG}" 2>&1 - sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} !" "Makefile" - - make >> "${LOG}" 2>&1 - make all install_sw >> "${LOG}" 2>&1 - make clean >> "${LOG}" 2>&1 - done - - - echo "Build library..." - rm -rf "${BASEPATH}/lib/" - mkdir -p "${BASEPATH}/lib/" - lipo -create ${LIPO_LIBSSL} -output "${BASEPATH}/lib/libssl.a" - lipo -create ${LIPO_LIBCRYPTO} -output "${BASEPATH}/lib/libcrypto.a" - - echo "Copying headers..." - rm -rf "${BASEPATH}/opensslIncludes/" - mkdir -p "${BASEPATH}/opensslIncludes/" - cp -RL "${CURRENTPATH}/openssl-${VERSION}/include/openssl" "${BASEPATH}/opensslIncludes/" - - cd "${BASEPATH}" - echo "Building done." - - echo "Cleaning up..." - rm -rf "${CURRENTPATH}" - echo "Done." - CMD - - s.ios.platform = :ios - s.ios.public_header_files = "opensslIncludes/openssl/*.h" - s.ios.vendored_libraries = "lib/libcrypto.a", "lib/libssl.a" - - s.libraries = 'crypto', 'ssl' - s.requires_arc = false - -end diff --git a/1.0.201/OpenSSL.podspec b/1.0.201/OpenSSL.podspec deleted file mode 100644 index 5b69f80..0000000 --- a/1.0.201/OpenSSL.podspec +++ /dev/null @@ -1,95 +0,0 @@ -Pod::Spec.new do |s| - s.name = "OpenSSL" - s.version = "1.0.201" - s.summary = "OpenSSL is an SSL/TLS and Crypto toolkit. Deprecated in Mac OS and gone in iOS, this spec gives your project non-deprecated OpenSSL support." - s.author = "OpenSSL Project " - - s.homepage = "https://github.com/FredericJacobs/OpenSSL-Pod" - s.license = 'BSD-style Open Source' - s.source = { :http => "https://www.openssl.org/source/openssl-1.0.2a.tar.gz", :sha1 => "46ecd325b8e587fa491f6bb02ad4a9fb9f382f5f"} - s.source_files = "opensslIncludes/openssl/*.h" - s.header_dir = "openssl" - s.license = { :type => 'OpenSSL (OpenSSL/SSLeay)', :file => 'LICENSE' } - - s.prepare_command = <<-CMD - VERSION="1.0.2a" - SDKVERSION=`xcrun --sdk iphoneos --show-sdk-version 2> /dev/null` - - BASEPATH="${PWD}" - CURRENTPATH="/tmp/openssl" - ARCHS="i386 x86_64 armv7 armv7s arm64" - DEVELOPER=`xcode-select -print-path` - - mkdir -p "${CURRENTPATH}" - mkdir -p "${CURRENTPATH}/bin" - - cp "file.tgz" "${CURRENTPATH}/file.tgz" - cd "${CURRENTPATH}" - tar -xzf file.tgz - cd "openssl-${VERSION}" - - for ARCH in ${ARCHS} - do - CONFIGURE_FOR="iphoneos-cross" - - if [ "${ARCH}" == "i386" ] || [ "${ARCH}" == "x86_64" ] ; - then - PLATFORM="iPhoneSimulator" - if [ "${ARCH}" == "x86_64" ] ; - then - CONFIGURE_FOR="darwin64-x86_64-cc" - fi - else - sed -ie "s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!" "crypto/ui/ui_openssl.c" - PLATFORM="iPhoneOS" - fi - - export CROSS_TOP="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer" - export CROSS_SDK="${PLATFORM}${SDKVERSION}.sdk" - - echo "Building openssl-${VERSION} for ${PLATFORM} ${SDKVERSION} ${ARCH}" - echo "Please stand by..." - - export CC="${DEVELOPER}/usr/bin/gcc -arch ${ARCH} -miphoneos-version-min=${SDKVERSION}" - mkdir -p "${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" - LOG="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/build-openssl-${VERSION}.log" - - LIPO_LIBSSL="${LIPO_LIBSSL} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libssl.a" - LIPO_LIBCRYPTO="${LIPO_LIBCRYPTO} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libcrypto.a" - - ./Configure ${CONFIGURE_FOR} --openssldir="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" > "${LOG}" 2>&1 - sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} !" "Makefile" - - make >> "${LOG}" 2>&1 - make all install_sw >> "${LOG}" 2>&1 - make clean >> "${LOG}" 2>&1 - done - - - echo "Build library..." - rm -rf "${BASEPATH}/lib/" - mkdir -p "${BASEPATH}/lib/" - lipo -create ${LIPO_LIBSSL} -output "${BASEPATH}/lib/libssl.a" - lipo -create ${LIPO_LIBCRYPTO} -output "${BASEPATH}/lib/libcrypto.a" - - echo "Copying headers..." - rm -rf "${BASEPATH}/opensslIncludes/" - mkdir -p "${BASEPATH}/opensslIncludes/" - cp -RL "${CURRENTPATH}/openssl-${VERSION}/include/openssl" "${BASEPATH}/opensslIncludes/" - - cd "${BASEPATH}" - echo "Building done." - - echo "Cleaning up..." - rm -rf "${CURRENTPATH}" - echo "Done." - CMD - - s.ios.platform = :ios - s.ios.public_header_files = "opensslIncludes/openssl/*.h" - s.ios.vendored_libraries = "lib/libcrypto.a", "lib/libssl.a" - - s.libraries = 'crypto', 'ssl' - s.requires_arc = false - -end diff --git a/1.0.202/OpenSSL.podspec b/1.0.202/OpenSSL.podspec deleted file mode 100644 index 6c0fa3f..0000000 --- a/1.0.202/OpenSSL.podspec +++ /dev/null @@ -1,95 +0,0 @@ -Pod::Spec.new do |s| - s.name = "OpenSSL" - s.version = "1.0.202" - s.summary = "OpenSSL is an SSL/TLS and Crypto toolkit. Deprecated in Mac OS and gone in iOS, this spec gives your project non-deprecated OpenSSL support." - s.author = "OpenSSL Project " - - s.homepage = "https://github.com/FredericJacobs/OpenSSL-Pod" - s.license = 'BSD-style Open Source' - s.source = { :http => "https://openssl.org/source/openssl-1.0.2b.tar.gz", :sha1 => "9006e53ca56a14d041e3875320eedfa63d82aba7"} - s.source_files = "opensslIncludes/openssl/*.h" - s.header_dir = "openssl" - s.license = { :type => 'OpenSSL (OpenSSL/SSLeay)', :file => 'LICENSE' } - - s.prepare_command = <<-CMD - VERSION="1.0.2b" - SDKVERSION=`xcrun --sdk iphoneos --show-sdk-version 2> /dev/null` - - BASEPATH="${PWD}" - CURRENTPATH="/tmp/openssl" - ARCHS="i386 x86_64 armv7 armv7s arm64" - DEVELOPER=`xcode-select -print-path` - - mkdir -p "${CURRENTPATH}" - mkdir -p "${CURRENTPATH}/bin" - - cp "file.tgz" "${CURRENTPATH}/file.tgz" - cd "${CURRENTPATH}" - tar -xzf file.tgz - cd "openssl-${VERSION}" - - for ARCH in ${ARCHS} - do - CONFIGURE_FOR="iphoneos-cross" - - if [ "${ARCH}" == "i386" ] || [ "${ARCH}" == "x86_64" ] ; - then - PLATFORM="iPhoneSimulator" - if [ "${ARCH}" == "x86_64" ] ; - then - CONFIGURE_FOR="darwin64-x86_64-cc" - fi - else - sed -ie "s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!" "crypto/ui/ui_openssl.c" - PLATFORM="iPhoneOS" - fi - - export CROSS_TOP="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer" - export CROSS_SDK="${PLATFORM}${SDKVERSION}.sdk" - - echo "Building openssl-${VERSION} for ${PLATFORM} ${SDKVERSION} ${ARCH}" - echo "Please stand by..." - - export CC="${DEVELOPER}/usr/bin/gcc -arch ${ARCH} -miphoneos-version-min=${SDKVERSION}" - mkdir -p "${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" - LOG="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/build-openssl-${VERSION}.log" - - LIPO_LIBSSL="${LIPO_LIBSSL} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libssl.a" - LIPO_LIBCRYPTO="${LIPO_LIBCRYPTO} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libcrypto.a" - - ./Configure ${CONFIGURE_FOR} --openssldir="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" > "${LOG}" 2>&1 - sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} !" "Makefile" - - make >> "${LOG}" 2>&1 - make all install_sw >> "${LOG}" 2>&1 - make clean >> "${LOG}" 2>&1 - done - - - echo "Build library..." - rm -rf "${BASEPATH}/lib/" - mkdir -p "${BASEPATH}/lib/" - lipo -create ${LIPO_LIBSSL} -output "${BASEPATH}/lib/libssl.a" - lipo -create ${LIPO_LIBCRYPTO} -output "${BASEPATH}/lib/libcrypto.a" - - echo "Copying headers..." - rm -rf "${BASEPATH}/opensslIncludes/" - mkdir -p "${BASEPATH}/opensslIncludes/" - cp -RL "${CURRENTPATH}/openssl-${VERSION}/include/openssl" "${BASEPATH}/opensslIncludes/" - - cd "${BASEPATH}" - echo "Building done." - - echo "Cleaning up..." - rm -rf "${CURRENTPATH}" - echo "Done." - CMD - - s.ios.platform = :ios - s.ios.public_header_files = "opensslIncludes/openssl/*.h" - s.ios.vendored_libraries = "lib/libcrypto.a", "lib/libssl.a" - - s.libraries = 'crypto', 'ssl' - s.requires_arc = false - -end diff --git a/1.0.203/OpenSSL.podspec b/1.0.203/OpenSSL.podspec deleted file mode 100644 index 477822c..0000000 --- a/1.0.203/OpenSSL.podspec +++ /dev/null @@ -1,95 +0,0 @@ -Pod::Spec.new do |s| - s.name = "OpenSSL" - s.version = "1.0.203" - s.summary = "OpenSSL is an SSL/TLS and Crypto toolkit. Deprecated in Mac OS and gone in iOS, this spec gives your project non-deprecated OpenSSL support." - s.author = "OpenSSL Project " - - s.homepage = "https://github.com/FredericJacobs/OpenSSL-Pod" - s.license = 'BSD-style Open Source' - s.source = { :http => "https://openssl.org/source/openssl-1.0.2c.tar.gz", :sha1 => "6e4a5e91159eb32383296c7c83ac0e59b83a0a44"} - s.source_files = "opensslIncludes/openssl/*.h" - s.header_dir = "openssl" - s.license = { :type => 'OpenSSL (OpenSSL/SSLeay)', :file => 'LICENSE' } - - s.prepare_command = <<-CMD - VERSION="1.0.2c" - SDKVERSION=`xcrun --sdk iphoneos --show-sdk-version 2> /dev/null` - - BASEPATH="${PWD}" - CURRENTPATH="/tmp/openssl" - ARCHS="i386 x86_64 armv7 armv7s arm64" - DEVELOPER=`xcode-select -print-path` - - mkdir -p "${CURRENTPATH}" - mkdir -p "${CURRENTPATH}/bin" - - cp "file.tgz" "${CURRENTPATH}/file.tgz" - cd "${CURRENTPATH}" - tar -xzf file.tgz - cd "openssl-${VERSION}" - - for ARCH in ${ARCHS} - do - CONFIGURE_FOR="iphoneos-cross" - - if [ "${ARCH}" == "i386" ] || [ "${ARCH}" == "x86_64" ] ; - then - PLATFORM="iPhoneSimulator" - if [ "${ARCH}" == "x86_64" ] ; - then - CONFIGURE_FOR="darwin64-x86_64-cc" - fi - else - sed -ie "s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!" "crypto/ui/ui_openssl.c" - PLATFORM="iPhoneOS" - fi - - export CROSS_TOP="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer" - export CROSS_SDK="${PLATFORM}${SDKVERSION}.sdk" - - echo "Building openssl-${VERSION} for ${PLATFORM} ${SDKVERSION} ${ARCH}" - echo "Please stand by..." - - export CC="${DEVELOPER}/usr/bin/gcc -arch ${ARCH} -miphoneos-version-min=${SDKVERSION}" - mkdir -p "${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" - LOG="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/build-openssl-${VERSION}.log" - - LIPO_LIBSSL="${LIPO_LIBSSL} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libssl.a" - LIPO_LIBCRYPTO="${LIPO_LIBCRYPTO} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libcrypto.a" - - ./Configure ${CONFIGURE_FOR} --openssldir="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" > "${LOG}" 2>&1 - sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} !" "Makefile" - - make >> "${LOG}" 2>&1 - make all install_sw >> "${LOG}" 2>&1 - make clean >> "${LOG}" 2>&1 - done - - - echo "Build library..." - rm -rf "${BASEPATH}/lib/" - mkdir -p "${BASEPATH}/lib/" - lipo -create ${LIPO_LIBSSL} -output "${BASEPATH}/lib/libssl.a" - lipo -create ${LIPO_LIBCRYPTO} -output "${BASEPATH}/lib/libcrypto.a" - - echo "Copying headers..." - rm -rf "${BASEPATH}/opensslIncludes/" - mkdir -p "${BASEPATH}/opensslIncludes/" - cp -RL "${CURRENTPATH}/openssl-${VERSION}/include/openssl" "${BASEPATH}/opensslIncludes/" - - cd "${BASEPATH}" - echo "Building done." - - echo "Cleaning up..." - rm -rf "${CURRENTPATH}" - echo "Done." - CMD - - s.ios.platform = :ios - s.ios.public_header_files = "opensslIncludes/openssl/*.h" - s.ios.vendored_libraries = "lib/libcrypto.a", "lib/libssl.a" - - s.libraries = 'crypto', 'ssl' - s.requires_arc = false - -end diff --git a/1.0.204.1/OpenSSL.podspec b/1.0.204.1/OpenSSL.podspec deleted file mode 100644 index fdd2675..0000000 --- a/1.0.204.1/OpenSSL.podspec +++ /dev/null @@ -1,96 +0,0 @@ -Pod::Spec.new do |s| - s.name = "OpenSSL" - s.version = "1.0.204.1" - s.summary = "OpenSSL is an SSL/TLS and Crypto toolkit. Deprecated in Mac OS and gone in iOS, this spec gives your project non-deprecated OpenSSL support." - s.author = "OpenSSL Project " - - s.homepage = "https://github.com/FredericJacobs/OpenSSL-Pod" - s.license = 'BSD-style Open Source' - s.source = { :http => "https://openssl.org/source/openssl-1.0.2d.tar.gz", :sha1 => "d01d17b44663e8ffa6a33a5a30053779d9593c3d"} - s.source_files = "opensslIncludes/openssl/*.h" - s.header_dir = "openssl" - s.license = { :type => 'OpenSSL (OpenSSL/SSLeay)', :file => 'LICENSE' } - - s.prepare_command = <<-CMD - VERSION="1.0.2d" - SDKVERSION=`xcrun --sdk iphoneos --show-sdk-version 2> /dev/null` - MIN_SDK_VERSION_FLAG="-miphoneos-version-min=7.0" - - BASEPATH="${PWD}" - CURRENTPATH="/tmp/openssl" - ARCHS="i386 x86_64 armv7 armv7s arm64" - DEVELOPER=`xcode-select -print-path` - - mkdir -p "${CURRENTPATH}" - mkdir -p "${CURRENTPATH}/bin" - - cp "file.tgz" "${CURRENTPATH}/file.tgz" - cd "${CURRENTPATH}" - tar -xzf file.tgz - cd "openssl-${VERSION}" - - for ARCH in ${ARCHS} - do - CONFIGURE_FOR="iphoneos-cross" - - if [ "${ARCH}" == "i386" ] || [ "${ARCH}" == "x86_64" ] ; - then - PLATFORM="iPhoneSimulator" - if [ "${ARCH}" == "x86_64" ] ; - then - CONFIGURE_FOR="darwin64-x86_64-cc" - fi - else - sed -ie "s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!" "crypto/ui/ui_openssl.c" - PLATFORM="iPhoneOS" - fi - - export CROSS_TOP="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer" - export CROSS_SDK="${PLATFORM}${SDKVERSION}.sdk" - - echo "Building openssl-${VERSION} for ${PLATFORM} ${SDKVERSION} ${ARCH}" - echo "Please stand by..." - - export CC="${DEVELOPER}/usr/bin/gcc -arch ${ARCH} ${MIN_SDK_VERSION_FLAG}" - mkdir -p "${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" - LOG="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/build-openssl-${VERSION}.log" - - LIPO_LIBSSL="${LIPO_LIBSSL} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libssl.a" - LIPO_LIBCRYPTO="${LIPO_LIBCRYPTO} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libcrypto.a" - - ./Configure ${CONFIGURE_FOR} --openssldir="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" > "${LOG}" 2>&1 - sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} !" "Makefile" - - make >> "${LOG}" 2>&1 - make all install_sw >> "${LOG}" 2>&1 - make clean >> "${LOG}" 2>&1 - done - - - echo "Build library..." - rm -rf "${BASEPATH}/lib/" - mkdir -p "${BASEPATH}/lib/" - lipo -create ${LIPO_LIBSSL} -output "${BASEPATH}/lib/libssl.a" - lipo -create ${LIPO_LIBCRYPTO} -output "${BASEPATH}/lib/libcrypto.a" - - echo "Copying headers..." - rm -rf "${BASEPATH}/opensslIncludes/" - mkdir -p "${BASEPATH}/opensslIncludes/" - cp -RL "${CURRENTPATH}/openssl-${VERSION}/include/openssl" "${BASEPATH}/opensslIncludes/" - - cd "${BASEPATH}" - echo "Building done." - - echo "Cleaning up..." - rm -rf "${CURRENTPATH}" - echo "Done." - CMD - - s.ios.platform = :ios - s.ios.public_header_files = "opensslIncludes/openssl/*.h" - s.ios.vendored_libraries = "lib/libcrypto.a", "lib/libssl.a" - - s.libraries = 'crypto', 'ssl' - s.requires_arc = false - -end diff --git a/1.0.204/OpenSSL.podspec b/1.0.204/OpenSSL.podspec deleted file mode 100644 index 9ce9f15..0000000 --- a/1.0.204/OpenSSL.podspec +++ /dev/null @@ -1,95 +0,0 @@ -Pod::Spec.new do |s| - s.name = "OpenSSL" - s.version = "1.0.204" - s.summary = "OpenSSL is an SSL/TLS and Crypto toolkit. Deprecated in Mac OS and gone in iOS, this spec gives your project non-deprecated OpenSSL support." - s.author = "OpenSSL Project " - - s.homepage = "https://github.com/FredericJacobs/OpenSSL-Pod" - s.license = 'BSD-style Open Source' - s.source = { :http => "https://openssl.org/source/openssl-1.0.2d.tar.gz", :sha1 => "d01d17b44663e8ffa6a33a5a30053779d9593c3d"} - s.source_files = "opensslIncludes/openssl/*.h" - s.header_dir = "openssl" - s.license = { :type => 'OpenSSL (OpenSSL/SSLeay)', :file => 'LICENSE' } - - s.prepare_command = <<-CMD - VERSION="1.0.2d" - SDKVERSION=`xcrun --sdk iphoneos --show-sdk-version 2> /dev/null` - - BASEPATH="${PWD}" - CURRENTPATH="/tmp/openssl" - ARCHS="i386 x86_64 armv7 armv7s arm64" - DEVELOPER=`xcode-select -print-path` - - mkdir -p "${CURRENTPATH}" - mkdir -p "${CURRENTPATH}/bin" - - cp "file.tgz" "${CURRENTPATH}/file.tgz" - cd "${CURRENTPATH}" - tar -xzf file.tgz - cd "openssl-${VERSION}" - - for ARCH in ${ARCHS} - do - CONFIGURE_FOR="iphoneos-cross" - - if [ "${ARCH}" == "i386" ] || [ "${ARCH}" == "x86_64" ] ; - then - PLATFORM="iPhoneSimulator" - if [ "${ARCH}" == "x86_64" ] ; - then - CONFIGURE_FOR="darwin64-x86_64-cc" - fi - else - sed -ie "s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!" "crypto/ui/ui_openssl.c" - PLATFORM="iPhoneOS" - fi - - export CROSS_TOP="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer" - export CROSS_SDK="${PLATFORM}${SDKVERSION}.sdk" - - echo "Building openssl-${VERSION} for ${PLATFORM} ${SDKVERSION} ${ARCH}" - echo "Please stand by..." - - export CC="${DEVELOPER}/usr/bin/gcc -arch ${ARCH} -miphoneos-version-min=${SDKVERSION}" - mkdir -p "${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" - LOG="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/build-openssl-${VERSION}.log" - - LIPO_LIBSSL="${LIPO_LIBSSL} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libssl.a" - LIPO_LIBCRYPTO="${LIPO_LIBCRYPTO} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libcrypto.a" - - ./Configure ${CONFIGURE_FOR} --openssldir="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" > "${LOG}" 2>&1 - sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} !" "Makefile" - - make >> "${LOG}" 2>&1 - make all install_sw >> "${LOG}" 2>&1 - make clean >> "${LOG}" 2>&1 - done - - - echo "Build library..." - rm -rf "${BASEPATH}/lib/" - mkdir -p "${BASEPATH}/lib/" - lipo -create ${LIPO_LIBSSL} -output "${BASEPATH}/lib/libssl.a" - lipo -create ${LIPO_LIBCRYPTO} -output "${BASEPATH}/lib/libcrypto.a" - - echo "Copying headers..." - rm -rf "${BASEPATH}/opensslIncludes/" - mkdir -p "${BASEPATH}/opensslIncludes/" - cp -RL "${CURRENTPATH}/openssl-${VERSION}/include/openssl" "${BASEPATH}/opensslIncludes/" - - cd "${BASEPATH}" - echo "Building done." - - echo "Cleaning up..." - rm -rf "${CURRENTPATH}" - echo "Done." - CMD - - s.ios.platform = :ios - s.ios.public_header_files = "opensslIncludes/openssl/*.h" - s.ios.vendored_libraries = "lib/libcrypto.a", "lib/libssl.a" - - s.libraries = 'crypto', 'ssl' - s.requires_arc = false - -end diff --git a/1.0.205/OpenSSL.podspec b/1.0.205/OpenSSL.podspec deleted file mode 100644 index 0113a48..0000000 --- a/1.0.205/OpenSSL.podspec +++ /dev/null @@ -1,96 +0,0 @@ -Pod::Spec.new do |s| - s.name = "OpenSSL" - s.version = "1.0.205" - s.summary = "OpenSSL is an SSL/TLS and Crypto toolkit. Deprecated in Mac OS and gone in iOS, this spec gives your project non-deprecated OpenSSL support." - s.author = "OpenSSL Project " - - s.homepage = "https://github.com/FredericJacobs/OpenSSL-Pod" - s.license = 'BSD-style Open Source' - s.source = { :http => "https://openssl.org/source/openssl-1.0.2e.tar.gz", :sha1 => "2c5691496761cb18f98476eefa4d35c835448fb6"} - s.source_files = "opensslIncludes/openssl/*.h" - s.header_dir = "openssl" - s.license = { :type => 'OpenSSL (OpenSSL/SSLeay)', :file => 'LICENSE' } - - s.prepare_command = <<-CMD - VERSION="1.0.2e" - SDKVERSION=`xcrun --sdk iphoneos --show-sdk-version 2> /dev/null` - MIN_SDK_VERSION_FLAG="-miphoneos-version-min=7.0" - - BASEPATH="${PWD}" - CURRENTPATH="/tmp/openssl" - ARCHS="i386 x86_64 armv7 armv7s arm64" - DEVELOPER=`xcode-select -print-path` - - mkdir -p "${CURRENTPATH}" - mkdir -p "${CURRENTPATH}/bin" - - cp "file.tgz" "${CURRENTPATH}/file.tgz" - cd "${CURRENTPATH}" - tar -xzf file.tgz - cd "openssl-${VERSION}" - - for ARCH in ${ARCHS} - do - CONFIGURE_FOR="iphoneos-cross" - - if [ "${ARCH}" == "i386" ] || [ "${ARCH}" == "x86_64" ] ; - then - PLATFORM="iPhoneSimulator" - if [ "${ARCH}" == "x86_64" ] ; - then - CONFIGURE_FOR="darwin64-x86_64-cc" - fi - else - sed -ie "s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!" "crypto/ui/ui_openssl.c" - PLATFORM="iPhoneOS" - fi - - export CROSS_TOP="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer" - export CROSS_SDK="${PLATFORM}${SDKVERSION}.sdk" - - echo "Building openssl-${VERSION} for ${PLATFORM} ${SDKVERSION} ${ARCH}" - echo "Please stand by..." - - export CC="${DEVELOPER}/usr/bin/gcc -arch ${ARCH} ${MIN_SDK_VERSION_FLAG}" - mkdir -p "${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" - LOG="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/build-openssl-${VERSION}.log" - - LIPO_LIBSSL="${LIPO_LIBSSL} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libssl.a" - LIPO_LIBCRYPTO="${LIPO_LIBCRYPTO} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libcrypto.a" - - ./Configure ${CONFIGURE_FOR} --openssldir="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" > "${LOG}" 2>&1 - sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} !" "Makefile" - - make >> "${LOG}" 2>&1 - make all install_sw >> "${LOG}" 2>&1 - make clean >> "${LOG}" 2>&1 - done - - - echo "Build library..." - rm -rf "${BASEPATH}/lib/" - mkdir -p "${BASEPATH}/lib/" - lipo -create ${LIPO_LIBSSL} -output "${BASEPATH}/lib/libssl.a" - lipo -create ${LIPO_LIBCRYPTO} -output "${BASEPATH}/lib/libcrypto.a" - - echo "Copying headers..." - rm -rf "${BASEPATH}/opensslIncludes/" - mkdir -p "${BASEPATH}/opensslIncludes/" - cp -RL "${CURRENTPATH}/openssl-${VERSION}/include/openssl" "${BASEPATH}/opensslIncludes/" - - cd "${BASEPATH}" - echo "Building done." - - echo "Cleaning up..." - rm -rf "${CURRENTPATH}" - echo "Done." - CMD - - s.ios.platform = :ios - s.ios.public_header_files = "opensslIncludes/openssl/*.h" - s.ios.vendored_libraries = "lib/libcrypto.a", "lib/libssl.a" - - s.libraries = 'crypto', 'ssl' - s.requires_arc = false - -end diff --git a/1.0.206/OpenSSL.podspec b/1.0.206/OpenSSL.podspec deleted file mode 100644 index 9739dd6..0000000 --- a/1.0.206/OpenSSL.podspec +++ /dev/null @@ -1,95 +0,0 @@ -Pod::Spec.new do |s| - s.name = "OpenSSL" - s.version = "1.0.206" - s.summary = "OpenSSL is an SSL/TLS and Crypto toolkit. Deprecated in Mac OS and gone in iOS, this spec gives your project non-deprecated OpenSSL support." - s.author = "OpenSSL Project " - - s.homepage = "https://github.com/FredericJacobs/OpenSSL-Pod" - s.source = { :http => "https://openssl.org/source/openssl-1.0.2f.tar.gz", :sha1 => "2047c592a6e5a42bd37970bdb4a931428110a927"} - s.source_files = "opensslIncludes/openssl/*.h" - s.header_dir = "openssl" - s.license = { :type => 'OpenSSL (OpenSSL/SSLeay)', :file => 'LICENSE' } - - s.prepare_command = <<-CMD - VERSION="1.0.2f" - SDKVERSION=`xcrun --sdk iphoneos --show-sdk-version 2> /dev/null` - MIN_SDK_VERSION_FLAG="-miphoneos-version-min=7.0" - - BASEPATH="${PWD}" - CURRENTPATH="/tmp/openssl" - ARCHS="i386 x86_64 armv7 armv7s arm64" - DEVELOPER=`xcode-select -print-path` - - mkdir -p "${CURRENTPATH}" - mkdir -p "${CURRENTPATH}/bin" - - cp "file.tgz" "${CURRENTPATH}/file.tgz" - cd "${CURRENTPATH}" - tar -xzf file.tgz - cd "openssl-${VERSION}" - - for ARCH in ${ARCHS} - do - CONFIGURE_FOR="iphoneos-cross" - - if [ "${ARCH}" == "i386" ] || [ "${ARCH}" == "x86_64" ] ; - then - PLATFORM="iPhoneSimulator" - if [ "${ARCH}" == "x86_64" ] ; - then - CONFIGURE_FOR="darwin64-x86_64-cc" - fi - else - sed -ie "s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!" "crypto/ui/ui_openssl.c" - PLATFORM="iPhoneOS" - fi - - export CROSS_TOP="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer" - export CROSS_SDK="${PLATFORM}${SDKVERSION}.sdk" - - echo "Building openssl-${VERSION} for ${PLATFORM} ${SDKVERSION} ${ARCH}" - echo "Please stand by..." - - export CC="${DEVELOPER}/usr/bin/gcc -arch ${ARCH} ${MIN_SDK_VERSION_FLAG}" - mkdir -p "${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" - LOG="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/build-openssl-${VERSION}.log" - - LIPO_LIBSSL="${LIPO_LIBSSL} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libssl.a" - LIPO_LIBCRYPTO="${LIPO_LIBCRYPTO} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libcrypto.a" - - ./Configure ${CONFIGURE_FOR} --openssldir="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" > "${LOG}" 2>&1 - sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} !" "Makefile" - - make >> "${LOG}" 2>&1 - make all install_sw >> "${LOG}" 2>&1 - make clean >> "${LOG}" 2>&1 - done - - - echo "Build library..." - rm -rf "${BASEPATH}/lib/" - mkdir -p "${BASEPATH}/lib/" - lipo -create ${LIPO_LIBSSL} -output "${BASEPATH}/lib/libssl.a" - lipo -create ${LIPO_LIBCRYPTO} -output "${BASEPATH}/lib/libcrypto.a" - - echo "Copying headers..." - rm -rf "${BASEPATH}/opensslIncludes/" - mkdir -p "${BASEPATH}/opensslIncludes/" - cp -RL "${CURRENTPATH}/openssl-${VERSION}/include/openssl" "${BASEPATH}/opensslIncludes/" - - cd "${BASEPATH}" - echo "Building done." - - echo "Cleaning up..." - rm -rf "${CURRENTPATH}" - echo "Done." - CMD - - s.ios.platform = :ios - s.ios.public_header_files = "opensslIncludes/openssl/*.h" - s.ios.vendored_libraries = "lib/libcrypto.a", "lib/libssl.a" - - s.libraries = 'crypto', 'ssl' - s.requires_arc = false - -end diff --git a/1.0.207/OpenSSL.podspec b/1.0.207/OpenSSL.podspec deleted file mode 100644 index b59cd05..0000000 --- a/1.0.207/OpenSSL.podspec +++ /dev/null @@ -1,95 +0,0 @@ -Pod::Spec.new do |s| - s.name = "OpenSSL" - s.version = "1.0.207" - s.summary = "OpenSSL is an SSL/TLS and Crypto toolkit. Deprecated in Mac OS and gone in iOS, this spec gives your project non-deprecated OpenSSL support." - s.author = "OpenSSL Project " - - s.homepage = "https://github.com/FredericJacobs/OpenSSL-Pod" - s.source = { :http => "https://openssl.org/source/openssl-1.0.2g.tar.gz", :sha1 => "36af23887402a5ea4ebef91df8e61654906f58f2"} - s.source_files = "opensslIncludes/openssl/*.h" - s.header_dir = "openssl" - s.license = { :type => 'OpenSSL (OpenSSL/SSLeay)', :file => 'LICENSE' } - - s.prepare_command = <<-CMD - VERSION="1.0.2g" - SDKVERSION=`xcrun --sdk iphoneos --show-sdk-version 2> /dev/null` - MIN_SDK_VERSION_FLAG="-miphoneos-version-min=7.0" - - BASEPATH="${PWD}" - CURRENTPATH="/tmp/openssl" - ARCHS="i386 x86_64 armv7 armv7s arm64" - DEVELOPER=`xcode-select -print-path` - - mkdir -p "${CURRENTPATH}" - mkdir -p "${CURRENTPATH}/bin" - - cp "file.tgz" "${CURRENTPATH}/file.tgz" - cd "${CURRENTPATH}" - tar -xzf file.tgz - cd "openssl-${VERSION}" - - for ARCH in ${ARCHS} - do - CONFIGURE_FOR="iphoneos-cross" - - if [ "${ARCH}" == "i386" ] || [ "${ARCH}" == "x86_64" ] ; - then - PLATFORM="iPhoneSimulator" - if [ "${ARCH}" == "x86_64" ] ; - then - CONFIGURE_FOR="darwin64-x86_64-cc" - fi - else - sed -ie "s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!" "crypto/ui/ui_openssl.c" - PLATFORM="iPhoneOS" - fi - - export CROSS_TOP="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer" - export CROSS_SDK="${PLATFORM}${SDKVERSION}.sdk" - - echo "Building openssl-${VERSION} for ${PLATFORM} ${SDKVERSION} ${ARCH}" - echo "Please stand by..." - - export CC="${DEVELOPER}/usr/bin/gcc -arch ${ARCH} ${MIN_SDK_VERSION_FLAG}" - mkdir -p "${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" - LOG="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/build-openssl-${VERSION}.log" - - LIPO_LIBSSL="${LIPO_LIBSSL} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libssl.a" - LIPO_LIBCRYPTO="${LIPO_LIBCRYPTO} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libcrypto.a" - - ./Configure ${CONFIGURE_FOR} --openssldir="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" > "${LOG}" 2>&1 - sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} !" "Makefile" - - make >> "${LOG}" 2>&1 - make all install_sw >> "${LOG}" 2>&1 - make clean >> "${LOG}" 2>&1 - done - - - echo "Build library..." - rm -rf "${BASEPATH}/lib/" - mkdir -p "${BASEPATH}/lib/" - lipo -create ${LIPO_LIBSSL} -output "${BASEPATH}/lib/libssl.a" - lipo -create ${LIPO_LIBCRYPTO} -output "${BASEPATH}/lib/libcrypto.a" - - echo "Copying headers..." - rm -rf "${BASEPATH}/opensslIncludes/" - mkdir -p "${BASEPATH}/opensslIncludes/" - cp -RL "${CURRENTPATH}/openssl-${VERSION}/include/openssl" "${BASEPATH}/opensslIncludes/" - - cd "${BASEPATH}" - echo "Building done." - - echo "Cleaning up..." - rm -rf "${CURRENTPATH}" - echo "Done." - CMD - - s.ios.platform = :ios - s.ios.public_header_files = "opensslIncludes/openssl/*.h" - s.ios.vendored_libraries = "lib/libcrypto.a", "lib/libssl.a" - - s.libraries = 'crypto', 'ssl' - s.requires_arc = false - -end diff --git a/1.0.208/OpenSSL.podspec b/1.0.208/OpenSSL.podspec deleted file mode 100644 index c7658d0..0000000 --- a/1.0.208/OpenSSL.podspec +++ /dev/null @@ -1,95 +0,0 @@ -Pod::Spec.new do |s| - s.name = "OpenSSL" - s.version = "1.0.208" - s.summary = "OpenSSL is an SSL/TLS and Crypto toolkit. Deprecated in Mac OS and gone in iOS, this spec gives your project non-deprecated OpenSSL support." - s.author = "OpenSSL Project " - - s.homepage = "https://github.com/FredericJacobs/OpenSSL-Pod" - s.source = { :http => "https://openssl.org/source/openssl-1.0.2h.tar.gz", :sha1 => "577585f5f5d299c44dd3c993d3c0ac7a219e4949"} - s.source_files = "opensslIncludes/openssl/*.h" - s.header_dir = "openssl" - s.license = { :type => 'OpenSSL (OpenSSL/SSLeay)', :file => 'LICENSE' } - - s.prepare_command = <<-CMD - VERSION="1.0.2h" - SDKVERSION=`xcrun --sdk iphoneos --show-sdk-version 2> /dev/null` - MIN_SDK_VERSION_FLAG="-miphoneos-version-min=7.0" - - BASEPATH="${PWD}" - CURRENTPATH="/tmp/openssl" - ARCHS="i386 x86_64 armv7 armv7s arm64" - DEVELOPER=`xcode-select -print-path` - - mkdir -p "${CURRENTPATH}" - mkdir -p "${CURRENTPATH}/bin" - - cp "file.tgz" "${CURRENTPATH}/file.tgz" - cd "${CURRENTPATH}" - tar -xzf file.tgz - cd "openssl-${VERSION}" - - for ARCH in ${ARCHS} - do - CONFIGURE_FOR="iphoneos-cross" - - if [ "${ARCH}" == "i386" ] || [ "${ARCH}" == "x86_64" ] ; - then - PLATFORM="iPhoneSimulator" - if [ "${ARCH}" == "x86_64" ] ; - then - CONFIGURE_FOR="darwin64-x86_64-cc" - fi - else - sed -ie "s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!" "crypto/ui/ui_openssl.c" - PLATFORM="iPhoneOS" - fi - - export CROSS_TOP="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer" - export CROSS_SDK="${PLATFORM}${SDKVERSION}.sdk" - - echo "Building openssl-${VERSION} for ${PLATFORM} ${SDKVERSION} ${ARCH}" - echo "Please stand by..." - - export CC="${DEVELOPER}/usr/bin/gcc -arch ${ARCH} ${MIN_SDK_VERSION_FLAG}" - mkdir -p "${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" - LOG="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/build-openssl-${VERSION}.log" - - LIPO_LIBSSL="${LIPO_LIBSSL} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libssl.a" - LIPO_LIBCRYPTO="${LIPO_LIBCRYPTO} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libcrypto.a" - - ./Configure ${CONFIGURE_FOR} --openssldir="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" > "${LOG}" 2>&1 - sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} !" "Makefile" - - make >> "${LOG}" 2>&1 - make all install_sw >> "${LOG}" 2>&1 - make clean >> "${LOG}" 2>&1 - done - - - echo "Build library..." - rm -rf "${BASEPATH}/lib/" - mkdir -p "${BASEPATH}/lib/" - lipo -create ${LIPO_LIBSSL} -output "${BASEPATH}/lib/libssl.a" - lipo -create ${LIPO_LIBCRYPTO} -output "${BASEPATH}/lib/libcrypto.a" - - echo "Copying headers..." - rm -rf "${BASEPATH}/opensslIncludes/" - mkdir -p "${BASEPATH}/opensslIncludes/" - cp -RL "${CURRENTPATH}/openssl-${VERSION}/include/openssl" "${BASEPATH}/opensslIncludes/" - - cd "${BASEPATH}" - echo "Building done." - - echo "Cleaning up..." - rm -rf "${CURRENTPATH}" - echo "Done." - CMD - - s.ios.platform = :ios - s.ios.public_header_files = "opensslIncludes/openssl/*.h" - s.ios.vendored_libraries = "lib/libcrypto.a", "lib/libssl.a" - - s.libraries = 'crypto', 'ssl' - s.requires_arc = false - -end diff --git a/1.0.210/OpenSSL.podspec b/1.0.210/OpenSSL.podspec deleted file mode 100644 index 11930fc..0000000 --- a/1.0.210/OpenSSL.podspec +++ /dev/null @@ -1,95 +0,0 @@ -Pod::Spec.new do |s| - s.name = "OpenSSL" - s.version = "1.0.210" - s.summary = "OpenSSL is an SSL/TLS and Crypto toolkit. Deprecated in Mac OS and gone in iOS, this spec gives your project non-deprecated OpenSSL support." - s.author = "OpenSSL Project " - - s.homepage = "https://github.com/FredericJacobs/OpenSSL-Pod" - s.source = { :http => "https://openssl.org/source/openssl-1.0.2j.tar.gz", :sha1 => "bdfbdb416942f666865fa48fe13c2d0e588df54f"} - s.source_files = "opensslIncludes/openssl/*.h" - s.header_dir = "openssl" - s.license = { :type => 'OpenSSL (OpenSSL/SSLeay)', :file => 'LICENSE' } - - s.prepare_command = <<-CMD - VERSION="1.0.2j" - SDKVERSION=`xcrun --sdk iphoneos --show-sdk-version 2> /dev/null` - MIN_SDK_VERSION_FLAG="-miphoneos-version-min=7.0" - - BASEPATH="${PWD}" - CURRENTPATH="/tmp/openssl" - ARCHS="i386 x86_64 armv7 armv7s arm64" - DEVELOPER=`xcode-select -print-path` - - mkdir -p "${CURRENTPATH}" - mkdir -p "${CURRENTPATH}/bin" - - cp "file.tgz" "${CURRENTPATH}/file.tgz" - cd "${CURRENTPATH}" - tar -xzf file.tgz - cd "openssl-${VERSION}" - - for ARCH in ${ARCHS} - do - CONFIGURE_FOR="iphoneos-cross" - - if [ "${ARCH}" == "i386" ] || [ "${ARCH}" == "x86_64" ] ; - then - PLATFORM="iPhoneSimulator" - if [ "${ARCH}" == "x86_64" ] ; - then - CONFIGURE_FOR="darwin64-x86_64-cc" - fi - else - sed -ie "s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!" "crypto/ui/ui_openssl.c" - PLATFORM="iPhoneOS" - fi - - export CROSS_TOP="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer" - export CROSS_SDK="${PLATFORM}${SDKVERSION}.sdk" - - echo "Building openssl-${VERSION} for ${PLATFORM} ${SDKVERSION} ${ARCH}" - echo "Please stand by..." - - export CC="${DEVELOPER}/usr/bin/gcc -arch ${ARCH} ${MIN_SDK_VERSION_FLAG}" - mkdir -p "${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" - LOG="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/build-openssl-${VERSION}.log" - - LIPO_LIBSSL="${LIPO_LIBSSL} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libssl.a" - LIPO_LIBCRYPTO="${LIPO_LIBCRYPTO} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libcrypto.a" - - ./Configure ${CONFIGURE_FOR} --openssldir="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" > "${LOG}" 2>&1 - sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} !" "Makefile" - - make >> "${LOG}" 2>&1 - make all install_sw >> "${LOG}" 2>&1 - make clean >> "${LOG}" 2>&1 - done - - - echo "Build library..." - rm -rf "${BASEPATH}/lib/" - mkdir -p "${BASEPATH}/lib/" - lipo -create ${LIPO_LIBSSL} -output "${BASEPATH}/lib/libssl.a" - lipo -create ${LIPO_LIBCRYPTO} -output "${BASEPATH}/lib/libcrypto.a" - - echo "Copying headers..." - rm -rf "${BASEPATH}/opensslIncludes/" - mkdir -p "${BASEPATH}/opensslIncludes/" - cp -RL "${CURRENTPATH}/openssl-${VERSION}/include/openssl" "${BASEPATH}/opensslIncludes/" - - cd "${BASEPATH}" - echo "Building done." - - echo "Cleaning up..." - rm -rf "${CURRENTPATH}" - echo "Done." - CMD - - s.ios.deployment_target = "8.0" - s.ios.public_header_files = "opensslIncludes/openssl/*.h" - s.ios.vendored_libraries = "lib/libcrypto.a", "lib/libssl.a" - - s.libraries = 'crypto', 'ssl' - s.requires_arc = false - -end diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e953f59 --- /dev/null +++ b/LICENSE @@ -0,0 +1,125 @@ + + LICENSE ISSUES + ============== + + The OpenSSL toolkit stays under a double license, i.e. both the conditions of + the OpenSSL License and the original SSLeay license apply to the toolkit. + See below for the actual license texts. + + OpenSSL License + --------------- + +/* ==================================================================== + * Copyright (c) 1998-2018 The OpenSSL Project. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. All advertising materials mentioning features or use of this + * software must display the following acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" + * + * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to + * endorse or promote products derived from this software without + * prior written permission. For written permission, please contact + * openssl-core@openssl.org. + * + * 5. Products derived from this software may not be called "OpenSSL" + * nor may "OpenSSL" appear in their names without prior written + * permission of the OpenSSL Project. + * + * 6. Redistributions of any form whatsoever must retain the following + * acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit (http://www.openssl.org/)" + * + * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``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 OpenSSL PROJECT OR + * ITS 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. + * ==================================================================== + * + * This product includes cryptographic software written by Eric Young + * (eay@cryptsoft.com). This product includes software written by Tim + * Hudson (tjh@cryptsoft.com). + * + */ + + Original SSLeay License + ----------------------- + +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS 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 AUTHOR OR 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. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ + diff --git a/OpenSSL-template.podspec b/OpenSSL-template.podspec deleted file mode 100644 index 64ce292..0000000 --- a/OpenSSL-template.podspec +++ /dev/null @@ -1,95 +0,0 @@ -Pod::Spec.new do |s| - s.name = "OpenSSL" - s.version = "1.0.109" - s.summary = "OpenSSL is an SSL/TLS and Crypto toolkit. Deprecated in Mac OS and gone in iOS, this spec gives your project non-deprecated OpenSSL support." - s.author = "OpenSSL Project " - - s.homepage = "https://github.com/FredericJacobs/OpenSSL-Pod" - s.license = 'BSD-style Open Source' - s.source = { :http => "https://www.openssl.org/source/openssl-1.0.1i.tar.gz", :sha1 => "74eed314fa2c93006df8d26cd9fc630a101abd76"} - s.source_files = "opensslIncludes/openssl/*.h" - s.header_dir = "openssl" - s.license = { :type => 'OpenSSL (OpenSSL/SSLeay)', :file => 'LICENSE' } - - s.prepare_command = <<-CMD - VERSION="1.0.1i" - SDKVERSION=`xcrun --sdk iphoneos --show-sdk-version 2> /dev/null` - - BASEPATH="${PWD}" - CURRENTPATH="${TMPDIR}/openssl" - ARCHS="i386 x86_64 armv7 armv7s arm64" - DEVELOPER=`xcode-select -print-path` - - mkdir -p "${CURRENTPATH}" - mkdir -p "${CURRENTPATH}/bin" - - cp "file.tgz" "${CURRENTPATH}/file.tgz" - cd "${CURRENTPATH}" - tar -xzf file.tgz - cd "openssl-${VERSION}" - - for ARCH in ${ARCHS} - do - CONFIGURE_FOR="iphoneos-cross" - - if [ "${ARCH}" == "i386" ] || [ "${ARCH}" == "x86_64" ] ; - then - PLATFORM="iPhoneSimulator" - if [ "${ARCH}" == "x86_64" ] ; - then - CONFIGURE_FOR="darwin64-x86_64-cc" - fi - else - sed -ie "s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!" "crypto/ui/ui_openssl.c" - PLATFORM="iPhoneOS" - fi - - export CROSS_TOP="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer" - export CROSS_SDK="${PLATFORM}${SDKVERSION}.sdk" - - echo "Building openssl-${VERSION} for ${PLATFORM} ${SDKVERSION} ${ARCH}" - echo "Please stand by..." - - export CC="${DEVELOPER}/usr/bin/gcc -arch ${ARCH} -miphoneos-version-min=${SDKVERSION}" - mkdir -p "${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" - LOG="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/build-openssl-${VERSION}.log" - - LIPO_LIBSSL="${LIPO_LIBSSL} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libssl.a" - LIPO_LIBCRYPTO="${LIPO_LIBCRYPTO} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libcrypto.a" - - ./Configure ${CONFIGURE_FOR} --openssldir="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" > "${LOG}" 2>&1 - sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} !" "Makefile" - - make >> "${LOG}" 2>&1 - make all install_sw >> "${LOG}" 2>&1 - make clean >> "${LOG}" 2>&1 - done - - - echo "Build library..." - rm -rf "${BASEPATH}/lib/" - mkdir -p "${BASEPATH}/lib/" - lipo -create ${LIPO_LIBSSL} -output "${BASEPATH}/lib/libssl.a" - lipo -create ${LIPO_LIBCRYPTO} -output "${BASEPATH}/lib/libcrypto.a" - - echo "Copying headers..." - rm -rf "${BASEPATH}/opensslIncludes/" - mkdir -p "${BASEPATH}/opensslIncludes/" - cp -RL "${CURRENTPATH}/openssl-${VERSION}/include/openssl" "${BASEPATH}/opensslIncludes/" - - cd "${BASEPATH}" - echo "Building done." - - echo "Cleaning up..." - rm -rf "${CURRENTPATH}" - echo "Done." - CMD - - s.ios.platform = :ios - s.ios.public_header_files = "opensslIncludes/openssl/*.h" - s.ios.vendored_libraries = "lib/libcrypto.a", "lib/libssl.a" - - s.libraries = 'crypto', 'ssl' - s.requires_arc = false - -end diff --git a/OpenSSL.podspec b/OpenSSL.podspec new file mode 100644 index 0000000..073097d --- /dev/null +++ b/OpenSSL.podspec @@ -0,0 +1,166 @@ +# Configuration +# Pod maintainer step 1 of 2. Modify the OPENSSL_VERSION. +OPENSSL_VERSION="1.0.2m" + +# Pod maintainer step 2 of 2. Update the checksum file +# +# shasum -a256 "openssl-${OPENSSL_VERSION}.tar.gz" > checksum +# +# Verify output with the checksum published on https://www.openssl.org/source/ + +Pod::Spec.new do |s| + s.name = "OpenSSL" + s.version = "1.0.213" + s.summary = "OpenSSL is an SSL/TLS and Crypto toolkit. Deprecated in Mac OS and gone in iOS, this spec gives your project non-deprecated OpenSSL support." + s.author = "OpenSSL Project " + s.source = { http: "https://www.openssl.org/source/openssl-#{OPENSSL_VERSION}.tar.gz", sha256: "8c6ff15ec6b319b50788f42c7abc2890c08ba5a1cdcd3810eb9092deada37b0f" } + s.homepage = "https://github.com/WhisperSystems/OpenSSL-Pod" + s.source_files = "opensslIncludes/openssl/*.h" + s.header_dir = "openssl" + s.license = { :type => 'OpenSSL (OpenSSL/SSLeay)', :file => 'LICENSE' } + + s.ios.deployment_target = "8.0" + s.ios.public_header_files = "opensslIncludes/openssl/*.h" + s.ios.vendored_libraries = "lib/libcrypto.a", "lib/libssl.a" + + s.libraries = 'crypto', 'ssl' + s.requires_arc = false + s.prepare_command = <<-CMD + OPENSSL_VERSION="#{OPENSSL_VERSION}" + + CHECKSUM_FILE="checksum" + + SRC_TARBALL="openssl-${OPENSSL_VERSION}.tar.gz" + SRC_URL="https://www.openssl.org/source/${SRC_TARBALL}" + + if [ -f file.tgz ] + then + echo "Using existing file.tgz" + mv file.tgz $SRC_TARBALL + else + echo "Downloading from ${SRC_URL}" + curl -O "${SRC_URL}" + if [ ! -f $SRC_TARBALL ] + then + echo "Failed to download ${SRC_URL}" + exit 1 + fi + fi + + # Ensure checksum matches incase we're installing from development pod + # (Cocoapods checks for us if we're downloading from source) + if [ ! -f $CHECKSUM_FILE ] + then + echo "Missing checksum file" + exit 1 + fi + + shasum -c $CHECKSUM_FILE + if [ $? -eq 0 ] + then + echo "Checksum OK." + else + echo "Checksum failed." + exit 1 + fi + + SDKVERSION=`xcrun --sdk iphoneos --show-sdk-version 2> /dev/null` + MIN_SDK_VERSION_FLAG="-miphoneos-version-min=8.0" + + BASEPATH="${PWD}" + BUILD_ROOT="/tmp/openssl-pod" + + # Order of ARCHS is somewhat significant since our pod exposes the headers from the last built arch + ARCHS="i386 x86_64 armv7 armv7s arm64" + DEVELOPER=`xcode-select -print-path` + OUTPUT_DIR="${BUILD_ROOT}/output" + + mkdir -p "${OUTPUT_DIR}" + + cp "${SRC_TARBALL}" "${BUILD_ROOT}/${SRC_TARBALL}" + cd "${BUILD_ROOT}" + tar -xzf "${SRC_TARBALL}" + SRC_DIR="openssl-${OPENSSL_VERSION}" + cd $SRC_DIR + + echo "Building OpenSSL. This will take a while..." + for ARCH in ${ARCHS} + do + CONFIGURE_FOR="iphoneos-cross" + + if [ "${ARCH}" == "i386" ] || [ "${ARCH}" == "x86_64" ] ; + then + PLATFORM="iPhoneSimulator" + if [ "${ARCH}" == "x86_64" ] ; + then + CONFIGURE_FOR="darwin64-x86_64-cc" + fi + else + sed -ie "s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!" "crypto/ui/ui_openssl.c" + PLATFORM="iPhoneOS" + fi + + export CROSS_TOP="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer" + export CROSS_SDK="${PLATFORM}${SDKVERSION}.sdk" + + echo "Building openssl-${OPENSSL_VERSION} for ${PLATFORM} ${SDKVERSION} ${ARCH}" + echo "Please stand by..." + + export CC="${DEVELOPER}/usr/bin/gcc -arch ${ARCH} ${MIN_SDK_VERSION_FLAG}" + + ARCH_OUTPUT_DIR="${OUTPUT_DIR}/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" + mkdir -p "${ARCH_OUTPUT_DIR}" + SSL_BUILD_LOG="${ARCH_OUTPUT_DIR}/build-openssl-${OPENSSL_VERSION}.log" + + echo "Starting build for ${ARCH} / ${OPENSSL_VERSION}" > $SSL_BUILD_LOG + + ./Configure ${CONFIGURE_FOR} --prefix="${ARCH_OUTPUT_DIR}" --openssldir="${ARCH_OUTPUT_DIR}" >> "${SSL_BUILD_LOG}" 2>&1 + sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} !" "Makefile" + + make -j8 build_libs >> "${SSL_BUILD_LOG}" 2>&1 + make install >> "${SSL_BUILD_LOG}" 2>&1 + make clean >> "${SSL_BUILD_LOG}" 2>&1 + + if [ ! -f "${ARCH_OUTPUT_DIR}/lib/libssl.a" ] + then + echo "Failed to build ${ARCH_OUTPUT_DIR}/lib/libssl.a" + echo "See ${SSL_BUILD_LOG} for details" + exit 1 + fi + LIBSSL_ACCUM="${LIBSSL_ACCUM} ${ARCH_OUTPUT_DIR}/lib/libssl.a" + + if [ ! -f "${ARCH_OUTPUT_DIR}/lib/libcrypto.a" ] + then + echo "Failed to build ${ARCH_OUTPUT_DIR}/lib/libssl.a" + echo "See ${SSL_BUILD_LOG} for details" + exit 1 + fi + LIBCRYPTO_ACCUM="${LIBCRYPTO_ACCUM} ${ARCH_OUTPUT_DIR}/lib/libcrypto.a" + done + + echo "Copying headers from last built ARCH..." + rm -rf "${BASEPATH}/opensslIncludes/" + mkdir -p "${BASEPATH}/opensslIncludes/" + if [ ! -d "${ARCH_OUTPUT_DIR}/include/openssl" ] + then + echo "Failed to find headers ${ARCH_OUTPUT_DIR}/include/openssl" + echo "See ${SSL_BUILD_LOG} for details" + exit 1 + fi + cp -RL "${ARCH_OUTPUT_DIR}/include/openssl" "${BASEPATH}/opensslIncludes/" + + echo "Creating fat library..." + rm -rf "${BASEPATH}/lib/" + mkdir -p "${BASEPATH}/lib/" + lipo -create ${LIBSSL_ACCUM} -output "${BASEPATH}/lib/libssl.a" + lipo -create ${LIBCRYPTO_ACCUM} -output "${BASEPATH}/lib/libcrypto.a" + + cd "${BASEPATH}" + echo "Building done." + + echo "Cleaning up..." + rm -rf "${BUILD_ROOT}" + echo "Done." + CMD + +end diff --git a/README.md b/README.md index 5ae84a3..315eb32 100644 --- a/README.md +++ b/README.md @@ -6,11 +6,20 @@ OpenSSL-Pod Because OpenSSL's version numbers are not compatible with the CocoaPods version numbering, we will agree on the following. -OpenSSL version: A.B.CD will become A.B.C*100 + place of D in the alphabeth. - +OpenSSL version: A.B.CD will become A.B.C*100 + place of D in the alphabet (indexed by 1). Example: OpenSSL 1.0.1h => OpenSSL 1.0.108 ### Keeping the pod up-to-date -With the new Cocoapods "trunk" system, a Pod has a maintainer. Being the maintainer of the OpenSSL pod, I will try my best to keep it updated. If however, you see that the Pod is way behind, please submit a pull request with the changes and I'll submit it to Trunk after review. +Update the podspec to reference the latest 1.0.* tarball and sha256 +checksum from https://www.openssl.org/source/ + +**note** the 1.1.\* series has some changes that aren't compatible with +our existing build script. + +**note** Most cocoapods podspecs reside within the same repository as +the source that they build. The `source` option in your podspec +references an external source location; However, using `source` doesn't +play nicely with development pods or referencing a pod via git URL. + diff --git a/checksum b/checksum new file mode 100644 index 0000000..04d585d --- /dev/null +++ b/checksum @@ -0,0 +1 @@ +8c6ff15ec6b319b50788f42c7abc2890c08ba5a1cdcd3810eb9092deada37b0f openssl-1.0.2m.tar.gz