treewide: remove AUTORELEASE
[feed/packages.git] / net / spoofer / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=spoofer
11 PKG_VERSION:=1.4.8
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://www.caida.org/projects/spoofer/downloads
16 PKG_HASH:=9e94810b8b84db6005d78bd1db13d7f4c1307e50c28824e27e0629c5abfd317c
17
18 PKG_MAINTAINER:=Ken Keys <spoofer-info@caida.org>
19 PKG_LICENSE:=GPL-3.0-or-later
20 PKG_LICENSE_FILES:=LICENSE
21
22 PKG_INSTALL:=1
23 PKG_BUILD_PARALLEL:=1
24 PKG_BUILD_DEPENDS:=protobuf/host
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/spoofer
29 SECTION:=net
30 CATEGORY:=Network
31 TITLE:=Measure your ISP's resistance to spoofed IP packets
32 URL:=https://spoofer.caida.org/
33 DEPENDS:=+protobuf-lite +libpcap +libpthread +libopenssl
34 endef
35
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.
39
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.
46
47 endef
48
49 CONFIGURE_ARGS += \
50 --enable-prober \
51 --disable-manager
52
53 CONFIGURE_VARS += \
54 PROTOC=$(STAGING_DIR_HOSTPKG)/bin/protoc
55
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
66 endef
67
68 $(eval $(call BuildPackage,spoofer))