# $Id$ PNAME="eject" PVER="2.1.5" PBUILD="r7" PCATEGORIE="sys-apps" DESCRIPTION="Programm to eject disks from a disk drive." HOMEPAGE="http://ca.geocities.com/jefftranter@rogers.com/eject.html" DEPEND=">= virtual/glibc" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}" sminclude mbuild SRC_URI=( http://ca.geocities.com/jefftranter@rogers.com/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-xmalloc.patch mirror://${PNAME}/${PNAME}-${PVER}-scsi-rdwr.patch mirror://${PNAME}/${PNAME}-${PVER}-handle-spaces.patch mirror://${PNAME}/${PNAME}-${PVER}-man-typo.patch mirror://${PNAME}/${PNAME}-${PVER}-toggle.patch ) UP2DATE="updatecmd ${HOMEPAGE} | grep 'Local copy' | sed 's/.*-\(.*\).t.*/\1/'" # sudo chmod 750 /usr/bin/eject # sudo chgrp plugdev /usr/bin/eject # sudo chmod u+s /usr/bin/eject # # or add gentoo patches (the better way) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # malloc fixes mpatch ${PNAME}-${PVER}-xmalloc.patch || die # open scsi devices read+write to fix some issues (eg ipod nano) mpatch ${PNAME}-${PVER}-scsi-rdwr.patch || die # eject incorrectly handles mount points with spaces in name mpatch ${PNAME}-${PVER}-handle-spaces.patch || die # fix a glitch in the man page mpatch ${PNAME}-${PVER}-man-typo.patch || die # eject -T does not work with certain drives mpatch ${PNAME}-${PVER}-toggle.patch || die }