2018-07-17 17:18:46 +00:00
|
|
|
#
|
2020-07-24 18:28:03 +00:00
|
|
|
# Copyright (C) 2018-2020 The Regents of the University of California
|
2018-07-17 17:18:46 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v3.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=spoofer
|
2022-07-09 06:00:26 +00:00
|
|
|
PKG_VERSION:=1.4.8
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 16:32:27 +00:00
|
|
|
PKG_RELEASE:=1
|
2018-07-17 17:18:46 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://www.caida.org/projects/spoofer/downloads
|
2022-07-09 06:00:26 +00:00
|
|
|
PKG_HASH:=9e94810b8b84db6005d78bd1db13d7f4c1307e50c28824e27e0629c5abfd317c
|
2018-07-17 17:18:46 +00:00
|
|
|
|
2019-07-05 23:12:30 +00:00
|
|
|
PKG_MAINTAINER:=Ken Keys <spoofer-info@caida.org>
|
|
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
2018-07-17 17:18:46 +00:00
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
|
2020-02-14 23:12:18 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
PKG_BUILD_DEPENDS:=protobuf/host
|
2018-07-17 17:18:46 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/spoofer
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=Measure your ISP's resistance to spoofed IP packets
|
|
|
|
URL:=https://spoofer.caida.org/
|
|
|
|
DEPENDS:=+protobuf-lite +libpcap +libpthread +libopenssl
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/spoofer/description
|
|
|
|
The spoofer client is part of a system to measure the Internet's
|
|
|
|
resistance to packets with a spoofed (forged) source IP address.
|
|
|
|
|
2020-07-24 18:28:03 +00:00
|
|
|
This package comes bundled with small certificate files that allow
|
2018-07-17 17:18:46 +00:00
|
|
|
secure communication with the spoofer server without depending on
|
|
|
|
the large ca-certificates package. But if the server's private
|
|
|
|
certificate ever changes, it will be necessary to either install the
|
|
|
|
ca-certificates package or install an updated version of this package
|
|
|
|
that has a newer bundled certificate.
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-prober \
|
|
|
|
--disable-manager
|
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
PROTOC=$(STAGING_DIR_HOSTPKG)/bin/protoc
|
|
|
|
|
|
|
|
define Package/spoofer/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2020-02-14 23:12:18 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin//spoofer-prober $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/openwrt-files/spoofer $(1)/usr/bin
|
2018-07-17 17:18:46 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
2020-02-14 23:12:18 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/openwrt-files/initscript $(1)/etc/init.d/spoofer
|
2018-07-17 17:18:46 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/spoofer
|
2020-02-14 23:12:18 +00:00
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/gd_bundle.crt $(1)/usr/share/spoofer
|
2020-07-24 18:28:03 +00:00
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/letsencrypt_bundle.pem.txt $(1)/usr/share/spoofer
|
2020-02-14 23:12:18 +00:00
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/openwrt-files/spoofer-lib.sh $(1)/usr/share/spoofer
|
2018-07-17 17:18:46 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,spoofer))
|