debian/0000755000000000000000000000000012255023476007174 5ustar debian/ruby-fusefs.examples0000644000000000000000000000001111750003320013157 0ustar sample/* debian/rules0000755000000000000000000000070111750003320010233 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 # # Uncomment to ignore all test failures (but the tests will run anyway) #export DH_RUBY_IGNORE_TESTS=all # # Uncomment to ignore some test failures (but the tests will run anyway). # Valid values: #export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems # # If you need to specify the .gemspec (eg there is more than one) #export DH_RUBY_GEMSPEC=gem.gemspec %: dh $@ --buildsystem=ruby --with ruby debian/watch0000644000000000000000000000014111750003320010202 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/fusefs .*/fusefs-(.*).tar.gz debian/source/0000755000000000000000000000000012255020574010470 5ustar debian/source/format0000644000000000000000000000001411750003320011663 0ustar 3.0 (quilt) debian/ruby-fusefs.docs0000644000000000000000000000002411750003320012275 0ustar API.txt README TODO debian/copyright0000644000000000000000000000435212255023201011115 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: fusefs Upstream-Contact: Greg Millam Source: https://github.com/duairc/fusefs Files: * Copyright: 2005 Greg Millam, 2009 Kyle Maxwell License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: debian/* Copyright: 2012 Paul van Tilburg 2013 Cédric Boutillier License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 of the License, or (at your opinion) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. debian/control0000644000000000000000000000157712255023152010600 0ustar Source: ruby-fusefs Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Paul van Tilburg , Cédric Boutillier Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), libfuse-dev Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-fusefs.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-fusefs.git;a=summary Homepage: http://github.com/duairc/fusefs XS-Ruby-Versions: all Package: ruby-fusefs Architecture: any XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Description: library to easily define a filesystem in Ruby using fuse This library provides a simple API to define a FUSE filesystem in Ruby. It is *NOT* a full implementation of the FUSE API. debian/patches/0000755000000000000000000000000012255022770010617 5ustar debian/patches/series0000644000000000000000000000007512255014076012036 0ustar port-to-newer-ruby.patch fix-dynamic-library-load-path.patch debian/patches/fix-dynamic-library-load-path.patch0000644000000000000000000000110311772544230017357 0ustar Description: Fix the load path of the fusefs extension library Author: Paul van Tilburg j Forward: not-needed Last-Update: 2012-04-23 Index: ruby-fusefs/lib/fusefs.rb =================================================================== --- ruby-fusefs.orig/lib/fusefs.rb 2012-04-23 22:34:41.639887402 +0200 +++ ruby-fusefs/lib/fusefs.rb 2012-04-23 23:02:39.810795548 +0200 @@ -4,7 +4,7 @@ # # This includes helper functions, common uses, etc. -require File.dirname(__FILE__) + '/../ext/fusefs_lib' +require 'fusefs_lib' module FuseFS @running = true debian/patches/port-to-newer-ruby.patch0000644000000000000000000000426312255022770015346 0ustar Description: port to Ruby 1.9.1 and 2.0 add also some missing headers and fix a typo Author: Cédric Boutillier Origin: vendor Forwarded: https://github.com/duairc/fusefs/pull/4 Last-Update: 2013-12-20 --- a/ext/fusefs_lib.c +++ b/ext/fusefs_lib.c @@ -17,6 +17,8 @@ #include #include #include +#include +#include #ifdef DEBUG #include @@ -452,7 +454,7 @@ if (TYPE(cur_entry) != T_STRING) continue; - filler(buf,STR2CSTR(cur_entry),NULL,0); + filler(buf,StringValuePtr(cur_entry),NULL,0); } return 0; } @@ -660,7 +662,8 @@ /* We have the body, now save it the entire contents to our * opened_file lists. */ newfile = ALLOC(opened_file); - value = rb_str2cstr(body,&newfile->size); + value = RSTRING_PTR(body); + newfile->size = RSTRING_LEN(body); newfile->value = ALLOC_N(char,(newfile->size)+1); memcpy(newfile->value,value,newfile->size); newfile->value[newfile->size] = '\0'; @@ -715,7 +718,8 @@ /* We have the body, now save it the entire contents to our * opened_file lists. */ newfile = ALLOC(opened_file); - value = rb_str2cstr(body,&newfile->size); + value = RSTRING_PTR(body); + newfile->size = RSTRING_LEN(body); newfile->value = ALLOC_N(char,(newfile->size)+1); memcpy(newfile->value,value,newfile->size); newfile->writesize = newfile->size+1; @@ -1074,7 +1078,8 @@ rf_call(path,id_write_to,newstr); } else { long size; - char *str = rb_str2cstr(body,&size); + char *str = RSTRING_PTR(body); + size = RSTRING_LEN(body); /* Just in case offset is bigger than the file. */ if (offset >= size) return 0; @@ -1253,7 +1258,7 @@ return 0; if (TYPE(ret) != T_STRING) return 0; - memcpy(buf, RSTRING_LEN(ret), RSTRING_LEN(ret)); + memcpy(buf, RSTRING_PTR(ret), RSTRING_LEN(ret)); return RSTRING_LEN(ret); } @@ -1390,7 +1395,7 @@ } rb_iv_set(cFuseFS,"@mountpoint",mountpoint); - fusefs_setup(STR2CSTR(mountpoint), &rf_oper, opts); + fusefs_setup(StringValuePtr(mountpoint), &rf_oper, opts); return Qtrue; } debian/compat0000644000000000000000000000000211750003320010353 0ustar 7 debian/changelog0000644000000000000000000000614312255023476011052 0ustar ruby-fusefs (0.7.0-4) unstable; urgency=medium * Add myself to Uploaders and copyright holders of debian/ * debian/control: + remove obsolete DM-Upload-Allowed flag + use canonical URI in Vcs-* fields + Bump Standards-Version to 3..9.5 (no changes needed) * Build for all supported Ruby versions (Closes: #730894) + add debian/patches/port-to-newer-ruby.patch to port the C extensions * Drop transitional packages -- Cédric Boutillier Fri, 20 Dec 2013 12:17:12 +0100 ruby-fusefs (0.7.0-3) unstable; urgency=high * Team upload. * Set urgency to high as an RC bug is fixed. * debian/control: build only for Ruby 1.8. (Closes: #704249) - mention in the description that ruby-fusefs will work only with Ruby 1.8 - set XS-Ruby-Versions: to ruby1.8 to disable the build of the binary extension with Ruby 1.9 - set ruby1.8 as a dependency instead of the ruby metapackage. -- Cédric Boutillier Thu, 04 Apr 2013 17:33:22 +0200 ruby-fusefs (0.7.0-2) unstable; urgency=low * Bumped build-dependency on gem2deb to >= 0.3.0~. * debian/source/lintian-overrides: added overrides for the descriptions of transitional packages. * debian/patches: added DEP-3 patch header. -- Paul van Tilburg Tue, 26 Jun 2012 23:23:52 +0200 ruby-fusefs (0.7.0-1) unstable; urgency=low * New upstream release. * Source packages adapted according to the new Ruby policy: - Build for both ruby1.8 and ruby1.9.1. - Migrated to pkg-ruby-extras git repos. Changed the Vcs-* fields in debian/control accordingly. - Changed the depends and recommends to follow the new Ruby library naming scheme. * debian/control: - Added a default DM-Upload-Allowed field set to yes. - Standards-Version bumped to 3.9.3; no changes required. - Set XS-Ruby-Versions to all. - Changed the build-depends for using gem2deb instead of ruby-pkg-tools. - Switched the maintainer with the uploaders field as per new convention the team is the default maintainer. - Added libdbus-ruby and libdbus-ruby1.8 as transitional packages. * debian/copyright: updated to use the Debian machine-readable copyright format version 1.0. * debian/patches: add fix-dynamic-library-load-path.patch to fix the load path. * debian/source/local-options: set "unapply-patches" to keep the source clean. -- Paul van Tilburg Mon, 23 Apr 2012 23:03:41 +0200 libfusefs-ruby (0.6.0-3) unstable; urgency=low [ Arnaud Cornet ] * Add API.txt to docs and foo.yaml in samples to test yamlfs (Closes: 422725). * Improve libfusefs-ruby1.8.examples with a wildcard. * Sharpen copyright of setup.rb. -- Arnaud Cornet Tue, 08 May 2007 13:55:20 +0200 libfusefs-ruby (0.6.0-2) unstable; urgency=low [ Arnaud Cornet ] * Drop uploaders.mk. Add Paul to uploaders. -- Arnaud Cornet Wed, 18 Apr 2007 21:49:28 +0200 libfusefs-ruby (0.6.0-1) unstable; urgency=low * Initial release. -- Arnaud Cornet Sat, 21 Oct 2006 14:17:25 +0200