Ticket #11616: lftp-3.5.9.diff

File lftp-3.5.9.diff, 4.6 KB (added by pipping@…, 17 years ago)

new patch (includes adding the new patchfile, removing the old one; adds readline as a dependency)

  • 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 +0100
    2 +++ src/commands.cc             2005-12-15 01:07:34.000000000 +0100
    3 @@ -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

     
    22
    33PortSystem 1.0
    44name                lftp
    5 version             3.5.6
     5version             3.5.9
    66categories          net
    77maintainers         yeled@macports.org
    88description         Sophisticated file transfer program
     
    1717homepage            http://lftp.yar.ru/
    1818platforms           darwin
    1919
    20 depends_lib  port:expat port:gettext port:libiconv port:ncurses
     20depends_lib         port:expat port:libiconv port:ncurses port:readline
    2121
    22 master_sites        ftp://ftp.wiretapped.net/pub/mirrors/${name}/ \
    23             ftp://ftp.wiretapped.net/pub/mirrors/${name}/old/ \
     22master_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/ \
    2426                    ftp://ftp.cs.tu-berlin.de/pub/net/ftp/${name}/ \
    2527                    http://ftp.yars.free.net/pub/source/${name}/
    2628use_bzip2           yes
    27 checksums           md5 3d4508c00639b9e776f0904a4079547a
     29checksums           md5 242aa0b01be79942bb9bcdd2a4b079ba \
     30                    sha1 ce4f7abb5a74e90218bb2ee94170ace747025298
    2831
    2932default_variants    +ssl
    3033
     34configure.env   CPPFLAGS="-I${prefix}/include" \
     35                LDFLAGS="-L${prefix}/lib"
     36
     37configure.args  --without-openssl --without-gnutls --disable-nls
     38
    3139pre-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
    4042}
    4143
    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-gnutls
    48 
    4944post-destroot { xinstall -d ${destroot}${prefix}/share/doc/${name}
    5045                xinstall -m 644 -v -W ${worksrcpath} \
    5146                BUGS ChangeLog COPYING FAQ FEATURES NEWS \
    5247                README README.debug-levels README.modules \
    53                 THANKS TODO \
     48                MIRRORS THANKS TODO \
    5449                ${destroot}${prefix}/share/doc/${name}
    5550}
    5651
     
    6055    depends_lib-append port:openssl
    6156}
    6257
    63 variant tls {
     58variant tls conflicts ssl {
    6459    configure.args-append --without-openssl --with-gnutls
    6560    configure.args-delete --with-openssl --without-gnutls
    6661    depends_lib-append port:gnutls
    6762}
     63
     64variant 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}