Initial Commit
- initial default booting image
This commit is contained in:
19
package/xtables-addons/Config.in
Normal file
19
package/xtables-addons/Config.in
Normal file
@@ -0,0 +1,19 @@
|
||||
comment "xtables-addons needs a Linux kernel to be built"
|
||||
depends on !BR2_LINUX_KERNEL
|
||||
|
||||
comment "xtables-addons needs a toolchain w/ dynamic library, threads"
|
||||
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
config BR2_PACKAGE_XTABLES_ADDONS
|
||||
bool "xtables-addons"
|
||||
depends on BR2_LINUX_KERNEL
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on !BR2_STATIC_LIBS # extensions are .so
|
||||
select BR2_PACKAGE_IPTABLES
|
||||
select BR2_LINUX_NEEDS_MODULES # not using kernel-module infra
|
||||
help
|
||||
Xtables-addons is the successor to patch-o-matic(-ng).
|
||||
Likewise, it contains extensions that were not, or are not
|
||||
yet, accepted in the main kernel/iptables packages.
|
||||
|
||||
https://inai.de/projects/xtables-addons/
|
||||
3
package/xtables-addons/xtables-addons.hash
Normal file
3
package/xtables-addons/xtables-addons.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 3e823f71720519ced31c4c7d2bfaf7120d9c01c59a0843dfcbe93c95c64d81c1 xtables-addons-3.24.tar.xz
|
||||
sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 LICENSE
|
||||
42
package/xtables-addons/xtables-addons.mk
Normal file
42
package/xtables-addons/xtables-addons.mk
Normal file
@@ -0,0 +1,42 @@
|
||||
################################################################################
|
||||
#
|
||||
# xtables-addons
|
||||
#
|
||||
################################################################################
|
||||
|
||||
XTABLES_ADDONS_VERSION = 3.24
|
||||
XTABLES_ADDONS_SOURCE = xtables-addons-$(XTABLES_ADDONS_VERSION).tar.xz
|
||||
XTABLES_ADDONS_SITE = https://inai.de/files/xtables-addons
|
||||
XTABLES_ADDONS_DEPENDENCIES = iptables linux host-pkgconf
|
||||
XTABLES_ADDONS_LICENSE = GPL-2.0+
|
||||
XTABLES_ADDONS_LICENSE_FILES = LICENSE
|
||||
|
||||
XTABLES_ADDONS_CONF_OPTS = \
|
||||
--with-kbuild="$(LINUX_DIR)" \
|
||||
--with-xtlibdir="/usr/lib/xtables"
|
||||
|
||||
define XTABLES_ADDONS_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LINUX_MAKE_FLAGS)
|
||||
endef
|
||||
|
||||
define XTABLES_ADDONS_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LINUX_MAKE_FLAGS) DESTDIR="$(TARGET_DIR)" install
|
||||
endef
|
||||
|
||||
# geoip helpers need perl with modules and unzip so remove them
|
||||
define XTABLES_ADDONS_REMOVE_GEOIP_HELPERS
|
||||
$(RM) $(TARGET_DIR)/usr/bin/xt_geoip*
|
||||
$(RM) $(TARGET_DIR)/usr/libexec/xtables-addons/xt_asn*
|
||||
$(RM) $(TARGET_DIR)/usr/libexec/xtables-addons/xt_geoip*
|
||||
endef
|
||||
|
||||
XTABLES_ADDONS_POST_INSTALL_TARGET_HOOKS += XTABLES_ADDONS_REMOVE_GEOIP_HELPERS
|
||||
|
||||
define XTABLES_ADDONS_LINUX_CONFIG_FIXUPS
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_NETFILTER_ADVANCED)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_NF_CONNTRACK)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_NF_CONNTRACK_MARK)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_NF_NAT)
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user