diff --git a/net/dnstop/Makefile b/net/dnstop/Makefile new file mode 100644 index 000000000..6681552db --- /dev/null +++ b/net/dnstop/Makefile @@ -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 +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)) diff --git a/net/dnstop/patches/100-fix_udphdr_error.patch b/net/dnstop/patches/100-fix_udphdr_error.patch new file mode 100644 index 000000000..2b729ea60 --- /dev/null +++ b/net/dnstop/patches/100-fix_udphdr_error.patch @@ -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;