Gentoo Archives: gentoo-commits

From: "Ian Delaney (idella4)" <idella4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/sitecopy/files: sitecopy-0.16.6-06-sftpdriver.c-fix-for-new-openssh.patch sitecopy-0.16.6-02-french-po-fix.patch sitecopy-0.16.6-20-bts549721-add-compatibility-for-neon-0.29.0.patch sitecopy-0.16.6-03-wrong-memory-397155.patch sitecopy-0.16.6-01-remote-dynamic-rc.patch sitecopy-0.16.6-30-bts320586-manpage-document-sftp.patch sitecopy-0.16.6-10-bts410703-preserve-storage-files-sigint.patch
Date: Sat, 31 Jan 2015 00:21:31
Message-Id: 20150131002127.CBBFD10B90@oystercatcher.gentoo.org
1 idella4 15/01/31 00:21:27
2
3 Added:
4 sitecopy-0.16.6-06-sftpdriver.c-fix-for-new-openssh.patch
5 sitecopy-0.16.6-02-french-po-fix.patch
6 sitecopy-0.16.6-20-bts549721-add-compatibility-for-neon-0.29.0.patch
7 sitecopy-0.16.6-03-wrong-memory-397155.patch
8 sitecopy-0.16.6-01-remote-dynamic-rc.patch
9 sitecopy-0.16.6-30-bts320586-manpage-document-sftp.patch
10 sitecopy-0.16.6-10-bts410703-preserve-storage-files-sigint.patch
11 Log:
12 bump subsequent to bug #500070, new patches to match, bump EAPI, removed -0.16.6_p3, all wrt bug #500070
13
14 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
15
16 Revision Changes Path
17 1.1 net-misc/sitecopy/files/sitecopy-0.16.6-06-sftpdriver.c-fix-for-new-openssh.patch
18
19 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/sitecopy/files/sitecopy-0.16.6-06-sftpdriver.c-fix-for-new-openssh.patch?rev=1.1&view=markup
20 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/sitecopy/files/sitecopy-0.16.6-06-sftpdriver.c-fix-for-new-openssh.patch?rev=1.1&content-type=text/plain
21
22 Index: sitecopy-0.16.6-06-sftpdriver.c-fix-for-new-openssh.patch
23 ===================================================================
24 From: Agustin Martin Domingo <agmartin@××××××.org>
25 Subject: Patch for sftp protocol doesn't work with >= 1:4.2p1-1
26
27 diff -urNad sitecopy-0.16.3~/src/sftpdriver.c sitecopy-0.16.3/src/sftpdriver.c
28 --- sitecopy-0.16.3~/src/sftpdriver.c 2005-06-29 11:44:47.000000000 +0200
29 +++ sitecopy-0.16.3/src/sftpdriver.c 2007-10-22 14:58:51.000000000 +0200
30 @@ -140,7 +140,6 @@
31 }
32 close(c_in);
33 close(c_out);
34 - read_sftp(sess); /* wait for prompt */
35 return SITE_OK;
36 }
37
38
39
40 1.1 net-misc/sitecopy/files/sitecopy-0.16.6-02-french-po-fix.patch
41
42 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/sitecopy/files/sitecopy-0.16.6-02-french-po-fix.patch?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/sitecopy/files/sitecopy-0.16.6-02-french-po-fix.patch?rev=1.1&content-type=text/plain
44
45 Index: sitecopy-0.16.6-02-french-po-fix.patch
46 ===================================================================
47 From: Ludovic Rousseau <rousseau@××××××.org>
48 Subject: Fixed the french translation issue
49
50 --- sitecopy-0.16.3.orig/po/fr.po 2006-03-12 11:07:42.000000000 +0100
51 +++ sitecopy-0.16.3/po/fr.po 2007-05-05 10:14:08.000000000 +0200
52 @@ -2,7 +2,6 @@
53 # Copyright (C) YEAR Free Software Foundation, Inc.
54 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55 #
56 -#, fuzzy
57 msgid ""
58 msgstr ""
59 "Project-Id-Version: sitecopy 0.9.3\n"
60 @@ -12,7 +11,7 @@
61 "Last-Translator: Sylvain Glaize <mokona@××××××.org>\n"
62 "Language-Team: fr\n"
63 "MIME-Version: 1.0\n"
64 -"Content-Type: text/plain; charset=latin-1\n"
65 +"Content-Type: text/plain; charset=ISO-8859-1\n"
66 "Content-Transfer-Encoding: 8bit\n"
67
68 #: src/console_fe.c:119
69
70
71
72 1.1 net-misc/sitecopy/files/sitecopy-0.16.6-20-bts549721-add-compatibility-for-neon-0.29.0.patch
73
74 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/sitecopy/files/sitecopy-0.16.6-20-bts549721-add-compatibility-for-neon-0.29.0.patch?rev=1.1&view=markup
75 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/sitecopy/files/sitecopy-0.16.6-20-bts549721-add-compatibility-for-neon-0.29.0.patch?rev=1.1&content-type=text/plain
76
77 Index: sitecopy-0.16.6-20-bts549721-add-compatibility-for-neon-0.29.0.patch
78 ===================================================================
79 From: Sandro Tosi <morph@××××××.org>
80 Subject: Add support for libneon 0.29.0 and 0.30.0
81
82 diff -urNad sitecopy~/configure.in sitecopy/configure.in
83 --- sitecopy~/configure.in 2008-07-20 18:21:15.000000000 +0200
84 +++ sitecopy/configure.in 2009-10-05 23:44:00.764858219 +0200
85 @@ -112,8 +112,8 @@
86 AC_LIBOBJ(lib/fnmatch)
87 fi
88
89 -# Support neon 0.24 through 0.28
90 -NE_REQUIRE_VERSIONS([0], [24 25 26 27 28])
91 +# Support neon 0.24 through 0.30
92 +NE_REQUIRE_VERSIONS([0], [24 25 26 27 28 29 30])
93
94 dnl But we don't use zlib or ACL support
95 NEON_WITHOUT_ZLIB
96
97
98
99 1.1 net-misc/sitecopy/files/sitecopy-0.16.6-03-wrong-memory-397155.patch
100
101 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/sitecopy/files/sitecopy-0.16.6-03-wrong-memory-397155.patch?rev=1.1&view=markup
102 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/sitecopy/files/sitecopy-0.16.6-03-wrong-memory-397155.patch?rev=1.1&content-type=text/plain
103
104 Index: sitecopy-0.16.6-03-wrong-memory-397155.patch
105 ===================================================================
106 From: Ludovic Rousseau <rousseau at debian dot org>
107 Subject: A patch for fixing wrong memory intialization
108
109 diff -u sitecopy-0.16.3-orig/src/rcfile.c sitecopy-0.16.3/src/rcfile.c
110 --- sitecopy-0.16.3-orig/src/rcfile.c 2006-02-04 17:46:36.000000000 +0530
111 +++ sitecopy-0.16.3/src/rcfile.c 2006-11-08 22:24:51.000000000 +0530
112 @@ -260,7 +260,7 @@
113 if (this_site != &default_site)
114 last_site = this_site;
115 /* Allocate new item */
116 - this_site = ne_malloc(sizeof(struct site));
117 + this_site = ne_calloc(sizeof(struct site));
118 /* Copy over the defaults */
119 memcpy(this_site, &default_site, sizeof(struct site));
120 /* Deep-copy the string lists */
121
122
123
124 1.1 net-misc/sitecopy/files/sitecopy-0.16.6-01-remote-dynamic-rc.patch
125
126 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/sitecopy/files/sitecopy-0.16.6-01-remote-dynamic-rc.patch?rev=1.1&view=markup
127 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/sitecopy/files/sitecopy-0.16.6-01-remote-dynamic-rc.patch?rev=1.1&content-type=text/plain
128
129 Index: sitecopy-0.16.6-01-remote-dynamic-rc.patch
130 ===================================================================
131 From: Jesus Climent <jesus dot climent at hispalinux dot es>
132 Subject: A patch for generating dynamic rc files
133
134 diff -u sitecopy-0.16.3-orig/src/console_fe.c sitecopy-0.16.3/src/console_fe.c
135 --- sitecopy-0.16.3-orig/src/console_fe.c 2006-10-27 18:55:19.000000000 +0530
136 +++ sitecopy-0.16.3/src/console_fe.c 2006-10-27 18:39:06.000000000 +0530
137 @@ -155,7 +155,8 @@
138 show_progress, /* Do they want the %-complete messages */
139 prompting, /* Did they say --prompting? */
140 keepgoing, /* Did they say --keep-going? */
141 - dry_run; /* Did they say --dry-run? */
142 + dry_run, /* Did they say --dry-run? */
143 + createremoteroot=false; /* Did they say --create-remote? */
144
145 /* Functions prototypes */
146 static void init(int, char **);
147 @@ -222,9 +223,9 @@
148 exit(-1);
149 }
150
151 - for (current=all_sites; current!=NULL; current=current->next) {
152 + for (current=all_sites; current!=NULL; current=current->next) {
153
154 - if (current->use_this || allsites) {
155 + if (current->use_this || allsites) {
156 if (!listflat && quiet == 0) {
157 /* Display the banner line */
158 const char *str_action = _(actions[action].doing);
159 @@ -507,6 +508,9 @@
160 }
161 } break;
162 #endif
163 + case 'x':
164 + createremoteroot = true;
165 + break;
166 case 'y':
167 prompting = true;
168 break;
169 @@ -1210,7 +1214,8 @@
170 int ret = 0, verify_removed;
171
172 /* Set the options */
173 - site->keep_going = keepgoing;
174 + site->keep_going = keepgoing;
175 + site->create_remote_root = createremoteroot;
176
177 switch (act) {
178 case action_update:
179 @@ -1354,6 +1359,7 @@
180 " -p, --storepath=PATH Use alternate site storage directory\n"
181 " -y, --prompting Request confirmation before making each update\n"
182 " -a, --allsites Perform the operation on ALL defined sites\n"
183 +" -x, --create-remote Create root for remote site\n"
184 " -k, --keep-going Carry on an update regardless of errors\n"
185 " -o, --show-progress Display total percentage file transfer complete\n"
186 " -q, --quiet Be quiet while performing the operation\n"
187 diff -u sitecopy-0.16.3-orig/src/sites.c sitecopy-0.16.3/src/sites.c
188 --- sitecopy-0.16.3-orig/src/sites.c 2006-03-02 01:08:21.000000000 +0530
189 +++ sitecopy-0.16.3/src/sites.c 2006-10-27 19:12:30.000000000 +0530
190 @@ -94,7 +94,6 @@
191 struct site_file *current;
192 char *full_local;
193 int ret;
194 -
195 ret = 0;
196
197 for_each_file(current, site) {
198 @@ -312,11 +311,52 @@
199 free(full_remote);
200 }
201
202 +static int create_remote_root_dirs(struct site *site, void *session)
203 +{
204 + char *buffer;
205 + int i,j=0,ret=1,flag=1;
206 +
207 + buffer = (char *) calloc(strlen(site->remote_root)+1,sizeof(char));
208 +
209 + buffer[j++] = '/';
210 +
211 + for( i=1 ; site->remote_root[i] != '\0' ; i++ )
212 + {
213 + if (site->remote_root[i] == '/')
214 + flag = 0;
215 +
216 + if (flag)
217 + buffer[j++] = site->remote_root[i];
218 + else
219 + if (j > 0)
220 + {
221 + buffer[j] = '\0';
222 + ret = CALL(dir_create)(session, buffer);
223 +
224 + if (ret != SITE_OK)
225 + ret = 0;
226 +
227 + buffer[j++] = '/';
228 + flag=1;
229 + }
230 + }
231 +
232 + return ret;
233 +}
234 +
235 /* Create new directories and change permissions on existing directories. */
236 static int update_create_directories(struct site *site, void *session)
237 {
238 struct site_file *current;
239 - int ret = 0;
240 + int ret = 0, ret_root_dir;
241 +
242 + if (site->create_remote_root) /* We create remote init struct before updating the whole stuff */
243 + {
244 + ret_root_dir = create_remote_root_dirs(site,session);
245 +
246 + if (!ret_root_dir)
247 + fe_warning (_("I couldn't create some dir. already exists?"),NULL,NULL);
248 + }
249
250 for_each_file(current, site) {
251 if ((current->type == file_dir)
252 diff -u sitecopy-0.16.3-orig/src/sites.h sitecopy-0.16.3/src/sites.h
253 --- sitecopy-0.16.3-orig/src/sites.h 2006-02-04 17:46:36.000000000 +0530
254 +++ sitecopy-0.16.3/src/sites.h 2006-10-27 18:39:06.000000000 +0530
255 @@ -381,6 +381,8 @@
256 char *rsh_cmd;
257 char *rcp_cmd;
258
259 + unsigned int create_remote_root:1; /* to create remote root in case it doesn't exist */
260 +
261 unsigned int nodelete; /* whether to delete any files remotely */
262 unsigned int checkmoved; /* whether to check for moved files */
263 unsigned int checkrenames; /* whether to check for renamed files */
264
265
266
267
268 1.1 net-misc/sitecopy/files/sitecopy-0.16.6-30-bts320586-manpage-document-sftp.patch
269
270 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/sitecopy/files/sitecopy-0.16.6-30-bts320586-manpage-document-sftp.patch?rev=1.1&view=markup
271 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/sitecopy/files/sitecopy-0.16.6-30-bts320586-manpage-document-sftp.patch?rev=1.1&content-type=text/plain
272
273 Index: sitecopy-0.16.6-30-bts320586-manpage-document-sftp.patch
274 ===================================================================
275 From: Christian Kujau <lists@××××××××××××.de>
276 Subject: Document SFTP sitecopy functionality
277
278 diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg'
279 '--exclude=_darcs' '--exclude=.bzr' sitecopy~/doc/sitecopy.1 sitecopy/doc/sitecopy.1
280 --- sitecopy~/doc/sitecopy.1 2011-01-03 00:03:07.596559823 +0100
281 +++ sitecopy/doc/sitecopy.1 2011-01-03 00:03:07.852560823 +0100
282 @@ -16,7 +16,7 @@
283 files using an FTP client. sitecopy will also optionally try to spot
284 files you move locally, and move them remotely.
285
286 -FTP, WebDAV and other HTTP-based authoring servers (for instance,
287 +FTP, SFTP, WebDAV and other HTTP-based authoring servers (for instance,
288 AOLserver and Netscape Enterprise) are supported.
289
290 .SH GETTING STARTED
291 @@ -229,6 +229,8 @@
292 .br
293 ftp FTP driver
294 .br
295 + sftp SFTP driver
296 +.br
297 xml XML parsing information
298 .br
299 xmlparse Low-level XML parsing information
300 @@ -297,7 +299,7 @@
301 .BR "url " "siteURL ]"
302 .br
303 [
304 -.BR "protocol " "{ ftp | webdav } ]"
305 +.BR "protocol " "{ ftp | sftp | webdav } ]"
306 .br
307 [
308 .BR ftp " nopasv ]"
309 @@ -353,12 +355,12 @@
310 to the default port for the protocol used, or that given by the
311 .B port
312 key.
313 -sitecopy supports the WebDAV or FTP protocols - the
314 +sitecopy supports the WebDAV or (S)FTP protocols - the
315 .B protocol
316 key specifies which to use, taking the value of either
317 .B webdav
318 or
319 -.B ftp
320 +.B ftp/sftp
321 respectively. By default, FTP will be used.
322
323 The
324 @@ -769,7 +771,7 @@
325 be a useful resource for others.
326
327 .SH SEE ALSO
328 -rsync(1), ftp(1), mirror(1)
329 +rsync(1), ftp(1), sftp(1), mirror(1)
330
331 .SH STANDARDS
332
333
334
335
336
337 1.1 net-misc/sitecopy/files/sitecopy-0.16.6-10-bts410703-preserve-storage-files-sigint.patch
338
339 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/sitecopy/files/sitecopy-0.16.6-10-bts410703-preserve-storage-files-sigint.patch?rev=1.1&view=markup
340 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/sitecopy/files/sitecopy-0.16.6-10-bts410703-preserve-storage-files-sigint.patch?rev=1.1&content-type=text/plain
341
342 Index: sitecopy-0.16.6-10-bts410703-preserve-storage-files-sigint.patch
343 ===================================================================
344 From: Andreas Henriksson <andreas@×××××.se>
345 Subject: Preserve storage files it SIGINT (Ctrl+C) is sent
346
347 --- sitecopy-0.16.3/src/sitestore.c 2006-02-04 11:18:08.000000000 +0100
348 +++ sitecopy-0.16.3-pending/src/sitestore.c 2008-06-08 21:56:23.000000000 +0200
349 @@ -60,17 +60,42 @@
350 /* Opens the storage file for writing */
351 FILE *site_open_storage_file(struct site *site)
352 {
353 + char filebuf[PATH_MAX];
354 +
355 + /* open a temporary "pending" file, to not corrupt the site file in case
356 + * the program aborts while we are updating it.
357 + * The site_close_storage_file() function will rename it to it's proper
358 + * name.
359 + * FIXME: something should clean up old *.pending files,
360 + * which never got properly closed.
361 + */
362 + snprintf(filebuf, sizeof(filebuf), "%s.pending", site->infofile);
363 +
364 if (site->storage_file == NULL) {
365 - site->storage_file = fopen(site->infofile, "w" FOPEN_BINARY_FLAGS);
366 + site->storage_file = fopen(filebuf, "w" FOPEN_BINARY_FLAGS);
367 }
368 return site->storage_file;
369 }
370
371 int site_close_storage_file(struct site *site)
372 {
373 - int ret = fclose(site->storage_file);
374 + char filebuf[PATH_MAX];
375 + int err;
376 +
377 + /* close filehandle */
378 + err = fclose(site->storage_file);
379 site->storage_file = NULL;
380 - return ret;
381 + if (err) {
382 + perror("fclose");
383 + return err;
384 + }
385 +
386 + /* rename pending file to real filename (overwriting existing file). */
387 + snprintf(filebuf, sizeof(filebuf), "%s.pending", site->infofile);
388 + err = rename(filebuf, site->infofile);
389 + if (err)
390 + perror("rename");
391 + return err;
392 }
393
394 /* Return escaped form of 'filename'; any XML-unsafe characters are