From 98edb5e38988c8b6a7f43aa36d873b04b3d331fd Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 1 Jul 2011 09:27:51 +0200 Subject: [PATCH] dash: create /bin/sh symlink at pre INSTALL, iff doesn't exist. --- srcpkgs/dash/INSTALL | 7 +++++++ srcpkgs/dash/template | 6 +----- 2 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 srcpkgs/dash/INSTALL diff --git a/srcpkgs/dash/INSTALL b/srcpkgs/dash/INSTALL new file mode 100644 index 00000000000..14391b14286 --- /dev/null +++ b/srcpkgs/dash/INSTALL @@ -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 diff --git a/srcpkgs/dash/template b/srcpkgs/dash/template index c6bc320d4a7..b0b9ec3c45d 100644 --- a/srcpkgs/dash/template +++ b/srcpkgs/dash/template @@ -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 -}