Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 3672 - atftp-0.6.ebuild
Summary: atftp-0.6.ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-12 16:37 UTC by Mike Fawcett
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
atftp-0.6.ebuild (atftp-0.6.ebuild,443 bytes, text/plain)
2002-06-25 17:41 UTC, Francisco Gimeno
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Fawcett 2002-06-12 16:37:05 UTC
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
Comment 1 Mike Fawcett 2002-06-13 08:36:27 UTC
# 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
}
Comment 2 Francisco Gimeno 2002-06-25 17:41:39 UTC
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
Comment 3 Francisco Gimeno 2002-06-25 17:41:39 UTC
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 :]
Comment 4 Francisco Gimeno 2002-06-25 17:45:12 UTC
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!
Comment 5 Daniel Ahlberg (RETIRED) gentoo-dev 2002-07-12 11:57:37 UTC
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. 
Comment 6 Daniel Ahlberg (RETIRED) gentoo-dev 2002-08-16 07:54:48 UTC
Commited, thanks for the ebuild!