# $Id$ PNAME="dash" PVER="0.5.7" PBUILD="r1" PCATEGORIE="app-shells" DESCRIPTION="Small and fast POSIX-compliant shell." HOMEPAGE="http://gondor.apana.org.au/~herbert/dash/" DEPEND="" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild mtools SRC_URI=( http://gondor.apana.org.au/~herbert/${PNAME}/files/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-0.5.6.1-do-not-close-stderr.patch ) UP2DATE="updatecmd '${HOMEPAGE}/files/?C=M;O=A' | grep -v git | lasttarball gz" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} mpatch ${PNAME}-0.5.6.1-do-not-close-stderr.patch || die } postinstall() { # make sure dash is in /etc/shells grep -qF '^/bin/dash$' /etc/shells || echo '/bin/dash' >> /etc/shells }