2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2007-01-13 22:45:00 +01:00
|
|
|
#
|
|
|
|
# dash
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-10-15 05:07:23 +02:00
|
|
|
|
2021-01-04 22:01:37 +01:00
|
|
|
DASH_VERSION = 0.5.11.3
|
2017-09-27 18:41:53 +02:00
|
|
|
DASH_SITE = http://gondor.apana.org.au/~herbert/dash/files
|
2017-03-30 15:43:38 +02:00
|
|
|
DASH_LICENSE = BSD-3-Clause, GPL-2.0+ (mksignames.c)
|
2013-06-23 08:39:43 +02:00
|
|
|
DASH_LICENSE_FILES = COPYING
|
2007-01-13 22:45:00 +01:00
|
|
|
|
2018-05-29 19:42:37 +02:00
|
|
|
# dash does not build in parallel
|
|
|
|
DASH_MAKE = $(MAKE1)
|
|
|
|
|
2017-09-28 20:07:56 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBEDIT),y)
|
2018-03-02 06:22:36 +01:00
|
|
|
DASH_DEPENDENCIES += libedit host-pkgconf
|
2017-09-28 20:07:56 +02:00
|
|
|
DASH_CONF_OPTS += --with-libedit
|
2018-03-02 06:22:36 +01:00
|
|
|
DASH_CONF_ENV += LIBS=`pkg-config --libs libedit`
|
2017-09-28 20:07:56 +02:00
|
|
|
|
|
|
|
# Enable line editing, Emacs style
|
|
|
|
define DASH_INSTALL_PROFILE
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/profile.d
|
|
|
|
echo 'set -E' > $(TARGET_DIR)/etc/profile.d/dash.sh
|
|
|
|
endef
|
|
|
|
DASH_POST_INSTALL_TARGET_HOOKS += DASH_INSTALL_PROFILE
|
|
|
|
else
|
|
|
|
DASH_CONF_OPTS += --without-libedit
|
|
|
|
endif
|
|
|
|
|
2010-06-16 13:47:09 +02:00
|
|
|
define DASH_INSTALL_TARGET_CMDS
|
2019-01-14 04:55:32 +01:00
|
|
|
$(INSTALL) -m 0755 -D $(@D)/src/dash $(TARGET_DIR)/bin/dash
|
2010-06-16 13:47:09 +02:00
|
|
|
endef
|
2007-01-13 22:45:00 +01:00
|
|
|
|
2018-01-19 11:15:03 +01:00
|
|
|
# Add /bin/dash to /etc/shells otherwise some login tools like dropbear
|
|
|
|
# can reject the user connection. See man shells.
|
|
|
|
define DASH_ADD_DASH_TO_SHELLS
|
|
|
|
grep -qsE '^/bin/dash$$' $(TARGET_DIR)/etc/shells \
|
|
|
|
|| echo "/bin/dash" >> $(TARGET_DIR)/etc/shells
|
|
|
|
endef
|
|
|
|
DASH_TARGET_FINALIZE_HOOKS += DASH_ADD_DASH_TO_SHELLS
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|