mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-29 17:41:05 +02:00
Upgraded the tftp-hpa Portage package
Upgraded net-ftp/tftp-hpa to version 5.1 on amd64, x86 For automation, adding TFTP service on chroot. BUG=chrome-os-partner:9999 TEST=sudo emerge net-ftp/tftp-hpa Change-Id: I7ccb9c153c1610e813ff29929b5ea999deb2b3fc Reviewed-on: https://gerrit.chromium.org/gerrit/33773 Reviewed-by: Mike Frysinger <vapier@chromium.org> Commit-Ready: Bruce Kuo <brucekuo@chromium.org> Tested-by: Bruce Kuo <brucekuo@chromium.org>
This commit is contained in:
parent
2c721c2d2a
commit
3dbf2eaef6
13
sdk_container/src/third_party/portage-stable/metadata/md5-cache/net-ftp/tftp-hpa-5.1
vendored
Normal file
13
sdk_container/src/third_party/portage-stable/metadata/md5-cache/net-ftp/tftp-hpa-5.1
vendored
Normal file
@ -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
|
1
sdk_container/src/third_party/portage-stable/net-ftp/tftp-hpa/Manifest
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/net-ftp/tftp-hpa/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
||||
DIST tftp-hpa-5.1.tar.xz 89288 RMD160 44dcf64d083aa7a988a4f377954c31bb24da2009 SHA1 ade09d8aba5cb1155d0309c42ac427358cd41853 SHA256 f736417a4d436512168ec34fe0ed13845388a3f01b862baa50b7b427e7ab5e42
|
15
sdk_container/src/third_party/portage-stable/net-ftp/tftp-hpa/files/in.tftpd.confd-0.44
vendored
Normal file
15
sdk_container/src/third_party/portage-stable/net-ftp/tftp-hpa/files/in.tftpd.confd-0.44
vendored
Normal file
@ -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}"
|
20
sdk_container/src/third_party/portage-stable/net-ftp/tftp-hpa/files/in.tftpd.rc6
vendored
Normal file
20
sdk_container/src/third_party/portage-stable/net-ftp/tftp-hpa/files/in.tftpd.rc6
vendored
Normal file
@ -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 $?
|
||||
}
|
10
sdk_container/src/third_party/portage-stable/net-ftp/tftp-hpa/files/tftp.xinetd
vendored
Normal file
10
sdk_container/src/third_party/portage-stable/net-ftp/tftp-hpa/files/tftp.xinetd
vendored
Normal file
@ -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
|
||||
}
|
48
sdk_container/src/third_party/portage-stable/net-ftp/tftp-hpa/tftp-hpa-5.1.ebuild
vendored
Normal file
48
sdk_container/src/third_party/portage-stable/net-ftp/tftp-hpa/tftp-hpa-5.1.ebuild
vendored
Normal file
@ -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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user