Note that I've never actually written an ebuild before!

On Tuesday 09 December 2003 18:35, raptor wrote:
<snip>
> /var/tmp/portage/atsar-1.6-r1/work/atsar_linux-1.6/image/usr/local/bin/atsa
<snip>
> >>> Completed installing into /var/tmp/portage/atsar-1.6-r1/image/

Note that your modifications installed into:
/var/tmp/portage/atsar-1.6-r1/work/atsar_linux-1.6/image/
but portage is expecting it at:
/var/tmp/portage/atsar-1.6-r1/image/

I changed your ebuild to be as follows (but didn't actually merge) and it 
installed to the correct directory:

INSTDIR=${WORKDIR}/../image
        mkdir -p ${INSTDIR}/usr/local/bin
        mkdir -p ${INSTDIR}/usr/local/man
        mkdir -p ${INSTDIR}/var/log/atsar
        mkdir -p ${INSTDIR}/etc/rc.d/init.d/
        mkdir -p ${INSTDIR}/etc/cron.d/

        perl -pi -e "s!(/usr/local)!${INSTDIR}\$1!gs" Makefile
        perl -pi -e "s!(/etc)!${INSTDIR}\$1!gs" Makefile
        perl -pi -e "s!(/var/log)!${INSTDIR}\$1!gs" Makefile

There's probably a better way than my ${INSTDIR} hack, but the problem is that 
the location was wrong.

Good luck in a better solution!

Regards,
Jason Stubbs

--
[EMAIL PROTECTED] mailing list

Reply via email to