dash: create /bin/sh symlink at pre INSTALL, iff doesn't exist.

This commit is contained in:
Juan RP 2011-07-01 09:27:51 +02:00
parent 44f85a8a7f
commit 98edb5e389
2 changed files with 8 additions and 5 deletions

7
srcpkgs/dash/INSTALL Normal file
View File

@ -0,0 +1,7 @@
case ${ACTION} in
pre)
# It's expected that will make a dangling symlink, but once that
# dash is unpacked it will be ok.
[ ! -h bin/sh ] && cd bin && ln -sf dash sh
;;
esac

View File

@ -1,6 +1,7 @@
# Template file for 'dash'
pkgname=dash
version=0.5.6.1
revision=1
distfiles="http://gondor.apana.org.au/~herbert/dash/files/$pkgname-$version.tar.gz"
build_style=gnu_configure
configure_args="--prefix="
@ -21,8 +22,3 @@ Add_dependency run glibc
Add_dependency run coreutils
Add_dependency build bison
Add_dependency build coreutils
post_install()
{
cd ${DESTDIR}/bin && ln -s dash sh
}