2014-08-08 19:43:37 +02:00
|
|
|
#
|
2015-05-22 07:16:26 +02:00
|
|
|
# Copyright (C) 2007-2015 OpenWrt.org
|
2014-08-08 19:43:37 +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:=bash
|
2024-02-11 17:44:07 +01:00
|
|
|
PKG_VERSION:=5.2.21
|
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:=1
|
2014-08-08 19:43:37 +02:00
|
|
|
|
2018-04-01 12:02:15 +02:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2014-08-08 19:43:37 +02:00
|
|
|
PKG_SOURCE_URL:=@GNU/bash
|
2024-02-11 17:44:07 +01:00
|
|
|
PKG_HASH:=c8e31bdc59b69aaffc5b36509905ba3e5cbb12747091d27b4b977f078560d5b8
|
2014-08-08 19:43:37 +02:00
|
|
|
|
2020-12-08 10:21:07 +01:00
|
|
|
PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
|
2019-09-02 15:15:08 +02:00
|
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
2014-08-09 01:24:34 +02:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2019-09-12 14:13:21 +02:00
|
|
|
PKG_CPE_ID:=cpe:/a:gnu:bash
|
2014-08-09 01:24:34 +02:00
|
|
|
|
2018-04-01 12:02:15 +02:00
|
|
|
PKG_INSTALL:=1
|
2020-12-08 10:21:07 +01:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2018-04-01 12:02:15 +02:00
|
|
|
|
2014-08-08 19:43:37 +02:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/bash
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2016-10-23 17:50:14 +02:00
|
|
|
SUBMENU:=Shells
|
2014-08-08 19:43:37 +02:00
|
|
|
TITLE:=The GNU Bourne Again SHell
|
2018-04-01 12:02:15 +02:00
|
|
|
DEPENDS:=+libncurses +libreadline
|
2024-02-11 17:44:07 +01:00
|
|
|
URL:=https://www.gnu.org/software/bash/
|
2014-08-08 19:43:37 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bash/description
|
2014-08-08 21:51:58 +02:00
|
|
|
Bash is an sh-compatible command language interpreter that executes
|
|
|
|
commands read from the standard input or from a file. Bash also
|
|
|
|
incorporates useful features from the Korn and C shells (ksh and csh).
|
2014-08-08 19:43:37 +02:00
|
|
|
endef
|
|
|
|
|
2020-04-28 22:31:03 +02:00
|
|
|
define Package/bash/conffiles
|
|
|
|
/etc/bash.bashrc
|
|
|
|
/etc/bash.bash_logout
|
2021-11-11 09:21:08 +01:00
|
|
|
/etc/profile.d/sys_bashrc.sh
|
2020-04-28 22:31:03 +02:00
|
|
|
endef
|
|
|
|
|
2018-04-01 12:02:15 +02:00
|
|
|
# Bash detects and enables certain features by runtest simple piece of code
|
|
|
|
# which is not viable when doing cross compilation and default to no in many
|
|
|
|
# cases. Grep for 'cross.compil' in aclocal.m4 and config-bot.h for details
|
|
|
|
#
|
|
|
|
# bash_cv_job_control_missing: Job control is needed for bash to be used as the
|
|
|
|
# default shell
|
|
|
|
#
|
|
|
|
# bash_cv_getcwd_malloc: The replacement by bash does not work well with
|
|
|
|
# overlayfs. See "bash getcwd errors when running under OverlayFS"
|
|
|
|
# http://permalink.gmane.org/gmane.linux.embedded.yocto.general/25204
|
|
|
|
#
|
|
|
|
# bash_cv_dev_fd: The test is done on build system but OpenWrt currently does
|
|
|
|
# not have /dev/fd, it provides /proc/self/fd/ instead
|
|
|
|
#
|
|
|
|
# bash_cv_sys_named_pipes: Required for process substituion
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
ac_cv_rl_prefix="$(STAGING_DIR)/usr" \
|
2019-01-13 00:14:23 +01:00
|
|
|
ac_cv_rl_version="8.0" \
|
2018-04-01 12:02:15 +02:00
|
|
|
bash_cv_getcwd_malloc=yes \
|
|
|
|
bash_cv_job_control_missing=present \
|
|
|
|
bash_cv_dev_fd=whacky \
|
|
|
|
bash_cv_sys_named_pipes=present \
|
|
|
|
|
|
|
|
# The following are some other tests that cannot run when cross-compiling
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
bash_cv_func_sigsetjmp=present \
|
|
|
|
bash_cv_printf_a_format=yes \
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--with-curses \
|
|
|
|
--without-bash-malloc \
|
|
|
|
--bindir=/bin \
|
|
|
|
--disable-rpath \
|
2019-01-13 00:14:23 +01:00
|
|
|
--enable-direxpand-default \
|
|
|
|
--enable-job-control \
|
|
|
|
--enable-readline
|
2014-08-08 19:43:37 +02:00
|
|
|
|
|
|
|
define Package/bash/postinst
|
|
|
|
#!/bin/sh
|
2018-05-09 14:14:32 +02:00
|
|
|
grep -q bash "$${IPKG_INSTROOT}/etc/shells" || {
|
|
|
|
echo /bin/bash >> "$${IPKG_INSTROOT}/etc/shells"
|
|
|
|
echo /bin/rbash >> "$${IPKG_INSTROOT}/etc/shells"
|
|
|
|
}
|
2014-08-08 19:43:37 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bash/install
|
|
|
|
$(INSTALL_DIR) $(1)/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/bash $(1)/bin/
|
2018-05-09 14:15:08 +02:00
|
|
|
$(LN) bash $(1)/bin/rbash
|
2020-04-28 22:31:03 +02:00
|
|
|
$(CP) ./files/* $(1)/
|
2014-08-08 19:43:37 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,bash))
|