Selaa lähdekoodia

Add contrib files for the buildroot environment.

git-svn-id: https://klish.googlecode.com/svn/trunk@333 0eaa4687-2ee9-07dd-09d9-bcdd2d2dd5fb
Serj Kalichev 13 vuotta sitten
vanhempi
commit
d477ede913

+ 22 - 0
contrib/README

@@ -0,0 +1,22 @@
+--------------------------------------------------------------------------------
+ Buildroot
+--------------------------------------------------------------------------------
+
+The buildroot/ directrory contain the files to embed the klish package into the
+buildroot environment. The buildroot/package/klish must be copied to the
+buildroot's source tree package/klish directory. Then the package/Config.in
+file must be changed. Add the following string
+
+source "package/klish/Config.in"
+
+to the section started with 'menu "Shell and utilities"' (or to the another
+section if you think it will be better and you know what you do). After that you
+can configure buildroot and enable the building the klish package. You can find
+the menu for the klish within
+"Package Selection for the target"->"Shell and utilities" in the configurator.
+The klish's config allow to use the predefined version of klish or automatically
+download the last revision from the SVN repository.
+
+These files were tested with buildroot-2010.11.
+The current predefined stable version of klish package that used in the
+buildroot's klish.mk file is 1.3.1.

+ 16 - 0
contrib/buildroot/package/klish/Config.in

@@ -0,0 +1,16 @@
+config BR2_PACKAGE_KLISH
+	bool "klish"
+	help
+	  The klish is a framework for implementing a CISCO-like CLI on a UNIX systems.
+	  It is configurable by XML files. The klish is the fork of clish project.
+
+	  http://klish.googlecode.com
+
+if BR2_PACKAGE_KLISH
+
+config BR2_PACKAGE_KLISH_SVN
+	bool "Get klish sources from the SVN repository"
+	help
+	  Use source code from SVN repository instead klish stable version.
+
+endif

+ 21 - 0
contrib/buildroot/package/klish/klish.mk

@@ -0,0 +1,21 @@
+#############################################################
+#
+# klish
+#
+#############################################################
+
+ifeq ($(BR2_PACKAGE_KLISH_SVN),y)
+KLISH_VERSION:=HEAD
+KLISH_SITE:=http://klish.googlecode.com/svn/trunk
+KLISH_SITE_METHOD:=svn
+else
+KLISH_VERSION = 1.3.1
+KLISH_SOURCE = klish-$(KLISH_VERSION).tar.bz2
+KLISH_SITE = http://klish.googlecode.com/files
+endif
+
+KLISH_INSTALL_STAGING = YES
+KLISH_INSTALL_TARGET = YES
+KLISH_CONF_OPT = --disable-gpl --without-tcl
+
+$(eval $(call AUTOTARGETS,package,klish))