kumquat-buildroot/package/mksh/mksh.mk
Carlos Santos 0e83706aa1 package/mksh: use plain HTTP in download and license links
The server does not support TLS v1.2, causing dowloads to fall back to
sources.buildroot.net. Mail sent to the project owner bounces, so it
looks like this issue will not be solved anytime soon.

Switch to HTTP, like was done in commit 399ad854cc (package/mksh:
fix project URL in Config.in) for the homepage, and rely on our hashes
to verify the integrity and authenticity of the download.

Signed-off-by: Carlos Santos <unixmania@gmail.com>
[yann.morin.1998@free.fr: slight rewording in the commit message]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2021-11-14 22:23:03 +01:00

33 lines
966 B
Makefile

################################################################################
#
# mksh
#
################################################################################
MKSH_VERSION = 59c
MKSH_SOURCE = mksh-R$(MKSH_VERSION).tgz
MKSH_SITE = http://www.mirbsd.org/MirOS/dist/mir/mksh
# For MirOS License see http://www.mirbsd.org/TaC-mksh.txt
MKSH_LICENSE = MirOS, ISC
MKSH_LICENSE_FILES = mksh.1
define MKSH_BUILD_CMDS
cd $(@D) && $(TARGET_MAKE_ENV) \
TARGET_OS=Linux $(TARGET_CONFIGURE_OPTS) \
sh ./Build.sh
endef
define MKSH_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 -D $(@D)/mksh $(TARGET_DIR)/bin/mksh
endef
# Add /bin/mksh to /etc/shells otherwise some login tools like dropbear
# can reject the user connection. See man shells.
define MKSH_ADD_MKSH_TO_SHELLS
grep -qsE '^/bin/mksh$$' $(TARGET_DIR)/etc/shells \
|| echo "/bin/mksh" >> $(TARGET_DIR)/etc/shells
endef
MKSH_TARGET_FINALIZE_HOOKS += MKSH_ADD_MKSH_TO_SHELLS
$(eval $(generic-package))