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
+26
View File
@@ -0,0 +1,26 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def setup():
autotools.configure("--enable-packager-mode \
--with-modules \
--with-gnutls \
--disable-rpath \
--disable-static")
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodoc("AUTHORS", "ChangeLog", "README*", "NEWS", "FAQ", "FEATURES", "BUGS", "THANKS", "TODO")
@@ -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
+70
View File
@@ -0,0 +1,70 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>lftp</Name>
<Homepage>http://lftp.yar.ru/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv3</License>
<Icon>lftp</Icon>
<IsA>app:console</IsA>
<Summary>Command line FTP client</Summary>
<Description>LFTP is sophisticated file transfer program with command line interface. It supports FTP, HTTP, FISH, SFTP, HTTPS and FTPS protocols. It has bookmarks, built-in mirror, can transfer several files in parallel. It was designed with reliability in mind.</Description>
<Archive sha1sum="d15de1efa38111edc60b8d5e3d9ea8f41e842367" type="tarxz">http://lftp.tech/ftp/lftp-4.7.4.tar.xz</Archive>
<BuildDependencies>
<Dependency>gnutls-devel</Dependency>
<Dependency>flex</Dependency>
<Dependency>bison</Dependency>
<Dependency>gcc</Dependency>
<Dependency>gettext-devel</Dependency>
<Dependency>libtool</Dependency>
<Dependency>zlib-devel</Dependency>
<Dependency>ncurses-devel</Dependency>
<Dependency>expat-devel</Dependency>
<Dependency>libidn-devel</Dependency>
<Dependency>readline-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">config-dns-inet6_before_inet.patch</Patch>
<Patch level="1">lftp_sys-stdint-kfreebsd.patch</Patch>
</Patches>
</Source>
<Package>
<Name>lftp</Name>
<RuntimeDependencies>
<Dependency>zlib</Dependency>
<Dependency>expat</Dependency>
<Dependency>libgcc</Dependency>
<Dependency>libidn</Dependency>
<Dependency>ncurses</Dependency>
<Dependency>readline</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc/lftp</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="localedata">/usr/share/locale</Path>
<Path fileType="data">/usr/share/lftp</Path>
<Path fileType="data">/usr/share/pixmaps</Path>
</Files>
<AdditionalFiles>
<AdditionalFile target="/usr/share/pixmaps/lftp.png">lftp.png</AdditionalFile>
</AdditionalFiles>
</Package>
<History>
<Update release="8">
<Date>2016-11-22</Date>
<Version>4.7.4</Version>
<Comment>Version bump.</Comment>
<Name>Stefan Gronewold(groni)</Name>
<Email>groni@pisilinux.org</Email>
</Update>
</History>
</PISI>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>lftp</Name>
<Summary xml:lang="tr">Komut satırı FTP istemcisi</Summary>
<Description xml:lang="tr">LFTP komut satırı arayüzüne sahip gelişmiş bir dosya aktarım programıdır. FTP, HTTP, FISH, SFTP, HTTPS ve FTPS protokollerini destekler. Yer imleri, yansılama, paralel olarak birçok dosya transfer etme özellikleri bulunuyor. Güvenirlik esas alınarak tasarlandı.</Description>
</Source>
</PISI>