diff options
author | root <root@rshg054.dnsready.net> | 2012-09-29 00:54:39 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-09-29 00:54:39 -0700 |
commit | b004f93f171149c5a53d464819b9d0197f1d783e (patch) | |
tree | 457c18648c0dcfadf8286edf2c69c2ece10a785e /extra/lftp | |
parent | 3edc42216fee4bb8237aa128510c32ceb77dfd8f (diff) |
Sat Sep 29 00:54:37 PDT 2012
Diffstat (limited to 'extra/lftp')
-rw-r--r-- | extra/lftp/PKGBUILD | 11 | ||||
-rw-r--r-- | extra/lftp/lftp-4.3.8-gets.patch | 16 |
2 files changed, 23 insertions, 4 deletions
diff --git a/extra/lftp/PKGBUILD b/extra/lftp/PKGBUILD index 30961851c..5922c966b 100644 --- a/extra/lftp/PKGBUILD +++ b/extra/lftp/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 162978 2012-07-04 13:56:20Z andyrtr $ +# $Id: PKGBUILD 167231 2012-09-28 20:06:45Z andyrtr $ # Maintainer: Andreas Radke <andyrtr@archlinux.org> # Contributor: Aaron Griffin <aaron@archlinux.org> pkgname=lftp -pkgver=4.3.8 +pkgver=4.4.0 pkgrel=1 pkgdesc="Sophisticated command line based FTP client" arch=('i686' 'x86_64') @@ -12,11 +12,14 @@ depends=('gcc-libs' 'readline>=6.2' "gnutls" "expat>=2.0.1-4" 'sh') optdepends=('perl: needed for convert-netscape-cookies and verify-file') url="http://lftp.yar.ru/" backup=('etc/lftp.conf') -source=(http://ftp.yars.free.net/pub/source/lftp/${pkgname}-${pkgver}.tar.bz2) -md5sums=('adced9c3e0f6b96821811dc87c0a1eeb') +source=(http://ftp.yars.free.net/pub/source/lftp/${pkgname}-${pkgver}.tar.bz2 + lftp-4.3.8-gets.patch) +md5sums=('9d6a048bb6be9bc3baecfea53b0d8330' + '77168a7f368b07eec7e079b55496fa97') build() { cd ${srcdir}/${pkgname}-${pkgver} + patch -Np1 -i ${srcdir}/lftp-4.3.8-gets.patch ./configure --prefix=/usr --with-gnutls \ --without-openssl --disable-static make diff --git a/extra/lftp/lftp-4.3.8-gets.patch b/extra/lftp/lftp-4.3.8-gets.patch new file mode 100644 index 000000000..d4a11804e --- /dev/null +++ b/extra/lftp/lftp-4.3.8-gets.patch @@ -0,0 +1,16 @@ +diff -up lftp-4.3.8/lib/stdio.in.h.gets lftp-4.3.8/lib/stdio.in.h +--- lftp-4.3.8/lib/stdio.in.h.gets 2012-07-22 15:07:15.101115146 -0400 ++++ lftp-4.3.8/lib/stdio.in.h 2012-07-22 15:08:09.777098512 -0400 +@@ -702,10 +702,12 @@ _GL_WARN_ON_USE (getline, "getline is un + /* It is very rare that the developer ever has full control of stdin, + so any use of gets warrants an unconditional warning; besides, C11 + removed it. */ ++#if defined gets + #undef gets + #if HAVE_RAW_DECL_GETS + _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); + #endif ++#endif // if defined gets + + + #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@ |