Skip to content

Commit

Permalink
nftables: install libnftables to staging dir
Browse files Browse the repository at this point in the history
Makes libnftables library and headers available for other packages.

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
  • Loading branch information
Daniel Danzberger authored and hauke committed Nov 20, 2021
1 parent 9211af7 commit 0e96e06
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion package/network/utils/nftables/Makefile
Expand Up @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=nftables
PKG_VERSION:=1.0.0
PKG_RELEASE:=1
PKG_RELEASE:=2

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=https://netfilter.org/projects/$(PKG_NAME)/files
Expand Down Expand Up @@ -61,6 +61,12 @@ endif
TARGET_CFLAGS += -flto
TARGET_LDFLAGS += -flto

define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/include/nftables $(1)/usr/include/
endef

define Package/nftables/install/Default
$(INSTALL_DIR) $(1)/usr/sbin
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/nft $(1)/usr/sbin/
Expand Down

0 comments on commit 0e96e06

Please sign in to comment.