Compare commits
2 Commits
master
...
mkirk/1.0.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d698d9ff84 | ||
|
|
e3aa94cd8c |
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
file.tgz
|
||||
lib
|
||||
opensslIncludes
|
||||
@ -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 <openssl-dev@openssl.org>"
|
||||
|
||||
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
|
||||
@ -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 <openssl-dev@openssl.org>"
|
||||
|
||||
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
|
||||
@ -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 <openssl-dev@openssl.org>"
|
||||
|
||||
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
|
||||
@ -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 <openssl-dev@openssl.org>"
|
||||
|
||||
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
|
||||
@ -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 <openssl-dev@openssl.org>"
|
||||
|
||||
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
|
||||
@ -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 <openssl-dev@openssl.org>"
|
||||
|
||||
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
|
||||
@ -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 <openssl-dev@openssl.org>"
|
||||
|
||||
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
|
||||
@ -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 <openssl-dev@openssl.org>"
|
||||
|
||||
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
|
||||
@ -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 <openssl-dev@openssl.org>"
|
||||
|
||||
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
|
||||
@ -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 <openssl-dev@openssl.org>"
|
||||
|
||||
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
|
||||
@ -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 <openssl-dev@openssl.org>"
|
||||
|
||||
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
|
||||
@ -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 <openssl-dev@openssl.org>"
|
||||
|
||||
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
|
||||
@ -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 <openssl-dev@openssl.org>"
|
||||
|
||||
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
|
||||
@ -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 <openssl-dev@openssl.org>"
|
||||
|
||||
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
|
||||
@ -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 <openssl-dev@openssl.org>"
|
||||
|
||||
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
|
||||
@ -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 <openssl-dev@openssl.org>"
|
||||
|
||||
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
|
||||
@ -1,17 +1,17 @@
|
||||
Pod::Spec.new do |s|
|
||||
s.name = "OpenSSL"
|
||||
s.version = "1.0.210"
|
||||
s.version = "1.0.212"
|
||||
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 <openssl-dev@openssl.org>"
|
||||
|
||||
s.homepage = "https://github.com/FredericJacobs/OpenSSL-Pod"
|
||||
s.source = { :http => "https://openssl.org/source/openssl-1.0.2j.tar.gz", :sha1 => "bdfbdb416942f666865fa48fe13c2d0e588df54f"}
|
||||
s.homepage = "https://github.com/WhisperSystems/OpenSSL-Pod"
|
||||
s.source_files = "opensslIncludes/openssl/*.h"
|
||||
s.header_dir = "openssl"
|
||||
s.source = { :http => "https://www.openssl.org/source/openssl-1.0.2l.tar.gz", :sha256 => "ce07195b659e75f4e1db43552860070061f156a98bb37b672b101ba6e3ddf30c"}
|
||||
s.license = { :type => 'OpenSSL (OpenSSL/SSLeay)', :file => 'LICENSE' }
|
||||
s.header_dir = "openssl"
|
||||
|
||||
s.prepare_command = <<-CMD
|
||||
VERSION="1.0.2j"
|
||||
VERSION="1.0.2l"
|
||||
SDKVERSION=`xcrun --sdk iphoneos --show-sdk-version 2> /dev/null`
|
||||
MIN_SDK_VERSION_FLAG="-miphoneos-version-min=7.0"
|
||||
|
||||
38
README.md
38
README.md
@ -6,11 +6,43 @@ 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 changed 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.
|
||||
|
||||
In order to test the development pod download, you'll need to fetch and
|
||||
rename the source yourself, before running `pod install`
|
||||
|
||||
cd $MY_PROJECT
|
||||
edit Podfile
|
||||
|
||||
Update Podfile to reference your local podspec with a line like:
|
||||
|
||||
pod 'OpenSSL', path: '~/src/OpenSSL-Pod'
|
||||
|
||||
Then you have to manually fetch the external source:
|
||||
|
||||
cd ~/src/OpenSSL-Pod
|
||||
curl -o file.tgz https://www.openssl.org/source/openssl-1.0.2l.tar.gz
|
||||
|
||||
Now you can run pod install as normal
|
||||
|
||||
cd $MY_PROJECT
|
||||
pod install
|
||||
|
||||
Again, this is only required when building OpenSSL as a development pod,
|
||||
when installing from cocoapods like normal, the external source will be
|
||||
fetched for you.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user