# $Header: /magellan-cvs/smage/dosfstools/dosfstools-2.11-r4.smage2,v 1.1 2008/04/10 18:18:59 niro Exp $ PNAME="dosfstools" PVER="2.11" PBUILD="r4" PCATEGORIE="sys-fs" STATE="unstable" DESCRIPTION="Tools to handle DOS filesystems." HOMEPAGE="ftp://ftp.uni-erlangen.de/pub/Linux/LOCAL/dosfstools/" DEPEND=">= virtual/glibc" SDEPEND=">= sys-apps/sed-4" SRCFILE="${PNAME}-${PVER}.src.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" SRC_URI=( ftp://ftp.uni-erlangen.de/pub/Linux/LOCAL/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/errno.patch mirror://${PNAME}/${PNAME}-2.10-2.6.headers.patch ) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # some compile issues and kernel-2.6 compats mpatch errno.patch || die mpatch ${PNAME}-2.10-2.6.headers.patch || die # set bin/sbin prefix to /usr sed -i "s:PREFIX\ \=:PREFIX\ \=\ \/usr:" Makefile || die # correct man path to /usr/share sed -i "s:\/usr\/man:\/share\/man:" Makefile || die } src_compile() { cd ${SRCDIR} mmake || die } src_install() { cd ${SRCDIR} mmake PREFIX=${BINDIR}/usr install || die minstalldocs CHANGES TODO || die }