2012-01-23 21:48:46 +04:00
|
|
|
# Copyright 1999-2011 Gentoo Foundation
|
2011-09-07 21:52:54 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2012-01-23 21:48:46 +04:00
|
|
|
EAPI="4"
|
|
|
|
|
2011-09-07 21:52:54 +04:00
|
|
|
inherit eutils
|
|
|
|
|
|
|
|
DESCRIPTION="port of the OpenBSD TFTP server"
|
|
|
|
HOMEPAGE="http://www.kernel.org/pub/software/network/tftp/"
|
2012-01-23 21:48:46 +04:00
|
|
|
SRC_URI="mirror://kernel/software/network/tftp/${PN}/${P}.tar.xz"
|
2011-09-07 21:52:54 +04:00
|
|
|
|
|
|
|
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-tftpd )
|
2012-01-23 21:48:46 +04:00
|
|
|
readline? ( sys-libs/readline )
|
|
|
|
tcpd? ( sys-apps/tcp-wrappers )
|
2011-10-22 21:39:33 +04:00
|
|
|
!net-ftp/atftp
|
|
|
|
!net-ftp/netkit-tftp"
|
2011-09-07 21:52:54 +04:00
|
|
|
DEPEND="${RDEPEND}
|
2012-01-23 21:48:46 +04:00
|
|
|
app-arch/xz-utils
|
2011-09-07 21:52:54 +04:00
|
|
|
readline? ( sys-libs/readline )
|
|
|
|
tcpd? ( sys-apps/tcp-wrappers )"
|
|
|
|
|
2012-01-23 21:48:46 +04:00
|
|
|
src_configure() {
|
|
|
|
# Pinkbyte: additional patch for Windows clients
|
2011-09-07 21:52:54 +04:00
|
|
|
epatch "${FILESDIR}"/${P}-filecase.patch
|
|
|
|
#
|
|
|
|
econf \
|
|
|
|
$(use_with ipv6) \
|
|
|
|
$(use_with tcpd tcpwrappers) \
|
2012-01-23 21:48:46 +04:00
|
|
|
$(use_with readline)
|
2011-09-07 21:52:54 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2012-01-23 21:48:46 +04:00
|
|
|
emake INSTALLROOT="${D}" install
|
2011-09-07 21:52:54 +04:00
|
|
|
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
|
|
|
|
}
|