lxc: moved to github
[packages.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 +libpthread
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 CONFIGURE_VARS += \
38         ac_cv_header_bfd_h=no
39
40 MAKE_FLAGS += \
41         bin_PROGRAMS=bin/clish
42
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/
50 endef
51
52 $(eval $(call BuildPackage,clish))