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.gz
15 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
16 PKG_MD5SUM:=81e20f7a888bcd8e2280e37804d342e4
20 include $(INCLUDE_DIR)/package.mk
25 DEPENDS:=+libstdcpp +libpthread
26 TITLE:=Command Line Interface SHell
27 URL:=http://clish.sourceforge.net/
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.
41 bin_PROGRAMS=bin/clish
43 define Package/clish/install
44 $(INSTALL_DIR) $(1)/usr/bin
45 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
46 $(INSTALL_DIR) $(1)/usr/lib
47 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
48 $(INSTALL_DIR) $(1)/etc/clish
49 $(CP) $(PKG_BUILD_DIR)/xml-examples/*.xml $(1)/etc/clish/
52 $(eval $(call BuildPackage,clish))