From dfb6325a472fd6a8ce74ff3d3419b526d63bfaf6 Mon Sep 17 00:00:00 2001 From: Lukas Rusak Date: Fri, 2 Dec 2016 11:25:30 -0800 Subject: [PATCH] libimobiledevice: add package --- .../addon-depends/libimobiledevice/package.mk | 38 +++++++++++++++++++ .../libimobiledevice-0001-disable-sslv3.patch | 12 ++++++ 2 files changed, 50 insertions(+) create mode 100644 packages/addons/addon-depends/libimobiledevice/package.mk create mode 100644 packages/addons/addon-depends/libimobiledevice/patches/libimobiledevice-0001-disable-sslv3.patch diff --git a/packages/addons/addon-depends/libimobiledevice/package.mk b/packages/addons/addon-depends/libimobiledevice/package.mk new file mode 100644 index 0000000000..0499d165d5 --- /dev/null +++ b/packages/addons/addon-depends/libimobiledevice/package.mk @@ -0,0 +1,38 @@ +################################################################################ +# This file is part of LibreELEC - https://libreelec.tv +# Copyright (C) 2016 Team LibreELEC +# +# LibreELEC is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# LibreELEC is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with LibreELEC. If not, see . +################################################################################ + +PKG_NAME="libimobiledevice" +PKG_VERSION="1.2.0" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://www.libimobiledevice.org" +PKG_URL="http://www.libimobiledevice.org/downloads/$PKG_NAME-$PKG_VERSION.tar.bz2" +PKG_DEPENDS_TARGET="toolchain libusbmuxd libressl" +PKG_SECTION="libs" +PKG_SHORTDESC="libimobiledevice is a cross-platform software library that talks the protocols to support iPhone®, iPod Touch®, iPad® and Apple TV® devices" +PKG_LONGDESC="libimobiledevice is a cross-platform software library that talks the protocols to support iPhone®, iPod Touch®, iPad® and Apple TV® devices" +PKG_AUTORECONF="yes" + +PKG_CONFIGURE_OPTS_TARGET="--enable-static \ + --disable-shared \ + --without-cython \ + --disable-largefile" + +post_makeinstall_target() { + cp $ROOT/$PKG_BUILD/common/utils.h $SYSROOT_PREFIX/usr/include/libimobiledevice/ +} diff --git a/packages/addons/addon-depends/libimobiledevice/patches/libimobiledevice-0001-disable-sslv3.patch b/packages/addons/addon-depends/libimobiledevice/patches/libimobiledevice-0001-disable-sslv3.patch new file mode 100644 index 0000000000..c267427648 --- /dev/null +++ b/packages/addons/addon-depends/libimobiledevice/patches/libimobiledevice-0001-disable-sslv3.patch @@ -0,0 +1,12 @@ +diff -u -r libimobiledevice-1.2.0/src/idevice.c libimobiledevice-1.2.0-nossl3/src/idevice.c +--- libimobiledevice-1.2.0/src/idevice.c 2015-01-28 02:10:32.000000000 +0100 ++++ libimobiledevice-1.2.0-nossl3/src/idevice.c 2016-03-03 18:33:45.912308242 +0100 +@@ -678,7 +678,7 @@ + } + BIO_set_fd(ssl_bio, (int)(long)connection->data, BIO_NOCLOSE); + +- SSL_CTX *ssl_ctx = SSL_CTX_new(SSLv3_method()); ++ SSL_CTX *ssl_ctx = SSL_CTX_new(SSLv23_method()); + if (ssl_ctx == NULL) { + debug_info("ERROR: Could not create SSL context."); + BIO_free(ssl_bio);