2 # Copyright (C) 2018-2020 The Regents of the University of California
4 # This is free software, licensed under the GNU General Public License v3.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
12 PKG_RELEASE
:=$(AUTORELEASE
)
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://www.caida.org
/projects
/spoofer
/downloads
16 PKG_HASH
:=9e94810b8b84db6005d78bd1db13d7f4c1307e50c28824e27e0629c5abfd317c
18 PKG_MAINTAINER
:=Ken Keys
<spoofer-info@caida.org
>
19 PKG_LICENSE
:=GPL-3.0
-or-later
20 PKG_LICENSE_FILES
:=LICENSE
24 PKG_BUILD_DEPENDS
:=protobuf
/host
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/spoofer
31 TITLE
:=Measure your ISP
's resistance to spoofed IP packets
32 URL:=https://spoofer.caida.org/
33 DEPENDS:=+protobuf-lite +libpcap +libpthread +libopenssl
36 define Package/spoofer/description
37 The spoofer client is part of a system to measure the Internet's
38 resistance to packets with a spoofed
(forged
) source IP address.
40 This package comes bundled with small certificate files that allow
41 secure communication with the spoofer server without depending on
42 the large ca-certificates package. But if the server
's private
43 certificate ever changes, it will be necessary to either install the
44 ca-certificates package or install an updated version of this package
45 that has a newer bundled certificate.
54 PROTOC=$(STAGING_DIR_HOSTPKG)/bin/protoc
56 define Package/spoofer/install
57 $(INSTALL_DIR) $(1)/usr/bin
58 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin//spoofer-prober $(1)/usr/bin
59 $(INSTALL_BIN) $(PKG_BUILD_DIR)/openwrt-files/spoofer $(1)/usr/bin
60 $(INSTALL_DIR) $(1)/etc/init.d
61 $(INSTALL_BIN) $(PKG_BUILD_DIR)/openwrt-files/initscript $(1)/etc/init.d/spoofer
62 $(INSTALL_DIR) $(1)/usr/share/spoofer
63 $(INSTALL_DATA) $(PKG_BUILD_DIR)/gd_bundle.crt $(1)/usr/share/spoofer
64 $(INSTALL_DATA) $(PKG_BUILD_DIR)/letsencrypt_bundle.pem.txt $(1)/usr/share/spoofer
65 $(INSTALL_DATA) $(PKG_BUILD_DIR)/openwrt-files/spoofer-lib.sh $(1)/usr/share/spoofer
68 $(eval $(call BuildPackage,spoofer))