From 32b05a621cb20af1bd4b7cd6f5609b7512bb20f1 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 29 Feb 2012 03:34:34 +0000 Subject: Wed Feb 29 03:34:34 UTC 2012 --- extra/avfs/PKGBUILD | 29 ++++++++++++++++------- extra/avfs/avfs-1.0.0-fix_open_missing_mode.patch | 11 +++++++++ 2 files changed, 32 insertions(+), 8 deletions(-) create mode 100644 extra/avfs/avfs-1.0.0-fix_open_missing_mode.patch (limited to 'extra/avfs') diff --git a/extra/avfs/PKGBUILD b/extra/avfs/PKGBUILD index a647b1185..0fcc24408 100644 --- a/extra/avfs/PKGBUILD +++ b/extra/avfs/PKGBUILD @@ -1,22 +1,35 @@ -# $Id: PKGBUILD 104091 2010-12-28 18:22:31Z kevin $ +# $Id: PKGBUILD 151581 2012-02-27 18:31:46Z giovanni $ # Maintainer: Kevin Piche # Contributor: K. Piche pkgname=avfs -pkgver=0.9.9 +pkgver=1.0.0 pkgrel=1 -pkgdesc="A virtual filesystem which enables programs to look inside archived or compressed files, or access remote files" -arch=(i686 x86_64) +pkgdesc="A virtual filesystem that allows browsing of compressed files" +arch=('i686' 'x86_64') license=('GPL') url="http://avf.sourceforge.net/" -source=(http://downloads.sourceforge.net/sourceforge/avf/${pkgname}-${pkgver}.tar.bz2) +source=("http://downloads.sourceforge.net/sourceforge/avf/${pkgname}-${pkgver}.tar.bz2" + 'avfs-1.0.0-fix_open_missing_mode.patch') options=(!emptydirs !libtool) -depends=('fuse' 'sh') -md5sums=('3e0df074188a6c4ed9df082f61cc6bf4') +depends=('fuse' 'xz' 'perl') +md5sums=('c58421e4f294125895f2c6653a7366a7' + 'bdd84b179a869bc6d64529a64a640fc6') build() { cd "${srcdir}/${pkgname}-${pkgver}" - ./configure --prefix=/usr --enable-library --enable-fuse --disable-static + + patch -Np1 -i "${srcdir}/avfs-1.0.0-fix_open_missing_mode.patch" + + ./configure --prefix=/usr \ + --enable-library \ + --enable-fuse \ + --disable-static make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install } diff --git a/extra/avfs/avfs-1.0.0-fix_open_missing_mode.patch b/extra/avfs/avfs-1.0.0-fix_open_missing_mode.patch new file mode 100644 index 000000000..1e4a0a4d8 --- /dev/null +++ b/extra/avfs/avfs-1.0.0-fix_open_missing_mode.patch @@ -0,0 +1,11 @@ +--- a/modules/urar.c 2007-05-14 20:21:23.000000000 +0200 ++++ b/modules/urar.c 2009-02-09 13:48:56.780225932 +0100 +@@ -587,7 +587,7 @@ + if(res < 0) + return res; + +- fd = open(tmpfile, O_RDWR | O_CREAT | O_TRUNC); ++ fd = open(tmpfile, O_RDWR | O_CREAT | O_TRUNC, 0644); + if(fd == -1) { + res = -errno; + av_log(AVLOG_ERROR, "RAR: Could not open %s: %s", tmpfile, -- cgit v1.2.3-54-g00ecf