generated from gaoyang3513/SDK_RK3288
[Mod] First commit
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
|
||||
6
package/python-iptables/python-iptables.hash
Normal file
6
package/python-iptables/python-iptables.hash
Normal file
@ -0,0 +1,6 @@
|
||||
# md5, sha256 from https://pypi.org/pypi/python-iptables/json
|
||||
md5 3fb27da1107bdb62196850fa70e8b0d4 python-iptables-1.0.0.tar.gz
|
||||
sha256 480470adb5f29bf84269b4e53dbad9623af91c79aa666cc0274dec199a555bc5 python-iptables-1.0.0.tar.gz
|
||||
|
||||
# Locally calculated
|
||||
sha256 b827789c74144d9bb92595ed3bc568aef767a7e8d930fba61c2cdd9f6ec27599 NOTICE
|
||||
22
package/python-iptables/python-iptables.mk
Normal file
22
package/python-iptables/python-iptables.mk
Normal file
@ -0,0 +1,22 @@
|
||||
################################################################################
|
||||
#
|
||||
# python-iptables
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PYTHON_IPTABLES_VERSION = 1.0.0
|
||||
PYTHON_IPTABLES_SITE = https://files.pythonhosted.org/packages/ca/6e/cba9c6f4b5a1963b7f5b015f5ed5e2eec7a94ac460570e3474177c4004d6
|
||||
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
|
||||
endef
|
||||
|
||||
PYTHON_IPTABLES_PRE_BUILD_HOOKS += PYTHON_IPTABLES_SET_XTABLES_ENV_VARS
|
||||
|
||||
$(eval $(python-package))
|
||||
Reference in New Issue
Block a user