1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

net-mgmt/mac-telnet: Update to 0.5.1

The versioning changed, and this seems to be the new regular version
cadence, so bump PORTEPOCH.
This commit is contained in:
Joe Marcus Clarke 2024-06-19 11:08:40 -04:00
parent f48d73a6fd
commit e1b2a2180d
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,13 @@
--- configure.ac.orig 2024-06-19 14:50:22 UTC
+++ configure.ac
@@ -79,6 +79,10 @@ case "$host_os" in
AC_MSG_ERROR([pthreads library not found])
fi
;;
+ freebsd*)
+ AC_CHECK_LIB([intl], [libintl_gettext], [HAVE_LIBINTL=yes], [HAVE_LIBINTL=no])
+ AC_CHECK_LIB([pthread], [pthread_create])
+ ;;
*)
;;
esac

View File

@ -0,0 +1,15 @@
--- src/mndp.c.orig 2024-06-19 14:43:14 UTC
+++ src/mndp.c
@@ -170,9 +170,12 @@ int mndp(int timeout, int batch_mode) {
return 0;
}
+#define ether_addr_octet octet
+
char *ether_ntoa_z(const struct ether_addr *addr) {
static char buf[18]; /* 12 digits + 5 colons + null terminator */
sprintf(buf, "%02x:%02x:%02x:%02x:%02x:%02x", addr->ether_addr_octet[0], addr->ether_addr_octet[1],
addr->ether_addr_octet[2], addr->ether_addr_octet[3], addr->ether_addr_octet[4], addr->ether_addr_octet[5]);
return buf;
}
+#undef ether_addr_octet