0
0
mirror of https://github.com/openwrt/packages.git synced 2025-08-03 18:41:00 +00:00
Files
packages/net/scapy/Makefile
Josef Schlehofer 8f13ebc660 Revert "scapy: fix build by including pip requirements"
1. This commit was pushed to the master branch without review,
it is causing that scapy is not compiled anymore due to
wrong hashes.

This error from the buildbots:
Collecting packaging==25.0 (from -r ./host-pip-requirements.txt (line 1))
  Using cached packaging-25.0.tar.gz (165 kB)
ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
    packaging==25.0 from 1fc4078c65/packaging-25.0.tar.gz (from -r ./host-pip-requirements.txt (line 1)):
        Expected sha256 29572ef2b1f17581046b3a2227d5c611fb25ec70ca1ba8554b24b0e69331a484
             Got        d443872c98d677bf60f6a1f2f8c1cb748e8fe762d2bf9d3148b5599295b0fc4f

make[3]: *** [Makefile:46: /builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/pypi/scapy-2.6.1/.built] Error 1
time: package/feeds/packages/scapy/compile#1.15#0.41#1.71

2. While at it, the commit implements old solution by using host-pip-requirements
This was removed in https://github.com/openwrt/packages/pull/20657

This reverts commit ebb0ed3ba2.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2025-07-20 22:25:01 +02:00

44 lines
1.1 KiB
Makefile

#
# 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
PKG_VERSION:=2.6.1
PKG_RELEASE:=1
PYPI_NAME:=$(PKG_NAME)
PKG_HASH:=7600d7e2383c853e5c3a6e05d37e17643beebf2b3e10d7914dffcc3bc3c6e6c5
PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
PKG_LICENSE:=GPL-2.0-only
PKG_LICENSE_FILES:=LICENSE
PKG_CPE_ID:=cpe:/a:scapy:scapy
include ../../lang/python/pypi.mk
include $(INCLUDE_DIR)/package.mk
include ../../lang/python/python3-package.mk
define Package/scapy
SECTION:=net
CATEGORY:=Network
TITLE:=Interactive packet manipulation tool and network scanner
URL:=https://scapy.net/
DEPENDS:=+python3
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
$(eval $(call Py3Package,scapy))
$(eval $(call BuildPackage,scapy))
$(eval $(call BuildPackage,scapy-src))