[arch-commits] Commit in curlftpfs/trunk (PKGBUILD no-verify-hostname.patch)
Antonio Rojas
arojas at archlinux.org
Thu Jan 28 21:19:31 UTC 2016
Date: Thursday, January 28, 2016 @ 22:19:31
Author: arojas
Revision: 159353
Fix FS#47906
Added:
curlftpfs/trunk/no-verify-hostname.patch
Modified:
curlftpfs/trunk/PKGBUILD
--------------------------+
PKGBUILD | 21 +++++++++++++--------
no-verify-hostname.patch | 14 ++++++++++++++
2 files changed, 27 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-01-28 21:10:58 UTC (rev 159352)
+++ PKGBUILD 2016-01-28 21:19:31 UTC (rev 159353)
@@ -5,26 +5,31 @@
pkgname=curlftpfs
pkgver=0.9.2
-pkgrel=5
+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')
+depends=('curl' 'fuse' 'glib2')
arch=('i686' 'x86_64')
source=(http://downloads.sourceforge.net/sourceforge/curlftpfs/$pkgname-$pkgver.tar.gz
- ioerror.patch)
+ ioerror.patch no-verify-hostname.patch)
md5sums=('b452123f755114cd4461d56c648d9f12'
- '7a8db686293463ba3148c7032871c883')
+ '7a8db686293463ba3148c7032871c883'
+ 'eb1d28b9edd690aee543bd6d4f3f41ed')
+prepare() {
+ cd $pkgname-$pkgver
+ patch -p1 -i ../ioerror.patch
+ patch -p1 -i ../no-verify-hostname.patch
+}
+
build() {
- cd "$srcdir/$pkgname-$pkgver"
- patch -p1 < "$srcdir/ioerror.patch"
+ cd $pkgname-$pkgver
./configure --prefix=/usr
make
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
}
Added: no-verify-hostname.patch
===================================================================
--- no-verify-hostname.patch (rev 0)
+++ no-verify-hostname.patch 2016-01-28 21:19:31 UTC (rev 159353)
@@ -0,0 +1,14 @@
+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);
More information about the arch-commits
mailing list