summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-11-30 04:03:53 +0000
committerMike Frysinger <vapier@gentoo.org>2011-11-30 04:03:53 +0000
commitcb53533ae5b8b38ea44a556c3ba065a8ce0be88d (patch)
treeb3b12ee5fe44140795d7884e7fe1533c544014c3 /net-ftp/tftp-hpa
parentStable for HPPA (bug #391823). (diff)
downloadgentoo-2-cb53533ae5b8b38ea44a556c3ba065a8ce0be88d.tar.gz
gentoo-2-cb53533ae5b8b38ea44a556c3ba065a8ce0be88d.tar.bz2
gentoo-2-cb53533ae5b8b38ea44a556c3ba065a8ce0be88d.zip
Respect $(AR), update to EAPI=4, and make sure readline/tcp-wrappers are in RDEPEND since they're used at runtime.
(Portage version: 2.2.0_alpha75/cvs/Linux x86_64)
Diffstat (limited to 'net-ftp/tftp-hpa')
-rw-r--r--net-ftp/tftp-hpa/ChangeLog6
-rw-r--r--net-ftp/tftp-hpa/tftp-hpa-5.1.ebuild26
2 files changed, 21 insertions, 11 deletions
diff --git a/net-ftp/tftp-hpa/ChangeLog b/net-ftp/tftp-hpa/ChangeLog
index bbfac2b08dc2..d85de85321e5 100644
--- a/net-ftp/tftp-hpa/ChangeLog
+++ b/net-ftp/tftp-hpa/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-ftp/tftp-hpa
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/tftp-hpa/ChangeLog,v 1.55 2011/07/10 11:13:04 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/tftp-hpa/ChangeLog,v 1.56 2011/11/30 04:03:53 vapier Exp $
+
+ 30 Nov 2011; Mike Frysinger <vapier@gentoo.org> tftp-hpa-5.1.ebuild:
+ Respect $(AR), update to EAPI=4, and make sure readline/tcp-wrappers are in
+ RDEPEND since they're used at runtime.
10 Jul 2011; Raúl Porcel <armin76@gentoo.org> tftp-hpa-5.1.ebuild:
alpha/ia64/s390/sh/sparc stable wrt #374001
diff --git a/net-ftp/tftp-hpa/tftp-hpa-5.1.ebuild b/net-ftp/tftp-hpa/tftp-hpa-5.1.ebuild
index ff5e681d4d08..24ce7bc0428d 100644
--- a/net-ftp/tftp-hpa/tftp-hpa-5.1.ebuild
+++ b/net-ftp/tftp-hpa/tftp-hpa-5.1.ebuild
@@ -1,10 +1,14 @@
# Copyright 1999-2011 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.7 2011/07/10 11:13:04 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/tftp-hpa/tftp-hpa-5.1.ebuild,v 1.8 2011/11/30 04:03:53 vapier 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/${P}.tar.bz2"
+SRC_URI="mirror://kernel/software/network/tftp/${PN}/${P}.tar.xz"
LICENSE="BSD"
SLOT="0"
@@ -12,23 +16,25 @@ 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 )
+ readline? ( sys-libs/readline )
+ tcpd? ( sys-apps/tcp-wrappers )
!net-ftp/atftp
!net-ftp/netkit-tftp"
-DEPEND="${RDEPEND}
- readline? ( sys-libs/readline )
- tcpd? ( sys-apps/tcp-wrappers )"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ sed -i "/^AR/s:ar:$(tc-getAR):" MCONFIG.in || die
+}
-src_compile() {
+src_configure() {
econf \
$(use_with ipv6) \
$(use_with tcpd tcpwrappers) \
- $(use_with readline) \
- || die
- emake || die
+ $(use_with readline)
}
src_install() {
- emake INSTALLROOT="${D}" install || die
+ emake INSTALLROOT="${D}" install
dodoc README* CHANGES tftpd/sample.rules
# iputils installs this