pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/nagios-plugins Linux-flavored includes should not ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/9b88c55999e8
branches: trunk
changeset: 391625:9b88c55999e8
user: sekiya <sekiya%pkgsrc.org@localhost>
date: Wed Jan 11 09:27:27 2023 +0000
description:
Linux-flavored includes should not be the default.
diffstat:
net/nagios-plugins/distinfo | 4 +-
net/nagios-plugins/patches/patch-plugins_check_radius.c | 25 ++++++++++++++--
2 files changed, 24 insertions(+), 5 deletions(-)
diffs (51 lines):
diff -r 232315cd196b -r 9b88c55999e8 net/nagios-plugins/distinfo
--- a/net/nagios-plugins/distinfo Wed Jan 11 09:16:23 2023 +0000
+++ b/net/nagios-plugins/distinfo Wed Jan 11 09:27:27 2023 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.28 2023/01/09 00:28:41 sekiya Exp $
+$NetBSD: distinfo,v 1.29 2023/01/11 09:27:27 sekiya Exp $
BLAKE2s (nagios-plugins-2.3.3.tar.gz) = 4eee57a0cae28eab4a115d1f518506a7c33ab0ab66e505088a7af2a65308bb22
SHA512 (nagios-plugins-2.3.3.tar.gz) = 2128601b1098eb82f4e7d720b96a5f92d6ad75dc181a94b25c38172767de8b72f9fece3eddb74933b1cd520928ae9416a7dc665e2f059bfe362dd74041d28cd7
@@ -14,5 +14,5 @@
SHA1 (patch-plugins_Makefile.in) = 3509f2972feabe4806e4529c320eb5a119b5df77
SHA1 (patch-plugins_check_ide_smart.c) = 6601814ad4ac91f11dbeb18613254df55e14edbd
SHA1 (patch-plugins_check_nagios.c) = 922d4494c77c1764ee30f004e96ce8734ab6954f
-SHA1 (patch-plugins_check_radius.c) = 909c78e18a969c0d0c8431151c0b6069afaaf2ae
+SHA1 (patch-plugins_check_radius.c) = 02bd463b9e02512d5de1b54132ef0c0a0d217783
SHA1 (patch-plugins_check_swap.c) = ecef90186c97256051ae1e238f95d9861c87e31b
diff -r 232315cd196b -r 9b88c55999e8 net/nagios-plugins/patches/patch-plugins_check_radius.c
--- a/net/nagios-plugins/patches/patch-plugins_check_radius.c Wed Jan 11 09:16:23 2023 +0000
+++ b/net/nagios-plugins/patches/patch-plugins_check_radius.c Wed Jan 11 09:27:27 2023 +0000
@@ -1,9 +1,28 @@
-$NetBSD: patch-plugins_check_radius.c,v 1.1 2023/01/09 00:28:41 sekiya Exp $
+$NetBSD: patch-plugins_check_radius.c,v 1.2 2023/01/11 09:27:28 sekiya Exp $
+
+Do not assume that we are compiling under Linux.
Support radius config.
---- plugins/check_radius.c.orig 2019-12-05 06:53:08.000000000 +0900
-+++ plugins/check_radius.c 2023-01-09 08:53:32.981542458 +0900
+--- plugins/check_radius.c.orig 2023-01-11 18:07:22.189005504 +0900
++++ plugins/check_radius.c 2023-01-11 18:07:11.857369955 +0900
+@@ -38,13 +38,13 @@
+
+ #include <ifaddrs.h>
+
+-#ifdef __FreeBSD__
+-#include <net/if_dl.h>
+-#else
++#if defined(__linux__)
+ #include <linux/if_packet.h>
+ #define AF_LINK AF_PACKET
+ #define LLADDR(l) ((l)->sll_addr)
+ #define sockaddr_dl sockaddr_ll
++#else
++#include <net/if_dl.h>
+ #endif
+
+ #if defined(HAVE_LIBFREERADIUS_CLIENT)
@@ -99,7 +99,7 @@
char *nasipaddress = NULL;
char *castid = NULL;
Home |
Main Index |
Thread Index |
Old Index