3 # Copyright (C) 2016 OpenWrt.org
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
16 PKG_SOURCE_URL
:=http
://libcode.org
/attachments
/download
/66/
17 PKG_LICENSE
:=BSD-3-Clause
18 PKG_LICENSE_FILES
:=LICENCE
19 PKG_MAINTAINER
:=Takashi Umeno
<umeno.takashi@gmail.com
>
20 PKG_MD5SUM
:=7dfe46d474c02c86946c1d7a461ae549
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/klish
/default
30 TITLE
:=Kommand Line Interface SHell
($(1))
31 URL
:=http
://libcode.org
/projects
/klish
/
35 $(call Package
/klish
/default
,main tool
)
36 DEPENDS
:=+libstdcpp
+libxml2
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.
48 Konf and konfd are klish utilities that are used to store configuration
49 informations in a way which is similar to what
's found on CISCO devices.
50 More information about these tools is to be found on the klish web site.
53 define Build/Configure
54 $(call Build/Configure/Default, \
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_BIN) $(PKG_INSTALL_DIR)/usr/bin/konf $(1)/usr/bin/
63 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/konfd $(1)/usr/bin/
64 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sigexec $(1)/usr/bin/
65 $(INSTALL_DIR) $(1)/usr/lib
66 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
69 $(eval $(call BuildPackage,klish))
71 define Package/klish-xml-files
75 TITLE:=klish sample XML files
76 URL:=http://code.google.com/p/klish/
79 define Package/klish-xml-files/description
80 This is a set of sample XML files for klish.
83 define Package/klish-xml-files/install
84 $(INSTALL_DIR) $(1)/etc/clish
85 $(CP) $(PKG_BUILD_DIR)/xml-examples/clish $(1)/etc/clish/
86 $(CP) $(PKG_BUILD_DIR)/xml-examples/klish $(1)/etc/clish/
87 $(CP) $(PKG_BUILD_DIR)/xml-examples/lua $(1)/etc/clish/
88 $(CP) $(PKG_BUILD_DIR)/xml-examples/test $(1)/etc/clish/
91 $(eval $(call BuildPackage,klish-xml-files))