diff --git a/0000-CVE-2016-5104.patch b/0000-CVE-2016-5104.patch deleted file mode 100644 index bde5d30..0000000 --- a/0000-CVE-2016-5104.patch +++ /dev/null @@ -1,32 +0,0 @@ -From 4397b3376dc4e4cb1c991d0aed61ce6482614196 Mon Sep 17 00:00:00 2001 -From: Joshua Hill -Date: Tue, 29 Dec 2015 23:09:37 +0100 -Subject: [PATCH] common: [security fix] Make sure sockets only listen locally - -Signed-off-by: Joshua Hill ---- - common/socket.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/common/socket.c b/common/socket.c -index 27b93ba..4cdefd6 100644 ---- a/common/socket.c -+++ b/common/socket.c -@@ -203,7 +203,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))) { -@@ -368,7 +368,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); diff --git a/2.0.2.tar.gz b/2.0.2.tar.gz new file mode 100644 index 0000000..27ffa4b Binary files /dev/null and b/2.0.2.tar.gz differ diff --git a/libusbmuxd-1.0.10.tar.bz2 b/libusbmuxd-1.0.10.tar.bz2 deleted file mode 100644 index a3e04e9..0000000 Binary files a/libusbmuxd-1.0.10.tar.bz2 and /dev/null differ diff --git a/libusbmuxd.spec b/libusbmuxd.spec index e3ce483..907baaa 100644 --- a/libusbmuxd.spec +++ b/libusbmuxd.spec @@ -1,13 +1,12 @@ Name: libusbmuxd -Version: 1.0.10 -Release: 13 +Version: 2.0.2 +Release: 1 Summary: software protocol library and tools to communicate with iOS devices natively License: LGPLv2+ and GPLv2+ URL: http://www.libimobiledevice.org/ -Source0: http://www.libimobiledevice.org/downloads/%{name}-%{version}.tar.bz2 -Patch0: 0000-CVE-2016-5104.patch +Source0: https://github.com/libimobiledevice/%{name}/archive/%{version}.tar.gz -BuildRequires: gcc git libplist-devel >= 1.11 +BuildRequires: gcc libplist-devel >= 2.2.0 autoconf automake libtool Provides: %{name}-utils Obsoletes: %{name}-utils @@ -26,18 +25,19 @@ Obsoletes: usbmuxd-devel < 1.0.9 provide head files or other files to support for development with %{name}. %prep -%autosetup -n %{name}-%{version} -S git -p1 +%setup -q +NOCONFIGURE=1 ./autogen.sh %build %configure --disable-static sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool -%make_build V=1 +%make_build %install -make install DESTDIR=%{buildroot} INSTALL='install -p' +%make_install %check make check @@ -46,17 +46,22 @@ make check %files %license COPYING -%doc README AUTHORS -%{_libdir}/libusbmuxd.so.4* +%doc README.md AUTHORS +%{_libdir}/libusbmuxd-2.0.so.* %{_bindir}/iproxy %exclude %{_libdir}/*.la +%{_bindir}/inetcat +%{_mandir}/man1/* %files devel %{_includedir}/usbmuxd* -%{_libdir}/libusbmuxd.so -%{_libdir}/pkgconfig/libusbmuxd.pc +%{_libdir}/pkgconfig/libusbmuxd-2.0.pc +%{_libdir}/libusbmuxd-2.0.so %changelog +* Thu Aug 6 2020 jinzhimin - 2.0.2-1 +- update to 2.0.2 + * Wed Jul 1 2019 Wu Bo - 1.0.10-13 - rebuild package