mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
libimobiledevice: update to 1.3.0.
This commit is contained in:
parent
e25aff808c
commit
0ea6aa41a2
3 changed files with 15 additions and 42 deletions
|
@ -2040,7 +2040,7 @@ libnpth.so.0 npth-1.1_1
|
||||||
libnpupnp.so.4 libnpupnp-4.0.2_1
|
libnpupnp.so.4 libnpupnp-4.0.2_1
|
||||||
libglfw.so.3 glfw-3.0.4_1
|
libglfw.so.3 glfw-3.0.4_1
|
||||||
libusbmuxd-2.0.so.6 libusbmuxd-2.0.2_1
|
libusbmuxd-2.0.so.6 libusbmuxd-2.0.2_1
|
||||||
libimobiledevice.so.6 libimobiledevice-1.2.0_1
|
libimobiledevice-1.0.so.6 libimobiledevice-1.3.0_1
|
||||||
libstfl.so.0 stfl-0.23_1
|
libstfl.so.0 stfl-0.23_1
|
||||||
libCDApplet.so cairo-dock-plugins-3.4.0_1
|
libCDApplet.so cairo-dock-plugins-3.4.0_1
|
||||||
libldns.so.3 libldns-1.7.1_1
|
libldns.so.3 libldns-1.7.1_1
|
||||||
|
|
|
@ -1,32 +0,0 @@
|
||||||
From df1f5c4d70d0c19ad40072f5246ca457e7f9849e Mon Sep 17 00:00:00 2001
|
|
||||||
From: Joshua Hill <posixninja@gmail.com>
|
|
||||||
Date: Tue, 29 Dec 2015 22:27:17 +0100
|
|
||||||
Subject: [PATCH] common: [security fix] Make sure sockets only listen locally
|
|
||||||
|
|
||||||
---
|
|
||||||
common/socket.c | 4 ++--
|
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/common/socket.c b/common/socket.c
|
|
||||||
index b276864e..e2968a64 100644
|
|
||||||
--- common/socket.c
|
|
||||||
+++ common/socket.c
|
|
||||||
@@ -172,7 +172,7 @@ int socket_create(uint16_t port)
|
|
||||||
|
|
||||||
memset((void *) &saddr, 0, sizeof(saddr));
|
|
||||||
saddr.sin_family = AF_INET;
|
|
||||||
- saddr.sin_addr.s_addr = htonl(INADDR_ANY);
|
|
||||||
+ saddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
|
|
||||||
saddr.sin_port = htons(port);
|
|
||||||
|
|
||||||
if (0 > bind(sfd, (struct sockaddr *) &saddr, sizeof(saddr))) {
|
|
||||||
@@ -329,7 +329,7 @@ int socket_accept(int fd, uint16_t port)
|
|
||||||
|
|
||||||
memset(&addr, 0, sizeof(addr));
|
|
||||||
addr.sin_family = AF_INET;
|
|
||||||
- addr.sin_addr.s_addr = htonl(INADDR_ANY);
|
|
||||||
+ addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
|
|
||||||
addr.sin_port = htons(port);
|
|
||||||
|
|
||||||
addr_len = sizeof(addr);
|
|
||||||
|
|
|
@ -1,26 +1,31 @@
|
||||||
# Template file for 'libimobiledevice'
|
# Template file for 'libimobiledevice'
|
||||||
pkgname=libimobiledevice
|
pkgname=libimobiledevice
|
||||||
version=1.2.0
|
version=1.3.0
|
||||||
revision=17
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="automake libtool pkgconf python3-Cython"
|
hostmakedepends="automake libtool pkgconf python3-Cython"
|
||||||
makedepends="python3-devel libglib-devel libressl-devel libusb-devel
|
makedepends="python3-devel libglib-devel libressl-devel
|
||||||
libplist-devel libusbmuxd-devel"
|
libusb-devel libplist-devel libusbmuxd-devel"
|
||||||
short_desc="Library to communicate with Apple devices"
|
short_desc="Library to communicate with Apple devices"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="LGPL-2.1-only"
|
license="LGPL-2.1-only"
|
||||||
homepage="https://github.com/libimobiledevice/libimobiledevice"
|
homepage="https://libimobiledevice.org"
|
||||||
|
changelog="https://raw.githubusercontent.com/libimobiledevice/libimobiledevice/master/NEWS"
|
||||||
distfiles="https://github.com/libimobiledevice/libimobiledevice/archive/${version}.tar.gz"
|
distfiles="https://github.com/libimobiledevice/libimobiledevice/archive/${version}.tar.gz"
|
||||||
checksum=8ba1ea817691b3548b83371f8ec22d73d1e37f8fda7c899ac9c7121d924ca830
|
checksum=acbfb73eabee162e64c0d9de207d71c0a5f47c40cd5ad32a5097f734328ce10a
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
configure_args="ac_cv_sys_file_offset_bits=yes ac_cv_sys_large_file=yes"
|
configure_args="ac_cv_sys_file_offset_bits=yes ac_cv_sys_large_file=yes"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
post_patch() {
|
||||||
|
# LibreSSL does not provide this function
|
||||||
|
vsed -e '/SSL_CTX_set_security_level/d' -i src/idevice.c
|
||||||
|
vsed -e 's,-L$(libdir),,g' -i cython/Makefile.am
|
||||||
|
}
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
sed -i 's,SSLv3_,SSLv23_,g' src/idevice.c
|
export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}"
|
||||||
sed -i 's,-L$(libdir),,g' cython/Makefile.am
|
|
||||||
export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python${py3_ver}"
|
|
||||||
export PYTHON_LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib -lpython${py3_ver}"
|
export PYTHON_LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib -lpython${py3_ver}"
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue