Ticket #11616: lftp-3.5.9.diff
File lftp-3.5.9.diff, 4.6 KB (added by pipping@…, 18 years ago) |
---|
-
files/patch-po-Makefile.in.in
1 --- po/Makefile.in.in.old 2007-03-24 15:15:07.000000000 +0100 2 +++ po/Makefile.in.in 2007-03-24 15:15:25.000000000 +0100 3 @@ -31,6 +31,7 @@ 4 INSTALL = @INSTALL@ 5 INSTALL_DATA = @INSTALL_DATA@ 6 mkinstalldirs = $(SHELL) @install_sh@ -d 7 +install_sh = @install_sh@ 8 mkdir_p = @mkdir_p@ 9 10 GMSGFMT_ = @GMSGFMT@ -
files/patch-commands.cc.diff
1 --- src/commands.cc.orig 2005-11-08 08:16:51.000000000 +01002 +++ src/commands.cc 2005-12-15 01:07:34.000000000 +01003 @@ -858,8 +858,9 @@4 if(host && host[0])5 {6 url=new ParsedURL(host);7 + bool no_proto=(!url->proto);8 9 - if(!url->proto && url->host)10 + if(no_proto && url->host)11 {12 const char *p=ResMgr::Query("cmd:default-protocol",url->host);13 if(!p)14 @@ -911,7 +912,7 @@15 }16 17 // user gets substituted only if no proto is specified.18 - if(!pass && (user || !uc.proto))19 + if(!pass && (user || no_proto))20 {21 nrc=NetRC::LookupHost(host,user);22 if(nrc) -
Portfile
2 2 3 3 PortSystem 1.0 4 4 name lftp 5 version 3.5. 65 version 3.5.9 6 6 categories net 7 7 maintainers yeled@macports.org 8 8 description Sophisticated file transfer program … … 17 17 homepage http://lftp.yar.ru/ 18 18 platforms darwin 19 19 20 depends_lib port:expat port:gettext port:libiconv port:ncurses20 depends_lib port:expat port:libiconv port:ncurses port:readline 21 21 22 master_sites ftp://ftp.wiretapped.net/pub/mirrors/${name}/ \ 23 ftp://ftp.wiretapped.net/pub/mirrors/${name}/old/ \ 22 master_sites ftp://lftp.yar.ru/lftp/ \ 23 ftp://lftp.yar.ru/lftp/old/ \ 24 ftp://ftp.wiretapped.net/pub/mirrors/${name}/ \ 25 ftp://ftp.wiretapped.net/pub/mirrors/${name}/old/ \ 24 26 ftp://ftp.cs.tu-berlin.de/pub/net/ftp/${name}/ \ 25 27 http://ftp.yars.free.net/pub/source/${name}/ 26 28 use_bzip2 yes 27 checksums md5 3d4508c00639b9e776f0904a4079547a 29 checksums md5 242aa0b01be79942bb9bcdd2a4b079ba \ 30 sha1 ce4f7abb5a74e90218bb2ee94170ace747025298 28 31 29 32 default_variants +ssl 30 33 34 configure.env CPPFLAGS="-I${prefix}/include" \ 35 LDFLAGS="-L${prefix}/lib" 36 37 configure.args --without-openssl --without-gnutls --disable-nls 38 31 39 pre-configure { 32 # for some bogus Apple headers. 33 reinplace "s|poll_works=yes|poll_works=no|g" ${worksrcpath}/configure 34 reinplace "s|need_relink=yes|need_relink=no|g" ${worksrcpath}/ltmain.sh 35 # for _optopt errors 36 reinplace "s|^.*LIBOBJS=\"\$LIBOBJS getopt.\$ac_objext\" ;;| *) LIBOBJS=\"\$LIBOBJS\" ;;|g" ${worksrcpath}/configure 37 reinplace "s|^.*LIBOBJS=\"\$LIBOBJS getopt1.\$ac_objext\" ;;| *) LIBOBJS=\"\$LIBOBJS\" ;;|g" ${worksrcpath}/configure 38 # for ssl/tls breakage. 39 reinplace "s|CDECL void srandom(unsigned seed);||g" ${worksrcpath}/src/ResMgr.cc 40 # look for ncurses first 41 reinplace "s|curses ncurses|ncurses curses|g" ${worksrcpath}/configure 40 42 } 41 43 42 configure.env CPPFLAGS="-no-cpp-precomp -Wno-long-double -DBIND_8_COMPAT" \43 LDFLAGS="-Wl,-search_paths_first"44 45 configure.args --mandir=${prefix}/share/man \46 --with-pic --disable-share --enable-static --without-openssl \47 --with-included-readline --without-gnutls48 49 44 post-destroot { xinstall -d ${destroot}${prefix}/share/doc/${name} 50 45 xinstall -m 644 -v -W ${worksrcpath} \ 51 46 BUGS ChangeLog COPYING FAQ FEATURES NEWS \ 52 47 README README.debug-levels README.modules \ 53 48 MIRRORS THANKS TODO \ 54 49 ${destroot}${prefix}/share/doc/${name} 55 50 } 56 51 … … 60 55 depends_lib-append port:openssl 61 56 } 62 57 63 variant tls {58 variant tls conflicts ssl { 64 59 configure.args-append --without-openssl --with-gnutls 65 60 configure.args-delete --with-openssl --without-gnutls 66 61 depends_lib-append port:gnutls 67 62 } 63 64 variant nls { 65 patchfiles patch-po-Makefile.in.in 66 configure.args-append --enable-nls 67 configure.args-delete --disable-nls 68 depends_lib-append port:gettext 69 }