diff --git a/sysutils/nut/files/patch-scripts_Makefile b/sysutils/nut/files/patch-scripts_Makefile new file mode 100644 index 000000000000..0fb15d83ac33 --- /dev/null +++ b/sysutils/nut/files/patch-scripts_Makefile @@ -0,0 +1,8 @@ +--- scripts/Makefile.am.orig 2020-02-09 10:44:01.000000000 -0800 ++++ scripts/Makefile.am 2020-03-24 19:40:01.084978000 -0700 +@@ -25,4 +25,4 @@ + Windows/halt.c \ + Windows/Makefile + +-SUBDIRS = augeas devd hotplug python systemd udev Solaris upsdrvsvcctl ++SUBDIRS = augeas devd hotplug python udev upsdrvsvcctl diff --git a/sysutils/nut/files/patch-tools_nut-scanner_nutscan-init.c b/sysutils/nut/files/patch-tools_nut-scanner_nutscan-init.c new file mode 100644 index 000000000000..bcd884c3b786 --- /dev/null +++ b/sysutils/nut/files/patch-tools_nut-scanner_nutscan-init.c @@ -0,0 +1,14 @@ +--- tools/nut-scanner/nutscan-init.c.orig 2024-07-17 06:41:06.000000000 -0700 ++++ tools/nut-scanner/nutscan-init.c 2024-07-18 13:41:55.306142000 -0700 +@@ -216,7 +216,11 @@ + } + # endif /* SOFILE_LIBUSB1 */ + if (!libname) { ++# ifdef __FreeBSD__ ++ libname = get_libname("libusb.so"); ++# else + libname = get_libname("libusb-1.0" SOEXT); ++# endif + } + # ifdef SOPATH_LIBUSB1 + if (!libname) {