From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 25DCC138334 for ; Mon, 23 Dec 2019 16:13:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 54B8CE0A88; Mon, 23 Dec 2019 16:13:35 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2B82AE0A88 for ; Mon, 23 Dec 2019 16:13:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CCF4234DAF5 for ; Mon, 23 Dec 2019 16:13:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C4D047485B for ; Mon, 23 Dec 2019 16:13:31 +0000 (UTC) From: "Jeroen Roovers" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" Message-ID: <1577117610.1859ce88d3e01568e8a971c730731071b1515821.jer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-ftp/lftp/, net-ftp/lftp/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-ftp/lftp/Manifest net-ftp/lftp/files/lftp-4.9.0-ipv6.patch net-ftp/lftp/lftp-4.9.0.ebuild X-VCS-Directories: net-ftp/lftp/ net-ftp/lftp/files/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: 1859ce88d3e01568e8a971c730731071b1515821 X-VCS-Branch: master Date: Mon, 23 Dec 2019 16:13:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 77030059-3817-4ed4-974b-a2fbb31f6859 X-Archives-Hash: 130005ac360d4b10642ea55e0cc8ff76 commit: 1859ce88d3e01568e8a971c730731071b1515821 Author: Jeroen Roovers gentoo org> AuthorDate: Mon Dec 23 15:49:28 2019 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Mon Dec 23 16:13:30 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1859ce88 net-ftp/lftp: Version 4.9.0 Package-Manager: Portage-2.3.82, Repoman-2.3.20 Signed-off-by: Jeroen Roovers gentoo.org> net-ftp/lftp/Manifest | 1 + net-ftp/lftp/files/lftp-4.9.0-ipv6.patch | 18 ++++++ net-ftp/lftp/lftp-4.9.0.ebuild | 108 +++++++++++++++++++++++++++++++ 3 files changed, 127 insertions(+) diff --git a/net-ftp/lftp/Manifest b/net-ftp/lftp/Manifest index 7fc73c4df9c..37283c7c30b 100644 --- a/net-ftp/lftp/Manifest +++ b/net-ftp/lftp/Manifest @@ -1 +1,2 @@ DIST lftp-4.8.4.tar.xz 1633444 BLAKE2B cbd85b553268823e7633e414752876db083355d92e55728337bc7863fb3bd89729ac725be41a9bcca275cf1752ea5f8ad01fdc67c7593868084c9c32bb75332d SHA512 2528e2cbfe132068dc75036d6334372f79f8063d44e46c724a28ea1f5b40d8de0d1e36cde3124fbcc27e5ba8be04b893eb1a7546346253768346a80bc54c02d1 +DIST lftp-4.9.0.tar.xz 1642596 BLAKE2B 111e559c98e0572e1ca79f935a1db8c45c99275c8aa7b584be06d1738296b32808e97d696a02751575c5d1ea24a30a52f5d9f177a193f70addf1168e3208aa13 SHA512 8d83ea76390d38cb1f84f02eb7bf45780758afb9fe61f5b7278a48c9a5d216d03bc8b699c0f449a0036bdb441b4225af074da1b5e92a77ddb61aca704758211e diff --git a/net-ftp/lftp/files/lftp-4.9.0-ipv6.patch b/net-ftp/lftp/files/lftp-4.9.0-ipv6.patch new file mode 100644 index 00000000000..2c02ce5e787 --- /dev/null +++ b/net-ftp/lftp/files/lftp-4.9.0-ipv6.patch @@ -0,0 +1,18 @@ +--- a/src/ftpclass.cc ++++ b/src/ftpclass.cc +@@ -848,6 +848,7 @@ Ftp::pasv_state_t Ftp::Handle_EPSV_CEPR() + conn->data_sa.in.sin_port=htons(port); + conn->data_sa.sa.sa_family=AF_INET; + } ++#if INET6 + // V6 / AF_INET6 + else if (proto == 2) + { +@@ -855,6 +856,7 @@ Ftp::pasv_state_t Ftp::Handle_EPSV_CEPR() + conn->data_sa.in6.sin6_port=htons(port); + conn->data_sa.sa.sa_family=AF_INET6; + } ++#endif + else + { + Disconnect("unsupported address family"); diff --git a/net-ftp/lftp/lftp-4.9.0.ebuild b/net-ftp/lftp/lftp-4.9.0.ebuild new file mode 100644 index 00000000000..617212d87a4 --- /dev/null +++ b/net-ftp/lftp/lftp-4.9.0.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit autotools libtool xdg-utils + +DESCRIPTION="A sophisticated ftp/sftp/http/https/torrent client and file transfer program" +HOMEPAGE="https://lftp.tech/" +SRC_URI=" + ${HOMEPAGE}ftp/${P}.tar.xz +" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="convert-mozilla-cookies +gnutls idn ipv6 libressl nls socks5 +ssl verify-file" +RESTRICT="test" + +RDEPEND=" + >=sys-libs/ncurses-5.1:= + >=sys-libs/readline-5.1:= + dev-libs/expat + sys-libs/zlib + convert-mozilla-cookies? ( dev-perl/DBI ) + idn? ( net-dns/libidn2:= ) + socks5? ( + >=net-proxy/dante-1.1.12 + sys-libs/pam + ) + ssl? ( + gnutls? ( >=net-libs/gnutls-1.2.3:0= ) + !gnutls? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + ) + ) + verify-file? ( + dev-perl/String-CRC32 + virtual/perl-Digest-MD5 + ) +" +DEPEND=" + ${RDEPEND} + =sys-devel/libtool-2* + app-arch/xz-utils + nls? ( >=sys-devel/gettext-0.19 ) + virtual/pkgconfig +" +DOCS=( + BUGS ChangeLog FAQ FEATURES MIRRORS NEWS README README.debug-levels + README.dnssec README.modules THANKS TODO +) +PATCHES=( + "${FILESDIR}"/${PN}-4.0.2.91-lafile.patch + "${FILESDIR}"/${PN}-4.5.5-am_config_header.patch + "${FILESDIR}"/${PN}-4.7.0-gettext.patch + "${FILESDIR}"/${PN}-4.7.5-libdir-additional.patch + "${FILESDIR}"/${PN}-4.7.5-libdir-expat.patch + "${FILESDIR}"/${PN}-4.7.5-libdir-readline.patch + "${FILESDIR}"/${PN}-4.8.2-libdir-configure.patch + "${FILESDIR}"/${PN}-4.8.2-libdir-libidn2.patch + "${FILESDIR}"/${PN}-4.8.2-libdir-openssl.patch + "${FILESDIR}"/${PN}-4.8.2-libdir-zlib.patch + "${FILESDIR}"/${PN}-4.9.0-ipv6.patch +) + +src_prepare() { + default + + eautoreconf + + elibtoolize # for Darwin bundles + + # bug #536036 + printf 'set fish:auto-confirm no\nset sftp:auto-confirm no\n' >> ${PN}.conf || die +} + +src_configure() { + econf \ + $(use_enable ipv6) \ + $(use_enable nls) \ + $(use_with idn libidn2) \ + $(use_with socks5 socksdante "${EPREFIX}"/usr) \ + $(usex ssl "$(use_with !gnutls openssl ${EPREFIX}/usr)" '--without-openssl') \ + $(usex ssl "$(use_with gnutls)" '--without-gnutls') \ + --enable-packager-mode \ + --sysconfdir="${EPREFIX}"/etc/${PN} \ + --with-modules \ + --with-readline="${EPREFIX}"/usr \ + --without-included-regex +} + +src_install() { + default + + local script + for script in {convert-mozilla-cookies,verify-file}; do + use ${script} || { rm "${ED}"/usr/share/${PN}/${script} || die ;} + done +} + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +}