Index: devel/Makefile =================================================================== --- devel/Makefile +++ devel/Makefile @@ -1162,6 +1162,7 @@ SUBDIR += libdwarf SUBDIR += libe SUBDIR += libedit + SUBDIR += libefiboot SUBDIR += libegit2 SUBDIR += libeio SUBDIR += libelf @@ -1221,6 +1222,7 @@ SUBDIR += libgta SUBDIR += libgtop SUBDIR += libgudev + SUBDIR += libgusb SUBDIR += libgutenfetch SUBDIR += libhash SUBDIR += libhid Index: devel/libefiboot/Makefile =================================================================== --- /dev/null +++ devel/libefiboot/Makefile @@ -0,0 +1,40 @@ +# Created by: Edward Tomasz Napierala + +PORTNAME= libefiboot +PORTVERSION= 0.24 +PORTREVISION= 1 +CATEGORIES= devel + +MAINTAINER= ports@FreeBSD.org +COMMENT= Tools and library to manipulate EFI variables + +LICENSE= LGPL21 + +NOT_FOR_ARCHS= powerpc powerpc64 powerpspe sparc64 +NOT_FOR_ARCHS_REASON= specification only supports little-endian processors + +LIB_DEPENDS= libpopt.so:devel/popt + +USES= gmake localbase pkgconfig +USE_GCC= yes +USE_GITHUB= yes +GH_ACCOUNT= rhboot +GH_PROJECT= efivar +USE_LDCONFIG= yes + +.include + +post-patch: + @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/src/efiboot.pc.in + +do-install: + ${INSTALL_LIB} ${WRKSRC}/src/libefiboot.so ${STAGEDIR}${PREFIX}/lib/libefiboot.so.0.24 + ${LN} -fs libefiboot.so.0.24 ${STAGEDIR}${PREFIX}/lib/libefiboot.so.0 + ${LN} -fs libefiboot.so.0.24 ${STAGEDIR}${PREFIX}/lib/libefiboot.so + ${MKDIR} ${STAGEDIR}${PREFIX}/include/efivar/ + ${INSTALL_DATA} ${WRKSRC}/src/include/efivar/efiboot.h ${STAGEDIR}${PREFIX}/include/efivar/ + ${INSTALL_DATA} ${WRKSRC}/src/include/efivar/efiboot-creator.h ${STAGEDIR}${PREFIX}/include/efivar/ + ${INSTALL_DATA} ${WRKSRC}/src/include/efivar/efiboot-loadopt.h ${STAGEDIR}${PREFIX}/include/efivar/ + ${INSTALL_DATA} ${WRKSRC}/src/efiboot.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig + +.include Index: devel/libefiboot/distinfo =================================================================== --- /dev/null +++ devel/libefiboot/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1544125008 +SHA256 (rhboot-efivar-0.24_GH0.tar.gz) = 15a4f6a1fa54eb6df817b24965be278694e8a5e1b4d3a0cd6091d139d56fb1ba +SIZE (rhboot-efivar-0.24_GH0.tar.gz) = 81393 Index: devel/libefiboot/files/patch-Make.defaults =================================================================== --- /dev/null +++ devel/libefiboot/files/patch-Make.defaults @@ -0,0 +1,18 @@ +--- Make.defaults ++++ Make.defaults +@@ -1,5 +1,5 @@ + prefix ?= /usr/ +-libdir ?= $(prefix)/lib64/ ++libdir ?= $(prefix)/local/lib/ + datadir ?= $(prefix)/share/ + mandir ?= $(datadir)/man/ + includedir ?= $(prefix)/include/ +@@ -17,7 +17,7 @@ CFLAGS ?= $(OPTIMIZE) -g3 + CFLAGS := $(CFLAGS) + LDFLAGS ?= + LDFLAGS := $(LDFLAGS) +-AR := $(CROSS_COMPILE)gcc-ar ++AR := $(CROSS_COMPILE)ar + NM := $(CROSS_COMPILE)gcc-nm + RANLIB := $(CROSS_COMPILE)gcc-ranlib + Index: devel/libefiboot/files/patch-Makefile =================================================================== --- /dev/null +++ devel/libefiboot/files/patch-Makefile @@ -0,0 +1,11 @@ +--- Makefile ++++ Makefile +@@ -4,6 +4,8 @@ include $(TOPDIR)/Make.version + include $(TOPDIR)/Make.rules + include $(TOPDIR)/Make.defaults + ++unexport MAKEFLAGS ++ + SUBDIRS := src docs + + all : | efivar.spec Make.version Index: devel/libefiboot/files/patch-gcc.specs =================================================================== --- /dev/null +++ devel/libefiboot/files/patch-gcc.specs @@ -0,0 +1,17 @@ +--- gcc.specs ++++ gcc.specs +@@ -2,7 +2,7 @@ + + -D_GNU_SOURCE + + *efivar_cpp_options: +- -Werror -Wall -std=gnu11 -Wextra ++ -Werror -Wall -std=gnu11 -Wextra -Wno-error=duplicate-decl-specifier -Wno-error=address-of-packed-member -Wno-error=stringop-overflow + + *cpp_options: + + %(efivar_cpp_options) +@@ -14,4 +14,4 @@ + + %{!shared:%{!static:%{!r:-pie}}} %{static:-Wl,-no-fatal-warnings -Wl,-static -static -Wl,-z,relro,-z,now} + + *link: +-+ %{!static:--fatal-warnings} --no-undefined-version --no-allow-shlib-undefined --add-needed -z now --build-id %{!static:%{!shared:-PIE}} %{shared:-z relro -PIC} %{static:% + #include + #include +-#include ++#include + #include + #include + #include + #include +-#include + #include + #include + +@@ -39,6 +38,197 @@ + #include "list.h" + #include "util.h" + ++/* ++ * mntent ++ * mntent.h - compatibility header for FreeBSD ++ * ++ * Copyright (c) 2001 David Rufino ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ */ ++ ++#ifndef VIFM__UTILS__MNTENT_H__ ++#define VIFM__UTILS__MNTENT_H__ ++ ++#include ++#include ++ ++#define MOUNTED "dummy" ++ ++#define MNTTYPE_NFS "nfs" ++ ++struct mntent ++{ ++ char *mnt_fsname; ++ char *mnt_dir; ++ char *mnt_type; ++ char *mnt_opts; ++ int mnt_freq; ++ int mnt_passno; ++}; ++ ++#define setmntent(x,y) ((FILE *)0x1) ++struct mntent * getmntent(FILE *fp); ++char * hasmntopt(const struct mntent *mnt, const char option[]); ++#define endmntent(x) ((int)1) ++ ++#endif /* VIFM__UTILS__MNTENT_H__ */ ++ ++#include ++#include ++#include ++ ++#include ++#include ++ ++#ifdef __NetBSD__ ++#define statfs statvfs ++#define f_flags f_flag ++#endif ++ ++static struct mntent * statfs_to_mntent(struct statfs *mntbuf); ++static char * flags2opts(int flags); ++static char * catopt(char s0[], const char s1[]); ++ ++char * ++hasmntopt(const struct mntent *mnt, const char option[]) ++{ ++ char *opt, *optbuf; ++ ++ optbuf = strdup(mnt->mnt_opts); ++ for(opt = optbuf; (opt = strtok(opt, " ")) != NULL; opt = NULL) ++ { ++ if(!strcasecmp(opt, option)) ++ { ++ opt = opt - optbuf + mnt->mnt_opts; ++ free(optbuf); ++ return (opt); ++ } ++ } ++ free(optbuf); ++ return NULL; ++} ++ ++struct mntent * ++getmntent(FILE *fp) ++{ ++ static int pos = -1; ++ static int mntsize = -1; ++ ++ static struct statfs *mntbuf; ++ ++ (void)fp; ++ ++ if(pos == -1 || mntsize == -1) ++ { ++ mntsize = getmntinfo(&mntbuf, MNT_NOWAIT); ++ } ++ ++ pos++; ++ if(pos == mntsize) ++ { ++ pos = mntsize = -1; ++ return NULL; ++ } ++ ++ return statfs_to_mntent(&mntbuf[pos]); ++} ++ ++static struct mntent * ++statfs_to_mntent(struct statfs *mntbuf) ++{ ++ static struct mntent _mntent; ++ static char opts_buf[40], *tmp; ++ ++ _mntent.mnt_fsname = mntbuf->f_mntfromname; ++ _mntent.mnt_dir = mntbuf->f_mntonname; ++ _mntent.mnt_type = mntbuf->f_fstypename; ++ tmp = flags2opts (mntbuf->f_flags); ++ if(tmp != NULL) ++ { ++ opts_buf[sizeof(opts_buf) - 1] = '\0'; ++ strncpy(opts_buf, tmp, sizeof(opts_buf) - 1); ++ free(tmp); ++ } ++ else ++ { ++ *opts_buf = '\0'; ++ } ++ _mntent.mnt_opts = opts_buf; ++ _mntent.mnt_freq = _mntent.mnt_passno = 0; ++ return &_mntent; ++} ++ ++static char * ++flags2opts(int flags) ++{ ++ char *res = catopt(NULL, (flags & MNT_RDONLY) ? "ro" : "rw"); ++ if(flags & MNT_SYNCHRONOUS) res = catopt(res, "sync"); ++ if(flags & MNT_NOEXEC) res = catopt(res, "noexec"); ++ if(flags & MNT_NOSUID) res = catopt(res, "nosuid"); ++#ifndef __OpenBSD__ ++ if(flags & MNT_UNION) res = catopt(res, "union"); ++#endif ++ if(flags & MNT_ASYNC) res = catopt(res, "async"); ++ if(flags & MNT_NOATIME) res = catopt(res, "noatime"); ++#if !defined(__APPLE__) && !defined(__OpenBSD__) && !defined(__NetBSD__) ++ if(flags & MNT_NOCLUSTERR) res = catopt(res, "noclusterr"); ++ if(flags & MNT_NOCLUSTERW) res = catopt(res, "noclusterw"); ++ if(flags & MNT_NOSYMFOLLOW) res = catopt(res, "nosymfollow"); ++ if(flags & MNT_SUIDDIR) res = catopt(res, "suiddir"); ++#endif ++ ++ return res; ++} ++ ++static char * ++catopt(char s0[], const char s1[]) ++{ ++ char *cp; ++ ++ if(s1 == NULL || *s1 == '\0') ++ { ++ return s0; ++ } ++ if(s0 && *s0) ++ { ++ const size_t i = strlen(s0) + strlen(s1) + 1 + 1; ++ if((cp = malloc(i)) == NULL) ++ { ++ return NULL; ++ } ++ (void)snprintf(cp, i, "%s %s", s0, s1); ++ } ++ else ++ { ++ cp = strdup(s1); ++ } ++ ++ free(s0); ++ return cp; ++} ++ ++ + static int + __attribute__((__nonnull__ (1,2,3))) + find_file(const char * const filepath, char **devicep, char **relpathp) +@@ -129,7 +319,7 @@ find_file(const char * const filepath, char **devicep, char **relpathp) + } + err: + if (mounts) +- endmntent(mounts); ++ (void)endmntent(mounts); + return ret; + } + Index: devel/libefiboot/files/patch-src-disk.c =================================================================== --- /dev/null +++ devel/libefiboot/files/patch-src-disk.c @@ -0,0 +1,20 @@ +--- src/disk.c ++++ src/disk.c +@@ -18,7 +18,6 @@ + * . + * + */ +-#include + #include + #include + #include +@@ -156,7 +155,8 @@ msdos_disk_get_partition_info (int fd, int write_signature, + } else if (num == 0) { + /* Whole disk */ + *start = 0; +- ioctl(fd, BLKGETSIZE, &disk_size); ++ //XXX ++ //ioctl(fd, BLKGETSIZE, &disk_size); + *size = disk_size; + } else if (num >= 1 && num <= 4) { + /* Primary partition */ Index: devel/libefiboot/files/patch-src-dp.h =================================================================== --- /dev/null +++ devel/libefiboot/files/patch-src-dp.h @@ -0,0 +1,10 @@ +--- src/dp.h ++++ src/dp.h +@@ -20,7 +20,6 @@ + #ifndef _EFIVAR_INTERNAL_DP_H + #define _EFIVAR_INTERNAL_DP_H + +-#include + #include + #include + #include Index: devel/libefiboot/files/patch-src-efiboot.pc.in =================================================================== --- /dev/null +++ devel/libefiboot/files/patch-src-efiboot.pc.in @@ -0,0 +1,15 @@ +--- src/efiboot.pc.in ++++ src/efiboot.pc.in +@@ -1,11 +1,10 @@ + prefix=/usr + exec_prefix=/usr + libdir=@@LIBDIR@@ +-includedir=/usr/include ++includedir=/usr/local/include + + Name: efiboot + Description: UEFI Boot variable support + Version: @@VERSION@@ +-Requires.private: efivar + Libs: -L${libdir} -lefiboot + Cflags: -I${includedir}/efivar Index: devel/libefiboot/files/patch-src-efivar.c =================================================================== --- /dev/null +++ devel/libefiboot/files/patch-src-efivar.c @@ -0,0 +1,38 @@ +--- src/efivar.c ++++ src/efivar.c +@@ -63,7 +63,7 @@ list_all_variables(void) + int rc; + while ((rc = efi_get_next_variable_name(&guid, &name)) > 0) + printf(GUID_FORMAT "-%s\n", +- guid->a, guid->b, guid->c, bswap_16(guid->d), ++ guid->a, guid->b, guid->c, bswap16(guid->d), + guid->e[0], guid->e[1], guid->e[2], guid->e[3], + guid->e[4], guid->e[5], name); + +@@ -153,7 +153,7 @@ show_variable(char *guid_name, int display_type) + + if (display_type == SHOW_VERBOSE) { + printf("GUID: "GUID_FORMAT "\n", +- guid.a, guid.b, guid.c, bswap_16(guid.d), ++ guid.a, guid.b, guid.c, bswap16(guid.d), + guid.e[0], guid.e[1], guid.e[2], guid.e[3], + guid.e[4], guid.e[5]); + printf("Name: \"%s\"\n", name); +@@ -280,7 +280,7 @@ prepare_data(const char *filename, void **data, size_t *data_size) + goto err; + + buflen = statbuf.st_size; +- buf = mmap(NULL, buflen, PROT_READ, MAP_PRIVATE|MAP_POPULATE, fd, 0); ++ buf = mmap(NULL, buflen, PROT_READ, MAP_PRIVATE, fd, 0); + if (!buf) + goto err; + +@@ -436,7 +436,7 @@ int main(int argc, char *argv[]) + break; + printf("{"GUID_FORMAT"} {%s} %s %s\n", + guid[i].guid.a, guid[i].guid.b, +- guid[i].guid.c, bswap_16(guid[i].guid.d), ++ guid[i].guid.c, bswap16(guid[i].guid.d), + guid[i].guid.e[0], guid[i].guid.e[1], + guid[i].guid.e[2], guid[i].guid.e[3], + guid[i].guid.e[4], guid[i].guid.e[5], Index: devel/libefiboot/files/patch-src-efivar_endian.h =================================================================== --- /dev/null +++ devel/libefiboot/files/patch-src-efivar_endian.h @@ -0,0 +1,49 @@ +--- src/efivar_endian.h ++++ src/efivar_endian.h +@@ -20,7 +20,7 @@ + #ifndef _EFIVAR_ENDIAN_H + #define _EFIVAR_ENDIAN_H + +-#include ++#include + + #if __BYTE_ORDER == __LITTLE_ENDIAN + #define cpu_to_le16(x) (x) +@@ -29,12 +29,12 @@ + #define le16_to_cpu(x) (x) + #define le32_to_cpu(x) (x) + #define le64_to_cpu(x) (x) +-#define cpu_to_be16(x) __bswap_16(x) +-#define cpu_to_be32(x) __bswap_32(x) +-#define cpu_to_be64(x) __bswap_64(x) +-#define be16_to_cpu(x) __bswap_16(x) +-#define be32_to_cpu(x) __bswap_32(x) +-#define be64_to_cpu(x) __bswap_64(x) ++#define cpu_to_be16(x) bswap16(x) ++#define cpu_to_be32(x) bswap32(x) ++#define cpu_to_be64(x) bswap64(x) ++#define be16_to_cpu(x) bswap16(x) ++#define be32_to_cpu(x) bswap32(x) ++#define be64_to_cpu(x) bswap64(x) + #else + #define cpu_to_be16(x) (x) + #define cpu_to_be32(x) (x) +@@ -42,12 +42,12 @@ + #define be16_to_cpu(x) (x) + #define be32_to_cpu(x) (x) + #define be64_to_cpu(x) (x) +-#define cpu_to_le16(x) __bswap_16(x) +-#define cpu_to_le32(x) __bswap_32(x) +-#define cpu_to_le64(x) __bswap_64(x) +-#define le16_to_cpu(x) __bswap_16(x) +-#define le32_to_cpu(x) __bswap_32(x) +-#define le64_to_cpu(x) __bswap_64(x) ++#define cpu_to_le16(x) bswap16(x) ++#define cpu_to_le32(x) bswap32(x) ++#define cpu_to_le64(x) bswap64(x) ++#define le16_to_cpu(x) bswap16(x) ++#define le32_to_cpu(x) bswap32(x) ++#define le64_to_cpu(x) bswap64(x) + #endif + + #endif /* _EFIVAR_ENDIAN_H */ Index: devel/libefiboot/files/patch-src-efivarfs.c =================================================================== --- /dev/null +++ devel/libefiboot/files/patch-src-efivarfs.c @@ -0,0 +1,56 @@ +--- src/efivarfs.c ++++ src/efivarfs.c +@@ -20,23 +20,20 @@ + + #include + #include +-#include + #include + #include + #include ++#include + #include + #include + #include + #include +-#include + #include + + #include "lib.h" + #include "generics.h" + #include "util.h" + +-#include +- + #ifndef EFIVARFS_MAGIC + # define EFIVARFS_MAGIC 0xde5e81e4 + #endif +@@ -85,7 +82,7 @@ efivarfs_probe(void) + #define make_efivarfs_path(str, guid, name) ({ \ + asprintf(str, "%s%s-" GUID_FORMAT, get_efivarfs_path(), \ + name, (guid).a, (guid).b, (guid).c, \ +- bswap_16((guid).d), \ ++ bswap16((guid).d), \ + (guid).e[0], (guid).e[1], (guid).e[2], \ + (guid).e[3], (guid).e[4], (guid).e[5]); \ + }) +@@ -93,6 +90,7 @@ efivarfs_probe(void) + static int + efivarfs_set_fd_immutable(int fd, int immutable) + { ++#if 0 + unsigned int flags; + int rc = 0; + +@@ -111,6 +109,11 @@ efivarfs_set_fd_immutable(int fd, int immutable) + } + + return rc; ++#else ++ (void)fd; ++ (void)immutable; ++ return -1; ++#endif + } + + static int Index: devel/libefiboot/files/patch-src-gpt.c =================================================================== --- /dev/null +++ devel/libefiboot/files/patch-src-gpt.c @@ -0,0 +1,43 @@ +--- src/gpt.c ++++ src/gpt.c +@@ -22,7 +22,6 @@ + * + */ + +-#include + #include + #include + #include +@@ -44,6 +43,17 @@ + #define BLKGETLASTSECT _IO(0x12,108) /* get last sector of block device */ + #endif + ++#if BYTE_ORDER == BIG_ENDIAN ++#define __le64_to_cpu(n) bswap64(n) ++#define __le32_to_cpu(n) bswap32(n) ++#define __le16_to_cpu(n) bswap16(n) ++#else ++#define __le64_to_cpu(n) (n) ++#define __le32_to_cpu(n) (n) ++#define __le16_to_cpu(n) (n) ++#endif ++#define __cpu_to_le32(n) __le32_to_cpu(n) ++ + struct blkdev_ioctl_param { + unsigned int block; + size_t content_length; +@@ -151,12 +161,12 @@ _get_num_sectors(int filedes) + uint64_t bytes=0; + int rc; + if (kernel_has_blkgetsize64()) { +- rc = ioctl(filedes, BLKGETSIZE64, &bytes); ++ rc = 1;//ioctl(filedes, BLKGETSIZE64, &bytes); XXX + if (!rc) + return bytes / get_sector_size(filedes); + } + +- rc = ioctl(filedes, BLKGETSIZE, §ors); ++ rc = 1;//ioctl(filedes, BLKGETSIZE, §ors); XXX + if (rc) + return 0; + Index: devel/libefiboot/files/patch-src-guid.h =================================================================== --- /dev/null +++ devel/libefiboot/files/patch-src-guid.h @@ -0,0 +1,10 @@ +--- src/guid.h ++++ src/guid.h +@@ -21,7 +21,6 @@ + #ifndef LIBEFIVAR_GUID_H + #define LIBEFIVAR_GUID_H 1 + +-#include + #include + #include + #include Index: devel/libefiboot/files/patch-src-guid.c =================================================================== --- /dev/null +++ devel/libefiboot/files/patch-src-guid.c @@ -0,0 +1,10 @@ +--- src/guid.c ++++ src/guid.c +@@ -21,6 +21,7 @@ + #include + #include + #include ++#include + + #include "efivar.h" + #include "guid.h" Index: devel/libefiboot/files/patch-src-include-efivar-efiboot.h =================================================================== --- /dev/null +++ devel/libefiboot/files/patch-src-include-efivar-efiboot.h @@ -0,0 +1,17 @@ +--- src/include/efivar/efiboot.h ++++ src/include/efivar/efiboot.h +@@ -25,12 +25,13 @@ + #include + #include + #include ++#include + #include + #include + #include +-#include + + #include ++#include + + #include + #include Index: devel/libefiboot/files/patch-src-include-efivar-efivar.h =================================================================== --- /dev/null +++ devel/libefiboot/files/patch-src-include-efivar-efivar.h @@ -0,0 +1,28 @@ +--- src/include/efivar/efivar.h ++++ src/include/efivar/efivar.h +@@ -20,15 +20,14 @@ + #ifndef EFIVAR_H + #define EFIVAR_H 1 + +-#include + #include + #include + #include + #include ++#include + #include + #include + #include +-#include + + typedef struct { + uint32_t a; +@@ -44,7 +43,7 @@ typedef struct { + + #if BYTE_ORDER == LITTLE_ENDIAN + #define EFI_GUID(a,b,c,d,e0,e1,e2,e3,e4,e5) \ +-((efi_guid_t) {(a), (b), (c), bswap_16(d), { (e0), (e1), (e2), (e3), (e4), (e5) }}) ++((efi_guid_t) {(a), (b), (c), bswap16(d), { (e0), (e1), (e2), (e3), (e4), (e5) }}) + #else + #define EFI_GUID(a,b,c,d,e0,e1,e2,e3,e4,e5) \ + ((efi_guid_t) {(a), (b), (c), (d), { (e0), (e1), (e2), (e3), (e4), (e5) }}) Index: devel/libefiboot/files/patch-src-lib.c =================================================================== --- /dev/null +++ devel/libefiboot/files/patch-src-lib.c @@ -0,0 +1,12 @@ +--- src/lib.c ++++ src/lib.c +@@ -69,7 +69,8 @@ efi_set_variable(efi_guid_t guid, const char *name, uint8_t *data, + { + return ops->set_variable(guid, name, data, data_size, attributes, mode); + } +-__asm__(".symver efi_set_variable,efi_set_variable@@LIBEFIVAR_0.24"); ++//XXX ++//__asm__(".symver efi_set_variable,efi_set_variable@@LIBEFIVAR_0.24"); + + int + __attribute__((__nonnull__ (2, 3))) Index: devel/libefiboot/files/patch-src-linux.c =================================================================== --- /dev/null +++ devel/libefiboot/files/patch-src-linux.c @@ -0,0 +1,34 @@ +--- src/linux.c ++++ src/linux.c +@@ -23,11 +23,7 @@ + #include + #include + #include +-#include +-#include +-#include + #include +-#include + #include + #include + #include +@@ -1000,6 +996,13 @@ ssize_t + __attribute__((__visibility__ ("hidden"))) + make_mac_path(uint8_t *buf, ssize_t size, const char * const ifname) + { ++ (void)buf; ++ (void)size; ++ (void)ifname; ++ (void)make_net_pci_path; ++ return -1; ++ // XXX ++#if 0 + struct ifreq ifr; + struct ethtool_drvinfo drvinfo = { 0, }; + int fd, rc; +@@ -1042,4 +1045,5 @@ err: + if (fd >= 0) + close(fd); + return ret; ++#endif + } Index: devel/libefiboot/files/patch-src-makeguids.c =================================================================== --- /dev/null +++ devel/libefiboot/files/patch-src-makeguids.c @@ -0,0 +1,26 @@ +--- src/makeguids.c ++++ src/makeguids.c +@@ -150,18 +150,18 @@ main(int argc, char *argv[]) + fprintf(header, "#ifndef EFIVAR_GUIDS_H\n#define EFIVAR_GUIDS_H 1\n\n"); + + fprintf(symout, "#include \n"); +- fprintf(symout, "#include \n"); ++ fprintf(symout, "#include \n"); + fprintf(symout, """\n\ + #if BYTE_ORDER == BIG_ENDIAN\n\ + #define cpu_to_be32(n) (n)\n\ + #define cpu_to_be16(n) (n)\n\ +-#define cpu_to_le32(n) (__bswap_constant_32(n))\n\ +-#define cpu_to_le16(n) (__bswap_constant_16(n))\n\ ++#define cpu_to_le32(n) (__builtin_bswap32(n))\n\ ++#define cpu_to_le16(n) (__builtin_bswap16(n))\n\ + #else\n\ + #define cpu_to_le32(n) (n)\n\ + #define cpu_to_le16(n) (n)\n\ +-#define cpu_to_be32(n) (__bswap_constant_32(n))\n\ +-#define cpu_to_be16(n) (__bswap_constant_16(n))\n\ ++#define cpu_to_be32(n) (__builtin_bswap32(n))\n\ ++#define cpu_to_be16(n) (__builtin_bswap16(n))\n\ + #endif\n\ + """); + Index: devel/libefiboot/files/patch-src-test-tester.c =================================================================== --- /dev/null +++ devel/libefiboot/files/patch-src-test-tester.c @@ -0,0 +1,10 @@ +--- src/test/tester.c ++++ src/test/tester.c +@@ -15,7 +15,6 @@ + * + */ + +-#include + #include + #include + #include Index: devel/libefiboot/files/patch-src-util.h =================================================================== --- /dev/null +++ devel/libefiboot/files/patch-src-util.h @@ -0,0 +1,37 @@ +--- src/util.h ++++ src/util.h +@@ -125,14 +125,34 @@ static inline int + __attribute__((unused)) + get_sector_size(int filedes) + { ++#if 0 + int rc, sector_size = 512; + + rc = ioctl(filedes, BLKSSZGET, §or_size); + if (rc) + sector_size = 512; + return sector_size; ++#else ++ // XXX ++ (void)filedes; ++ return 512; ++#endif + } + ++#define strdupa(str) \ ++ ({ \ ++ char *_tmp = NULL; \ ++ asprintf(&_tmp, "%s", (str)); \ ++ _tmp; \ ++ }) ++ ++#define strndupa(str, len) \ ++ ({ \ ++ char *_tmp = NULL; \ ++ asprintf(&_tmp, "%.*s", (int)(len), (str)); \ ++ _tmp; \ ++ }) ++ + #define asprintfa(str, fmt, args...) \ + ({ \ + char *_tmp = NULL; \ Index: devel/libefiboot/files/patch-src-vars.c =================================================================== --- /dev/null +++ devel/libefiboot/files/patch-src-vars.c @@ -0,0 +1,56 @@ +--- src/vars.c ++++ src/vars.c +@@ -24,6 +24,7 @@ + #include + #include + #include ++#include + #include + #include + #include +@@ -239,7 +240,7 @@ vars_get_variable_size(efi_guid_t guid, const char *name, size_t *size) + + char *path = NULL; + int rc = asprintf(&path, "%s%s-"GUID_FORMAT"/size", get_vars_path(), +- name, guid.a, guid.b, guid.c, bswap_16(guid.d), ++ name, guid.a, guid.b, guid.c, bswap16(guid.d), + guid.e[0], guid.e[1], guid.e[2], guid.e[3], + guid.e[4], guid.e[5]); + if (rc < 0) +@@ -292,7 +293,7 @@ vars_get_variable(efi_guid_t guid, const char *name, uint8_t **data, + char *path; + int rc = asprintf(&path, "%s%s-" GUID_FORMAT "/raw_var", + get_vars_path(), +- name, guid.a, guid.b, guid.c, bswap_16(guid.d), ++ name, guid.a, guid.b, guid.c, bswap16(guid.d), + guid.e[0], guid.e[1], guid.e[2], + guid.e[3], guid.e[4], guid.e[5]); + if (rc < 0) +@@ -365,7 +366,7 @@ vars_del_variable(efi_guid_t guid, const char *name) + char *path; + int rc = asprintf(&path, "%s%s-" GUID_FORMAT "/raw_var", + get_vars_path(), +- name, guid.a, guid.b, guid.c, bswap_16(guid.d), ++ name, guid.a, guid.b, guid.c, bswap16(guid.d), + guid.e[0], guid.e[1], guid.e[2], + guid.e[3], guid.e[4], guid.e[5]); + if (rc < 0) +@@ -463,7 +464,7 @@ vars_chmod_variable(efi_guid_t guid, const char *name, mode_t mode) + + char *path; + int rc = asprintf(&path, "%s%s-" GUID_FORMAT, get_vars_path(), +- name, guid.a, guid.b, guid.c, bswap_16(guid.d), ++ name, guid.a, guid.b, guid.c, bswap16(guid.d), + guid.e[0], guid.e[1], guid.e[2], guid.e[3], + guid.e[4], guid.e[5]); + if (rc < 0) +@@ -495,7 +496,7 @@ vars_set_variable(efi_guid_t guid, const char *name, uint8_t *data, + + char *path; + int rc = asprintf(&path, "%s%s-" GUID_FORMAT "/data", get_vars_path(), +- name, guid.a, guid.b, guid.c, bswap_16(guid.d), ++ name, guid.a, guid.b, guid.c, bswap16(guid.d), + guid.e[0], guid.e[1], guid.e[2], guid.e[3], + guid.e[4], guid.e[5]); + if (rc < 0) + Index: devel/libefiboot/pkg-descr =================================================================== --- /dev/null +++ devel/libefiboot/pkg-descr @@ -0,0 +1,3 @@ +Tools and library to manipulate EFI variables. + +WWW: https://github.com/rhboot/efivar Index: devel/libefiboot/pkg-plist =================================================================== --- /dev/null +++ devel/libefiboot/pkg-plist @@ -0,0 +1,7 @@ +include/efivar/efiboot-creator.h +include/efivar/efiboot-loadopt.h +include/efivar/efiboot.h +lib/libefiboot.so +lib/libefiboot.so.0 +lib/libefiboot.so.0.24 +libdata/pkgconfig/efiboot.pc Index: devel/libgusb/Makefile =================================================================== --- /dev/null +++ devel/libgusb/Makefile @@ -0,0 +1,26 @@ +# $FreeBSD$ + +PORTNAME= libgusb +DISTVERSION= 0.3.7 +CATEGORIES= devel + +MAINTAINER= norbert.kaminski@3mdeb.com +COMMENT= GObject wrapper for libusb1 + +LICENSE= LGPL21 + +BUILD_DEPENDS= gobject-introspection>=1.36:devel/gobject-introspection \ + gtkdocize:textproc/gtk-doc \ + vala:lang/vala + +USES= gnome meson pkgconfig python:3.7+ +USE_GITHUB= yes +GH_ACCOUNT= hughsie +USE_GNOME= glib20 +USE_LDCONFIG= yes + +OPTIONS_DEFINE= DOCS + +DOCS_MESON_TRUE= docs + +.include Index: devel/libgusb/distinfo =================================================================== --- /dev/null +++ devel/libgusb/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1622115785 +SHA256 (hughsie-libgusb-0.3.7_GH0.tar.gz) = 350dbdd797d152b0fe876484ce74379d83ac104c22a6ede39979ea48c7e6d638 +SIZE (hughsie-libgusb-0.3.7_GH0.tar.gz) = 49170 Index: devel/libgusb/pkg-descr =================================================================== --- /dev/null +++ devel/libgusb/pkg-descr @@ -0,0 +1,10 @@ +XML is slow to parse and strings inside the document cannot be memory mapped as +they do not have a trailing NUL char. The libxmlb library takes XML source, and +converts it to a structured binary representation with a deduplicated string +table -- where the strings have the NULs included. + +This allows an application to mmap the binary XML file, do an XPath query and +return some strings without actually parsing the entire document. This is all +done using (almost) zero allocations and no actual copying of the binary data. + +WWW: https://github.com/hughsie/libxmlb Index: devel/libgusb/pkg-plist =================================================================== --- /dev/null +++ devel/libgusb/pkg-plist @@ -0,0 +1,44 @@ +bin/gusbcmd +include/gusb-1/gusb.h +include/gusb-1/gusb/gusb-autocleanups.h +include/gusb-1/gusb/gusb-context-private.h +include/gusb-1/gusb/gusb-context.h +include/gusb-1/gusb/gusb-device-list.h +include/gusb-1/gusb/gusb-device-private.h +include/gusb-1/gusb/gusb-device.h +include/gusb-1/gusb/gusb-endpoint-private.h +include/gusb-1/gusb/gusb-endpoint.h +include/gusb-1/gusb/gusb-interface-private.h +include/gusb-1/gusb/gusb-interface.h +include/gusb-1/gusb/gusb-source.h +include/gusb-1/gusb/gusb-util.h +include/gusb-1/gusb/gusb-version.h +lib/girepository-1.0/GUsb-1.0.typelib +lib/libgusb.so +lib/libgusb.so.2 +lib/libgusb.so.2.0.10 +libdata/pkgconfig/gusb.pc +share/gir-1.0/GUsb-1.0.gir +%%PORTDOCS%%share/gtk-doc/html/gusb/faq.html +%%PORTDOCS%%share/gtk-doc/html/gusb/gusb-GUsbContext.html +%%PORTDOCS%%share/gtk-doc/html/gusb/gusb-GUsbDevice.html +%%PORTDOCS%%share/gtk-doc/html/gusb/gusb-GUsbDeviceList.html +%%PORTDOCS%%share/gtk-doc/html/gusb/gusb-gusb-interface.html +%%PORTDOCS%%share/gtk-doc/html/gusb/gusb-gusb-source.html +%%PORTDOCS%%share/gtk-doc/html/gusb/gusb-gusb-version.html +%%PORTDOCS%%share/gtk-doc/html/gusb/gusb.devhelp2 +%%PORTDOCS%%share/gtk-doc/html/gusb/home.png +%%PORTDOCS%%share/gtk-doc/html/gusb/index.html +%%PORTDOCS%%share/gtk-doc/html/gusb/introduction.html +%%PORTDOCS%%share/gtk-doc/html/gusb/left-insensitive.png +%%PORTDOCS%%share/gtk-doc/html/gusb/left.png +%%PORTDOCS%%share/gtk-doc/html/gusb/libgusb-helpers.html +%%PORTDOCS%%share/gtk-doc/html/gusb/libgusb.html +%%PORTDOCS%%share/gtk-doc/html/gusb/right-insensitive.png +%%PORTDOCS%%share/gtk-doc/html/gusb/right.png +%%PORTDOCS%%share/gtk-doc/html/gusb/specification.html +%%PORTDOCS%%share/gtk-doc/html/gusb/style.css +%%PORTDOCS%%share/gtk-doc/html/gusb/up-insensitive.png +%%PORTDOCS%%share/gtk-doc/html/gusb/up.png +share/vala/vapi/gusb.deps +share/vala/vapi/gusb.vapi Index: sysutils/Makefile =================================================================== --- sysutils/Makefile +++ sysutils/Makefile @@ -425,6 +425,8 @@ SUBDIR += fusefs-zip SUBDIR += fvcool SUBDIR += fwup + SUBDIR += fwupd + SUBDIR += fwupd-efi SUBDIR += gaffitter SUBDIR += ganglia-monitor-core SUBDIR += ganglia-webfrontend Index: sysutils/fwupd-efi/Makefile =================================================================== --- /dev/null +++ sysutils/fwupd-efi/Makefile @@ -0,0 +1,28 @@ +# Created by: Norbert Kamiński +# $FreeBSD$ + +PORTNAME= fwupd-efi +DISTVERSION= 1.0 +GH_TAGNAME= d74ab0fe +CATEGORIES= sysutils + +MAINTAINER= norbert.kaminski@3mdeb.com +COMMENT= EFI Application used by uefi-capsule plugin in fwupd + +LICENSE= LGPL21 + +BUILD_DEPENDS= ${LOCALBASE}/lib/libgnuefi.a:devel/gnu-efi \ + gcc:lang/gcc + +USES= meson pkgconfig python:3.7+ shebangfix +USE_GITHUB= yes +GH_ACCOUNT= fwupd +USE_LDCONFIG= yes + +USE_GCC= yes +SHEBANG_GLOB= *.py + +MESON_ARGS= -Defi-includedir=/usr/local/include/efi \ + -Defi-ldsdir=/usr/local/lib + +.include Index: sysutils/fwupd-efi/distinfo =================================================================== --- /dev/null +++ sysutils/fwupd-efi/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1622115262 +SHA256 (fwupd-fwupd-efi-1.0-d74ab0fe_GH0.tar.gz) = 2696b6e512be1371c89618f4f5cb9fa7a3870be99953185bee318d8a46b991da +SIZE (fwupd-fwupd-efi-1.0-d74ab0fe_GH0.tar.gz) = 36955 Index: sysutils/fwupd-efi/pkg-descr =================================================================== --- /dev/null +++ sysutils/fwupd-efi/pkg-descr @@ -0,0 +1,9 @@ +Make firmware updates automatic, safe, and reliable. + +fwupd is a simple daemon to allow session software to update device firmware on +your local machine. It is designed for desktops, but also usable on phones and +headless servers. You can either use a GUI software manager like GNOME Software +to view and apply updates, the command-line tool, or the system D-Bus interface +directly. + +WWW: https://fwupd.org/ Index: sysutils/fwupd-efi/pkg-plist =================================================================== --- /dev/null +++ sysutils/fwupd-efi/pkg-plist @@ -0,0 +1,2 @@ +libdata/pkgconfig/fwupd-efi.pc +libexec/fwupd/efi/fwupdx64.efi Index: sysutils/fwupd/Makefile =================================================================== --- /dev/null +++ sysutils/fwupd/Makefile @@ -0,0 +1,58 @@ +# Created by: Norbert Kamiński +# $FreeBSD$ + +PORTNAME= fwupd +DISTVERSION= 1.6.1 +GH_TAGNAME= 37a0448a +CATEGORIES= sysutils + +MAINTAINER= norbert.kaminski@3mdeb.com +COMMENT= Update firmware automatically, safely, and reliably + +LICENSE= LGPL21 + +BUILD_DEPENDS= gtkdoc-scan:textproc/gtk-doc \ + help2man:misc/help2man \ + vala:lang/vala \ + ${LOCALBASE}/libexec/fwupd/efi/fwupdx64.efi:sysutils/fwupd-efi \ + ${PYTHON_PKGNAMEPREFIX}gobject3>0:devel/py-gobject3@${PY_FLAVOR} +LIB_DEPENDS= libcurl.so:ftp/curl \ + libefiboot.so:devel/libefiboot \ + libelf.so:devel/libelf \ + libgcab-1.0.so:archivers/gcab \ + libgnutls.so:security/gnutls \ + libgpg-error.so:security/libgpg-error \ + libgpgme.so:security/gpgme \ + libgusb.so:devel/libgusb \ + libjcat.so:textproc/libjcat \ + libjson-glib-1.0.so:devel/json-glib \ + libxmlb.so:textproc/libxmlb \ + libefiboot.so:devel/gnu-efi + +RUN_DEPENDS= ${LOCALBASE}/libexec/fwupd/efi/fwupdx64.efi:sysutils/fwupd-efi + +USES= gnome libarchive meson pkgconfig python:3.7+ shebangfix sqlite +USE_GITHUB= yes +USE_GNOME= glib20 introspection:build +INSTALLS_ICONS= yes +USE_LDCONFIG= yes + +SHEBANG_GLOB= *.py + +MESON_ARGS= -Dgudev=false \ + -Dplugin_altos=false \ + -Dplugin_amt=false \ + -Dplugin_dell=false \ + -Dplugin_emmc=false \ + -Dplugin_nvme=false \ + -Dplugin_redfish=false \ + -Dplugin_synaptics_mst=false \ + -Dplugin_synaptics_rmi=false \ + -Dplugin_thunderbolt=false \ + -Dplugin_tpm=false \ + -Dpolkit=false \ + -Dsystemd=false \ + -Dtests=false \ + -Defi_binary=false + +.include Index: sysutils/fwupd/distinfo =================================================================== --- /dev/null +++ sysutils/fwupd/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1622115022 +SHA256 (fwupd-fwupd-1.6.1-37a0448a_GH0.tar.gz) = e63256de062faef06592e3cf31d102986d7aa19639bc65f30ff73402735170ab +SIZE (fwupd-fwupd-1.6.1-37a0448a_GH0.tar.gz) = 3764632 Index: sysutils/fwupd/files/patch-meson.build =================================================================== --- /dev/null +++ sysutils/fwupd/files/patch-meson.build @@ -0,0 +1,11 @@ +--- meson.build.orig 2021-05-27 16:04:23.899646000 +0200 ++++ meson.build 2021-05-27 16:04:48.083376000 +0200 +@@ -252,7 +252,7 @@ + libgcab = dependency('libgcab-1.0', version : '>= 1.0', fallback : ['gcab', 'gcab_dep']) + gcab = find_program('gcab', required : get_option('tests')) + bashcomp = dependency('bash-completion', required: false) +-python3 = find_program('python3') ++python3 = find_program('python3.8') + + if get_option('gnutls') + gnutls = dependency('gnutls', version : '>= 3.6.0') Index: sysutils/fwupd/pkg-descr =================================================================== --- /dev/null +++ sysutils/fwupd/pkg-descr @@ -0,0 +1,9 @@ +Make firmware updates automatic, safe, and reliable. + +fwupd is a simple daemon to allow session software to update device firmware on +your local machine. It is designed for desktops, but also usable on phones and +headless servers. You can either use a GUI software manager like GNOME Software +to view and apply updates, the command-line tool, or the system D-Bus interface +directly. + +WWW: https://fwupd.org/ Index: sysutils/fwupd/pkg-plist =================================================================== --- /dev/null +++ sysutils/fwupd/pkg-plist @@ -0,0 +1,207 @@ +bin/dbxtool +bin/dfu-tool +bin/fwupdagent +bin/fwupdate +bin/fwupdmgr +bin/fwupdtool +%%ETCDIR%%/daemon.conf +%%ETCDIR%%/remotes.d/lvfs-testing.conf +%%ETCDIR%%/remotes.d/lvfs.conf +%%ETCDIR%%/remotes.d/vendor-directory.conf +%%ETCDIR%%/remotes.d/vendor.conf +%%ETCDIR%%/uefi_capsule.conf +etc/pki/fwupd-metadata/GPG-KEY-Linux-Foundation-Metadata +etc/pki/fwupd-metadata/GPG-KEY-Linux-Vendor-Firmware-Service +etc/pki/fwupd-metadata/LVFS-CA.pem +etc/pki/fwupd/GPG-KEY-Linux-Foundation-Firmware +etc/pki/fwupd/GPG-KEY-Linux-Vendor-Firmware-Service +etc/pki/fwupd/LVFS-CA.pem +include/fwupd-1/fwupd.h +include/fwupd-1/fwupdplugin.h +include/fwupd-1/libfwupd/fwupd-client-sync.h +include/fwupd-1/libfwupd/fwupd-client.h +include/fwupd-1/libfwupd/fwupd-common.h +include/fwupd-1/libfwupd/fwupd-deprecated.h +include/fwupd-1/libfwupd/fwupd-device.h +include/fwupd-1/libfwupd/fwupd-enums.h +include/fwupd-1/libfwupd/fwupd-error.h +include/fwupd-1/libfwupd/fwupd-plugin.h +include/fwupd-1/libfwupd/fwupd-release.h +include/fwupd-1/libfwupd/fwupd-remote.h +include/fwupd-1/libfwupd/fwupd-security-attr.h +include/fwupd-1/libfwupd/fwupd-version.h +include/fwupd-1/libfwupdplugin/fu-archive.h +include/fwupd-1/libfwupdplugin/fu-bluez-device.h +include/fwupd-1/libfwupdplugin/fu-cabinet.h +include/fwupd-1/libfwupdplugin/fu-chunk.h +include/fwupd-1/libfwupdplugin/fu-common-cab.h +include/fwupd-1/libfwupdplugin/fu-common-guid.h +include/fwupd-1/libfwupdplugin/fu-common-version.h +include/fwupd-1/libfwupdplugin/fu-common.h +include/fwupd-1/libfwupdplugin/fu-context.h +include/fwupd-1/libfwupdplugin/fu-deprecated.h +include/fwupd-1/libfwupdplugin/fu-device-locker.h +include/fwupd-1/libfwupdplugin/fu-device-metadata.h +include/fwupd-1/libfwupdplugin/fu-device.h +include/fwupd-1/libfwupdplugin/fu-dfu-firmware.h +include/fwupd-1/libfwupdplugin/fu-dfuse-firmware.h +include/fwupd-1/libfwupdplugin/fu-efi-signature-list.h +include/fwupd-1/libfwupdplugin/fu-efi-signature.h +include/fwupd-1/libfwupdplugin/fu-efivar.h +include/fwupd-1/libfwupdplugin/fu-firmware-common.h +include/fwupd-1/libfwupdplugin/fu-firmware.h +include/fwupd-1/libfwupdplugin/fu-fmap-firmware.h +include/fwupd-1/libfwupdplugin/fu-hid-device.h +include/fwupd-1/libfwupdplugin/fu-hwids.h +include/fwupd-1/libfwupdplugin/fu-ihex-firmware.h +include/fwupd-1/libfwupdplugin/fu-io-channel.h +include/fwupd-1/libfwupdplugin/fu-plugin-vfuncs.h +include/fwupd-1/libfwupdplugin/fu-plugin.h +include/fwupd-1/libfwupdplugin/fu-quirks.h +include/fwupd-1/libfwupdplugin/fu-security-attrs.h +include/fwupd-1/libfwupdplugin/fu-smbios.h +include/fwupd-1/libfwupdplugin/fu-srec-firmware.h +include/fwupd-1/libfwupdplugin/fu-udev-device.h +include/fwupd-1/libfwupdplugin/fu-usb-device.h +include/fwupd-1/libfwupdplugin/fu-volume.h +lib/fwupd-plugins-3/libfu_plugin_analogix.so +lib/fwupd-plugins-3/libfu_plugin_bcm57xx.so +lib/fwupd-plugins-3/libfu_plugin_bios.so +lib/fwupd-plugins-3/libfu_plugin_ccgx.so +lib/fwupd-plugins-3/libfu_plugin_colorhug.so +lib/fwupd-plugins-3/libfu_plugin_cpu.so +lib/fwupd-plugins-3/libfu_plugin_cros_ec.so +lib/fwupd-plugins-3/libfu_plugin_dell_dock.so +lib/fwupd-plugins-3/libfu_plugin_dfu.so +lib/fwupd-plugins-3/libfu_plugin_dfu_csr.so +lib/fwupd-plugins-3/libfu_plugin_ebitdo.so +lib/fwupd-plugins-3/libfu_plugin_ep963x.so +lib/fwupd-plugins-3/libfu_plugin_fastboot.so +lib/fwupd-plugins-3/libfu_plugin_fresco_pd.so +lib/fwupd-plugins-3/libfu_plugin_goodixmoc.so +lib/fwupd-plugins-3/libfu_plugin_hailuck.so +lib/fwupd-plugins-3/libfu_plugin_jabra.so +lib/fwupd-plugins-3/libfu_plugin_msr.so +lib/fwupd-plugins-3/libfu_plugin_nitrokey.so +lib/fwupd-plugins-3/libfu_plugin_rts54hid.so +lib/fwupd-plugins-3/libfu_plugin_rts54hub.so +lib/fwupd-plugins-3/libfu_plugin_solokey.so +lib/fwupd-plugins-3/libfu_plugin_steelseries.so +lib/fwupd-plugins-3/libfu_plugin_synaptics_cxaudio.so +lib/fwupd-plugins-3/libfu_plugin_synaptics_prometheus.so +lib/fwupd-plugins-3/libfu_plugin_system76_launch.so +lib/fwupd-plugins-3/libfu_plugin_uefi_capsule.so +lib/fwupd-plugins-3/libfu_plugin_uefi_dbx.so +lib/fwupd-plugins-3/libfu_plugin_uefi_pk.so +lib/fwupd-plugins-3/libfu_plugin_uefi_recovery.so +lib/fwupd-plugins-3/libfu_plugin_vli.so +lib/fwupd-plugins-3/libfu_plugin_wacom_usb.so +lib/girepository-1.0/Fwupd-2.0.typelib +lib/girepository-1.0/FwupdPlugin-1.0.typelib +lib/libfwupd.so +lib/libfwupd.so.2 +lib/libfwupd.so.2.0.0 +lib/libfwupdplugin.so +lib/libfwupdplugin.so.2 +lib/libfwupdplugin.so.2.0.0 +libdata/pkgconfig/fwupd.pc +libdata/pkgconfig/fwupdplugin.pc +libexec/fwupd/fwupd +libexec/fwupd/fwupd-detect-cet +man/man1/dbxtool.1.gz +man/man1/dfu-tool.1.gz +man/man1/fwupdagent.1.gz +man/man1/fwupdate.1.gz +man/man1/fwupdmgr.1.gz +man/man1/fwupdtool.1.gz +share/dbus-1/interfaces/org.freedesktop.fwupd.xml +share/dbus-1/system.d/org.freedesktop.fwupd.conf +share/fish/vendor_completions.d/fwupdmgr.fish +%%DATADIR%%/add_capsule_header.py +%%DATADIR%%/firmware_packager.py +%%DATADIR%%/install_dell_bios_exe.py +%%DATADIR%%/metainfo/org.freedesktop.fwupd.remotes.lvfs-testing.metainfo.xml +%%DATADIR%%/metainfo/org.freedesktop.fwupd.remotes.lvfs.metainfo.xml +%%DATADIR%%/quirks.d/analogix.quirk +%%DATADIR%%/quirks.d/bcm57xx.quirk +%%DATADIR%%/quirks.d/ccgx-ids.quirk +%%DATADIR%%/quirks.d/ccgx.quirk +%%DATADIR%%/quirks.d/colorhug.quirk +%%DATADIR%%/quirks.d/cpu.quirk +%%DATADIR%%/quirks.d/cros-ec.quirk +%%DATADIR%%/quirks.d/dell-dock.quirk +%%DATADIR%%/quirks.d/dfu-csr.quirk +%%DATADIR%%/quirks.d/dfu.quirk +%%DATADIR%%/quirks.d/ebitdo.quirk +%%DATADIR%%/quirks.d/ep963x.quirk +%%DATADIR%%/quirks.d/fastboot.quirk +%%DATADIR%%/quirks.d/fresco-pd.quirk +%%DATADIR%%/quirks.d/goodixmoc.quirk +%%DATADIR%%/quirks.d/hailuck.quirk +%%DATADIR%%/quirks.d/jabra.quirk +%%DATADIR%%/quirks.d/msr.quirk +%%DATADIR%%/quirks.d/nitrokey.quirk +%%DATADIR%%/quirks.d/rts54hid.quirk +%%DATADIR%%/quirks.d/rts54hub.quirk +%%DATADIR%%/quirks.d/solokey.quirk +%%DATADIR%%/quirks.d/steelseries.quirk +%%DATADIR%%/quirks.d/synaptics-cxaudio.quirk +%%DATADIR%%/quirks.d/synaptics-prometheus.quirk +%%DATADIR%%/quirks.d/system76-launch.quirk +%%DATADIR%%/quirks.d/uefi-capsule.quirk +%%DATADIR%%/quirks.d/uefi-recovery.quirk +%%DATADIR%%/quirks.d/vli-pd.quirk +%%DATADIR%%/quirks.d/vli-usbhub-bizlink.quirk +%%DATADIR%%/quirks.d/vli-usbhub-hyper.quirk +%%DATADIR%%/quirks.d/vli-usbhub-lenovo.quirk +%%DATADIR%%/quirks.d/vli-usbhub.quirk +%%DATADIR%%/quirks.d/wacom-usb.quirk +%%DATADIR%%/remotes.d/vendor/firmware/README.md +%%DATADIR%%/simple_client.py +%%DATADIR%%/uefi-capsule-ux.tar.xz +share/gir-1.0/Fwupd-2.0.gir +share/gir-1.0/FwupdPlugin-1.0.gir +share/icons/hicolor/scalable/apps/org.freedesktop.fwupd.svg +share/locale/af/LC_MESSAGES/fwupd.mo +share/locale/ast/LC_MESSAGES/fwupd.mo +share/locale/ca/LC_MESSAGES/fwupd.mo +share/locale/cs/LC_MESSAGES/fwupd.mo +share/locale/da/LC_MESSAGES/fwupd.mo +share/locale/de/LC_MESSAGES/fwupd.mo +share/locale/en_GB/LC_MESSAGES/fwupd.mo +share/locale/eo/LC_MESSAGES/fwupd.mo +share/locale/eu/LC_MESSAGES/fwupd.mo +share/locale/fi/LC_MESSAGES/fwupd.mo +share/locale/fr/LC_MESSAGES/fwupd.mo +share/locale/fur/LC_MESSAGES/fwupd.mo +share/locale/gl/LC_MESSAGES/fwupd.mo +share/locale/he/LC_MESSAGES/fwupd.mo +share/locale/hi/LC_MESSAGES/fwupd.mo +share/locale/hr/LC_MESSAGES/fwupd.mo +share/locale/hu/LC_MESSAGES/fwupd.mo +share/locale/id/LC_MESSAGES/fwupd.mo +share/locale/it/LC_MESSAGES/fwupd.mo +share/locale/kk/LC_MESSAGES/fwupd.mo +share/locale/ko/LC_MESSAGES/fwupd.mo +share/locale/ky/LC_MESSAGES/fwupd.mo +share/locale/lt/LC_MESSAGES/fwupd.mo +share/locale/nl/LC_MESSAGES/fwupd.mo +share/locale/oc/LC_MESSAGES/fwupd.mo +share/locale/pl/LC_MESSAGES/fwupd.mo +share/locale/pt_BR/LC_MESSAGES/fwupd.mo +share/locale/ru/LC_MESSAGES/fwupd.mo +share/locale/sk/LC_MESSAGES/fwupd.mo +share/locale/sr/LC_MESSAGES/fwupd.mo +share/locale/sv/LC_MESSAGES/fwupd.mo +share/locale/tr/LC_MESSAGES/fwupd.mo +share/locale/uk/LC_MESSAGES/fwupd.mo +share/locale/zh_CN/LC_MESSAGES/fwupd.mo +share/locale/zh_TW/LC_MESSAGES/fwupd.mo +share/metainfo/org.freedesktop.fwupd.metainfo.xml +share/vala/vapi/fwupd.deps +share/vala/vapi/fwupd.vapi +/var/local/lib/fwupd/builder/README.md +@dir /var/local/lib/fwupd/builder +@dir /var/local/lib/fwupd +@dir /var/local/lib +@dir /var/local Index: textproc/Makefile =================================================================== --- textproc/Makefile +++ textproc/Makefile @@ -366,6 +366,7 @@ SUBDIR += libfo SUBDIR += libfolia SUBDIR += libgepub + SUBDIR += libjcat SUBDIR += libkmfl SUBDIR += libkolabxml SUBDIR += libkomparediff2 @@ -398,6 +399,7 @@ SUBDIR += libxdiff SUBDIR += libxml++26 SUBDIR += libxml2 + SUBDIR += libxmlb SUBDIR += libxmlbird SUBDIR += libxode SUBDIR += libxslt Index: textproc/libjcat/Makefile =================================================================== --- /dev/null +++ textproc/libjcat/Makefile @@ -0,0 +1,27 @@ +# $FreeBSD$ + +PORTNAME= libjcat +DISTVERSION= 0.1.8 +CATEGORIES= textproc + +MAINTAINER= norbert.kaminski@3mdeb.com +COMMENT= Library for reading and writing JSON catalog files + +LICENSE= LGPL21 + +BUILD_DEPENDS= gobject-introspection>=1.36:devel/gobject-introspection \ + gtkdocize:textproc/gtk-doc \ + help2man:misc/help2man \ + vala:lang/vala +LIB_DEPENDS= libgnutls.so:security/gnutls \ + libgpg-error.so:security/libgpg-error \ + libgpgme.so:security/gpgme \ + libjson-glib-1.0.so:devel/json-glib + +USES= gnome localbase:ldflags meson pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= hughsie +USE_GNOME= glib20 +USE_LDCONFIG= yes + +.include Index: textproc/libjcat/distinfo =================================================================== --- /dev/null +++ textproc/libjcat/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1622115660 +SHA256 (hughsie-libjcat-0.1.8_GH0.tar.gz) = aedb6e508120ace7cfc2c03f2972e8a422f0e0b01ee00654a093ea3b7e2e35d1 +SIZE (hughsie-libjcat-0.1.8_GH0.tar.gz) = 64828 Index: textproc/libjcat/pkg-descr =================================================================== --- /dev/null +++ textproc/libjcat/pkg-descr @@ -0,0 +1,9 @@ +This library allows reading and writing gzip-compressed JSON catalog files, +which can be used to store GPG, PKCS-7 and SHA-256 checksums for each file. It +provides equivalent functionality to the catalog files supported in Microsoft +Windows. Unlike Microsoft catalog files which are a signed manifest of hashes, +a Jcat file is a manifest of signatures. This means it's possible (and +positively encouraged) to modify the .jcat file to add new signatures or replace +existing ones. + +WWW: https://github.com/hughsie/libjcat Index: textproc/libjcat/pkg-plist =================================================================== --- /dev/null +++ textproc/libjcat/pkg-plist @@ -0,0 +1,27 @@ +bin/jcat-tool +include/libjcat-1/jcat.h +include/libjcat-1/libjcat/jcat-blob.h +include/libjcat-1/libjcat/jcat-common.h +include/libjcat-1/libjcat/jcat-context.h +include/libjcat-1/libjcat/jcat-engine.h +include/libjcat-1/libjcat/jcat-file.h +include/libjcat-1/libjcat/jcat-item.h +include/libjcat-1/libjcat/jcat-result.h +include/libjcat-1/libjcat/jcat-version.h +lib/girepository-1.0/Jcat-1.0.typelib +lib/libjcat.so +lib/libjcat.so.1 +lib/libjcat.so.1.0.0 +libdata/pkgconfig/jcat.pc +libexec/installed-tests/libjcat/colorhug/firmware.bin +libexec/installed-tests/libjcat/colorhug/firmware.bin.asc +libexec/installed-tests/libjcat/colorhug/firmware.bin.p7b +libexec/installed-tests/libjcat/colorhug/firmware.bin.p7c +libexec/installed-tests/libjcat/jcat-self-test +libexec/installed-tests/libjcat/pki/GPG-KEY-Linux-Vendor-Firmware-Service +libexec/installed-tests/libjcat/pki/LVFS-CA.pem +man/man1/jcat-tool.1.gz +share/gir-1.0/Jcat-1.0.gir +share/installed-tests/libjcat/libjcat.test +share/vala/vapi/jcat.deps +share/vala/vapi/jcat.vapi Index: textproc/libxmlb/Makefile =================================================================== --- /dev/null +++ textproc/libxmlb/Makefile @@ -0,0 +1,25 @@ +# $FreeBSD$ + +PORTNAME= libxmlb +DISTVERSION= 0.3.2 +CATEGORIES= textproc + +MAINTAINER= norbert.kaminski@3mdeb.com +COMMENT= Help create and query binary XML blobs + +LICENSE= LGPL21 + +BUILD_DEPENDS= gobject-introspection>=1.36:devel/gobject-introspection \ + gtkdocize:textproc/gtk-doc + +USES= gnome meson pkgconfig python:3.7+ +USE_GITHUB= yes +GH_ACCOUNT= hughsie +USE_GNOME= glib20 +USE_LDCONFIG= yes + +OPTIONS_DEFINE= DOCS + +DOCS_MESON_TRUE= docs + +.include Index: textproc/libxmlb/distinfo =================================================================== --- /dev/null +++ textproc/libxmlb/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1622115727 +SHA256 (hughsie-libxmlb-0.3.2_GH0.tar.gz) = ccab521ea30a1ac76c4b49d79876bb5c860b10bbaeaa3eb9045afdefa3bb41fc +SIZE (hughsie-libxmlb-0.3.2_GH0.tar.gz) = 113428 Index: textproc/libxmlb/pkg-descr =================================================================== --- /dev/null +++ textproc/libxmlb/pkg-descr @@ -0,0 +1,10 @@ +XML is slow to parse and strings inside the document cannot be memory mapped as +they do not have a trailing NUL char. The libxmlb library takes XML source, and +converts it to a structured binary representation with a deduplicated string +table -- where the strings have the NULs included. + +This allows an application to mmap the binary XML file, do an XPath query and +return some strings without actually parsing the entire document. This is all +done using (almost) zero allocations and no actual copying of the binary data. + +WWW: https://github.com/hughsie/libxmlb Index: textproc/libxmlb/pkg-plist =================================================================== --- /dev/null +++ textproc/libxmlb/pkg-plist @@ -0,0 +1,62 @@ +include/libxmlb-2/libxmlb/xb-builder-fixup.h +include/libxmlb-2/libxmlb/xb-builder-node.h +include/libxmlb-2/libxmlb/xb-builder-source-ctx.h +include/libxmlb-2/libxmlb/xb-builder-source.h +include/libxmlb-2/libxmlb/xb-builder.h +include/libxmlb-2/libxmlb/xb-machine.h +include/libxmlb-2/libxmlb/xb-node-query.h +include/libxmlb-2/libxmlb/xb-node-silo.h +include/libxmlb-2/libxmlb/xb-node.h +include/libxmlb-2/libxmlb/xb-opcode.h +include/libxmlb-2/libxmlb/xb-query-context.h +include/libxmlb-2/libxmlb/xb-query.h +include/libxmlb-2/libxmlb/xb-silo-export.h +include/libxmlb-2/libxmlb/xb-silo-query.h +include/libxmlb-2/libxmlb/xb-silo.h +include/libxmlb-2/libxmlb/xb-stack.h +include/libxmlb-2/libxmlb/xb-string.h +include/libxmlb-2/libxmlb/xb-value-bindings.h +include/libxmlb-2/libxmlb/xb-version.h +include/libxmlb-2/xmlb.h +lib/girepository-1.0/Xmlb-2.0.typelib +lib/libxmlb.so +lib/libxmlb.so.2 +lib/libxmlb.so.2.0.0 +libdata/pkgconfig/xmlb.pc +libexec/installed-tests/libxmlb/test.xml.gz.gz.gz +libexec/installed-tests/libxmlb/xb-self-test +libexec/xb-tool +share/gir-1.0/Xmlb-2.0.gir +%%PORTDOCS%%share/gtk-doc/html/libxmlb/annotation-glossary.html +%%PORTDOCS%%share/gtk-doc/html/libxmlb/api-index-full.html +%%PORTDOCS%%share/gtk-doc/html/libxmlb/deprecated-api-index.html +%%PORTDOCS%%share/gtk-doc/html/libxmlb/home.png +%%PORTDOCS%%share/gtk-doc/html/libxmlb/index.html +%%PORTDOCS%%share/gtk-doc/html/libxmlb/intro.html +%%PORTDOCS%%share/gtk-doc/html/libxmlb/left-insensitive.png +%%PORTDOCS%%share/gtk-doc/html/libxmlb/left.png +%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-XbBuilder.html +%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-XbBuilderFixup.html +%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-XbBuilderNode.html +%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-XbBuilderSource.html +%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-XbBuilderSourceCtx.html +%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-XbMachine.html +%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-XbNode.html +%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-XbQuery.html +%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-XbSilo.html +%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-xb-node-query.html +%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-xb-opcode.html +%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-xb-query-context.html +%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-xb-silo-export.html +%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-xb-silo-query.html +%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-xb-stack.html +%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-xb-string.html +%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb-xb-value-bindings.html +%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb.devhelp2 +%%PORTDOCS%%share/gtk-doc/html/libxmlb/libxmlb.html +%%PORTDOCS%%share/gtk-doc/html/libxmlb/right-insensitive.png +%%PORTDOCS%%share/gtk-doc/html/libxmlb/right.png +%%PORTDOCS%%share/gtk-doc/html/libxmlb/style.css +%%PORTDOCS%%share/gtk-doc/html/libxmlb/up-insensitive.png +%%PORTDOCS%%share/gtk-doc/html/libxmlb/up.png +share/installed-tests/libxmlb/libxmlb.test