commit:     be0efa82bf9cf003c7138a8bf89e636e540c4e0b
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 13 23:06:49 2016 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Wed Jan 13 23:21:10 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be0efa82

net-ftp/atftp: add -std=gnu89 to CFLAGS to restore pre-GCC5 semantics

Gentoo-Bug: 561720
Revbump to fix missing ':0=' slot operator on sys-libs/readline.

Package-Manager: portage-2.2.26

 net-ftp/atftp/atftp-0.7-r4.ebuild | 75 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 75 insertions(+)

diff --git a/net-ftp/atftp/atftp-0.7-r4.ebuild 
b/net-ftp/atftp/atftp-0.7-r4.ebuild
new file mode 100644
index 0000000..44e2e25
--- /dev/null
+++ b/net-ftp/atftp/atftp-0.7-r4.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils flag-o-matic systemd
+
+DEBIAN_PV="11"
+DEBIAN_A="${PN}_${PV}-${DEBIAN_PV}.diff.gz"
+
+DESCRIPTION="Advanced TFTP implementation client/server"
+HOMEPAGE="ftp://ftp.mamalinux.com/pub/atftp/";
+SRC_URI="ftp://ftp.mamalinux.com/pub/atftp/${P}.tar.gz
+       mirror://debian/pool/main/a/${PN}/${DEBIAN_A}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~s390 ~sparc ~x86"
+IUSE="selinux tcpd readline pcre"
+
+DEPEND="tcpd? ( sys-apps/tcp-wrappers )
+       readline? ( sys-libs/readline:0= )
+       pcre? ( dev-libs/libpcre )"
+RDEPEND="${DEPEND}
+       !net-ftp/netkit-tftp
+       !net-ftp/tftp-hpa
+       selinux? ( sec-policy/selinux-tftp )"
+
+src_prepare() {
+       # fix #561720 by restoring pre-GCC5 inline semantics
+       append-cflags -std=gnu89
+
+       epatch "${DISTDIR}"/${DEBIAN_A}
+       epatch "${FILESDIR}"/${P}-pcre.patch
+       epatch "${FILESDIR}"/${P}-password.patch
+       epatch "${FILESDIR}"/${P}-tests.patch
+       epatch "${FILESDIR}"/${P}-glibc24.patch
+       epatch "${FILESDIR}"/${P}-blockno.patch
+       epatch "${FILESDIR}"/${P}-spaced_filename.patch
+       epatch "${FILESDIR}"/${P}-illreply.patch
+       # remove upstream's broken CFLAGS
+       sed -i.orig -e \
+         '/^CFLAGS="-g -Wall -D_REENTRANT"/s,".*","",g' \
+         "${S}"/configure || die
+}
+
+src_configure() {
+       append-flags -D_REENTRANT -DRATE_CONTROL
+       econf \
+               $(use_enable tcpd libwrap) \
+               $(use_enable readline libreadline) \
+               $(use_enable pcre libpcre) \
+               --enable-mtftp
+}
+
+src_compile() {
+       emake CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+       emake install DESTDIR="${D}"
+
+       newinitd "${FILESDIR}"/atftp.init atftp
+       newconfd "${FILESDIR}"/atftp.confd atftp
+
+       systemd_dounit "${FILESDIR}"/atftp.service
+       systemd_install_serviced "${FILESDIR}"/atftp.service.conf
+
+       dodoc README* BUGS FAQ Changelog INSTALL TODO
+       dodoc "${S}"/docs/*
+
+       docinto test
+       cd "${S}"/test
+       dodoc load.sh mtftp.conf pcre_pattern.txt test.sh test_suite.txt
+}

Reply via email to