# $Id$ PNAME="dash" PVER="0.5.9.1" PBUILD="r1" PCAT="app-shells" DESCRIPTION="Small and fast POSIX-compliant shell." HOMEPAGE="http://gondor.apana.org.au/~herbert/dash/" DEPEND=">= sys-apps/debianutils-4" 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/ | grep -v git | highesttarball 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 add-shell /bin/dash } postremove() { if [[ ! -x /bin/dash ]] then remove-shell /bin/dash fi }