diff --git a/sdk_container/src/third_party/portage-stable/metadata/md5-cache/net-ftp/tftp-hpa-5.1 b/sdk_container/src/third_party/portage-stable/metadata/md5-cache/net-ftp/tftp-hpa-5.1 new file mode 100644 index 0000000000..c41d043b27 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/metadata/md5-cache/net-ftp/tftp-hpa-5.1 @@ -0,0 +1,13 @@ +DEFINED_PHASES=configure install prepare +DEPEND=selinux? ( sec-policy/selinux-tftp ) readline? ( sys-libs/readline ) tcpd? ( sys-apps/tcp-wrappers ) !net-ftp/atftp !net-ftp/netkit-tftp app-arch/xz-utils +DESCRIPTION=port of the OpenBSD TFTP server +EAPI=4 +HOMEPAGE=http://www.kernel.org/pub/software/network/tftp/ +IUSE=ipv6 readline selinux tcpd +KEYWORDS=alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd +LICENSE=BSD +RDEPEND=selinux? ( sec-policy/selinux-tftp ) readline? ( sys-libs/readline ) tcpd? ( sys-apps/tcp-wrappers ) !net-ftp/atftp !net-ftp/netkit-tftp +SLOT=0 +SRC_URI=mirror://kernel/software/network/tftp/tftp-hpa/tftp-hpa-5.1.tar.xz +_eclasses_=multilib 5f4ad6cf85e365e8f0c6050ddd21659e toolchain-funcs 6526ac6fc9aedf391efb91fcd75ace68 +_md5_=09c013dfafb95d74b3be067c22929954 diff --git a/sdk_container/src/third_party/portage-stable/net-ftp/tftp-hpa/Manifest b/sdk_container/src/third_party/portage-stable/net-ftp/tftp-hpa/Manifest new file mode 100644 index 0000000000..627d1e1bf5 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/net-ftp/tftp-hpa/Manifest @@ -0,0 +1 @@ +DIST tftp-hpa-5.1.tar.xz 89288 RMD160 44dcf64d083aa7a988a4f377954c31bb24da2009 SHA1 ade09d8aba5cb1155d0309c42ac427358cd41853 SHA256 f736417a4d436512168ec34fe0ed13845388a3f01b862baa50b7b427e7ab5e42 diff --git a/sdk_container/src/third_party/portage-stable/net-ftp/tftp-hpa/files/in.tftpd.confd-0.44 b/sdk_container/src/third_party/portage-stable/net-ftp/tftp-hpa/files/in.tftpd.confd-0.44 new file mode 100644 index 0000000000..14e8d14528 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/net-ftp/tftp-hpa/files/in.tftpd.confd-0.44 @@ -0,0 +1,15 @@ +# /etc/init.d/in.tftpd + +# Path to server files from +# Depending on your application you may have to change this. +# This is commented out to force you to look at the file! +#INTFTPD_PATH="/var/tftp/" +#INTFTPD_PATH="/tftpboot/" +#INTFTPD_PATH="/tftproot/" + +# For more options, see in.tftpd(8) +# -R 4096:32767 solves problems with ARC firmware, and obsoletes +# the /proc/sys/net/ipv4/ip_local_port_range hack. +# -s causes $INTFTPD_PATH to be the root of the TFTP tree. +# -l is passed by the init script in addition to these options. +INTFTPD_OPTS="-R 4096:32767 -s ${INTFTPD_PATH}" diff --git a/sdk_container/src/third_party/portage-stable/net-ftp/tftp-hpa/files/in.tftpd.rc6 b/sdk_container/src/third_party/portage-stable/net-ftp/tftp-hpa/files/in.tftpd.rc6 new file mode 100644 index 0000000000..fcf2a4cc3e --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/net-ftp/tftp-hpa/files/in.tftpd.rc6 @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-ftp/tftp-hpa/files/in.tftpd.rc6,v 1.2 2005/07/30 06:29:14 vapier Exp $ + +depend() { + need net +} + +start() { + ebegin "Starting tftpd" + /usr/sbin/in.tftpd -l ${INTFTPD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping tftpd" + start-stop-daemon --stop --exec /usr/sbin/in.tftpd + eend $? +} diff --git a/sdk_container/src/third_party/portage-stable/net-ftp/tftp-hpa/files/tftp.xinetd b/sdk_container/src/third_party/portage-stable/net-ftp/tftp-hpa/files/tftp.xinetd new file mode 100644 index 0000000000..c1bf20ab29 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/net-ftp/tftp-hpa/files/tftp.xinetd @@ -0,0 +1,10 @@ +service tftp +{ + disable = yes + socket_type = dgram + protocol = udp + wait = yes + user = root + server = /usr/sbin/in.tftpd + server_args = -R 4096:32767 -s /tftpboot +} diff --git a/sdk_container/src/third_party/portage-stable/net-ftp/tftp-hpa/tftp-hpa-5.1.ebuild b/sdk_container/src/third_party/portage-stable/net-ftp/tftp-hpa/tftp-hpa-5.1.ebuild new file mode 100644 index 0000000000..4980554954 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/net-ftp/tftp-hpa/tftp-hpa-5.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-ftp/tftp-hpa/tftp-hpa-5.1.ebuild,v 1.10 2012/05/13 11:15:32 swift Exp $ + +EAPI="4" + +inherit toolchain-funcs + +DESCRIPTION="port of the OpenBSD TFTP server" +HOMEPAGE="http://www.kernel.org/pub/software/network/tftp/" +SRC_URI="mirror://kernel/software/network/tftp/${PN}/${P}.tar.xz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd" +IUSE="ipv6 readline selinux tcpd" + +RDEPEND="selinux? ( sec-policy/selinux-tftp ) + readline? ( sys-libs/readline ) + tcpd? ( sys-apps/tcp-wrappers ) + !net-ftp/atftp + !net-ftp/netkit-tftp" +DEPEND="${RDEPEND} + app-arch/xz-utils" + +src_prepare() { + sed -i "/^AR/s:ar:$(tc-getAR):" MCONFIG.in || die +} + +src_configure() { + econf \ + $(use_with ipv6) \ + $(use_with tcpd tcpwrappers) \ + $(use_with readline) +} + +src_install() { + emake INSTALLROOT="${D}" install + dodoc README* CHANGES tftpd/sample.rules + + # iputils installs this + rm "${D}"/usr/share/man/man8/tftpd.8 || die + + newconfd "${FILESDIR}"/in.tftpd.confd-0.44 in.tftpd + newinitd "${FILESDIR}"/in.tftpd.rc6 in.tftpd + insinto /etc/xinetd.d + newins "${FILESDIR}"/tftp.xinetd tftp +}