dmidecode: moved to github
[packages.git] / utils / klish / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=klish
11 PKG_VERSION:=1.5.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://klish.googlecode.com/files
16 PKG_MD5SUM:=c98a1c65f7538c3f4687c6f8039295df
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/klish/default
23   SECTION:=utils
24   CATEGORY:=Utilities
25   TITLE:=Kommand Line Interface SHell ($(1))
26   URL:=http://code.google.com/p/klish/
27 endef
28
29 define Package/klish
30 $(call Package/klish/default,main tool)
31   DEPENDS:=+libstdcpp
32 endef
33
34 define Package/konf
35 $(call Package/klish/default,konf tool)
36   DEPENDS:=klish
37 endef
38
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
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.
48 endef
49
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
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.
57 endef
58
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/
64 endef
65
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/
73 endef
74
75 $(eval $(call BuildPackage,klish))
76 $(eval $(call BuildPackage,konf))
77
78 define 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/
84 endef
85
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.
89 endef
90
91 define Package/klish-xml-files/install
92         $(INSTALL_DIR) $(1)/etc/clish
93         $(CP) $(PKG_BUILD_DIR)/xml-examples/clish $(1)/etc/clish/
94 endef
95
96 $(eval $(call BuildPackage,klish-xml-files))