From 3b9337f12fbfa2cc78fc45303321e47ce22628a5 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 23 Apr 2005 04:44:11 +0000 Subject: move from net-misc Package-Manager: portage-2.0.51.19 --- net-ftp/atftp/ChangeLog | 82 ++++++++++++++++++++++++++++ net-ftp/atftp/Manifest | 11 ++++ net-ftp/atftp/atftp-0.6-r3.ebuild | 41 ++++++++++++++ net-ftp/atftp/atftp-0.6.2.ebuild | 42 ++++++++++++++ net-ftp/atftp/atftp-0.7.ebuild | 35 ++++++++++++ net-ftp/atftp/files/atftp-0.6-security.patch | 23 ++++++++ net-ftp/atftp/files/atftp-0.7-gcc.patch | 20 +++++++ net-ftp/atftp/files/atftp.confd | 4 ++ net-ftp/atftp/files/atftp.init | 28 ++++++++++ net-ftp/atftp/files/digest-atftp-0.6-r3 | 1 + net-ftp/atftp/files/digest-atftp-0.6.2 | 1 + net-ftp/atftp/files/digest-atftp-0.7 | 1 + 12 files changed, 289 insertions(+) create mode 100644 net-ftp/atftp/ChangeLog create mode 100644 net-ftp/atftp/Manifest create mode 100644 net-ftp/atftp/atftp-0.6-r3.ebuild create mode 100644 net-ftp/atftp/atftp-0.6.2.ebuild create mode 100644 net-ftp/atftp/atftp-0.7.ebuild create mode 100644 net-ftp/atftp/files/atftp-0.6-security.patch create mode 100644 net-ftp/atftp/files/atftp-0.7-gcc.patch create mode 100644 net-ftp/atftp/files/atftp.confd create mode 100755 net-ftp/atftp/files/atftp.init create mode 100644 net-ftp/atftp/files/digest-atftp-0.6-r3 create mode 100644 net-ftp/atftp/files/digest-atftp-0.6.2 create mode 100644 net-ftp/atftp/files/digest-atftp-0.7 (limited to 'net-ftp/atftp') diff --git a/net-ftp/atftp/ChangeLog b/net-ftp/atftp/ChangeLog new file mode 100644 index 000000000000..860d44ae9fac --- /dev/null +++ b/net-ftp/atftp/ChangeLog @@ -0,0 +1,82 @@ +# ChangeLog for net-misc/atftp +# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-ftp/atftp/ChangeLog,v 1.8 2005/04/23 04:44:05 vapier Exp $ + + 21 Feb 2005; Simon Stelling : + added ~amd64 + + 07 Feb 2005; Mike Frysinger + +files/atftp-0.7-gcc.patch, atftp-0.7.ebuild: + Added patch to fix building #71090. + + 07 Feb 2005; Jan Brinkmann atftp-0.6.2.ebuild: + added ~amd64 to 0.6.2, fixes #81083 + + 31 Jul 2004; atftp-0.7.ebuild: + ~amd64 - closes bug #57702 + + 22 Apr 2004; Chuck Short atftp-0.6.2.ebuild: + Fixes typo. Closes #48660. + + 22 Mar 2004; David Holm atftp-0.7.ebuild: + Added to ~ppc. + +*atftp-0.7 (22 Mar 2004) + + 22 Mar 2004; Chuck Short atftp-0.6.2.ebuild, + atftp-0.7.ebuild: + Version bump, closes #45210. + + 22 Mar 2004; Chuck Short atftp-0.6.2.ebuild: + Marked stable for x86. + + 26 Jan 2004; Chuck Short atftp-0.6-r3.ebuild, + atftp-0.6.2.ebuild: + Fix typo in ebuild. closes #38946. + + 30 Dec 2003; Chuck Short atftp-0.6.2.ebuild, + files/atftp.confd, files/atftp.init: + Added init scripts. Closes #36051. + + 14 Dec 2003; Joshua Kinard atftp-0.6.2.ebuild: + forgot to mark keywords as unstable + +*atftp-0.6.2 (14 Dec 2003) + + 14 Dec 2003; Joshua Kinard atftp-0.6.2.ebuild: + Version bump + +*atftp-0.6-r3 (31 Oct 2003) + + 31 Oct 2003; Heinrich Wendel atftp-0.6-r2.ebuild, + atftp-0.6-r3.ebuild: + stable, it's just a virtual ;D + + 30 Oct 2003; Heinrich Wendel atftp-0.6-r1.ebuild, + atftp-0.6.ebuild: + added virtual/tftp + +*atftp-0.6-r1 (29 Aug 2003) + + 29 Aug 2003; Martin Holzer atftp-0.6-r1.ebuild, + atftp-0.6-r2.ebuild, atftp-0.6.ebuild, files/atftp-0.6-security.patch: + move net-ftp/atftp net-misc + + 18 Jun 2003; Daniel Ahlberg files/atftp-0.6-security.patch : + Updated patch to a more proper one. + +*atftp-0.6-r2 (08 Jun 2003) + + 08 Jun 2003; Daniel Ahlberg : + Security update. + +*atftp-0.6-r1 (29 Oct 2002) + + 29 Oct 2002; Daniel Ahlberg : + Updated ebuild with tcpd support. Ebuild contributed by Cory Visi in #9797. + +*atftp-0.6 (16 Aug 2002) + + 16 Aug 2002; Daniel Ahlberg atftp-0.6.ebuild: + Initial import. Ebuild submitted by Francisco Gimeno + . diff --git a/net-ftp/atftp/Manifest b/net-ftp/atftp/Manifest new file mode 100644 index 000000000000..6df111a600d4 --- /dev/null +++ b/net-ftp/atftp/Manifest @@ -0,0 +1,11 @@ +MD5 aeb8979d927bc14fc0a59e354a4f8cd2 atftp-0.6-r3.ebuild 992 +MD5 8bb30716aecc18631176428656fca323 ChangeLog 2533 +MD5 e3e297320c39d59036eef5b62f189fc6 atftp-0.6.2.ebuild 1044 +MD5 1ed02b2db3312dfaa79ed876843f7aaa atftp-0.7.ebuild 905 +MD5 ef1244d13cccdfbe2dff44442e0c3d1f files/atftp-0.6-security.patch 1019 +MD5 939f5bfbb9b7a728330cc124175c39e3 files/atftp.confd 105 +MD5 f3d1e03f8ce70ea8ed775de7407304f3 files/atftp.init 437 +MD5 6edbe26f81fbd488b6fbffd1bbd27ca9 files/digest-atftp-0.6-r3 61 +MD5 e14c6bca387e9af7d2734fb9f08a67ee files/digest-atftp-0.6.2 63 +MD5 401c2182f70ea502b2b13567dee9daf9 files/digest-atftp-0.7 61 +MD5 0adc9648a64aa6a05a55bf822eec7265 files/atftp-0.7-gcc.patch 540 diff --git a/net-ftp/atftp/atftp-0.6-r3.ebuild b/net-ftp/atftp/atftp-0.6-r3.ebuild new file mode 100644 index 000000000000..6b87376bddd8 --- /dev/null +++ b/net-ftp/atftp/atftp-0.6-r3.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-ftp/atftp/atftp-0.6-r3.ebuild,v 1.1 2005/04/23 04:44:05 vapier Exp $ + +inherit eutils + +DESCRIPTION="Advanced TFTP implementation client/server" +HOMEPAGE="ftp://ftp.mamalinux.com/pub/atftp/" +SRC_URI="ftp://ftp.mamalinux.com/pub/atftp/${P}.tar.gz" +LICENSE="GPL-2" + +KEYWORDS="x86" +IUSE="tcpd" +SLOT="0" + +DEPEND="tcpd? ( sys-apps/tcp-wrappers ) + !virtual/tftp" + +PROVIDE="virtual/tftp" + +src_unpack() { + unpack ${A} ; cd ${S} + epatch ${FILESDIR}/${P}-security.patch +} + +src_compile () { + myconf="" + use tcpd && myconf="${myconf} --enable-libwrap" \ + || myconf="${myconf} --disable-libwrap" + + econf ${myconf} || die "./configure failed" + + cp Makefile Makefile.orig + sed "s:CFLAGS = -g -Wall -D_REENTRANT -O2:CFLAGS = -g -Wall -D_REENTRANT ${CFLAGS}:" Makefile.orig >Makefile + + emake || die +} + +src_install () { + einstall || die "Installation failed" +} diff --git a/net-ftp/atftp/atftp-0.6.2.ebuild b/net-ftp/atftp/atftp-0.6.2.ebuild new file mode 100644 index 000000000000..f022dbe42d2f --- /dev/null +++ b/net-ftp/atftp/atftp-0.6.2.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-ftp/atftp/atftp-0.6.2.ebuild,v 1.1 2005/04/23 04:44:05 vapier Exp $ + +inherit eutils + +DESCRIPTION="Advanced TFTP implementation client/server" +HOMEPAGE="ftp://ftp.mamalinux.com/pub/atftp/" +SRC_URI="ftp://ftp.mamalinux.com/pub/atftp/${P}.tar.gz" +LICENSE="GPL-2" + +KEYWORDS="x86 ~sparc ~amd64" +IUSE="tcpd" +SLOT="0" + +DEPEND="tcpd? ( sys-apps/tcp-wrappers ) + !virtual/tftp" + +PROVIDE="virtual/tftp" + +src_compile () { + myconf="" + use tcpd && myconf="${myconf} --enable-libwrap" \ + || myconf="${myconf} --disable-libwrap" + + econf ${myconf} || die "./configure failed" + + cp Makefile Makefile.orig + sed "s:CFLAGS = -g -Wall -D_REENTRANT -O2:CFLAGS = -g -Wall -D_REENTRANT ${CFLAGS}:" Makefile.orig >Makefile + + emake || die +} + +src_install () { + einstall || die "Installation failed" + + exeinto /etc/init.d + newexe ${FILESDIR}/atftp.init atftp + + insinto /etc/conf.d + newins ${FILESDIR}/atftp.confd atftp +} diff --git a/net-ftp/atftp/atftp-0.7.ebuild b/net-ftp/atftp/atftp-0.7.ebuild new file mode 100644 index 000000000000..ee7e3ed9d8d6 --- /dev/null +++ b/net-ftp/atftp/atftp-0.7.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-ftp/atftp/atftp-0.7.ebuild,v 1.1 2005/04/23 04:44:05 vapier Exp $ + +inherit eutils + +DESCRIPTION="Advanced TFTP implementation client/server" +HOMEPAGE="ftp://ftp.mamalinux.com/pub/atftp/" +SRC_URI="ftp://ftp.mamalinux.com/pub/atftp/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 arm ~ppc ~sparc ~x86" +IUSE="tcpd" + +DEPEND="tcpd? ( sys-apps/tcp-wrappers ) + !virtual/tftp" +PROVIDE="virtual/tftp" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${P}-gcc.patch +} + +src_compile() { + econf $(use_enable tcpd libwrap) || die "./configure failed" + emake CFLAGS="${CFLAGS} -D_REENTRANT" || die +} + +src_install() { + make install DESTDIR="${D}" || die "Installation failed" + newinitd ${FILESDIR}/atftp.init atftp + newconfd ${FILESDIR}/atftp.confd atftp +} diff --git a/net-ftp/atftp/files/atftp-0.6-security.patch b/net-ftp/atftp/files/atftp-0.6-security.patch new file mode 100644 index 000000000000..5bf58699c74c --- /dev/null +++ b/net-ftp/atftp/files/atftp-0.6-security.patch @@ -0,0 +1,23 @@ +--- tftp.c 2003-06-17 00:13:52.000000000 +0200 ++++ tftp.patch.c 2003-06-17 00:09:50.000000000 +0200 +@@ -827,17 +827,17 @@ int tftp_cmd_line_options(int argc, char + process_cmd(ac, av); + break; + case 'T': +- sprintf(string, "timeout %s", optarg); ++ snprintf(string, sizeof(string), "timeout %s", optarg); + make_arg(string, &ac, &av); + process_cmd(ac, av); + break; + case 't': +- sprintf(string, "option timeout %s", optarg); ++ snprintf(string, sizeof(string), "option timeout %s", optarg); + make_arg(string, &ac, &av); + process_cmd(ac, av); + break; + case 'b': +- sprintf(string, "option blksize %s", optarg); ++ snprintf(string, sizeof(string), "option blksize %s", optarg); + make_arg(string, &ac, &av); + process_cmd(ac, av); + break; diff --git a/net-ftp/atftp/files/atftp-0.7-gcc.patch b/net-ftp/atftp/files/atftp-0.7-gcc.patch new file mode 100644 index 000000000000..374dbdb01c71 --- /dev/null +++ b/net-ftp/atftp/files/atftp-0.7-gcc.patch @@ -0,0 +1,20 @@ +--- argz.h.orig 2005-02-07 16:04:41.000000000 -0500 ++++ argz.h 2005-02-07 16:05:01.000000000 -0500 +@@ -180,7 +180,7 @@ + #ifdef __USE_EXTERN_INLINES + extern inline char * + __argz_next (__const char *__argz, size_t __argz_len, +- __const char *__entry) __THROW ++ __const char *__entry) + { + if (__entry) + { +@@ -194,7 +194,7 @@ + } + extern inline char * + argz_next (__const char *__argz, size_t __argz_len, +- __const char *__entry) __THROW ++ __const char *__entry) + { + return __argz_next (__argz, __argz_len, __entry); + } diff --git a/net-ftp/atftp/files/atftp.confd b/net-ftp/atftp/files/atftp.confd new file mode 100644 index 000000000000..a46a7047dbb6 --- /dev/null +++ b/net-ftp/atftp/files/atftp.confd @@ -0,0 +1,4 @@ +# Config file for tftp server + +TFTPD_ROOT="/tftproot" +TFTPD_OPTS="--daemon --user nobody --group nobody" diff --git a/net-ftp/atftp/files/atftp.init b/net-ftp/atftp/files/atftp.init new file mode 100755 index 000000000000..4fc8b14413b4 --- /dev/null +++ b/net-ftp/atftp/files/atftp.init @@ -0,0 +1,28 @@ +#!/sbin/runscript + +depend() { + use logger + need net +} + +checkconfig() { + if [ ! -d ${TFTPD_ROOT} ] + then + eerror "You need a tftp root directory" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting tftpd" + start-stop-daemon --start --quiet --exec /usr/sbin/in.tftpd \ + -- ${TFTPD_OPTS} ${TFTPD_ROOT} + eend $? +} + +stop() { + ebegin "Stopping tftpd" + start-stop-daemon --stop --quiet --exec /usr/sbin/in.tftpd + eend $? +} diff --git a/net-ftp/atftp/files/digest-atftp-0.6-r3 b/net-ftp/atftp/files/digest-atftp-0.6-r3 new file mode 100644 index 000000000000..5cfcb463e4a5 --- /dev/null +++ b/net-ftp/atftp/files/digest-atftp-0.6-r3 @@ -0,0 +1 @@ +MD5 fcbc9118b02fa2090046be987b1e1aec atftp-0.6.tar.gz 119898 diff --git a/net-ftp/atftp/files/digest-atftp-0.6.2 b/net-ftp/atftp/files/digest-atftp-0.6.2 new file mode 100644 index 000000000000..84fb13e2f21b --- /dev/null +++ b/net-ftp/atftp/files/digest-atftp-0.6.2 @@ -0,0 +1 @@ +MD5 b3b8d4b7e558046adfcaef180ae77c4f atftp-0.6.2.tar.gz 125405 diff --git a/net-ftp/atftp/files/digest-atftp-0.7 b/net-ftp/atftp/files/digest-atftp-0.7 new file mode 100644 index 000000000000..114091ac850b --- /dev/null +++ b/net-ftp/atftp/files/digest-atftp-0.7 @@ -0,0 +1 @@ +MD5 3b27365772d918050b2251d98a9c7c82 atftp-0.7.tar.gz 202234 -- cgit v1.2.3-65-gdbad