2016-01-18 02:27:32 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (C) 2016 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:=klish
|
2021-08-08 04:31:41 +00:00
|
|
|
PKG_VERSION:=2.2.3
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 16:32:27 +00:00
|
|
|
PKG_RELEASE:=1
|
2016-01-18 02:27:32 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
2021-08-08 04:31:41 +00:00
|
|
|
PKG_SOURCE_URL:=http://libcode.org/attachments/download/82
|
|
|
|
PKG_HASH:=89a08295522fea9736a84e11da3d990641fc43b7e548626d2a56e75ed9d8d47b
|
2019-10-14 21:41:56 +00:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Takashi Umeno <umeno.takashi@gmail.com>
|
2016-01-18 02:27:32 +00:00
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
|
|
PKG_LICENSE_FILES:=LICENCE
|
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
2019-10-14 21:41:56 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2016-01-18 02:27:32 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-02-15 15:53:25 +00:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2016-01-18 02:27:32 +00:00
|
|
|
|
|
|
|
define Package/klish/default
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2016-10-23 16:35:48 +00:00
|
|
|
SUBMENU:=Shells
|
2016-01-18 02:27:32 +00:00
|
|
|
TITLE:=Kommand Line Interface SHell ($(1))
|
2019-10-14 21:41:56 +00:00
|
|
|
URL:=https://libcode.org/projects/klish/
|
2016-01-18 02:27:32 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/klish
|
|
|
|
$(call Package/klish/default,main tool)
|
2019-10-14 21:41:56 +00:00
|
|
|
DEPENDS:=+libxml2
|
2016-01-18 02:27:32 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/klish/description
|
|
|
|
The klish is a framework for implementing a CISCO-like CLI on a UNIX
|
|
|
|
systems. It is configurable by XML files. The KLISH stands for Kommand
|
|
|
|
Line Interface Shell.
|
|
|
|
The klish is a fork of clish 0.7.3 developed by Graeme McKerrell.
|
|
|
|
It defines new features but it's compatible (as much as possible) with
|
|
|
|
clish's XML configuration files.
|
|
|
|
klish is able to run using clish XML configuration files although
|
|
|
|
current clish users may expect some changes in behavior.
|
|
|
|
Konf and konfd are klish utilities that are used to store configuration
|
|
|
|
informations in a way which is similar to what's found on CISCO devices.
|
|
|
|
More information about these tools is to be found on the klish web site.
|
|
|
|
endef
|
|
|
|
|
2018-05-08 13:00:58 +00:00
|
|
|
CONFIGURE_ARGS += --with-libxml2
|
2016-01-18 02:27:32 +00:00
|
|
|
|
2020-08-22 21:07:29 +00:00
|
|
|
TARGET_CFLAGS += -D_GNU_SOURCE
|
|
|
|
|
2016-01-18 02:27:32 +00:00
|
|
|
define Package/klish/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/clish $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/konf $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/konfd $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sigexec $(1)/usr/bin/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,klish))
|
|
|
|
|
|
|
|
define Package/klish-xml-files
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
DEPENDS:=klish
|
|
|
|
TITLE:=klish sample XML files
|
2019-10-14 21:41:56 +00:00
|
|
|
URL:=https://libcode.org/projects/klish/
|
2016-01-18 02:27:32 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/klish-xml-files/description
|
2019-10-14 21:41:56 +00:00
|
|
|
This is a set of sample XML files for klish.
|
2016-01-18 02:27:32 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/klish-xml-files/install
|
|
|
|
$(INSTALL_DIR) $(1)/etc/clish
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/xml-examples/clish $(1)/etc/clish/
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/xml-examples/klish $(1)/etc/clish/
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/xml-examples/lua $(1)/etc/clish/
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/xml-examples/test $(1)/etc/clish/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,klish-xml-files))
|