2014-09-16 02:13:23 +02:00
|
|
|
#
|
2017-10-26 14:40:52 +02:00
|
|
|
# Copyright (C) 2011-2017 OpenWrt.org
|
2014-09-16 02:13:23 +02:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=tcsh
|
2021-06-02 03:28:43 +02:00
|
|
|
PKG_VERSION:=6.22.04
|
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 18:32:27 +02:00
|
|
|
PKG_RELEASE:=2
|
2014-09-16 02:13:23 +02:00
|
|
|
|
2016-11-28 09:41:06 +01:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:= \
|
2020-01-03 07:27:19 +01:00
|
|
|
https://astron.com/pub/tcsh/ \
|
|
|
|
https://astron.com/pub/tcsh/old \
|
|
|
|
https://ftp.funet.fi/pub/mirrors/ftp.astron.com/pub/tcsh \
|
|
|
|
https://ftp.funet.fi/pub/mirrors/ftp.astron.com/pub/tcsh/old
|
2021-06-02 03:28:43 +02:00
|
|
|
PKG_HASH:=eb16356243218c32f39e07258d72bf8b21e62ce94bb0e8a95e318b151397e231
|
2016-10-14 10:30:55 +02:00
|
|
|
|
2020-01-03 07:27:19 +01:00
|
|
|
PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
|
2016-10-14 10:30:55 +02:00
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
2014-11-25 08:42:42 +01:00
|
|
|
PKG_LICENSE_FILES:=Copyright
|
2019-09-12 14:13:21 +02:00
|
|
|
PKG_CPE_ID:=cpe:/a:tcsh:tcsh
|
2014-09-16 02:13:23 +02:00
|
|
|
|
2020-01-03 07:27:19 +01:00
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
PKG_INSTALL:=1
|
2022-01-13 23:29:08 +01:00
|
|
|
PKG_BUILD_DEPENDS:=tcsh/host
|
2020-01-03 07:27:19 +01:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2014-09-16 02:13:23 +02:00
|
|
|
|
2022-01-13 23:29:08 +01:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2014-09-16 02:13:23 +02:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2020-01-03 07:27:19 +01:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2014-09-16 02:13:23 +02:00
|
|
|
|
|
|
|
define Package/tcsh
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2016-10-23 18:46:54 +02:00
|
|
|
SUBMENU:=Shells
|
2014-09-16 02:13:23 +02:00
|
|
|
TITLE:=Enhanced Berkeley UNIX C shell
|
2020-01-03 07:27:19 +01:00
|
|
|
DEPENDS:=+libncurses $(ICONV_DEPENDS)
|
|
|
|
URL:=https://www.tcsh.org/
|
2014-09-16 02:13:23 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/tcsh/description
|
|
|
|
Tcsh is an enhanced, but completely compatible
|
|
|
|
version of the Berkeley UNIX C shell (csh). It
|
|
|
|
is a command language interpreter usable both
|
|
|
|
as an interactive login shell and a shell
|
|
|
|
script command processor. It includes a
|
|
|
|
command-line editor, programmable word
|
|
|
|
completion, spelling correction, a history
|
|
|
|
mechanism, job control and a C-like syntax.
|
|
|
|
endef
|
|
|
|
|
2022-01-13 23:29:08 +01:00
|
|
|
|
|
|
|
define Host/Compile
|
|
|
|
$(call Host/Compile/Default,gethost)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Install
|
|
|
|
mkdir -p $(STAGING_DIR_HOSTPKG)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/gethost $(STAGING_DIR_HOSTPKG)/usr/bin/tcsh-gethost
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
#Build sh.err.h and tc.const.h for target build
|
|
|
|
$(call Build/Compile/Default,sh.err.h)
|
|
|
|
$(call Build/Compile/Default,tc.const.h)
|
|
|
|
#Copy gethost (host tool to generate header file) from hostpkg dir
|
|
|
|
$(CP) $(STAGING_DIR_HOSTPKG)/usr/bin/tcsh-gethost $(PKG_BUILD_DIR)/gethost
|
|
|
|
#Make-touch header generator binary to prevent recompiling during target build
|
|
|
|
$(call Build/Compile/Default,-t gethost)
|
|
|
|
#Build tcsh for target
|
|
|
|
$(call Build/Compile/Default)
|
|
|
|
endef
|
|
|
|
|
2014-09-16 02:13:23 +02:00
|
|
|
define Package/tcsh/postinst
|
|
|
|
#!/bin/sh
|
2020-01-03 07:27:19 +01:00
|
|
|
grep tcsh $${IPKG_INSTROOT}/etc/shells || { \
|
|
|
|
echo "/bin/tcsh"
|
|
|
|
echo "/bin/csh"
|
|
|
|
} >> $${IPKG_INSTROOT}/etc/shells
|
2014-09-16 02:13:23 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/tcsh/install
|
|
|
|
$(INSTALL_DIR) $(1)/bin
|
2020-01-03 07:27:19 +01:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tcsh $(1)/bin/
|
2014-09-16 02:13:23 +02:00
|
|
|
ln -sf tcsh $(1)/bin/csh
|
|
|
|
endef
|
|
|
|
|
2022-01-13 23:29:08 +01:00
|
|
|
$(eval $(call HostBuild))
|
2014-09-16 02:13:23 +02:00
|
|
|
$(eval $(call BuildPackage,tcsh))
|