2 # Copyright (C) 2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=http
://klish.googlecode.com
/files
16 PKG_MD5SUM
:=c98a1c65f7538c3f4687c6f8039295df
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/klish
/default
25 TITLE
:=Kommand Line Interface SHell
($(1))
26 URL
:=http
://code.google.com
/p
/klish
/
30 $(call Package
/klish
/default
,main tool
)
35 $(call Package
/klish
/default
,konf tool
)
39 define Package
/klish
/description
40 The klish is a framework for implementing a CISCO-like CLI on a UNIX
41 systems. It is configurable by XML files. The KLISH stands for Kommand
43 The klish is a fork of clish
0.7.3 developed by Graeme McKerrell.
44 It defines new features but it
's compatible (as much as possible) with
45 clish's XML configuration files.
46 klish is able to run using clish XML configuration files although
47 current clish users may expect some changes in behavior.
50 define Package
/konf
/description
51 The klish is a framework for implementing a CISCO-like CLI on a UNIX
52 systems. It is configurable by XML files. The KLISH stands for Kommand
54 Konf and konfd are klish utilities that are used to store configuration
55 informations in a way which is similar to what
's found on CISCO devices.
56 More information about these tools is to be found on the klish web site.
59 define Package/klish/install
60 $(INSTALL_DIR) $(1)/usr/bin
61 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/clish $(1)/usr/bin/
62 $(INSTALL_DIR) $(1)/usr/lib
63 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
66 define Package/konf/install
67 $(INSTALL_DIR) $(1)/usr/bin
68 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/konf $(1)/usr/bin/
69 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/konfd $(1)/usr/bin/
70 $(INSTALL_DIR) $(1)/usr/lib
71 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libkonf.so* $(1)/usr/lib/
72 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblub.so* $(1)/usr/lib/
75 $(eval $(call BuildPackage,klish))
76 $(eval $(call BuildPackage,konf))
78 define Package/klish-xml-files
82 TITLE:=klish sample XML files
83 URL:=http://code.google.com/p/klish/
86 define Package/klish-xml-files/description
87 This is a set of sample XML files for klish. This specific sample set
88 is compatible with the original clish.
91 define Package/klish-xml-files/install
92 $(INSTALL_DIR) $(1)/etc/clish
93 $(CP) $(PKG_BUILD_DIR)/xml-examples/clish $(1)/etc/clish/
96 $(eval $(call BuildPackage,klish-xml-files))