1 |
commit: 1224a05ef18f8e30298366873ffc7d8065fae62a |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 27 10:15:13 2020 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 27 10:21:08 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1224a05e |
7 |
|
8 |
net-ftp/ncftp: Fix CFLAGS=-fno-common |
9 |
|
10 |
Package-Manager: Portage-2.3.85, Repoman-2.3.20 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
net-ftp/ncftp/files/ncftp-3.2.6-fno-common.patch | 68 ++++++++++++++++++++++++ |
14 |
net-ftp/ncftp/ncftp-3.2.6-r1.ebuild | 49 +++++++++++++++++ |
15 |
2 files changed, 117 insertions(+) |
16 |
|
17 |
diff --git a/net-ftp/ncftp/files/ncftp-3.2.6-fno-common.patch b/net-ftp/ncftp/files/ncftp-3.2.6-fno-common.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..8b17b9b3986 |
20 |
--- /dev/null |
21 |
+++ b/net-ftp/ncftp/files/ncftp-3.2.6-fno-common.patch |
22 |
@@ -0,0 +1,68 @@ |
23 |
+--- a/ncftp/bookmark.h |
24 |
++++ b/ncftp/bookmark.h |
25 |
+@@ -59,3 +59,5 @@ |
26 |
+ void DefaultBookmarkName(char *, size_t, char *); |
27 |
+ void DisposeBookmarkTable(void); |
28 |
+ int AddNewItemToBookmarkTable(void); |
29 |
++ |
30 |
++extern Bookmark gBm; |
31 |
+--- a/ncftp/cmds.c |
32 |
++++ b/ncftp/cmds.c |
33 |
+@@ -91,7 +91,6 @@ |
34 |
+ extern char gOS[]; |
35 |
+ extern int gAutoResume; |
36 |
+ extern int gAutoSaveChangesToExistingBookmarks; |
37 |
+-extern Bookmark gBm; |
38 |
+ extern int gLoadedBm, gConfirmClose, gSavePasswords, gScreenColumns; |
39 |
+ extern char gLocalCWD[512], gPrevLocalCWD[512]; |
40 |
+ extern int gMayCancelJmp; |
41 |
+--- a/ncftp/main.c |
42 |
++++ b/ncftp/main.c |
43 |
+@@ -38,7 +38,6 @@ |
44 |
+ char gLocalCWD[512], gPrevLocalCWD[512]; |
45 |
+ |
46 |
+ extern char gRemoteCWD[512], gPrevRemoteCWD[512]; |
47 |
+-extern Bookmark gBm; |
48 |
+ extern int gLoadedBm; |
49 |
+ extern int gFirewallType; |
50 |
+ extern char gAutoAscii[]; |
51 |
+--- a/sh_util/gpshare.c |
52 |
++++ b/sh_util/gpshare.c |
53 |
+@@ -28,7 +28,6 @@ |
54 |
+ |
55 |
+ static int gIsAtty1 = 1, gIsAtty2 = 1; |
56 |
+ extern int gLoadedBm, gBookmarkMatchMode; |
57 |
+-Bookmark gBm; |
58 |
+ |
59 |
+ double |
60 |
+ FileSize(double size, const char **uStr0, double *uMult0) |
61 |
+--- a/sh_util/ncftpget.c |
62 |
++++ b/sh_util/ncftpget.c |
63 |
+@@ -40,7 +40,6 @@ |
64 |
+ extern char gFirewallExceptionList[256]; |
65 |
+ extern int gFwDataPortMode; |
66 |
+ extern const char gOS[], gVersion[]; |
67 |
+-extern Bookmark gBm; |
68 |
+ |
69 |
+ static void |
70 |
+ Usage(void) |
71 |
+--- a/sh_util/ncftpls.c |
72 |
++++ b/sh_util/ncftpls.c |
73 |
+@@ -39,7 +39,6 @@ |
74 |
+ extern char gFirewallExceptionList[256]; |
75 |
+ extern int gFwDataPortMode; |
76 |
+ extern const char gOS[], gVersion[]; |
77 |
+-extern Bookmark gBm; |
78 |
+ |
79 |
+ static int FTPRemoteRecursiveMList(FTPCIPtr cip, const char *const rdir, /* FTPFileInfoListPtr files, */ FTPLineListPtr lines); |
80 |
+ |
81 |
+--- a/sh_util/ncftpput.c |
82 |
++++ b/sh_util/ncftpput.c |
83 |
+@@ -41,7 +41,6 @@ |
84 |
+ extern char gFirewallExceptionList[256]; |
85 |
+ extern int gFwDataPortMode; |
86 |
+ extern const char gOS[], gVersion[]; |
87 |
+-extern Bookmark gBm; |
88 |
+ extern int gSendfileInProgress; |
89 |
+ |
90 |
+ static void |
91 |
|
92 |
diff --git a/net-ftp/ncftp/ncftp-3.2.6-r1.ebuild b/net-ftp/ncftp/ncftp-3.2.6-r1.ebuild |
93 |
new file mode 100644 |
94 |
index 00000000000..7c177b45e9f |
95 |
--- /dev/null |
96 |
+++ b/net-ftp/ncftp/ncftp-3.2.6-r1.ebuild |
97 |
@@ -0,0 +1,49 @@ |
98 |
+# Copyright 1999-2020 Gentoo Authors |
99 |
+# Distributed under the terms of the GNU General Public License v2 |
100 |
+ |
101 |
+EAPI=7 |
102 |
+inherit autotools toolchain-funcs |
103 |
+ |
104 |
+DESCRIPTION="An extremely configurable ftp client" |
105 |
+HOMEPAGE="http://www.ncftp.com/" |
106 |
+SRC_URI=" |
107 |
+ ftp://ftp.${PN}.com/${PN}/${P}-src.tar.xz -> ${P}.tar.xz |
108 |
+" |
109 |
+ |
110 |
+LICENSE="Clarified-Artistic" |
111 |
+SLOT="0" |
112 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x86-solaris" |
113 |
+IUSE="pch" |
114 |
+ |
115 |
+DEPEND=" |
116 |
+ sys-libs/ncurses:* |
117 |
+" |
118 |
+RDEPEND=" |
119 |
+ ${DEPEND} |
120 |
+" |
121 |
+PATCHES=( |
122 |
+ "${FILESDIR}"/${PN}-3.2.6-fno-common.patch |
123 |
+) |
124 |
+ |
125 |
+src_prepare() { |
126 |
+ default |
127 |
+ |
128 |
+ AT_M4DIR=autoconf_local/ eautoreconf |
129 |
+} |
130 |
+ |
131 |
+src_configure() { |
132 |
+ tc-export CC |
133 |
+ LC_ALL="C" \ |
134 |
+ LIBS="$( $(tc-getPKG_CONFIG) --libs ncurses)" \ |
135 |
+ econf \ |
136 |
+ $(use_enable pch precomp) \ |
137 |
+ --disable-ccdv \ |
138 |
+ --disable-universal |
139 |
+} |
140 |
+ |
141 |
+src_install() { |
142 |
+ default |
143 |
+ dodoc README.txt doc/*.txt |
144 |
+ docinto html |
145 |
+ dodoc doc/html/*.html |
146 |
+} |