dnstop: add new package

Signed-off-by: Ken Xu <windedge99@gmail.com>
This commit is contained in:
Ken Xu 2019-07-27 17:22:24 +08:00 committed by Yousong Zhou
parent 035dfd530c
commit 2e3a8c10ab
2 changed files with 49 additions and 0 deletions

35
net/dnstop/Makefile Normal file
View File

@ -0,0 +1,35 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=dnstop
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/measurement-factory/dnstop.git
PKG_SOURCE_DATE:=2018-05-22
PKG_SOURCE_VERSION:=a5a5d2e2ca9a433bb8f017682ac6f2085741bdf8
PKG_MIRROR_HASH:=1fe443c6faf1726aeb86a53a3a44efce23cad604304036371e76ff020eb0dac2
PKG_MAINTAINER:=Ken Xu <windedge99@gmail.com>
PKG_LICENSE:=NLPL
PKG_LICENSE_FILES:=LICENSE
include $(INCLUDE_DIR)/package.mk
define Package/dnstop
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libpcap +libncurses
TITLE:=stay on top of your dns traffic
URL:=http://dns.measurement-factory.com/tools/dnstop/
endef
define Package/dnstop/description
dnstop is a libpcap application (like tcpdump) that displays various tables of DNS traffic on your network
endef
define Package/dnstop/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dnstop $(1)/usr/bin/
endef
$(eval $(call BuildPackage,dnstop))

View File

@ -0,0 +1,14 @@
--- a/dnstop.c
+++ b/dnstop.c
@@ -71,11 +71,6 @@ static const char *Version = "@VERSION@"
#define ETHERTYPE_IPV6 0x86DD
#endif
-#if defined(__linux__) || defined(__GLIBC__) || defined(__GNU__)
-#define uh_dport dest
-#define uh_sport source
-#endif
-
typedef struct {
inX_addr src;
int count;