add new packages vsftp, lftp, python3-markups, portmidi

This commit is contained in:
groni
2016-11-22 15:23:44 +01:00
parent f6a6891402
commit 9acc3ae3af
30 changed files with 1516 additions and 2 deletions
@@ -0,0 +1,15 @@
## lftp-config-dns-inet6_before_inet by Noèl Köthe <noel debian.org>
##
## DP: use inet6 dns before inet
--- lftp-3.4.7/lftp.conf.orig 2005-05-16 21:18:45.000000000 +0200
+++ lftp-3.4.7/lftp.conf 2005-05-16 21:19:06.000000000 +0200
@@ -87,3 +87,7 @@
# set ftp:anon-pass "mozilla@"
# set ftp:client ""
# set http:user-agent "Mozilla/4.7 [en] (WinNT; I)"
+
+# try inet6 before inet
+set dns:order "inet6 inet"
+
@@ -0,0 +1,30 @@
diff -up lftp-4.2.1/src/Http.cc.date_fmt lftp-4.2.1/src/Http.cc
--- lftp-4.2.1/src/Http.cc.date_fmt 2011-03-25 15:35:42.000000000 +0100
+++ lftp-4.2.1/src/Http.cc 2011-03-30 14:40:54.170096624 +0200
@@ -29,6 +29,7 @@
#include <errno.h>
#include <stdarg.h>
#include <time.h>
+#include <limits.h>
#include <fnmatch.h>
#include <locale.h>
#include <assert.h>
@@ -565,15 +566,10 @@ void Http::SendRequest(const char *conne
(long long)((limit==FILE_END || limit>entity_size ? entity_size : limit)-1),
(long long)entity_size);
}
- if(entity_date!=NO_DATE)
+ if(entity_date!=NO_DATE && entity_date>0L && entity_date<INT_MAX)
{
- static const char weekday_names[][4]={
- "Sun","Mon","Tue","Wed","Thu","Fri","Sat"
- };
- const struct tm *t=gmtime(&entity_date);
- const char *d=xstring::format("%s, %2d %s %04d %02d:%02d:%02d GMT",
- weekday_names[t->tm_wday],t->tm_mday,month_names[t->tm_mon],
- t->tm_year+1900,t->tm_hour,t->tm_min,t->tm_sec);
+ char d[256];
+ strftime(d, sizeof(d), "%a, %d %b %H:%M:%S %Y GMT", gmtime(&entity_date));
Send("Last-Modified: %s\r\n",d);
}
break;
@@ -0,0 +1,77 @@
--- lftp-2.2.0a/lftpget.1.chmou Tue May 5 13:32:27 1998
+++ lftp-2.2.0a/lftpget.1 Wed Mar 29 17:50:36 2000
@@ -0,0 +1,74 @@
+.\"
+.\" lftpget.1 - gets files via FTP using lftp
+.\"
+.\" This file is part of lftp.
+.\"
+.\" This program is free software; you can redistribute it and/or modify
+.\" it under the terms of the GNU General Public License as published by
+.\" the Free Software Foundation; either version 2 of the License , or
+.\" (at your option) any later version.
+.\"
+.\" This program is distributed in the hope that it will be useful,
+.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
+.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+.\" GNU General Public License for more details.
+.\"
+.\" You should have received a copy of the GNU General Public License
+.\" along with this program; see the file COPYING. If not, write to
+.\" the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+.\"
+.TH lftpget 1 "11 Sep 1999"
+.SH NAME
+lftpget \- gets files via FTP using lftp
+.SH SYNTAX
+.BI "lftpget [" \-c "] [" \-d "] [" \-v "] " "URL " [ URL ...]
+
+.SH "DESCRIPTION"
+.B lftpget
+will get a file from a remote host. It will reconnect if needed until
+the transfer is done.
+.PP
+.B lftpget
+is just a shell script that calls
+.BR lftp (1).
+
+.SH OPTIONS
+.TP
+.B \-c
+Continue a previous transfer, reget.
+.TP
+.B \-d
+Debug output.
+.TP
+.B \-v
+Verbose output.
+
+.SH FILES
+.TP
+.I "/etc/lftp.conf"
+System wide startup file for lftp, affects this script.
+
+.TP
+.I "~/.lftp/rc," "~/.lftprc"
+These files are executed on lftp startup after \fI/etc/lftp.conf\fR.
+.TP
+.I "~/.lftp/log"
+The file things are logged to when lftp moves into the background in
+nohup mode.
+.TP
+.I "~/.netrc"
+
+The file is consulted to get default login to ftp server. It's
+documented in the
+.BR ftp (1)
+manpage.
+
+.SH SEE ALSO
+.BR ftp "(1), " lftp (1)
+
+.SH AUTHOR
+Alexander V. Lukyanov <lav@yars.free.net>
+
+.SH ACKNOWLEDGMENTS
+This manual page was originally written by Nicolás Lichtmaier
+<nick@debian.org>, for the Debian GNU/Linux system.
@@ -0,0 +1,26 @@
--- lftp-3.7.7/lftp.conf.agent 2008-08-07 14:27:47.000000000 +0200
+++ lftp-3.7.7/lftp.conf 2009-01-12 14:21:24.000000000 +0100
@@ -13,7 +13,7 @@
## Uncomment the following two lines to make switch cls and ls, making
## cls the default.
#alias ls command cls
-#alias hostls command ls
+alias hostls command ls
## default protocol selection
#set default-protocol/ftp.* ftp
@@ -31,7 +31,7 @@
set auto-sync-mode "icrosoft FTP Service|MadGoat|MikroTik"
## if default ftp passive mode does not work, try this:
-# set ftp:passive-mode off
+set ftp:passive-mode on
## Set this to follow http redirections
set xfer:max-redirections 10
@@ -87,4 +87,4 @@
## If you don't like advertising lftp or servers hate it, set this:
# set ftp:anon-pass "mozilla@"
# set ftp:client ""
-# set http:user-agent "Mozilla/4.7 [en] (WinNT; I)"
+# set http:user-agent "Mozilla/4.7 [en] (Linux; U)"
@@ -0,0 +1,26 @@
--- lftp-4.2.0/src/Makefile.am.link 2011-03-05 13:59:13.000000000 +0100
+++ lftp-4.2.0/src/Makefile.am 2011-03-05 13:59:33.000000000 +0100
@@ -55,8 +55,8 @@
cmd_mirror_la_LDFLAGS = -module -avoid-version -rpath $(pkgverlibdir)
cmd_sleep_la_LDFLAGS = -module -avoid-version -rpath $(pkgverlibdir)
cmd_torrent_la_LDFLAGS= -module -avoid-version -rpath $(pkgverlibdir)
-liblftp_pty_la_LDFLAGS = -avoid-version -rpath $(pkgverlibdir)
-liblftp_network_la_LDFLAGS = -avoid-version -rpath $(pkgverlibdir) $(OPENSSL_LDFLAGS)
+liblftp_pty_la_LDFLAGS = -module -avoid-version -rpath $(pkgverlibdir)
+liblftp_network_la_LDFLAGS = -module -avoid-version -rpath $(pkgverlibdir) $(OPENSSL_LDFLAGS)
liblftp_network_la_LIBADD = $(SOCKSLIBS) $(OPENSSL_LIBS) $(LIBGNUTLS_LIBS) $(GNULIB)
proto_ftp_la_LIBADD = -L$(DESTDIR)$(pkgverlibdir) liblftp-network.la
--- lftp-4.2.0/src/Makefile.in.link 2011-03-05 13:59:48.000000000 +0100
+++ lftp-4.2.0/src/Makefile.in 2011-03-05 14:00:18.000000000 +0100
@@ -1286,8 +1286,8 @@
cmd_mirror_la_LDFLAGS = -module -avoid-version -rpath $(pkgverlibdir)
cmd_sleep_la_LDFLAGS = -module -avoid-version -rpath $(pkgverlibdir)
cmd_torrent_la_LDFLAGS = -module -avoid-version -rpath $(pkgverlibdir)
-liblftp_pty_la_LDFLAGS = -avoid-version -rpath $(pkgverlibdir)
-liblftp_network_la_LDFLAGS = -avoid-version -rpath $(pkgverlibdir) $(OPENSSL_LDFLAGS)
+liblftp_pty_la_LDFLAGS = -module -avoid-version -rpath $(pkgverlibdir)
+liblftp_network_la_LDFLAGS = -module -avoid-version -rpath $(pkgverlibdir) $(OPENSSL_LDFLAGS)
liblftp_network_la_LIBADD = $(SOCKSLIBS) $(OPENSSL_LIBS) $(LIBGNUTLS_LIBS) $(GNULIB)
proto_ftp_la_LIBADD = -L$(DESTDIR)$(pkgverlibdir) liblftp-network.la
proto_http_la_LIBADD = -L$(DESTDIR)$(pkgverlibdir) liblftp-network.la $(EXPAT_LIBS)
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

@@ -0,0 +1,18 @@
Description: prevent sys/_stdint.h from redefining intptr_t et.al.
Author: Andreas Henriksson <andreas@fatal.se>
Bug-Debian: http://bugs.debian.org/677861
Forwarded: no
--- lftp-4.3.6.orig/lib/stdint.in.h
+++ lftp-4.3.6/lib/stdint.in.h
@@ -75,6 +75,10 @@
_@GUARD_PREFIX@_STDINT_H is defined.
The include_next requires a split double-inclusion guard. */
# @INCLUDE_NEXT@ @NEXT_STDINT_H@
+#ifdef __FreeBSD_kernel__
+// prevent sys/_stdint.h from being included and redefine intptr_t et.al.
+#define _SYS__STDINT_H_
+#endif
#endif
#if ! defined _@GUARD_PREFIX@_STDINT_H && ! defined _GL_JUST_INCLUDE_SYSTEM_STDINT_H