[source] ipset: Add InstallDev to provide libipset as library

LEDE Commits lede-commits at lists.infradead.org
Sat Nov 26 13:40:23 PST 2016


blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/04a76da1aea059c638b166e5433a13d0951fb2bd

commit 04a76da1aea059c638b166e5433a13d0951fb2bd
Author: Julian Kornberger <jk+github at digineo.de>
AuthorDate: Sat Nov 26 11:15:34 2016 +0100

    ipset: Add InstallDev to provide libipset as library
---
 package/network/utils/ipset/Makefile | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/package/network/utils/ipset/Makefile b/package/network/utils/ipset/Makefile
index c48ac04..13d1d3d 100644
--- a/package/network/utils/ipset/Makefile
+++ b/package/network/utils/ipset/Makefile
@@ -1,4 +1,4 @@
- 
+
 # Copyright (C) 2009-2012 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
@@ -43,6 +43,13 @@ define Build/Compile
 	$(call Build/Compile/Default)
 endef
 
+define Build/InstallDev
+	$(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig
+	$(CP) $(PKG_INSTALL_DIR)/usr/include/libipset $(1)/usr/include/
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libipset.{a,so*} $(1)/usr/lib/
+	$(CP) $(PKG_BUILD_DIR)/lib/libipset.pc $(1)/usr/lib/pkgconfig/
+endef
+
 define Package/ipset/install
 	$(INSTALL_DIR) $(1)/usr/sbin
 	$(CP) $(PKG_INSTALL_DIR)/usr/sbin/ipset $(1)/usr/sbin/



More information about the lede-commits mailing list