1 DESCRIPTION = "The Debian Almquist Shell is a POSIX compliant shell that is much smaller than 'bash'."
2 PROVIDES = "virtual/sh"
6 SRC_URI = "http://ftp.debian.org/debian/pool/main/d/dash/dash_${PV}.orig.tar.gz \
7 http://ftp.debian.org/debian/pool/main/d/dash/dash_${PV}-6.diff.gz;patch=1 \
8 file://makefile-build-cc.diff;patch=1"
15 # dont use update-alternatives class because since we are dealing with /bin/sh
16 # we need to do the remove in pkg_prerm where the /bin/sh link still points
17 # to something (postrm is a shell script)
19 ALTERNATIVE_NAME = "sh"
20 ALTERNATIVE_PATH = "${bindir}/dash"
21 ALTERNATIVE_PRIORITY = "10"
22 ALTERNATIVE_LINK = "${bindir}/${ALTERNATIVE_NAME}"
25 update-alternatives --install ${ALTERNATIVE_LINK} ${ALTERNATIVE_NAME} ${ALTERNATIVE_PATH} ${ALTERNATIVE_PRIORITY}
29 update-alternatives --remove ${ALTERNATIVE_NAME} ${ALTERNATIVE_PATH}