On Fri, Mar 2, 2012 at 3:33 AM, Viktar Palstsiuk
<[email protected]> wrote:
> On Fri, Mar 2, 2012 at 12:37 AM, Outback Dingo <[email protected]> wrote:
>> On Tue, Feb 28, 2012 at 10:17 AM, Viktar Palstsiuk
>> <[email protected]> wrote:
>>> Signed-off-by: Viktar Palstsiuk <[email protected]>
>>> ---
>>>  utils/clish/Makefile |   44 ++++++++++++++++++++++++++++++++++++++++++++
>>>  1 files changed, 44 insertions(+), 0 deletions(-)
>>>  create mode 100644 utils/clish/Makefile
>>>
>>> diff --git a/utils/clish/Makefile b/utils/clish/Makefile
>>> new file mode 100644
>>> index 0000000..78f6ae2
>>> --- /dev/null
>>> +++ b/utils/clish/Makefile
>>> @@ -0,0 +1,44 @@
>>> +#
>>> +# Copyright (C) 2012 OpenWrt.org
>>> +#
>>> +# This is free software, licensed under the GNU General Public License v2.
>>> +# See /LICENSE for more information.
>>> +#
>>> +
>>> +include $(TOPDIR)/rules.mk
>>> +
>>> +PKG_NAME:=clish
>>> +PKG_VERSION:=0.7.3
>>> +PKG_RELEASE:=1
>>> +
>>> +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
>>> +PKG_SOURCE_URL:=@SF/$(PKG_NAME)
>>> +PKG_MD5SUM:=81e20f7a888bcd8e2280e37804d342e4
>>> +
>>> +PKG_INSTALL:=1
>>> +
>>> +include $(INCLUDE_DIR)/package.mk
>>> +
>>> +define Package/clish
>>> +  SECTION:=utils
>>> +  CATEGORY:=Utilities
>>> +  DEPENDS:=+libstdcpp
>>> +  TITLE:=Command Line Interface SHell
>>> +  URL:=http://clish.sourceforge.net/
>>> +endef
>>> +
>>> +define Package/clish/description
>>> + A modular framework for implementing a CISCO-like CLI on a *NIX system.
>>> + Arbitary command menus and actions can be defined using XML files.
>>> + This software handles the user interaction,
>>> + and forks the appropriate system commands to perform any actions.
>>> +endef
>>> +
>>> +define Package/clish/install
>>> +       $(INSTALL_DIR) $(1)/usr/bin
>>> +       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
>>> +       $(INSTALL_DIR) $(1)/usr/lib
>>> +       $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
>>> +endef
>>> +
>>> +$(eval $(call BuildPackage,clish))
>>> --
>>> 1.7.9
>>
>>
>> Im willing to commit this, but it would help if you added some basic
>> configuration files for users, even if minimal to the package built
>> as to give users a start on creating their custom configurations
>>
>>>
>>> _______________________________________________
>>> openwrt-devel mailing list
>>> [email protected]
>>> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
>> _______________________________________________
>> openwrt-devel mailing list
>> [email protected]
>> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
>
> clish tar ball already has some configuration file examples which can
> be installed to the /etc/clish/
>
> diff --git a/utils/clish/Makefile b/utils/clish/Makefile
> index 78f6ae2..1a7d3e0 100644
> --- a/utils/clish/Makefile
> +++ b/utils/clish/Makefile
> @@ -39,6 +39,8 @@ define Package/clish/install
>        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
>        $(INSTALL_DIR) $(1)/usr/lib
>        $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
> +       $(INSTALL_DIR) $(1)/etc/clish
> +       $(CP) $(PKG_BUILD_DIR)/xml-examples/*.xml $(1)/etc/clish/
>  endef
>
>  $(eval $(call BuildPackage,clish))
>
> --
> Best regards,
> Viktar Palstsiuk

Committed revision 30788.


> _______________________________________________
> openwrt-devel mailing list
> [email protected]
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to