Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-ftp/lftp/, net-ftp/lftp/files/
Date: Mon, 23 Dec 2019 16:13:36
Message-Id: 1577117610.1859ce88d3e01568e8a971c730731071b1515821.jer@gentoo
1 commit: 1859ce88d3e01568e8a971c730731071b1515821
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 23 15:49:28 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 23 16:13:30 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1859ce88
7
8 net-ftp/lftp: Version 4.9.0
9
10 Package-Manager: Portage-2.3.82, Repoman-2.3.20
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 net-ftp/lftp/Manifest | 1 +
14 net-ftp/lftp/files/lftp-4.9.0-ipv6.patch | 18 ++++++
15 net-ftp/lftp/lftp-4.9.0.ebuild | 108 +++++++++++++++++++++++++++++++
16 3 files changed, 127 insertions(+)
17
18 diff --git a/net-ftp/lftp/Manifest b/net-ftp/lftp/Manifest
19 index 7fc73c4df9c..37283c7c30b 100644
20 --- a/net-ftp/lftp/Manifest
21 +++ b/net-ftp/lftp/Manifest
22 @@ -1 +1,2 @@
23 DIST lftp-4.8.4.tar.xz 1633444 BLAKE2B cbd85b553268823e7633e414752876db083355d92e55728337bc7863fb3bd89729ac725be41a9bcca275cf1752ea5f8ad01fdc67c7593868084c9c32bb75332d SHA512 2528e2cbfe132068dc75036d6334372f79f8063d44e46c724a28ea1f5b40d8de0d1e36cde3124fbcc27e5ba8be04b893eb1a7546346253768346a80bc54c02d1
24 +DIST lftp-4.9.0.tar.xz 1642596 BLAKE2B 111e559c98e0572e1ca79f935a1db8c45c99275c8aa7b584be06d1738296b32808e97d696a02751575c5d1ea24a30a52f5d9f177a193f70addf1168e3208aa13 SHA512 8d83ea76390d38cb1f84f02eb7bf45780758afb9fe61f5b7278a48c9a5d216d03bc8b699c0f449a0036bdb441b4225af074da1b5e92a77ddb61aca704758211e
25
26 diff --git a/net-ftp/lftp/files/lftp-4.9.0-ipv6.patch b/net-ftp/lftp/files/lftp-4.9.0-ipv6.patch
27 new file mode 100644
28 index 00000000000..2c02ce5e787
29 --- /dev/null
30 +++ b/net-ftp/lftp/files/lftp-4.9.0-ipv6.patch
31 @@ -0,0 +1,18 @@
32 +--- a/src/ftpclass.cc
33 ++++ b/src/ftpclass.cc
34 +@@ -848,6 +848,7 @@ Ftp::pasv_state_t Ftp::Handle_EPSV_CEPR()
35 + conn->data_sa.in.sin_port=htons(port);
36 + conn->data_sa.sa.sa_family=AF_INET;
37 + }
38 ++#if INET6
39 + // V6 / AF_INET6
40 + else if (proto == 2)
41 + {
42 +@@ -855,6 +856,7 @@ Ftp::pasv_state_t Ftp::Handle_EPSV_CEPR()
43 + conn->data_sa.in6.sin6_port=htons(port);
44 + conn->data_sa.sa.sa_family=AF_INET6;
45 + }
46 ++#endif
47 + else
48 + {
49 + Disconnect("unsupported address family");
50
51 diff --git a/net-ftp/lftp/lftp-4.9.0.ebuild b/net-ftp/lftp/lftp-4.9.0.ebuild
52 new file mode 100644
53 index 00000000000..617212d87a4
54 --- /dev/null
55 +++ b/net-ftp/lftp/lftp-4.9.0.ebuild
56 @@ -0,0 +1,108 @@
57 +# Copyright 1999-2019 Gentoo Authors
58 +# Distributed under the terms of the GNU General Public License v2
59 +
60 +EAPI=7
61 +inherit autotools libtool xdg-utils
62 +
63 +DESCRIPTION="A sophisticated ftp/sftp/http/https/torrent client and file transfer program"
64 +HOMEPAGE="https://lftp.tech/"
65 +SRC_URI="
66 + ${HOMEPAGE}ftp/${P}.tar.xz
67 +"
68 +
69 +LICENSE="GPL-3"
70 +SLOT="0"
71 +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"
72 +IUSE="convert-mozilla-cookies +gnutls idn ipv6 libressl nls socks5 +ssl verify-file"
73 +RESTRICT="test"
74 +
75 +RDEPEND="
76 + >=sys-libs/ncurses-5.1:=
77 + >=sys-libs/readline-5.1:=
78 + dev-libs/expat
79 + sys-libs/zlib
80 + convert-mozilla-cookies? ( dev-perl/DBI )
81 + idn? ( net-dns/libidn2:= )
82 + socks5? (
83 + >=net-proxy/dante-1.1.12
84 + sys-libs/pam
85 + )
86 + ssl? (
87 + gnutls? ( >=net-libs/gnutls-1.2.3:0= )
88 + !gnutls? (
89 + !libressl? ( dev-libs/openssl:0= )
90 + libressl? ( dev-libs/libressl:0= )
91 + )
92 + )
93 + verify-file? (
94 + dev-perl/String-CRC32
95 + virtual/perl-Digest-MD5
96 + )
97 +"
98 +DEPEND="
99 + ${RDEPEND}
100 + =sys-devel/libtool-2*
101 + app-arch/xz-utils
102 + nls? ( >=sys-devel/gettext-0.19 )
103 + virtual/pkgconfig
104 +"
105 +DOCS=(
106 + BUGS ChangeLog FAQ FEATURES MIRRORS NEWS README README.debug-levels
107 + README.dnssec README.modules THANKS TODO
108 +)
109 +PATCHES=(
110 + "${FILESDIR}"/${PN}-4.0.2.91-lafile.patch
111 + "${FILESDIR}"/${PN}-4.5.5-am_config_header.patch
112 + "${FILESDIR}"/${PN}-4.7.0-gettext.patch
113 + "${FILESDIR}"/${PN}-4.7.5-libdir-additional.patch
114 + "${FILESDIR}"/${PN}-4.7.5-libdir-expat.patch
115 + "${FILESDIR}"/${PN}-4.7.5-libdir-readline.patch
116 + "${FILESDIR}"/${PN}-4.8.2-libdir-configure.patch
117 + "${FILESDIR}"/${PN}-4.8.2-libdir-libidn2.patch
118 + "${FILESDIR}"/${PN}-4.8.2-libdir-openssl.patch
119 + "${FILESDIR}"/${PN}-4.8.2-libdir-zlib.patch
120 + "${FILESDIR}"/${PN}-4.9.0-ipv6.patch
121 +)
122 +
123 +src_prepare() {
124 + default
125 +
126 + eautoreconf
127 +
128 + elibtoolize # for Darwin bundles
129 +
130 + # bug #536036
131 + printf 'set fish:auto-confirm no\nset sftp:auto-confirm no\n' >> ${PN}.conf || die
132 +}
133 +
134 +src_configure() {
135 + econf \
136 + $(use_enable ipv6) \
137 + $(use_enable nls) \
138 + $(use_with idn libidn2) \
139 + $(use_with socks5 socksdante "${EPREFIX}"/usr) \
140 + $(usex ssl "$(use_with !gnutls openssl ${EPREFIX}/usr)" '--without-openssl') \
141 + $(usex ssl "$(use_with gnutls)" '--without-gnutls') \
142 + --enable-packager-mode \
143 + --sysconfdir="${EPREFIX}"/etc/${PN} \
144 + --with-modules \
145 + --with-readline="${EPREFIX}"/usr \
146 + --without-included-regex
147 +}
148 +
149 +src_install() {
150 + default
151 +
152 + local script
153 + for script in {convert-mozilla-cookies,verify-file}; do
154 + use ${script} || { rm "${ED}"/usr/share/${PN}/${script} || die ;}
155 + done
156 +}
157 +
158 +pkg_postinst() {
159 + xdg_icon_cache_update
160 +}
161 +
162 +pkg_postrm() {
163 + xdg_icon_cache_update
164 +}