Makefile 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. #
  2. # Copyright (C) 2014-2015 Emmanuel Deloget
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=klish
  9. PKG_VERSION:=2.1.4
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=http://libcode.org/attachments/download/70/
  13. PKG_MD5SUM:=57a0b39b6e0a450007ee9e0b2ff50f03
  14. PKG_INSTALL:=1
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/klish/default
  17. SECTION:=utils
  18. CATEGORY:=Utilities
  19. TITLE:=Kommand Line Interface SHell ($(1))
  20. URL:=http://code.google.com/p/klish/
  21. endef
  22. define Package/klish
  23. $(call Package/klish/default,main tool)
  24. DEPENDS:=+libroxml
  25. endef
  26. define Package/konf
  27. $(call Package/klish/default,konf tool)
  28. DEPENDS:=klish
  29. endef
  30. define Package/klish/description
  31. The klish is a framework for implementing a CISCO-like CLI on a UNIX
  32. systems. It is configurable by XML files. The KLISH stands for Kommand
  33. Line Interface Shell.
  34. The klish is a fork of clish 0.7.3 developed by Graeme McKerrell.
  35. It defines new features but it's compatible (as much as possible) with
  36. clish's XML configuration files.
  37. klish is able to run using clish XML configuration files although
  38. current clish users may expect some changes in behavior.
  39. endef
  40. define Package/konf/description
  41. The klish is a framework for implementing a CISCO-like CLI on a UNIX
  42. systems. It is configurable by XML files. The KLISH stands for Kommand
  43. Line Interface Shell.
  44. Konf and konfd are klish utilities that are used to store configuration
  45. informations in a way which is similar to what's found on CISCO devices.
  46. More information about these tools is to be found on the klish web site.
  47. endef
  48. CONFIGURE_ARGS += \
  49. --with-libroxml
  50. define Package/klish/install
  51. $(INSTALL_DIR) $(1)/usr/bin
  52. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/clish $(1)/usr/bin/
  53. $(INSTALL_DIR) $(1)/usr/lib
  54. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  55. endef
  56. define Package/konf/install
  57. $(INSTALL_DIR) $(1)/usr/bin
  58. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/konf $(1)/usr/bin/
  59. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/konfd $(1)/usr/bin/
  60. $(INSTALL_DIR) $(1)/usr/lib
  61. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libkonf.so* $(1)/usr/lib/
  62. $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblub.so* $(1)/usr/lib/
  63. endef
  64. $(eval $(call BuildPackage,klish))
  65. $(eval $(call BuildPackage,konf))
  66. define Package/klish-xml-files
  67. SECTION:=utils
  68. CATEGORY:=Utilities
  69. DEPENDS:=klish
  70. TITLE:=klish sample XML files
  71. URL:=http://code.google.com/p/klish/
  72. endef
  73. define Package/klish-xml-files/description
  74. This is a set of sample XML files for klish. This specific sample set
  75. is compatible with the original clish.
  76. endef
  77. define Package/klish-xml-files/install
  78. $(INSTALL_DIR) $(1)/etc/clish
  79. $(CP) $(PKG_BUILD_DIR)/xml-examples/clish $(1)/etc/clish/
  80. endef
  81. $(eval $(call BuildPackage,klish-xml-files))