2015-09-20 23:10:07 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006-2015 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=scapy
|
2023-05-20 01:35:59 +00:00
|
|
|
PKG_VERSION:=2.5.0
|
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
|
2015-09-20 23:10:07 +00:00
|
|
|
|
2020-04-29 08:25:20 +00:00
|
|
|
PYPI_NAME:=$(PKG_NAME)
|
2023-05-20 01:35:59 +00:00
|
|
|
PKG_HASH:=5b260c2b754fd8d409ba83ee7aee294ecdbb2c235f9f78fe90bc11cb6e5debc2
|
2020-09-21 00:18:12 +00:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
|
|
|
|
PKG_LICENSE:=GPL-2.0-only
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2015-09-20 23:10:07 +00:00
|
|
|
|
2020-04-29 08:25:20 +00:00
|
|
|
include ../../lang/python/pypi.mk
|
2015-09-20 23:10:07 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2019-04-28 03:28:25 +00:00
|
|
|
include ../../lang/python/python3-package.mk
|
2015-09-20 23:10:07 +00:00
|
|
|
|
|
|
|
define Package/scapy
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=Interactive packet manipulation tool and network scanner
|
2018-08-04 03:45:51 +00:00
|
|
|
URL:=https://scapy.net/
|
2019-04-28 03:28:25 +00:00
|
|
|
DEPENDS:=+python3
|
2015-09-20 23:10:07 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/scapy/description
|
|
|
|
Scapy is a powerful interactive packet manipulation program built on top
|
|
|
|
of the Python interpreter. It can be used to forge or decode packets of
|
|
|
|
a wide number of protocols, send them over the wire, capture them, match
|
|
|
|
requests and replies, and much more.
|
|
|
|
endef
|
|
|
|
|
2020-04-29 08:25:20 +00:00
|
|
|
$(eval $(call Py3Package,scapy))
|
2015-09-20 23:10:07 +00:00
|
|
|
$(eval $(call BuildPackage,scapy))
|
2020-04-29 08:25:20 +00:00
|
|
|
$(eval $(call BuildPackage,scapy-src))
|