Initial Commit
- initial default booting image
This commit is contained in:
11
package/python-iptables/Config.in
Normal file
11
package/python-iptables/Config.in
Normal file
@@ -0,0 +1,11 @@
|
||||
config BR2_PACKAGE_PYTHON_IPTABLES
|
||||
bool "python-iptables"
|
||||
depends on !BR2_STATIC_LIBS
|
||||
select BR2_PACKAGE_IPTABLES
|
||||
help
|
||||
Python bindings for iptables.
|
||||
|
||||
https://github.com/ldx/python-iptables
|
||||
|
||||
comment "python-iptables needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
5
package/python-iptables/python-iptables.hash
Normal file
5
package/python-iptables/python-iptables.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# md5, sha256 from https://pypi.org/pypi/python-iptables/json
|
||||
md5 b93381df79a3d6f61040f399cb2bd57c python_iptables-1.2.0.tar.gz
|
||||
sha256 60f120d548f6d940f682f2c78851956018588936de05b9d5d338c3cb9bb47ca2 python_iptables-1.2.0.tar.gz
|
||||
# Locally computed sha256 checksums
|
||||
sha256 b827789c74144d9bb92595ed3bc568aef767a7e8d930fba61c2cdd9f6ec27599 NOTICE
|
||||
24
package/python-iptables/python-iptables.mk
Normal file
24
package/python-iptables/python-iptables.mk
Normal file
@@ -0,0 +1,24 @@
|
||||
################################################################################
|
||||
#
|
||||
# python-iptables
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PYTHON_IPTABLES_VERSION = 1.2.0
|
||||
PYTHON_IPTABLES_SOURCE = python_iptables-$(PYTHON_IPTABLES_VERSION).tar.gz
|
||||
PYTHON_IPTABLES_SITE = https://files.pythonhosted.org/packages/55/3c/a2626b88fffb5bcebae80a2dca1e09ff539ab454a8e5fb2e50141943a1f8
|
||||
PYTHON_IPTABLES_SETUP_TYPE = setuptools
|
||||
PYTHON_IPTABLES_LICENSE = Apache-2.0
|
||||
PYTHON_IPTABLES_LICENSE_FILES = NOTICE
|
||||
PYTHON_IPTABLES_DEPENDENCIES = iptables
|
||||
|
||||
define PYTHON_IPTABLES_SET_XTABLES_ENV_VARS
|
||||
XTABLES_VERSION=`awk '/XTABLES_VERSION_CODE/ {print $$NF}' $(STAGING_DIR)/usr/include/xtables-version.h`; \
|
||||
sed -i "s%os.getenv(\"PYTHON_IPTABLES_XTABLES_VERSION\")%$$XTABLES_VERSION%" $(@D)/iptc/xtables.py
|
||||
sed -i "s%os.getenv(\"XTABLES_LIBDIR\")%\"/usr/lib/xtables\"%" $(@D)/iptc/xtables.py
|
||||
sed -i "s%os.environ.get('IPTABLES_LIBDIR', None)%\"/usr/lib\"%" $(@D)/iptc/util.py
|
||||
endef
|
||||
|
||||
PYTHON_IPTABLES_PRE_BUILD_HOOKS += PYTHON_IPTABLES_SET_XTABLES_ENV_VARS
|
||||
|
||||
$(eval $(python-package))
|
||||
Reference in New Issue
Block a user