Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-ftp/ftp/
Date: Tue, 28 Sep 2021 03:35:14
Message-Id: 1632800093.74fca1f794ce6bf84cb6354cc31d5f307508e155.sam@gentoo
1 commit: 74fca1f794ce6bf84cb6354cc31d5f307508e155
2 Author: Hank Leininger <hlein <AT> korelogic <DOT> com>
3 AuthorDate: Tue Dec 29 01:12:10 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 28 03:34:53 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74fca1f7
7
8 net-ftp/ftp: version bump, EAPI bump, fix segv
9
10 Sync to a more recent Debian version
11 (netkit-ftp-ssl_0.17.34+0.2-5.1.dsc), and fix longstanding segv
12 when the server goes away. Updated Gentoo patches for the current
13 Debian version. Tested with gcc-10.
14
15 Signed-off-by: Hank Leininger <hlein <AT> korelogic.com>
16 Closes: https://bugs.gentoo.org/662684
17 Package-Manager: Portage-3.0.12, Repoman-3.0.2
18 Closes: https://github.com/gentoo/gentoo/pull/18862
19 Signed-off-by: Sam James <sam <AT> gentoo.org>
20
21 net-ftp/ftp/Manifest | 2 ++
22 net-ftp/ftp/ftp-0.17.34.0.2.5.1.ebuild | 66 ++++++++++++++++++++++++++++++++++
23 2 files changed, 68 insertions(+)
24
25 diff --git a/net-ftp/ftp/Manifest b/net-ftp/ftp/Manifest
26 index 248624ad48c..58a4a0349d6 100644
27 --- a/net-ftp/ftp/Manifest
28 +++ b/net-ftp/ftp/Manifest
29 @@ -1,3 +1,5 @@
30 DIST netkit-ftp-0.17-patches-2.tar.bz2 4307 BLAKE2B d7febb30807dab2dd66b6fe1991675b37cdea63703769f228895d7722f46b56dd2f5a7774d92740ff3f9ff7797a64660a580cb231582d2b9b912da35c209746a SHA512 6a9adfd33eae4ac2e1a9e070ed89467804dc484eda084694398bb7e3ebbaf04bf70d00ffaa637bace078c4c0024115ba3620fd75d4a3558a44dc991798885461
31 +DIST netkit-ftp-0.17-patches-3.tar.bz2 4082 BLAKE2B d70c0340641647ab993a7b2aa1c49be2a1ff16e7b6b3038ebe9eff329bf4796cfa21d8c8d88f123c2f633cc1ba3b5ecdd4b1be78a7fda63b77ece077d643fca5 SHA512 083796f89c6d02f2b094616a6b7c9ef8ef7d0edbe337521cf311deb03f1af2000f12b85e3978a5eb1c56c64f2a2a105c0b7735fd6ea31d626d171a047cd858c3
32 DIST netkit-ftp-0.17.tar.gz 53934 BLAKE2B 451f90f26cd5cc1a6693fea7c31d47127d8b89b4b00a2f863af61d46d87f6e416141db1c6f6bb320021665a99f0d9e00dc4a5c3b0bb209df0ae74aad97a45f20 SHA512 ba8e411d0230c78e9e4555c03dc1036c6e506ef8edb72ecee4d6a7559d85143721bffbe8b8a6e42918b3098072ac8f207584be9e3a241f6bd31e361c92de6554
33 DIST netkit-ftp-ssl_0.17.23+0.2-1.debian.tar.gz 48189 BLAKE2B 7894f64308ae14c72e2fcf7e18225fa36680d2d88a3e59c4b7edac3669e051e3196a2acda3f8da083bd3d8405e9f28f67be10d70684854e8bbc7008f8189cb8d SHA512 c2fa882c185987298a73e7cef8c073ab0aee7627b60b412be90eef8619bf02d97721c15197fe4f443eab53bcca87876633924872f3102ef9e92dc7511c065228
34 +DIST netkit-ftp-ssl_0.17.34+0.2-5.1.debian.tar.xz 48976 BLAKE2B 30c867a3a8fabc55ba05603c54b5e4153d198e8e92d55353bf02cbf0494a41de1362c945aef013edfa3a6f0b1c78e5041ec7127db5eb99bac5351f57bb526c2d SHA512 6061b9b22fe8463a7d4542988685e108b282b6d2908d67cc70951fc23b1d842a70aee44af989d1e683e80c050ffe284fbfa776581e0120439bec98d479672718
35
36 diff --git a/net-ftp/ftp/ftp-0.17.34.0.2.5.1.ebuild b/net-ftp/ftp/ftp-0.17.34.0.2.5.1.ebuild
37 new file mode 100644
38 index 00000000000..5c394dd064b
39 --- /dev/null
40 +++ b/net-ftp/ftp/ftp-0.17.34.0.2.5.1.ebuild
41 @@ -0,0 +1,66 @@
42 +# Copyright 1999-2021 Gentoo Authors
43 +# Distributed under the terms of the GNU General Public License v2
44 +
45 +EAPI=7
46 +
47 +inherit flag-o-matic toolchain-funcs
48 +
49 +PATCH_VER="3"
50 +MY_PN="netkit-ftp"
51 +MY_PV="$(ver_cut 1-2)"
52 +MY_P="netkit-${PN}-${MY_PV}"
53 +DEB_PN="${MY_PN}-ssl"
54 +DEB_PV="$(ver_cut 1-3)+$(ver_cut 4-5)-$(ver_cut 6-7)"
55 +DESCRIPTION="Standard Linux FTP client"
56 +HOMEPAGE="http://www.hcs.harvard.edu/~dholland/computers/netkit.html"
57 +SRC_URI="ftp://sunsite.unc.edu/pub/Linux/system/network/netkit/${MY_P}.tar.gz
58 + mirror://debian/pool/main/n/${DEB_PN}/${DEB_PN}_${DEB_PV}.debian.tar.xz
59 + https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${MY_P}-patches-${PATCH_VER}.tar.bz2"
60 +
61 +LICENSE="BSD"
62 +SLOT="0"
63 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
64 +IUSE="ipv6 readline ssl"
65 +
66 +RDEPEND="
67 + >=sys-libs/ncurses-5.2:=
68 + readline? ( sys-libs/readline:0= )
69 + ssl? ( dev-libs/openssl:0= )
70 +"
71 +DEPEND="${RDEPEND}"
72 +BDEPEND="sys-apps/grep"
73 +
74 +S=${WORKDIR}/${MY_P}
75 +
76 +src_prepare() {
77 + local p
78 + for p in $(grep -v "^#" "${WORKDIR}"/debian/patches/series || die); do
79 + eapply "${WORKDIR}/debian/patches/${p}"
80 + done
81 +
82 + eapply "${WORKDIR}"/patch
83 +
84 + sed -i \
85 + -e 's:echo -n:printf %s :' \
86 + configure || die
87 +
88 + default
89 +}
90 +
91 +src_configure() {
92 + append-lfs-flags #101038
93 + tc-export CC
94 + # not an autoconf script
95 + ./configure \
96 + --prefix=/usr \
97 + $(use_enable ipv6) \
98 + $(use_enable readline) \
99 + $(use_enable ssl) \
100 + || die
101 +}
102 +
103 +src_install() {
104 + dobin ftp/ftp
105 + doman ftp/ftp.1 ftp/netrc.5
106 + dodoc ChangeLog README BUGS
107 +}