Attached is an ebuild for atftp (Advanced TFTP server and client). The atftp server addresses a few issues when trying to boot using pxelinux. It supports the tsize tftp option (RFC 1784/RFC 2349). I tried using the other tftp daemons already supplied to gentoo and they cause xinetd to seg fault for god knows what reason. I guess I suggest net-misc/atftp for this ebuild as that's where the other tftp stuff is Mike
# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # /space/gentoo/cvsroot/gentoo-x86/skel.ebuild,v 1.8 2002/05/30 01:54:49 sandymac Exp DESCRIPTION="This is the ebuild file for atftp (Advanced TFTP)" HOMEPAGE="http://" LICENSE="GPL-2" DEPEND="" SRC_URI="ftp://ftp.mamalinux.com/pub/atftp/atftp-0.6.tar.gz" S=${WORKDIR}/${P} src_compile() { ./configure \ --host=${CHOST} \ --prefix=/usr \ --infodir=/usr/share/info \ || die "./configure failed" emake || die } src_install () { mv Makefile Makefile.crap cat Makefile.crap | sed 's/(cd $(sbindir); ln -s atftpd in.tftpd)/(cd ${D}\/usr\/sbin; ln -s atftpd in.tftpd)/' > Makefile mv Makefile Makefile.crap cat Makefile.crap | sed 's/(cd $(mandir)\/man8; ln -s atftpd.8 in.tftpd.8)/(cd ${D}\/usr\/man\/man8; ln -s atftpd.8 in.tftpd.8)/' > Makefile make DESTDIR=${D} install || die }
Created attachment 1800 [details] atftp-0.6.ebuild This is my ebuild, but I can compile it :( ----- miscompilation log ---- terminal.o(.text+0x52a): referencia a `tgetflag' sin definir terminal.o(.text+0x664): referencia a `PC' sin definir terminal.o(.text+0x675): referencia a `BC' sin definir terminal.o(.text+0x67f): referencia a `UP' sin definir terminal.o(.text+0x6ec): referencia a `tgetent' sin definir /usr/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../libreadline.a(terminal.o): En la funci
Created attachment 1800 [details] atftp-0.6.ebuild This is my ebuild, but I can compile it :( ----- miscompilation log ---- terminal.o(.text+0x52a): referencia a `tgetflag' sin definir terminal.o(.text+0x664): referencia a `PC' sin definir terminal.o(.text+0x675): referencia a `BC' sin definir terminal.o(.text+0x67f): referencia a `UP' sin definir terminal.o(.text+0x6ec): referencia a `tgetent' sin definir /usr/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../libreadline.a(terminal.o): En la función `_rl_backspace': terminal.o(.text+0x9ed): referencia a `tputs' sin definir /usr/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../libreadline.a(terminal.o): En la función `rl_ding': terminal.o(.text+0xb5c): referencia a `tputs' sin definir /usr/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../libreadline.a(terminal.o): En la función `_rl_enable_meta_key': terminal.o(.text+0xb9d): referencia a `tputs' sin definir /usr/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../libreadline.a(terminal.o): En la función `_rl_control_keypad': terminal.o(.text+0xbdc): referencia a `tputs' sin definir collect2: ld devolvió el estado de salida 1 make[2]: *** [atftp] Error 1 make[2]: Saliendo directorio `/var/tmp/portage/atftp-0.6/work/atftp-0.6' make[1]: *** [all-recursive] Error 1 make[1]: Saliendo directorio `/var/tmp/portage/atftp-0.6/work/atftp-0.6' make: *** [all-recursive-am] Error 2 --------------- I have ask the upstreams about it... so, we have to wait :]
some details to your ebuilds submition Mike... 1) Use the Create a New Attachment (proposed patch, testcase, etc.) option. 2) Select the text/plain option 3) Fill the Desc with the ebuild name 4) Use the ${P} to the SRC_URI var whenever you can ( sometimes, just copying to the new ebuild is good to the update ) 5) Try to use the same Makefile to get the things get installed in its place... ( take a look of the econf, emake and einstall ) Thx anyway :) Slt!
I'm able to compile atftp from both Mike's and Fransisco's ebuilds. Fransisco, I'm guessing your problem with building atftp is becuse it needs some GCC3 patches. I will wait for an updated source that will compile with GCC3 before comitting atftp. Please write something to this bug when you are able to compile it.
Commited, thanks for the ebuild!