1 |
commit: 8ec95f3f9000ec314553778e3fc9aedae8a93775 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 26 03:58:02 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 26 03:58:02 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ec95f3f |
7 |
|
8 |
net-misc/wput: add 0.6.2_p20130413_p11 (Debian fork) |
9 |
|
10 |
Fixes Clang 15. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/871180 |
13 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
14 |
|
15 |
net-misc/wput/Manifest | 2 + |
16 |
...-0.6.2_p20130413_p11-no-compress-manpages.patch | 39 ++++++++++++++++ |
17 |
...t-0.6.2_p20130413_p11-xopen_source-strdup.patch | 14 ++++++ |
18 |
net-misc/wput/wput-0.6.2_p20130413_p11.ebuild | 54 ++++++++++++++++++++++ |
19 |
4 files changed, 109 insertions(+) |
20 |
|
21 |
diff --git a/net-misc/wput/Manifest b/net-misc/wput/Manifest |
22 |
index bd6176fde979..5d5aff6c7a1c 100644 |
23 |
--- a/net-misc/wput/Manifest |
24 |
+++ b/net-misc/wput/Manifest |
25 |
@@ -1 +1,3 @@ |
26 |
DIST wput-0.6.2.tgz 368510 BLAKE2B bf59720e220d837354aff7d90bf06dcf54df4adf10c53ca844cb18dc6f327793ebd5dce7beecc76b43ddccfe273435a1eca918ab2272145dc8bf47293f601004 SHA512 e1d0fb8570cbda44c97215ee1a021a9867f2e91323b3d7f7df1d7fd68a1b2aba40a7f3068e5e85e8c736b1dba1fba62df375af99e3fb96cd0fd414b139c641bd |
27 |
+DIST wput_0.6.2+git20130413-11.debian.tar.xz 15976 BLAKE2B 4f1facab61d22544855ce49875357c8d67d6eab013cf73cb8507a334c07b1f9e9391e342347eeafdb26b62a4156d4a0a4e2967198662ad66ef8ebb35ed2c9bf8 SHA512 d80e727edee34bd0f9b40b14c0ed1bfd2ec456542445fd38c487f06d47ca210d785e911a71d455d335b9e3940a5cfc19cc7202d93501b0b0f4f3a1e6f6a5fc0a |
28 |
+DIST wput_0.6.2+git20130413.orig.tar.bz2 257503 BLAKE2B a5386f5de3e8df23d814b3a7ebba1725bcb75f0a61bd26ea402053bd11d717ae5bdd1c1bc9e43d4f4a61f55a91d9222fffe62988b869b68c206c46bfd89cf28b SHA512 f8bb23f60ae008ecd18ec7f891fc17fe8d2b3550d7788c591067e48af00c934f2c3b2e5d07234fc25bcf6cb94464710ff0309151e9ad6dd734f5a30c3fdab06f |
29 |
|
30 |
diff --git a/net-misc/wput/files/wput-0.6.2_p20130413_p11-no-compress-manpages.patch b/net-misc/wput/files/wput-0.6.2_p20130413_p11-no-compress-manpages.patch |
31 |
new file mode 100644 |
32 |
index 000000000000..cc0c6e8e1b8b |
33 |
--- /dev/null |
34 |
+++ b/net-misc/wput/files/wput-0.6.2_p20130413_p11-no-compress-manpages.patch |
35 |
@@ -0,0 +1,39 @@ |
36 |
+--- a/Makefile.in |
37 |
++++ b/Makefile.in |
38 |
+@@ -10,7 +10,6 @@ bindir=@bindir@ |
39 |
+ all clean: |
40 |
+ cd po && $(MAKE) $(MAKEDEFS) $@ |
41 |
+ cd src && $(MAKE) $(MAKEDEFS) $@ |
42 |
+- cd doc && $(MAKE) $(MAKEDEFS) $@ |
43 |
+ |
44 |
+ win-clean: |
45 |
+ cd src && $(MAKE) $(MAKEDEFS) $@ |
46 |
+@@ -20,9 +20,9 @@ install: all |
47 |
+ install -m0755 -d $(destdir)$(bindir) |
48 |
+ install -m0755 -d $(destdir)$(mandir) |
49 |
+ install -m0755 wput $(destdir)$(bindir) |
50 |
+- install -m0644 doc/wput.1.gz $(destdir)$(mandir) |
51 |
++ install -m0644 doc/wput.1 $(destdir)$(mandir) |
52 |
+ cd $(destdir)$(bindir) && ln -s wput wdel |
53 |
+- install -m0644 doc/wdel.1.gz $(destdir)$(mandir) |
54 |
++ install -m0644 doc/wdel.1 $(destdir)$(mandir) |
55 |
+ @echo "----------------" |
56 |
+ @echo "Wput and Wdel installed. See 'wput/wdel -h' or 'man wput/wdel' for" |
57 |
+ @echo "usage information." |
58 |
+@@ -34,6 +34,6 @@ install: all |
59 |
+ uninstall: |
60 |
+ rm -f $(destdir)$(bindir)/wput |
61 |
+ rm -f $(destdir)$(bindir)/wdel |
62 |
+- rm -f $(destdir)$(mandir)/wput.1.gz |
63 |
+- rm -f $(destdir)$(mandir)/wdel.1.gz |
64 |
++ rm -f $(destdir)$(mandir)/wput.1 |
65 |
++ rm -f $(destdir)$(mandir)/wdel.1 |
66 |
+ |
67 |
+--- a/doc/Makefile |
68 |
++++ /dev/null |
69 |
+@@ -1,5 +0,0 @@ |
70 |
+-all: |
71 |
+- gzip < wput.1 > wput.1.gz |
72 |
+- gzip < wdel.1 > wdel.1.gz |
73 |
+-clean: |
74 |
+- rm -f wput.1.gz wdel.1.gz |
75 |
|
76 |
diff --git a/net-misc/wput/files/wput-0.6.2_p20130413_p11-xopen_source-strdup.patch b/net-misc/wput/files/wput-0.6.2_p20130413_p11-xopen_source-strdup.patch |
77 |
new file mode 100644 |
78 |
index 000000000000..e2426d3fc25f |
79 |
--- /dev/null |
80 |
+++ b/net-misc/wput/files/wput-0.6.2_p20130413_p11-xopen_source-strdup.patch |
81 |
@@ -0,0 +1,14 @@ |
82 |
+ftp-ls.c:319:22: error: call to undeclared library function 'strdup' with type 'char *(const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] |
83 |
+ cur.linkto = xstrdup (p + 4); |
84 |
+ ^ |
85 |
+--- a/src/ftp-ls.c |
86 |
++++ b/src/ftp-ls.c |
87 |
+@@ -29,7 +29,7 @@ file, but you are not obligated to do so. If you do not wish to do |
88 |
+ so, delete this exception statement from your version. */ |
89 |
+ |
90 |
+ #include "config.h" |
91 |
+-#define _XOPEN_SOURCE |
92 |
++#define _XOPEN_SOURCE 600 |
93 |
+ #include <time.h> |
94 |
+ #include <stdio.h> |
95 |
+ #include <stdlib.h> |
96 |
|
97 |
diff --git a/net-misc/wput/wput-0.6.2_p20130413_p11.ebuild b/net-misc/wput/wput-0.6.2_p20130413_p11.ebuild |
98 |
new file mode 100644 |
99 |
index 000000000000..5934fa45be29 |
100 |
--- /dev/null |
101 |
+++ b/net-misc/wput/wput-0.6.2_p20130413_p11.ebuild |
102 |
@@ -0,0 +1,54 @@ |
103 |
+# Copyright 1999-2022 Gentoo Authors |
104 |
+# Distributed under the terms of the GNU General Public License v2 |
105 |
+ |
106 |
+EAPI=8 |
107 |
+ |
108 |
+inherit autotools |
109 |
+ |
110 |
+DESCRIPTION="Tiny program like wget, to upload files/whole directories via FTP" |
111 |
+HOMEPAGE="http://wput.sourceforge.net/" |
112 |
+ |
113 |
+if [[ ${PV} == *_p* ]] ; then |
114 |
+ MY_PV=$(ver_cut 1-3) |
115 |
+ SRC_URI=" mirror://debian/pool/main/w/wput/wput_${MY_PV}+git$(ver_cut 5).orig.tar.bz2" |
116 |
+ SRC_URI+=" mirror://debian/pool/main/w/wput/wput_${MY_PV}+git$(ver_cut 5)-$(ver_cut 7).debian.tar.xz" |
117 |
+ S="${WORKDIR}"/${PN}-${MY_PV}+git$(ver_cut 5) |
118 |
+else |
119 |
+ SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}.tgz" |
120 |
+fi |
121 |
+ |
122 |
+LICENSE="GPL-2" |
123 |
+SLOT="0" |
124 |
+KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
125 |
+IUSE="debug ssl" |
126 |
+ |
127 |
+RDEPEND="ssl? ( net-libs/gnutls:= )" |
128 |
+DEPEND="${RDEPEND}" |
129 |
+# Debian's patches to fix spelling means need gettext to regenerate |
130 |
+# It's so common that it's not really worth the 'touch' dance to avoid it |
131 |
+# or conditional patching. |
132 |
+BDEPEND="sys-devel/gettext" |
133 |
+ |
134 |
+PATCHES=( |
135 |
+ "${FILESDIR}"/${PN}-0.6.2_p20130413_p11-xopen_source-strdup.patch |
136 |
+ "${FILESDIR}"/${PN}-0.6.2_p20130413_p11-no-compress-manpages.patch |
137 |
+) |
138 |
+ |
139 |
+src_prepare() { |
140 |
+ eapply $(sed -e "s:^:${WORKDIR}/debian/patches/:" "${WORKDIR}"/debian/patches/series) |
141 |
+ default |
142 |
+ |
143 |
+ eautoreconf |
144 |
+} |
145 |
+ |
146 |
+src_configure() { |
147 |
+ local myconf=( |
148 |
+ --enable-g-switch=no |
149 |
+ --enable-nls |
150 |
+ |
151 |
+ $(usev debug '--enable-memdbg=yes') |
152 |
+ $(use_with ssl) |
153 |
+ ) |
154 |
+ |
155 |
+ econf "${myconf[@]}" |
156 |
+} |