--- multiget-1.2.0.orig/debian/compat +++ multiget-1.2.0/debian/compat @@ -0,0 +1 @@ +5 --- multiget-1.2.0.orig/debian/manpages +++ multiget-1.2.0/debian/manpages @@ -0,0 +1 @@ +debian/multiget.1 --- multiget-1.2.0.orig/debian/dirs +++ multiget-1.2.0/debian/dirs @@ -0,0 +1 @@ +usr/bin --- multiget-1.2.0.orig/debian/source.lintian-overrides +++ multiget-1.2.0/debian/source.lintian-overrides @@ -0,0 +1 @@ +multiget source: configure-generated-file-in-source --- multiget-1.2.0.orig/debian/changelog +++ multiget-1.2.0/debian/changelog @@ -0,0 +1,32 @@ +multiget (1.2.0-3) unstable; urgency=low + + * debian/control: + - change maintainer's email. + - bump standards version to 3.8.1 + * debian/patches/crash_under_gbk.dpatch: added. (LP: #374715) + * debian/patched/xunlei_etc.dpatch: added. (closes: #513388) + * debian/patches/00list: updated. + + -- LI Daobing Mon, 11 May 2009 21:52:02 +0800 + +multiget (1.2.0-2) unstable; urgency=low + + * FTBFS with GCC 4.4: missing #include (Closes: #510677) + - debian/patches/gcc-4.3.dpatch: rename to gcc-4.4.dpatch + - debian/patches/gcc-4.4.dpatch: updated + - debian/patches/00list: updated + * debian/control: add ${misc:Depends} to depends, fix + debhelper-but-no-misc-depends + * debian/source.lintian-overrides: added. + + -- LI Daobing Sun, 04 Jan 2009 19:58:53 +0800 + +multiget (1.2.0-1) unstable; urgency=low + + [ LI Daobing ] + * Initial release. (closes: #388427) + + [ Julian Andres Klode ] + * debian/multiget.1: Added a man page + + -- LI Daobing Tue, 08 Jul 2008 22:45:51 +0800 --- multiget-1.2.0.orig/debian/multiget.desktop +++ multiget-1.2.0/debian/multiget.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=MultiGet +Comment=MultiGet Downloader +Comment[zh_CN]=MultiGet 下载器 +Type=Application +Terminal=false +Exec=multiget +Icon=/usr/share/pixmaps/multiget_48.xpm +Categories=Network; --- multiget-1.2.0.orig/debian/multiget.1 +++ multiget-1.2.0/debian/multiget.1 @@ -0,0 +1,25 @@ +.TH multiget 1 "2007-08-19" "multiget" "multiget" +.SH "NAME" +multiget \- graphical download manager +.SH "SYNOPSIS" +multiget +.SH "DESCRIPTION" +MultiGet is an easy\-to\-use GUI file downloader for Windows/Linux/BSDs/MacOs. +It's programmed in C++ and has a GUI based on wxWidgets. It supports HTTP/FTP +protocols which covers the requirements of most users. It supports multi\-task +with multi\-thread on multi\-server. It supports resuming downloads if the Web +server supports it, and if you like, you can reconfig the thread number without +stopping the current task. It's also support SOCKS 4,4a,5 proxy, ftp proxy, +http proxy. +.PP +It also support a feature called P2SP, or in other words, get file from +multiple servers, and combine the data from different site into one file. This +makes downloads complete much faster. +.PP +MultiGet also supports switching language dynamically, you can choose Chinese or +English interface. Generally it will automatic choose a proper language for you. +.SH "AUTHOR" +Written by liubin +.PP +This manual page was written by Julian Andres Klode for the +Debian project (but may be used by others). --- multiget-1.2.0.orig/debian/watch +++ multiget-1.2.0/debian/watch @@ -0,0 +1,4 @@ +# See uscan(1) for format + +version=3 +http://sf.net/multiget/multiget-([\d\.]+)\.src\.tar\.bz2 --- multiget-1.2.0.orig/debian/control +++ multiget-1.2.0/debian/control @@ -0,0 +1,31 @@ +Source: multiget +Section: net +Priority: optional +Maintainer: LI Daobing +Uploaders: Julian Andres Klode +Build-Depends: debhelper (>= 5), cdbs, libwxgtk2.8-dev, libglade2-dev, automake1.9, dpatch, intltool +Standards-Version: 3.8.1 +Vcs-Browser: http://git.debian.org/?p=collab-maint/multiget.git +Vcs-Git: git://git.debian.org/git/collab-maint/multiget.git +Homepage: http://multiget.sourceforge.net/ +DM-Upload-Allowed: yes + +Package: multiget +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: graphical download manager + MultiGet is an easy-to-use GUI file downloader for Windows/Linux/BSDs/MacOs. + It's programmed in C++ and has a GUI based on wxWidgets. It supports HTTP/FTP + protocols which covers the requirements of most users. It supports multi-task + with multi-thread on multi-server. It supports resuming downloads if the Web + server supports it, and if you like, you can reconfig the thread number + without stopping the current task. It's also support SOCKS 4,4a,5 proxy, ftp + proxy, http proxy. + . + It also support a feature called P2SP, or in other words, get file from + multiple servers, and combine the data from different site into one file. This + makes downloads complete much faster. + . + MultiGet also supports switching language dynamically, you can choose Chinese + or English interface. Generally it will automatic choose a proper language + for you. --- multiget-1.2.0.orig/debian/copyright +++ multiget-1.2.0/debian/copyright @@ -0,0 +1,27 @@ +This package was debianized by LI Daobing on +Tue, 15 May 2007 19:29:26 +0800. + +It was downloaded from http://multiget.sourceforge.net/ + +License: + Copyright (C) 2006 liubin + + This package 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 package 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 package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +The Debian packaging is (C) 2007, LI Daobing and +is licensed under the GPL, see above. --- multiget-1.2.0.orig/debian/rules +++ multiget-1.2.0/debian/rules @@ -0,0 +1,14 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/class/autotools.mk +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/dpatch.mk + +install/multiget:: + mkdir -p $(CURDIR)/debian/multiget/usr/share/pixmaps + install -m644 newicons/48/logo_48.xpm $(CURDIR)/debian/multiget/usr/share/pixmaps/multiget_48.xpm + rm -rf $(CURDIR)/debian/multiget/usr/doc + rm -rf $(CURDIR)/debian/multiget/usr/share/locale + +clean:: + rm -f intltool-merge --- multiget-1.2.0.orig/debian/install +++ multiget-1.2.0/debian/install @@ -0,0 +1 @@ +debian/multiget.desktop usr/share/applications --- multiget-1.2.0.orig/debian/patches/xunlei_etc.dpatch +++ multiget-1.2.0/debian/patches/xunlei_etc.dpatch @@ -0,0 +1,95 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## xunlei_etc.dpatch by LI Daobing +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: support xunlei, QQ xuanfeng and flashget URI +## DP: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=513388 + +@DPATCH@ +diff -urNad multiget~/src/mgurlparser.cpp multiget/src/mgurlparser.cpp +--- multiget~/src/mgurlparser.cpp 2009-05-11 21:21:35.000000000 +0800 ++++ multiget/src/mgurlparser.cpp 2009-05-11 21:37:06.000000000 +0800 +@@ -84,6 +84,75 @@ + #define URL_RESERVED_CHAR(c) urlchr_test(c, urlchr_reserved) + #define URL_UNSAFE_CHAR(c) urlchr_test(c, urlchr_unsafe) + ++ ++static inline int GetIndex(const char c) ++{ ++ if (c >= 'A' && c <= 'Z') ++ return c - 'A'; ++ else if (c >= 'a' && c <= 'z') ++ return c - 'a' + 26; ++ else if (c >= '0' && c <= '9') ++ return c - '0' + 52; ++ else if (c == '+') ++ return 62; ++ else if (c == '/') ++ return 63; ++ else if (c == '=') ++ return 64; ++ ++ return -1; ++} ++ ++static std::string ConvertXunleiLink(const std::string &xunlei_link) ++{ ++ char chr1, chr2, chr3; ++ int enc1, enc2, enc3, enc4; ++ int i; ++ int length = xunlei_link.length(); ++ ++ std::string decoded = ""; ++ ++ if (xunlei_link.compare(0, 10, "thunder://") == 0) ++ i = 10; ++ else if (xunlei_link.compare(0, 11, "flashget://") == 0) ++ i = 11; ++ else if (xunlei_link.compare(0, 7, "qqdl://") == 0) ++ i = 7; ++ else ++ return xunlei_link; ++ ++ while (1) ++ { ++ enc1 = ((i < length) ? GetIndex(xunlei_link[i++]) : -1); ++ enc2 = ((i < length) ? GetIndex(xunlei_link[i++]) : -1); ++ enc3 = ((i < length) ? GetIndex(xunlei_link[i++]) : -1); ++ enc4 = ((i < length) ? GetIndex(xunlei_link[i++]) : -1); ++ ++ if (enc1 == -1 || enc2 == -1 || enc3 == -1 || enc4 == -1) ++ break; ++ ++ chr1 = (enc1 << 2) | (enc2 >> 4); ++ chr2 = ((enc2 & 15) << 4) | (enc3 >> 2); ++ chr3 = ((enc3 & 3) << 6) | enc4; ++ ++ decoded += chr1; ++ ++ if (enc3 != 64) ++ decoded += chr2; ++ ++ if (enc4 != 64) ++ decoded += chr3; ++ } ++ ++ if (decoded.compare(0, 2, "AA") == 0) ++ return decoded.substr(2, decoded.rfind("ZZ") - 2); ++ else if (decoded.compare(0, 10, "[FLASHGET]") == 0) ++ return decoded.substr(10, decoded.rfind("[FLASHGET]") - 10); ++ ++ return decoded; ++} ++ ++ + + CUrlParser::CUrlParser() + { +@@ -95,6 +164,7 @@ + { + + Trim( url ); ++ url = ConvertXunleiLink( url ); + + m_bValidMirrorUrl = false; + //协议检查 --- multiget-1.2.0.orig/debian/patches/crash_under_gbk.dpatch +++ multiget-1.2.0/debian/patches/crash_under_gbk.dpatch @@ -0,0 +1,21 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## crash_under_gbk.dpatch by LI Daobing +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: multiget will crash under zh_CN.GBK locale. as a workaround, I disable +## DP: this locale here. +## DP: https://bugs.launchpad.net/ubuntu/+source/multiget/+bug/374715 + +@DPATCH@ +diff -urNad multiget~/src/mgapp.cpp multiget/src/mgapp.cpp +--- multiget~/src/mgapp.cpp 2007-02-25 21:43:20.000000000 +0800 ++++ multiget/src/mgapp.cpp 2009-05-11 21:25:28.000000000 +0800 +@@ -139,7 +139,7 @@ + } + + else if ( strcasecmp( lang, "zh_CN.GB2312" ) == 0 || +- strcasecmp( lang, "zh_CN.GBK" ) == 0 || ++ //strcasecmp( lang, "zh_CN.GBK" ) == 0 || + strcasecmp( lang, "zh_CN.GB18030" ) == 0 ) + { + m_MultiString.SetLang( ZH_CN_18030 ); --- multiget-1.2.0.orig/debian/patches/gcc-4.4.dpatch +++ multiget-1.2.0/debian/patches/gcc-4.4.dpatch @@ -0,0 +1,78 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## gcc-4.4.dpatch by LI Daobing +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: add missing headers for gcc-4.4 +## DP: see http://sourceforge.net/support/tracker.php?aid=1975057 + +@DPATCH@ +diff -urNad multiget~/src/batch.cpp multiget/src/batch.cpp +--- multiget~/src/batch.cpp 2008-11-02 15:30:40.000000000 +0800 ++++ multiget/src/batch.cpp 2009-01-04 19:44:23.000000000 +0800 +@@ -24,8 +24,12 @@ + + #include "batch.h" + #include "common.h" ++#include ++#include + #include + ++using namespace std; ++ + CBatch::CBatch( std::string str ) + { + /* +diff -urNad multiget~/src/common.cpp multiget/src/common.cpp +--- multiget~/src/common.cpp 2008-11-02 15:30:40.000000000 +0800 ++++ multiget/src/common.cpp 2009-01-04 19:43:33.000000000 +0800 +@@ -26,9 +26,11 @@ + #include "speedctrl.h" + #include "mirroradmin.h" + +- ++#include + #include + ++using namespace std; ++ + #ifdef WIN32 + #include + +diff -urNad multiget~/src/mgftpbase.cpp multiget/src/mgftpbase.cpp +--- multiget~/src/mgftpbase.cpp 2008-11-02 15:30:40.000000000 +0800 ++++ multiget/src/mgftpbase.cpp 2009-01-04 19:45:03.000000000 +0800 +@@ -22,6 +22,11 @@ + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + ++#include ++#include ++ ++using namespace std; ++ + #ifdef WIN32 + #include + #endif +diff -urNad multiget~/src/mghttpbase.cpp multiget/src/mghttpbase.cpp +--- multiget~/src/mghttpbase.cpp 2007-01-13 19:09:02.000000000 +0800 ++++ multiget/src/mghttpbase.cpp 2009-01-04 19:45:40.000000000 +0800 +@@ -47,6 +47,7 @@ + #endif + + #include "mghttpbase.h" ++#include + #include + + using namespace std; +diff -urNad multiget~/src/mgurlparser.cpp multiget/src/mgurlparser.cpp +--- multiget~/src/mgurlparser.cpp 2008-11-02 15:30:40.000000000 +0800 ++++ multiget/src/mgurlparser.cpp 2009-01-04 19:43:33.000000000 +0800 +@@ -26,6 +26,8 @@ + #include "mgurlparser.h" + #include "common.h" + #include ++#include ++#include + extern std::string gDefFtpPass; + + using namespace std; --- multiget-1.2.0.orig/debian/patches/00list +++ multiget-1.2.0/debian/patches/00list @@ -0,0 +1,3 @@ +gcc-4.4 +crash_under_gbk +xunlei_etc