diff options
author | Stephan Schmidtmer <hurz@gmx.org> | 2021-07-25 11:50:53 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2021-08-08 19:50:46 +0200 |
commit | 891c8676a1602d31adf3ab9f913664ae0d3b4029 (patch) | |
tree | 053fa4a31bef74f87e4a236b85702a22a0748f39 /package/libs/libpcap/Makefile | |
parent | 12564c5b860f9849c9a2fb7026c2c11150b9a4fc (diff) | |
download | upstream-891c8676a1602d31adf3ab9f913664ae0d3b4029.tar.gz upstream-891c8676a1602d31adf3ab9f913664ae0d3b4029.tar.bz2 upstream-891c8676a1602d31adf3ab9f913664ae0d3b4029.zip |
libpcap: add rpcapd as package
This enables building of rpcapd and adds it as a package.
It is a daemon that allows remote packet capturing from another machine.
E.g. Wireshark can talk to it using the Remote Capture Protocol (RPCAP).
https://www.tcpdump.org/manpages/rpcapd.8.html
Compile and run tested: OpenWrt SNAPSHOT r17190-2801fe6132 on x86/64
Signed-off-by: Stephan Schmidtmer <hurz@gmx.org>
Diffstat (limited to 'package/libs/libpcap/Makefile')
-rw-r--r-- | package/libs/libpcap/Makefile | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/package/libs/libpcap/Makefile b/package/libs/libpcap/Makefile index 8c08259055..518744435b 100644 --- a/package/libs/libpcap/Makefile +++ b/package/libs/libpcap/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libpcap PKG_VERSION:=1.10.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.us.tcpdump.org/release/ \ @@ -43,6 +43,19 @@ define Package/libpcap/config source "$(SOURCE)/Config.in" endef +define Package/rpcapd + SECTION:=net + CATEGORY:=Network + TITLE:=Capture daemon to be controlled by a remote libpcap application + URL:=http://www.tcpdump.org/ + DEPENDS+= +libpcap +endef + +ifdef CONFIG_PACKAGE_rpcapd + CMAKE_OPTIONS += \ + -DENABLE_REMOTE=ON +endif + CMAKE_OPTIONS += \ -DBUILD_SHARED_LIBS=ON \ -DBUILD_WITH_LIBNL=OFF \ @@ -81,4 +94,10 @@ define Package/libpcap/install $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcap.so.* $(1)/usr/lib/ endef +define Package/rpcapd/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/rpcapd $(1)/usr/sbin/ +endef + $(eval $(call BuildPackage,libpcap)) +$(eval $(call BuildPackage,rpcapd)) |