Last active
January 25, 2016 16:11
-
-
Save lluchs/9b7f66335135a041d908 to your computer and use it in GitHub Desktop.
curlftpfs Arch package
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- curlftpfs-0.9.2.orig/ftpfs.c 2008-04-30 03:05:47.000000000 +0400 | |
+++ curlftpfs-0.9.2.orig/ftpfs.c 2011-01-20 20:33:38.000000000 +0300 | |
@@ -503,7 +503,7 @@ static void *ftpfs_write_thread(void *da | |
curl_easy_setopt_or_die(fh->write_conn, CURLOPT_URL, fh->full_path); | |
curl_easy_setopt_or_die(fh->write_conn, CURLOPT_UPLOAD, 1); | |
- curl_easy_setopt_or_die(fh->write_conn, CURLOPT_INFILESIZE, -1); | |
+ curl_easy_setopt_or_die(fh->write_conn, CURLOPT_INFILESIZE, (curl_off_t)-1); | |
curl_easy_setopt_or_die(fh->write_conn, CURLOPT_READFUNCTION, write_data_bg); | |
curl_easy_setopt_or_die(fh->write_conn, CURLOPT_READDATA, fh); | |
curl_easy_setopt_or_die(fh->write_conn, CURLOPT_LOW_SPEED_LIMIT, 1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -aur curlftpfs-0.9.2.orig/ftpfs.c curlftpfs-0.9.2.new/ftpfs.c | |
--- curlftpfs-0.9.2.orig/ftpfs.c 2016-01-25 17:01:32.150581272 +0100 | |
+++ curlftpfs-0.9.2.new/ftpfs.c 2016-01-25 17:02:08.566538053 +0100 | |
@@ -1625,9 +1625,7 @@ | |
} | |
if (ftpfs.no_verify_hostname) { | |
- /* The default is 2 which verifies even the host string. This sets to 1 | |
- * which means verify the host but not the string. */ | |
- curl_easy_setopt_or_die(easy, CURLOPT_SSL_VERIFYHOST, 1); | |
+ curl_easy_setopt_or_die(easy, CURLOPT_SSL_VERIFYHOST, 0); | |
} | |
curl_easy_setopt_or_die(easy, CURLOPT_INTERFACE, ftpfs.interface); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id: PKGBUILD 97936 2013-10-01 16:49:40Z bpiotrowski $ | |
# Maintainer: Chris Brannon <[email protected]> | |
# Contributor: Allan McRae <[email protected]> | |
# Contributor: Philip Nilsson <[email protected]> | |
pkgname=curlftpfs | |
pkgver=0.9.2 | |
pkgrel=6 | |
pkgdesc="A filesystem for acessing FTP hosts based on FUSE and libcurl." | |
url="http://curlftpfs.sourceforge.net/" | |
license=('GPL') | |
depends=('curl>=7.15.4' 'fuse' 'glib2') | |
makedepends=('pkgconfig>=0.9.0') | |
arch=('i686' 'x86_64') | |
source=(http://downloads.sourceforge.net/sourceforge/curlftpfs/$pkgname-$pkgver.tar.gz | |
ioerror.patch | |
no_verify_hostname.patch) | |
md5sums=('b452123f755114cd4461d56c648d9f12' | |
'7a8db686293463ba3148c7032871c883' | |
'eb1d28b9edd690aee543bd6d4f3f41ed') | |
prepare() { | |
cd "$srcdir/$pkgname-$pkgver" | |
patch -p1 < "$srcdir/ioerror.patch" | |
patch -p1 < "$srcdir/no_verify_hostname.patch" | |
} | |
build() { | |
cd "$srcdir/$pkgname-$pkgver" | |
./configure --prefix=/usr | |
make | |
} | |
package() { | |
cd "$srcdir/$pkgname-$pkgver" | |
make DESTDIR="$pkgdir" install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment