Waldemar Brodkorb 3 месяцев назад
Родитель
Сommit
01833ff726

+ 5 - 3
package/arpwatch/Makefile

@@ -4,15 +4,15 @@
 include $(ADK_TOPDIR)/rules.mk
 
 PKG_NAME:=		arpwatch
-PKG_VERSION:=		2.1a15
+PKG_VERSION:=		3.9
 PKG_RELEASE:=		1
-PKG_HASH:=		c1df9737e208a96a61fa92ddad83f4b4d9be66f8992f3c917e9edf4b05ff5898
+PKG_HASH:=		832d20a5a508d9694a84a17e2627de3b3aa8b42b19ebdd97e264c511168f6eb4
 PKG_DESCR:=		ethernet monitor program
 PKG_SECTION:=		net/debug
 PKG_DEPENDS:=		libpcap
 PKG_BUILDDEP:=		libpcap
 PKG_URL:=		http://www-nrg.ee.lbl.gov/
-PKG_SITES:=		ftp://ftp.ee.lbl.gov/
+PKG_SITES:=		https://ee.lbl.gov/downloads/arpwatch/
 
 DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz
 
@@ -20,6 +20,8 @@ include $(ADK_TOPDIR)/mk/package.mk
 
 $(eval $(call PKG_template,ARPWATCH,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
 
+CONFIGURE_ARGS+=	--with-sendmail=/dev/null
+
 INSTALL_STYLE:=		manual
 
 MAKE_FLAGS+=		ARPDIR=/etc/arpwatch \

+ 15 - 0
package/arpwatch/patches/patch-dns_c

@@ -0,0 +1,15 @@
+--- arpwatch-3.9.orig/dns.c	2023-09-05 19:50:56.000000000 +0200
++++ arpwatch-3.9/dns.c	2026-05-13 08:09:33.242384344 +0200
+@@ -115,10 +115,10 @@ gethinfo(char *hostname, char *cpu, int
+ 		    (u_char *)cp, (char *)bp, buflen)) < 0)
+ 			break;
+ 		cp += n;
+-		type = _getshort(cp);
++		type = ns_get16(cp);
+ 		cp += sizeof(u_short);			/* class */
+ 		cp += sizeof(u_short) + sizeof(u_int32_t);
+-		n = _getshort(cp);
++		n = ns_get16(cp);
+ 		cp += sizeof(u_short);
+ 		if (type == T_HINFO) {
+ 			/* Unpack */

+ 10 - 0
package/arpwatch/patches/patch-report_c

@@ -0,0 +1,10 @@
+--- arpwatch-3.9.orig/report.c	2023-09-05 19:50:56.000000000 +0200
++++ arpwatch-3.9/report.c	2026-05-13 07:37:39.650674968 +0200
+@@ -39,6 +39,7 @@ static const char rcsid[] __attribute__(
+ #include <sys/socket.h>
+ #include <sys/time.h>
+ #include <sys/wait.h>
++#include <time.h>
+ 
+ #if __STDC__
+ struct mbuf;