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:
parent
f48d73a6fd
commit
e1b2a2180d
13
net-mgmt/mac-telnet/files/patch-configure.ac
Normal file
13
net-mgmt/mac-telnet/files/patch-configure.ac
Normal 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
|
15
net-mgmt/mac-telnet/files/patch-src_mndp.c
Normal file
15
net-mgmt/mac-telnet/files/patch-src_mndp.c
Normal 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
|
Loading…
Reference in New Issue
Block a user