[patchteam] Add package for Command Line Interface SHell - Signed-off-by: Viktar...
[openwrt/svn-archive/archive.git] / utils / clish / 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:=clish
11 PKG_VERSION:=0.7.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
16 PKG_MD5SUM:=81e20f7a888bcd8e2280e37804d342e4
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/clish
23 SECTION:=utils
24 CATEGORY:=Utilities
25 DEPENDS:=+libstdcpp
26 TITLE:=Command Line Interface SHell
27 URL:=http://clish.sourceforge.net/
28 endef
29
30 define Package/clish/description
31 A modular framework for implementing a CISCO-like CLI on a *NIX system.
32 Arbitary command menus and actions can be defined using XML files.
33 This software handles the user interaction,
34 and forks the appropriate system commands to perform any actions.
35 endef
36
37 define Package/clish/install
38 $(INSTALL_DIR) $(1)/usr/bin
39 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
40 $(INSTALL_DIR) $(1)/usr/lib
41 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
42 $(INSTALL_DIR) $(1)/etc/clish
43 $(CP) $(PKG_BUILD_DIR)/xml-examples/*.xml $(1)/etc/clish/
44 endef
45
46 $(eval $(call BuildPackage,clish))