summaryrefslogtreecommitdiff
path: root/net-ftp/gftp
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-06-02 00:07:23 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-06-02 00:07:23 +0100
commit6657c680376cedf378fcf328e5fa03ed3b41d580 (patch)
tree44ea8d174f647daca562b9bdcbcb527a85a77d0a /net-ftp/gftp
parent1551fe56fd6ba43a94509cffc61b6bf854b7ac9f (diff)
gentoo auto-resync : 02:06:2024 - 00:07:23
Diffstat (limited to 'net-ftp/gftp')
-rw-r--r--net-ftp/gftp/Manifest2
-rw-r--r--net-ftp/gftp/files/gftp-2.9.1b-fix-socklen-type.patch11
-rw-r--r--net-ftp/gftp/gftp-2.9.1b-r1.ebuild52
3 files changed, 65 insertions, 0 deletions
diff --git a/net-ftp/gftp/Manifest b/net-ftp/gftp/Manifest
index 950c919e9ebe..98ca185c7996 100644
--- a/net-ftp/gftp/Manifest
+++ b/net-ftp/gftp/Manifest
@@ -1,3 +1,5 @@
+AUX gftp-2.9.1b-fix-socklen-type.patch 404 BLAKE2B d331e678355db3c41d82ddb92501d61877653ec18f48fa646be1592876e897bd86533bcd73d957b2b8c75ab1b9a4ab5b44f38000a283557bb0d4196fae24261a SHA512 1561715b6e94bdbfac364f2c4627819ae82719617957f069a179537b75fd287c5e00d61a12d1c74355dc02e4611670c9f67751fb6bf051d71d55ea430cec4c35
DIST gftp-2.9.1b.tar.xz 872308 BLAKE2B 3588321689a1c6d8e0585e0439507f774b30e05630f774d7909f32fd66c289a961602b84cde97377de47d0c63fe4cf5452ec1e0b986c578958a6080cf5814fc8 SHA512 31d0aa4d3c5adf3d9ac2c2517402f9bdcab5fb1187df521a978acf41c1997a120797056dd1ca7bedc32e0dec0ac7c06c1790e47821660277fb6572205ce0fe93
+EBUILD gftp-2.9.1b-r1.ebuild 1087 BLAKE2B 6b579ba4247c97cfeaeebbd34566ddb0927942a2d114cf0b6d28884259183bd73e1bfb4f1e6d8d79b69979660655a2e8524e82791bfaf4ae15f9e8c3d529aefa SHA512 043e82ad27a88a76e850537bf34ed9714373867dc1a7cdd1028b12f2b040561d69bc1815a29081592bed624512b068c8f87ad08e0cd3340809765a0f8fc1be84
EBUILD gftp-2.9.1b.ebuild 828 BLAKE2B 3659ba22a765fe95d0349edbce31772d14d15b22157ba88f07d3d8a04f3414dfef20805c4b55f2e07452ab34631d79791f548c3b9ca71e75ebf672d6b7a5a233 SHA512 44fc949904bf830c47edeb2238782086ea520de438cf6c5e708f527550355c0cf8ca8b4d8b50e2769d81b46e76684a71f240221a9f6db992ab786ff8c6d74452
MISC metadata.xml 341 BLAKE2B 3504d175dd66da9b28350de0f14e98343033da88bbf4ecb77870a7eeb698d06ea0bef99e5651dbc4e888eea7298849008d9704e5f7aabec418abf3f82e77a53f SHA512 922d619e58add72d27c869618ee979ee5e8680ec737392da0b4bc7ba83cd49ca4b041c7c2c83f4efa4e6de2c2499423cf3aaf3ea16517b48866ccb82884616c6
diff --git a/net-ftp/gftp/files/gftp-2.9.1b-fix-socklen-type.patch b/net-ftp/gftp/files/gftp-2.9.1b-fix-socklen-type.patch
new file mode 100644
index 000000000000..f5bcdca11bbf
--- /dev/null
+++ b/net-ftp/gftp/files/gftp-2.9.1b-fix-socklen-type.patch
@@ -0,0 +1,11 @@
+--- a/lib/gftp.h 2024-04-26 09:08:32.404275437 +0000
++++ b/lib/gftp.h 2024-04-26 09:11:56.292057323 +0000
+@@ -361,7 +361,7 @@
+ int wakeup_main_thread[2]; /* FD that gets written to by the threads to wakeup the parent */
+
+ void *remote_addr;
+- size_t remote_addr_len;
++ socklen_t remote_addr_len;
+ int ai_family;
+ int ai_socktype;
+ unsigned int use_udp : 1; /* does this use UDP protocol? */
diff --git a/net-ftp/gftp/gftp-2.9.1b-r1.ebuild b/net-ftp/gftp/gftp-2.9.1b-r1.ebuild
new file mode 100644
index 000000000000..ef3270996d03
--- /dev/null
+++ b/net-ftp/gftp/gftp-2.9.1b-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit gnome2
+
+DESCRIPTION="a free multithreaded file transfer client"
+HOMEPAGE="https://github.com/masneyb/gftp"
+SRC_URI="https://github.com/masneyb/gftp/releases/download/${PV}/${P}.tar.xz"
+
+# Override gnome.org.eclass's S= (bug #904064)
+S="${WORKDIR}/${P}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="gtk ssl"
+
+RDEPEND="
+ dev-libs/glib:2
+ sys-libs/ncurses:0=
+ sys-libs/readline:0
+ gtk? ( x11-libs/gtk+:2 )
+ ssl? ( dev-libs/openssl:0= )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ sys-devel/gettext
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ # https://github.com/masneyb/gftp/issues/178
+ "${FILESDIR}"/"${P}"-fix-socklen-type.patch
+)
+
+src_prepare() {
+ gnome2_src_prepare
+ # https://github.com/masneyb/gftp/issues/181
+ sed -i -e 's/Icon=gftp.png/Icon=gftp/' docs/gftp.desktop || die
+}
+
+src_configure() {
+ gnome2_src_configure \
+ $(use_enable gtk gtkport) \
+ $(use_enable ssl)
+}
+
+src_install() {
+ gnome2_src_install
+ dodoc docs/USERS-GUIDE
+}