Makefile 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. #
  2. # Copyright (C) 2012 OpenWrt.org
  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:=1.5.4
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=http://klish.googlecode.com/files
  13. PKG_MD5SUM:=c98a1c65f7538c3f4687c6f8039295df
  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:=+libstdcpp
  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. define Package/klish/install
  49. $(INSTALL_DIR) $(1)/usr/bin
  50. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/clish $(1)/usr/bin/
  51. $(INSTALL_DIR) $(1)/usr/lib
  52. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  53. endef
  54. define Package/konf/install
  55. $(INSTALL_DIR) $(1)/usr/bin
  56. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/konf $(1)/usr/bin/
  57. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/konfd $(1)/usr/bin/
  58. $(INSTALL_DIR) $(1)/usr/lib
  59. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libkonf.so* $(1)/usr/lib/
  60. $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblub.so* $(1)/usr/lib/
  61. endef
  62. $(eval $(call BuildPackage,klish))
  63. $(eval $(call BuildPackage,konf))
  64. define Package/klish-xml-files
  65. SECTION:=utils
  66. CATEGORY:=Utilities
  67. DEPENDS:=klish
  68. TITLE:=klish sample XML files
  69. URL:=http://code.google.com/p/klish/
  70. endef
  71. define Package/klish-xml-files/description
  72. This is a set of sample XML files for klish. This specific sample set
  73. is compatible with the original clish.
  74. endef
  75. define Package/klish-xml-files/install
  76. $(INSTALL_DIR) $(1)/etc/clish
  77. $(CP) $(PKG_BUILD_DIR)/xml-examples/clish $(1)/etc/clish/
  78. endef
  79. $(eval $(call BuildPackage,klish-xml-files))