You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
2.1 KiB

  1. #
  2. # Copyright (C) 2018 The Regents of the University of California
  3. #
  4. # This is free software, licensed under the GNU General Public License v3.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=spoofer
  9. PKG_VERSION:=1.4.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://www.caida.org/projects/spoofer/downloads
  13. PKG_HASH:=e6d9e954709a15dc55187a962e8698d880f3df3ce8b914097c576a3a1f852d0d
  14. PKG_LICENSE:=GPL-3.0
  15. PKG_LICENSE_FILES:=LICENSE
  16. PKG_USE_MIPS16:=0
  17. HOST_BUILD_DEPENDS:=protobuf/host
  18. include $(INCLUDE_DIR)/host-build.mk
  19. include $(INCLUDE_DIR)/package.mk
  20. $(eval $(call HostBuild))
  21. define Package/spoofer
  22. SECTION:=net
  23. CATEGORY:=Network
  24. TITLE:=Measure your ISP's resistance to spoofed IP packets
  25. URL:=https://spoofer.caida.org/
  26. MAINTAINER:=Ken Keys <spoofer-info@caida.org>
  27. DEPENDS:=+protobuf-lite +libpcap +libpthread +libopenssl
  28. endef
  29. define Package/spoofer/description
  30. The spoofer client is part of a system to measure the Internet's
  31. resistance to packets with a spoofed (forged) source IP address.
  32. This package comes bundled with a small certificate file that allows
  33. secure communication with the spoofer server without depending on
  34. the large ca-certificates package. But if the server's private
  35. certificate ever changes, it will be necessary to either install the
  36. ca-certificates package or install an updated version of this package
  37. that has a newer bundled certificate.
  38. endef
  39. CONFIGURE_ARGS += \
  40. --enable-prober \
  41. --disable-manager
  42. CONFIGURE_VARS += \
  43. PROTOC=$(STAGING_DIR_HOSTPKG)/bin/protoc
  44. EXTRA_CXXFLAGS += -std=gnu++14
  45. SPOOFER_SRC=$(PKG_BUILD_DIR)
  46. define Package/spoofer/install
  47. $(INSTALL_DIR) $(1)/usr/bin
  48. $(INSTALL_BIN) $(PKG_BUILD_DIR)/prober/spoofer-prober $(1)/usr/bin
  49. $(INSTALL_BIN) $(SPOOFER_SRC)/openwrt-files/spoofer $(1)/usr/bin
  50. $(INSTALL_DIR) $(1)/etc/init.d
  51. $(INSTALL_BIN) $(SPOOFER_SRC)/openwrt-files/initscript $(1)/etc/init.d/spoofer
  52. $(INSTALL_DIR) $(1)/usr/share/spoofer
  53. $(INSTALL_DATA) $(SPOOFER_SRC)/gd_bundle.crt $(1)/usr/share/spoofer
  54. $(INSTALL_DATA) $(SPOOFER_SRC)/openwrt-files/spoofer-lib.sh $(1)/usr/share/spoofer
  55. endef
  56. $(eval $(call BuildPackage,spoofer))