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.

68 lines
2.1 KiB

  1. #
  2. # Copyright (C) 2018-2020 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.6
  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:=fb814d0beaccc48a155e55bb1e7057520d0fe0584dbcc4c0a89f5cee55d0eaf1
  14. PKG_MAINTAINER:=Ken Keys <spoofer-info@caida.org>
  15. PKG_LICENSE:=GPL-3.0-or-later
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. PKG_BUILD_DEPENDS:=protobuf/host
  20. include $(INCLUDE_DIR)/package.mk
  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. DEPENDS:=+protobuf-lite +libpcap +libpthread +libopenssl
  27. endef
  28. define Package/spoofer/description
  29. The spoofer client is part of a system to measure the Internet's
  30. resistance to packets with a spoofed (forged) source IP address.
  31. This package comes bundled with small certificate files that allow
  32. secure communication with the spoofer server without depending on
  33. the large ca-certificates package. But if the server's private
  34. certificate ever changes, it will be necessary to either install the
  35. ca-certificates package or install an updated version of this package
  36. that has a newer bundled certificate.
  37. endef
  38. CONFIGURE_ARGS += \
  39. --enable-prober \
  40. --disable-manager
  41. CONFIGURE_VARS += \
  42. PROTOC=$(STAGING_DIR_HOSTPKG)/bin/protoc
  43. define Package/spoofer/install
  44. $(INSTALL_DIR) $(1)/usr/bin
  45. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin//spoofer-prober $(1)/usr/bin
  46. $(INSTALL_BIN) $(PKG_BUILD_DIR)/openwrt-files/spoofer $(1)/usr/bin
  47. $(INSTALL_DIR) $(1)/etc/init.d
  48. $(INSTALL_BIN) $(PKG_BUILD_DIR)/openwrt-files/initscript $(1)/etc/init.d/spoofer
  49. $(INSTALL_DIR) $(1)/usr/share/spoofer
  50. $(INSTALL_DATA) $(PKG_BUILD_DIR)/gd_bundle.crt $(1)/usr/share/spoofer
  51. $(INSTALL_DATA) $(PKG_BUILD_DIR)/letsencrypt_bundle.pem.txt $(1)/usr/share/spoofer
  52. $(INSTALL_DATA) $(PKG_BUILD_DIR)/openwrt-files/spoofer-lib.sh $(1)/usr/share/spoofer
  53. endef
  54. $(eval $(call BuildPackage,spoofer))