pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/comms/libimobiledevice
Module Name: pkgsrc
Committed By: vins
Date: Sat May 2 07:01:15 UTC 2026
Added Files:
pkgsrc/comms/libimobiledevice: DESCR Makefile PLIST buildlink3.mk
distinfo
pkgsrc/comms/libimobiledevice/patches: patch-src_lockdown.c
patch-src_sbservices.c
Log Message:
misc/libimobiledevice: Import libimobiledevice-1.4.0 from wip
Originally packaged in wip by charlotte.
libimobiledevice is a cross-platform software library that talks the
protocols to support iPhone, iPod Touch, iPad and Apple TV devices. Unlike
other projects, it does not depend on using any existing proprietary
libraries and does not require jailbreaking. It allows other software to
easily access the device's filesystem, retrieve information about the device
and it's internals, backup/restore the device, manage SpringBoard icons,
manage installed applications, retrieve addressbook/calendars/notes and
bookmarks and (using libgpod) synchronize music and video to the device. The
library is in development since August 2007 with the goal to bring support
for these devices to the Linux Desktop.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/comms/libimobiledevice/DESCR \
pkgsrc/comms/libimobiledevice/Makefile \
pkgsrc/comms/libimobiledevice/PLIST \
pkgsrc/comms/libimobiledevice/buildlink3.mk \
pkgsrc/comms/libimobiledevice/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/comms/libimobiledevice/patches/patch-src_lockdown.c \
pkgsrc/comms/libimobiledevice/patches/patch-src_sbservices.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/comms/libimobiledevice/DESCR
diff -u /dev/null pkgsrc/comms/libimobiledevice/DESCR:1.1
--- /dev/null Sat May 2 07:01:15 2026
+++ pkgsrc/comms/libimobiledevice/DESCR Sat May 2 07:01:14 2026
@@ -0,0 +1,10 @@
+libimobiledevice is a cross-platform software library that talks the
+protocols to support iPhone, iPod Touch, iPad and Apple TV devices. Unlike
+other projects, it does not depend on using any existing proprietary
+libraries and does not require jailbreaking. It allows other software to
+easily access the device's filesystem, retrieve information about the device
+and its internals, backup/restore the device, manage SpringBoard icons,
+manage installed applications, retrieve addressbook/calendars/notes and
+bookmarks and (using libgpod) synchronize music and video to the device. The
+library is in development since August 2007 with the goal to bring support
+for these devices to the Linux Desktop.
Index: pkgsrc/comms/libimobiledevice/Makefile
diff -u /dev/null pkgsrc/comms/libimobiledevice/Makefile:1.1
--- /dev/null Sat May 2 07:01:15 2026
+++ pkgsrc/comms/libimobiledevice/Makefile Sat May 2 07:01:14 2026
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1 2026/05/02 07:01:14 vins Exp $
+
+DISTNAME= libimobiledevice-1.4.0
+CATEGORIES= comms
+MASTER_SITES= ${MASTER_SITE_GITHUB:=libimobiledevice/}
+GITHUB_RELEASE= ${PKGVERSION_NOREV}
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= charlotte%NetBSD.org@localhost
+HOMEPAGE= https://www.libimobiledevice.org/
+COMMENT= Libraries and tools to communicate with iOS devices
+LICENSE= gnu-gpl-v2
+
+USE_LANGUAGES+= c c++
+
+USE_LIBTOOL= yes
+USE_TOOLS+= aclocal autoconf automake bash pkg-config
+
+GNU_CONFIGURE= yes
+CONFIG_SHELL= bash
+
+PY_PATCHPLIST= yes
+
+post-extract:
+# By default, configure script uses a git wrapper to hard-code the current version.
+ @${STEP_MSG} "Setting package version to ${PKGVERSION_NOREV}"
+ ${RUN}${ECHO} ${PKGVERSION_NOREV} > ${WRKSRC}/.tarball-version
+
+pre-configure:
+ set -e; cd ${WRKSRC} && autoreconf -fiv
+
+.include "../../devel/py-cython/tool.mk"
+.include "../../devel/py-cython/buildlink3.mk"
+.include "../../lang/python/extension.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../textproc/libplist/buildlink3.mk"
+.include "../../security/libtatsu/buildlink3.mk"
+.include "../../comms/libusbmuxd/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/comms/libimobiledevice/PLIST
diff -u /dev/null pkgsrc/comms/libimobiledevice/PLIST:1.1
--- /dev/null Sat May 2 07:01:15 2026
+++ pkgsrc/comms/libimobiledevice/PLIST Sat May 2 07:01:14 2026
@@ -0,0 +1,74 @@
+@comment $NetBSD: PLIST,v 1.1 2026/05/02 07:01:14 vins Exp $
+bin/afcclient
+bin/idevice_id
+bin/idevicebackup
+bin/idevicebackup2
+bin/idevicebtlogger
+bin/idevicecrashreport
+bin/idevicedate
+bin/idevicedebug
+bin/idevicedebugserverproxy
+bin/idevicedevmodectl
+bin/idevicediagnostics
+bin/ideviceenterrecovery
+bin/ideviceimagemounter
+bin/ideviceinfo
+bin/idevicename
+bin/idevicenotificationproxy
+bin/idevicepair
+bin/ideviceprovision
+bin/idevicescreenshot
+bin/idevicesetlocation
+bin/idevicesyslog
+include/libimobiledevice/afc.h
+include/libimobiledevice/bt_packet_logger.h
+include/libimobiledevice/companion_proxy.h
+include/libimobiledevice/debugserver.h
+include/libimobiledevice/diagnostics_relay.h
+include/libimobiledevice/file_relay.h
+include/libimobiledevice/heartbeat.h
+include/libimobiledevice/house_arrest.h
+include/libimobiledevice/installation_proxy.h
+include/libimobiledevice/libimobiledevice.h
+include/libimobiledevice/lockdown.h
+include/libimobiledevice/misagent.h
+include/libimobiledevice/mobile_image_mounter.h
+include/libimobiledevice/mobileactivation.h
+include/libimobiledevice/mobilebackup.h
+include/libimobiledevice/mobilebackup2.h
+include/libimobiledevice/mobilesync.h
+include/libimobiledevice/notification_proxy.h
+include/libimobiledevice/ostrace.h
+include/libimobiledevice/preboard.h
+include/libimobiledevice/property_list_service.h
+include/libimobiledevice/restore.h
+include/libimobiledevice/reverse_proxy.h
+include/libimobiledevice/sbservices.h
+include/libimobiledevice/screenshotr.h
+include/libimobiledevice/service.h
+include/libimobiledevice/syslog_relay.h
+include/libimobiledevice/webinspector.h
+lib/libimobiledevice-1.0.la
+lib/pkgconfig/libimobiledevice-1.0.pc
+${PYSITELIB}/imobiledevice.la
+man/man1/afcclient.1
+man/man1/idevice_id.1
+man/man1/idevicebackup.1
+man/man1/idevicebackup2.1
+man/man1/idevicebtlogger.1
+man/man1/idevicecrashreport.1
+man/man1/idevicedate.1
+man/man1/idevicedebug.1
+man/man1/idevicedebugserverproxy.1
+man/man1/idevicedevmodectl.1
+man/man1/idevicediagnostics.1
+man/man1/ideviceenterrecovery.1
+man/man1/ideviceimagemounter.1
+man/man1/ideviceinfo.1
+man/man1/idevicename.1
+man/man1/idevicenotificationproxy.1
+man/man1/idevicepair.1
+man/man1/ideviceprovision.1
+man/man1/idevicescreenshot.1
+man/man1/idevicesetlocation.1
+man/man1/idevicesyslog.1
Index: pkgsrc/comms/libimobiledevice/buildlink3.mk
diff -u /dev/null pkgsrc/comms/libimobiledevice/buildlink3.mk:1.1
--- /dev/null Sat May 2 07:01:15 2026
+++ pkgsrc/comms/libimobiledevice/buildlink3.mk Sat May 2 07:01:14 2026
@@ -0,0 +1,19 @@
+# $NetBSD: buildlink3.mk,v 1.1 2026/05/02 07:01:14 vins Exp $
+
+BUILDLINK_TREE+= libimobiledevice
+
+.if !defined(LIBIMOBILEDEVICE_BUILDLINK3_MK)
+LIBIMOBILEDEVICE_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libimobiledevice+= libimobiledevice>=1.2.0
+BUILDLINK_ABI_DEPENDS.libimobiledevice+= libimobiledevice>=1.2.0
+BUILDLINK_PKGSRCDIR.libimobiledevice?= ../../comms/libimobiledevice
+
+.include "../../security/openssl/buildlink3.mk"
+.include "../../textproc/libplist/buildlink3.mk"
+.include "../../security/libtatsu/buildlink3.mk"
+.include "../../comms/libusbmuxd/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.endif # LIBIMOBILEDEVICE_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -libimobiledevice
Index: pkgsrc/comms/libimobiledevice/distinfo
diff -u /dev/null pkgsrc/comms/libimobiledevice/distinfo:1.1
--- /dev/null Sat May 2 07:01:15 2026
+++ pkgsrc/comms/libimobiledevice/distinfo Sat May 2 07:01:15 2026
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2026/05/02 07:01:15 vins Exp $
+
+BLAKE2s (libimobiledevice-1.4.0.tar.bz2) = 9571a0f57d206760f52948b75799e4279a27f65892cba37238a858cd34eae815
+SHA512 (libimobiledevice-1.4.0.tar.bz2) = b71ad9ce9c79e13e5b0e39f451770399bf71837581ab4a5e5c695f3c33511b45df79e8ad58d71bde28a97c3f032b64669e078e6d1417f3db006f4afd74c48c89
+Size (libimobiledevice-1.4.0.tar.bz2) = 714628 bytes
+SHA1 (patch-src_lockdown.c) = 0c82d15c3385b81287ea99e983a6203864f4bdeb
+SHA1 (patch-src_sbservices.c) = 31b16854c739812c8aca9c63123c3f146a3f1600
Index: pkgsrc/comms/libimobiledevice/patches/patch-src_lockdown.c
diff -u /dev/null pkgsrc/comms/libimobiledevice/patches/patch-src_lockdown.c:1.1
--- /dev/null Sat May 2 07:01:15 2026
+++ pkgsrc/comms/libimobiledevice/patches/patch-src_lockdown.c Sat May 2 07:01:15 2026
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_lockdown.c,v 1.1 2026/05/02 07:01:15 vins Exp $
+
+Fix ctype(3) usage.
+https://github.com/libimobiledevice/libimobiledevice/pull/1700
+
+--- src/lockdown.c.orig 2025-07-31 18:39:12.420822229 +0000
++++ src/lockdown.c
+@@ -1487,7 +1487,7 @@ static void str_remove_spaces(char *sour
+ {
+ char *dest = source;
+ while (*source != 0) {
+- if (!isspace(*source)) {
++ if (!isspace((unsigned char)*source)) {
+ *dest++ = *source; /* copy */
+ }
+ source++;
Index: pkgsrc/comms/libimobiledevice/patches/patch-src_sbservices.c
diff -u /dev/null pkgsrc/comms/libimobiledevice/patches/patch-src_sbservices.c:1.1
--- /dev/null Sat May 2 07:01:15 2026
+++ pkgsrc/comms/libimobiledevice/patches/patch-src_sbservices.c Sat May 2 07:01:15 2026
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_sbservices.c,v 1.1 2026/05/02 07:01:15 vins Exp $
+
+Avoid non freed use of malloc().
+
+--- src/sbservices.c.orig 2026-05-02 06:38:40.114601070 +0000
++++ src/sbservices.c
+@@ -178,7 +178,8 @@ sbservices_error_t sbservices_set_icon_s
+ }
+
+ uint32_t bytes = 0;
+- service_receive_with_timeout(client->parent->parent, malloc(4), 4, &bytes, 2000);
++ char buf[4];
++ service_receive_with_timeout(client->parent->parent, buf, 4, &bytes, 2000);
+ debug_info("setIconState response: %u", bytes);
+
+ if (dict) {
Home |
Main Index |
Thread Index |
Old Index