[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#407569: A patch for debianizing fusecompress



I'm attaching a patch for debianizing FuseCompress.

The resulting .deb passes lintian and linda.

J.
diff -Nur fusecompress-0.9.0-original/debian/changelog fusecompress-0.9.0/debian/changelog
--- fusecompress-0.9.0-original/debian/changelog	1969-12-31 21:00:00.000000000 -0300
+++ fusecompress-0.9.0/debian/changelog	2007-01-20 06:59:43.000000000 -0200
@@ -0,0 +1,5 @@
+fusecompress (0.9.0) unstable; urgency=low
+
+  * Initial release.
+
+ -- Jeronimo Pellegrini <j_p@aleph0.info>  Sat, 20 Jan 2007 06:58:14 -0200
diff -Nur fusecompress-0.9.0-original/debian/compat fusecompress-0.9.0/debian/compat
--- fusecompress-0.9.0-original/debian/compat	1969-12-31 21:00:00.000000000 -0300
+++ fusecompress-0.9.0/debian/compat	2007-01-20 06:50:08.000000000 -0200
@@ -0,0 +1 @@
+4
diff -Nur fusecompress-0.9.0-original/debian/control fusecompress-0.9.0/debian/control
--- fusecompress-0.9.0-original/debian/control	1969-12-31 21:00:00.000000000 -0300
+++ fusecompress-0.9.0/debian/control	2007-01-20 07:25:27.000000000 -0200
@@ -0,0 +1,20 @@
+Source: fusecompress
+Section: utils
+Priority: extra
+Maintainer: Jeronimo Pellegrini <j_p@aleph0.info>
+Build-Depends: debhelper (>= 4.0.0), cdbs(>=0.4.21)
+Standards-Version: 3.7.1
+
+Package: fusecompress
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: transparent filesystem compression using FUSE
+ FuseCompress provides a mountable Linux filesystem which transparently
+ compress its content.  Files stored in this filesystem are compressed on
+ the background and Fuse allows to create a transparent interface between
+ compressed files and user applications.
+ .
+ There is no need for a mount point, so the compressed directory can be
+ referenced just as it was before.
+ .
+ FuseCompress currently supports lzo, gzip and bzip2 compression.
diff -Nur fusecompress-0.9.0-original/debian/copyright fusecompress-0.9.0/debian/copyright
--- fusecompress-0.9.0-original/debian/copyright	1969-12-31 21:00:00.000000000 -0300
+++ fusecompress-0.9.0/debian/copyright	2007-01-20 07:31:13.000000000 -0200
@@ -0,0 +1,27 @@
+fusecompress was packaged by Jeronimo Pellegrini <j_p@aleph0.info> on
+Sat Jan 20 07:27:50 BRST 2007
+
+It was downloaded from http://www.miio.net/fusecompress/
+
+FuseCompress was written by Milan Svoboda (milan.svoboda@centrum.cz)
+
+     Copyright (C) 2005,2006,2007 Milan Svoboda
+
+     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; either version 2 of the License, or (at your option)
+    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 program; if not, write to:
+	The Free Software Foundation, Inc.,
+	51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+
+You can find the full text of the GNU General Public License at
+/usr/share/common-licenses/GPL-2
+
diff -Nur fusecompress-0.9.0-original/debian/fusecompress.1 fusecompress-0.9.0/debian/fusecompress.1
--- fusecompress-0.9.0-original/debian/fusecompress.1	1969-12-31 21:00:00.000000000 -0300
+++ fusecompress-0.9.0/debian/fusecompress.1	2007-01-20 07:52:27.000000000 -0200
@@ -0,0 +1,67 @@
+.TH "fusecompress" "1" "0.9.0" "" ""
+.SH "NAME"
+.LP 
+fusecompress \- transparently compresses directories
+.SH "SYNTAX"
+.LP 
+fusecompress [\fIoption\fP] <\fIdirectory\fP>
+.br 
+.SH "DESCRIPTION"
+.LP 
+FuseCompress transparently compresses the contents of a
+directory. To do this, it mounts the directory and 
+compresses the files inside it in the background.
+
+You can mount filesystem over an existing directory with
+files. Files will be compressed when you work with
+filesystem. Even simple 'find /storage' compress them.
+Note that several last files found are not compressed \-
+this is called cache and increase performance on frequently
+accessed files. These files are compressed when filesystem
+is unmounted.
+
+After you mount a directory with FuseCompress and later
+unmount it, the files inside it will be compressed, and
+you will likely need to use fusecompress again in order
+to open them.
+
+.SH "OPTIONS"
+.LP 
+.TP 
+\fB\-h\fR
+Output help information and exit.
+.TP 
+\fB\-c [\fIlzo, bz2, gz\fP]\fR
+Choose a compression method.
+.TP 
+\fB\-o ...\fR
+Pass arguments to the FUSE library.
+.SH "EXAMPLES"
+.LP 
+To mount your /usr/share/doc directory so the files in it
+will be compressed, do:
+.LP 
+fusecompress /usr/share/doc
+.LP 
+That will compress files, but they will be available as if
+there was no compression.
+.LP 
+To unmount, do:
+.LP 
+fusermount \-u /usr/share/doc
+
+This will stop the transparent compression and decompression
+mechanism, and from then on, files will be viewed as they
+are (either compressed or uncompressed).
+.SH "WARNING"
+.LP 
+.TP 
+You should be careful when compressing directories. If you mount /usr/bin with fusecompress, you may get in trouble. Everything will work until you unmount that directory, and then you won't be able to use most binaries in your system!
+.SH "AUTHORS"
+.LP 
+Milan Svoboda <milan.svoboda@centrum.cz> (original author and project maintainer)
+.LP 
+Anders Aagaard <aagaande@gmail.com> (direct compress feature)
+.SH "SEE ALSO"
+.LP 
+fusermount(1)
diff -Nur fusecompress-0.9.0-original/debian/rules fusecompress-0.9.0/debian/rules
--- fusecompress-0.9.0-original/debian/rules	1969-12-31 21:00:00.000000000 -0300
+++ fusecompress-0.9.0/debian/rules	2007-01-20 07:25:15.000000000 -0200
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+include /usr/share/cdbs/1/class/makefile.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
+
+DEB_MAKE_CLEAN_TARGET   = clean
+DEB_MAKE_BUILD_TARGET   = release
+DEB_MAKE_INVOKE = $(DEB_MAKE_ENVVARS) make -C $(DEB_BUILDDIR)
+
+install/fusecompress::
+	mkdir -p debian/fusecompress/usr/bin
+	cp fusecompress debian/fusecompress/usr/bin/

Reply to: