diff mbox series

nftables: install libnftables to staging dir

Message ID 20210928094850.1400306-1-daniel@dd-wrt.com
State Changes Requested
Delegated to: Adrian Schmutzler
Headers show
Series nftables: install libnftables to staging dir | expand

Commit Message

Daniel Danzberger Sept. 28, 2021, 9:48 a.m. UTC
Makes libnftables library and headers available for other packages.

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
---
 package/network/utils/nftables/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Adrian Schmutzler Oct. 2, 2021, 4:47 p.m. UTC | #1
Hi,

> -----Original Message-----
> From: openwrt-devel [mailto:openwrt-devel-bounces@lists.openwrt.org]
> On Behalf Of Daniel Danzberger
> Sent: Dienstag, 28. September 2021 11:49
> To: openwrt-devel@lists.openwrt.org
> Cc: john@phrozen.org; Daniel Danzberger <daniel@dd-wrt.com>
> Subject: [PATCH] nftables: install libnftables to staging dir
> 
> Makes libnftables library and headers available for other packages.

Please bump PKG_RELEASE or use $(AUTORELEASE) instead.

Best

Adrian

> 
> Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
> ---
>  package/network/utils/nftables/Makefile | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/package/network/utils/nftables/Makefile
> b/package/network/utils/nftables/Makefile
> index 7830596e84..32384aca0e 100644
> --- a/package/network/utils/nftables/Makefile
> +++ b/package/network/utils/nftables/Makefile
> @@ -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/
> --
> 2.33.0
> 
> 
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
diff mbox series

Patch

diff --git a/package/network/utils/nftables/Makefile b/package/network/utils/nftables/Makefile
index 7830596e84..32384aca0e 100644
--- a/package/network/utils/nftables/Makefile
+++ b/package/network/utils/nftables/Makefile
@@ -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/