pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/misc/libimobiledevice-glue
Module Name: pkgsrc
Committed By: vins
Date: Fri May 1 19:49:48 UTC 2026
Added Files:
pkgsrc/misc/libimobiledevice-glue: DESCR Makefile PLIST buildlink3.mk
distinfo
pkgsrc/misc/libimobiledevice-glue/patches: patch-src_socket.c
patch-src_utils.c
Log Message:
misc/libimobiledevice-glue: import libimobiledevice-glue-1.3.2 from wip
(Packaged in wip by wiz).
Library with common code used by the libraries and tools around
the libimobiledevice project.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/misc/libimobiledevice-glue/DESCR \
pkgsrc/misc/libimobiledevice-glue/Makefile \
pkgsrc/misc/libimobiledevice-glue/PLIST \
pkgsrc/misc/libimobiledevice-glue/buildlink3.mk \
pkgsrc/misc/libimobiledevice-glue/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/misc/libimobiledevice-glue/patches/patch-src_socket.c \
pkgsrc/misc/libimobiledevice-glue/patches/patch-src_utils.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/misc/libimobiledevice-glue/DESCR
diff -u /dev/null pkgsrc/misc/libimobiledevice-glue/DESCR:1.1
--- /dev/null Fri May 1 19:49:48 2026
+++ pkgsrc/misc/libimobiledevice-glue/DESCR Fri May 1 19:49:47 2026
@@ -0,0 +1,2 @@
+Library with common code used by the libraries and tools around
+the libimobiledevice project.
Index: pkgsrc/misc/libimobiledevice-glue/Makefile
diff -u /dev/null pkgsrc/misc/libimobiledevice-glue/Makefile:1.1
--- /dev/null Fri May 1 19:49:48 2026
+++ pkgsrc/misc/libimobiledevice-glue/Makefile Fri May 1 19:49:47 2026
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2026/05/01 19:49:47 vins Exp $
+
+DISTNAME= libimobiledevice-glue-1.3.2
+CATEGORIES= misc
+MASTER_SITES= ${MASTER_SITE_GITHUB:=libimobiledevice/}
+GITHUB_RELEASE= ${PKGVERSION_NOREV}
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/libimobiledevice/libimobiledevice-glue
+COMMENT= Library with common code for the libimobiledevice project
+LICENSE= gnu-lgpl-v2.1
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_TOOLS+= pkg-config
+
+PKGCONFIG_OVERRIDE+= src/libimobiledevice-glue-1.0.pc.in
+
+.include "../../textproc/libplist/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/misc/libimobiledevice-glue/PLIST
diff -u /dev/null pkgsrc/misc/libimobiledevice-glue/PLIST:1.1
--- /dev/null Fri May 1 19:49:48 2026
+++ pkgsrc/misc/libimobiledevice-glue/PLIST Fri May 1 19:49:47 2026
@@ -0,0 +1,14 @@
+@comment $NetBSD: PLIST,v 1.1 2026/05/01 19:49:47 vins Exp $
+include/libimobiledevice-glue/cbuf.h
+include/libimobiledevice-glue/collection.h
+include/libimobiledevice-glue/glue.h
+include/libimobiledevice-glue/nskeyedarchive.h
+include/libimobiledevice-glue/opack.h
+include/libimobiledevice-glue/sha.h
+include/libimobiledevice-glue/socket.h
+include/libimobiledevice-glue/termcolors.h
+include/libimobiledevice-glue/thread.h
+include/libimobiledevice-glue/tlv.h
+include/libimobiledevice-glue/utils.h
+lib/libimobiledevice-glue-1.0.la
+lib/pkgconfig/libimobiledevice-glue-1.0.pc
Index: pkgsrc/misc/libimobiledevice-glue/buildlink3.mk
diff -u /dev/null pkgsrc/misc/libimobiledevice-glue/buildlink3.mk:1.1
--- /dev/null Fri May 1 19:49:48 2026
+++ pkgsrc/misc/libimobiledevice-glue/buildlink3.mk Fri May 1 19:49:47 2026
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.1 2026/05/01 19:49:47 vins Exp $
+
+BUILDLINK_TREE+= libimobiledevice-glue
+
+.if !defined(LIBIMOBILEDEVICE_GLUE_BUILDLINK3_MK)
+LIBIMOBILEDEVICE_GLUE_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libimobiledevice-glue+= libimobiledevice-glue>=1.3.2
+BUILDLINK_PKGSRCDIR.libimobiledevice-glue?= ../../misc/libimobiledevice-glue
+
+.include "../../textproc/libplist/buildlink3.mk"
+.endif # LIBIMOBILEDEVICE_GLUE_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -libimobiledevice-glue
Index: pkgsrc/misc/libimobiledevice-glue/distinfo
diff -u /dev/null pkgsrc/misc/libimobiledevice-glue/distinfo:1.1
--- /dev/null Fri May 1 19:49:48 2026
+++ pkgsrc/misc/libimobiledevice-glue/distinfo Fri May 1 19:49:47 2026
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2026/05/01 19:49:47 vins Exp $
+
+BLAKE2s (libimobiledevice-glue-1.3.2.tar.bz2) = 21da3cc0fa1a80616f87fb28ef0b00c1d6301be335f469a7f2d1ba3777d22f95
+SHA512 (libimobiledevice-glue-1.3.2.tar.bz2) = d12b853dedec39a28c34c19dc1a2d26e81d9aba0e64d9c7ed03aa921feee5613598a30e9c51bd79d9ec840399a97091525fc5e4c5ac4b20d68ea8c96a35fc7d1
+Size (libimobiledevice-glue-1.3.2.tar.bz2) = 338101 bytes
+SHA1 (patch-src_socket.c) = c02428ce4e09a096a44046c6159add59222a6893
+SHA1 (patch-src_utils.c) = b762d108d635e8ababe485f987dc87cb13b15cc6
Index: pkgsrc/misc/libimobiledevice-glue/patches/patch-src_socket.c
diff -u /dev/null pkgsrc/misc/libimobiledevice-glue/patches/patch-src_socket.c:1.1
--- /dev/null Fri May 1 19:49:48 2026
+++ pkgsrc/misc/libimobiledevice-glue/patches/patch-src_socket.c Fri May 1 19:49:48 2026
@@ -0,0 +1,32 @@
+$NetBSD: patch-src_socket.c,v 1.1 2026/05/01 19:49:48 vins Exp $
+
+Add NetBSD support.
+https://github.com/libimobiledevice/libimobiledevice-glue/pull/52
+
+--- src/socket.c.orig 2025-07-31 18:18:24.287306854 +0000
++++ src/socket.c
+@@ -56,7 +56,7 @@
+ #ifdef AF_INET6
+ #include <net/if.h>
+ #include <ifaddrs.h>
+-#if defined (__APPLE__) || defined (__FreeBSD__) || defined (__HAIKU__)
++#if defined (__APPLE__) || defined (__FreeBSD__) || defined (__HAIKU__) || defined (__NetBSD__)
+ #include <net/if_dl.h>
+ #endif
+ #ifdef __linux__
+@@ -907,13 +907,13 @@ int get_primary_mac_address(unsigned cha
+ if (ifa->ifa_flags & IFF_LOOPBACK) {
+ continue;
+ }
+-#if defined(__APPLE__) || defined (__FreeBSD__) || defined (__HAIKU__)
++#if defined(__APPLE__) || defined (__FreeBSD__) || defined (__HAIKU__) || defined (__NetBSD__)
+ if (ifa->ifa_addr->sa_family != AF_LINK) {
+ continue;
+ }
+ #if defined (__APPLE__)
+ if (!strcmp(ifa->ifa_name, "en0")) {
+-#elif defined (__FreeBSD__) || defined (__HAIKU__)
++#elif defined (__FreeBSD__) || defined (__HAIKU__) || defined (__NetBSD__)
+ {
+ #endif
+ memcpy(mac_addr_buf, (unsigned char *)LLADDR((struct sockaddr_dl *)(ifa)->ifa_addr), 6);
Index: pkgsrc/misc/libimobiledevice-glue/patches/patch-src_utils.c
diff -u /dev/null pkgsrc/misc/libimobiledevice-glue/patches/patch-src_utils.c:1.1
--- /dev/null Fri May 1 19:49:48 2026
+++ pkgsrc/misc/libimobiledevice-glue/patches/patch-src_utils.c Fri May 1 19:49:48 2026
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_utils.c,v 1.1 2026/05/01 19:49:48 vins Exp $
+
+Fix ctype(3) usage.
+https://github.com/libimobiledevice/libimobiledevice-glue/pull/52
+
+--- src/utils.c.orig 2025-07-31 18:18:48.354814064 +0000
++++ src/utils.c
+@@ -220,7 +220,7 @@ char *string_toupper(char* str)
+ char *res = strdup(str);
+ size_t i;
+ for (i = 0; i < strlen(res); i++) {
+- res[i] = toupper(res[i]);
++ res[i] = toupper((unsigned char)res[i]);
+ }
+ return res;
+ }
Home |
Main Index |
Thread Index |
Old Index