diff options
author | Koen Kooi <koen@openembedded.org> | 2005-06-30 08:19:37 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-06-30 08:19:37 +0000 |
commit | c8e5702127e507e82e6f68a4b8c546803accea9d (patch) | |
tree | 00583491f40ecc640f2b28452af995e3a63a09d7 /packages/dash/dash_0.5.2.bb | |
parent | 87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff) |
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/dash/dash_0.5.2.bb')
-rw-r--r-- | packages/dash/dash_0.5.2.bb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/packages/dash/dash_0.5.2.bb b/packages/dash/dash_0.5.2.bb index e69de29bb2..1dcf81caa9 100644 --- a/packages/dash/dash_0.5.2.bb +++ b/packages/dash/dash_0.5.2.bb @@ -0,0 +1,29 @@ +DESCRIPTION = "The Debian Almquist Shell is a POSIX compliant shell that is much smaller than 'bash'." +PROVIDES = "virtual/sh" +LICENSE = "BSD GPL" + +SRC_URI = "http://ftp.debian.org/debian/pool/main/d/dash/dash_${PV}.orig.tar.gz \ + http://ftp.debian.org/debian/pool/main/d/dash/dash_${PV}-4.diff.gz;patch=1 \ + file://makefile-build-cc.diff;patch=1" + +inherit autotools + +bindir = "/bin" +PREFIX="${bindir}" + +# dont use update-alternatives class because since we are dealing with /bin/sh +# we need to do the remove in pkg_prerm where the /bin/sh link still points +# to something (postrm is a shell script) + +ALTERNATIVE_NAME = "sh" +ALTERNATIVE_PATH = "${bindir}/dash" +ALTERNATIVE_PRIORITY = "10" +ALTERNATIVE_LINK = "${bindir}/${ALTERNATIVE_NAME}" + +pkg_postinst() { +update-alternatives --install ${ALTERNATIVE_LINK} ${ALTERNATIVE_NAME} ${ALTERNATIVE_PATH} ${ALTERNATIVE_PRIORITY} +} + +pkg_prerm() { +update-alternatives --remove ${ALTERNATIVE_NAME} ${ALTERNATIVE_PATH} +} |