source: packages/utils/klish/Makefile @ 31310

Last change on this file since 31310 was 31310, checked in by jow, 4 years ago

add klish package

The klish is a framework for implementing a CISCO-like CLI on a UNIX
systems. It is configurable by XML files. The KLISH stands for Kommand
Line Interface Shell.

klish is an active fork of the clish program created by Graeme
McKerrell.

Signed-off by: Emmanuel Deloget <logout@…>

File size: 2.7 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=klish
11PKG_VERSION:=1.5.4
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=http://klish.googlecode.com/files
16PKG_MD5SUM:=c98a1c65f7538c3f4687c6f8039295df
17
18PKG_INSTALL:=1
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/klish/default
23  SECTION:=utils
24  CATEGORY:=Utilities
25  TITLE:=Kommand Line Interface SHell ($(1))
26  URL:=http://code.google.com/p/klish/
27endef
28
29define Package/klish
30$(call Package/klish/default,main tool)
31  DEPENDS:=+libstdcpp
32endef
33
34define Package/konf
35$(call Package/klish/default,konf tool)
36  DEPENDS:=klish
37endef
38
39define 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
42 Line Interface Shell.
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.
48endef
49
50define 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
53 Line Interface Shell.
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.
57endef
58
59define 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/
64endef
65
66define 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/
73endef
74
75$(eval $(call BuildPackage,klish))
76$(eval $(call BuildPackage,konf))
77
78define Package/klish-xml-files
79  SECTION:=utils
80  CATEGORY:=Utilities
81  DEPENDS:=klish
82  TITLE:=klish sample XML files
83  URL:=http://code.google.com/p/klish/
84endef
85
86define 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.
89endef
90
91define Package/klish-xml-files/install
92        $(INSTALL_DIR) $(1)/etc/clish
93        $(CP) $(PKG_BUILD_DIR)/xml-examples/clish $(1)/etc/clish/
94endef
95
96$(eval $(call BuildPackage,klish-xml-files))
Note: See TracBrowser for help on using the repository browser.