You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.3 KiB

  1. # This is free software, licensed under the GNU General Public License v2.
  2. # See /LICENSE for more information.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:=open-isns
  5. PKG_VERSION:=0.100
  6. PKG_RELEASE:=2
  7. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  8. PKG_SOURCE_URL:=https://codeload.github.com/open-iscsi/open-isns/tar.gz/v$(PKG_VERSION)?
  9. PKG_HASH:=b011edbb0f31690aaca902a8ecf4e1f17b01d6c9e9afc51909d26b0993b4328f
  10. PKG_MAINTAINER:=Lucian CRISTIAN <lucian.cristian@gmail.com>
  11. PKG_LICENSE:=GPL-2.0-or-later
  12. PKG_LICENSE_FILES:=COPYING
  13. PKG_FIXUP:=autoreconf
  14. PKG_BUILD_PARALLEL:=1
  15. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/open-isns
  18. SECTION:=libs
  19. CATEGORY:=Libraries
  20. URL:=http://www.open-iscsi.com/
  21. TITLE:=open-isns
  22. DEPENDS:=+libopenssl
  23. endef
  24. define Package/open-isns/description
  25. This is a partial implementation of iSNS, according to RFC4171.
  26. endef
  27. CONFIGURE_ARGS += \
  28. --enable-shared
  29. TARGET_CFLAGS += $(FPIC) -flto
  30. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
  31. define Build/InstallDev
  32. $(INSTALL_DIR) $(1)/usr/include/libisns
  33. $(INSTALL_DATA) $(PKG_BUILD_DIR)/include/libisns/* $(1)/usr/include/libisns/
  34. $(INSTALL_DIR) $(1)/usr/lib
  35. $(CP) $(PKG_BUILD_DIR)/libisns.so* $(1)/usr/lib/
  36. endef
  37. define Package/open-isns/install
  38. $(INSTALL_DIR) $(1)/usr/lib
  39. $(CP) $(PKG_BUILD_DIR)/libisns.so* $(1)/usr/lib/
  40. endef
  41. $(eval $(call BuildPackage,open-isns))