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

Bug#407572: A debianizing patch



Here's a patch for debianizing it. The binaries have no
manpages.

J.
diff -Nur copyfs-1.3M-original/debian/changelog copyfs-1.3M/debian/changelog
--- copyfs-1.3M-original/debian/changelog	1969-12-31 21:00:00.000000000 -0300
+++ copyfs-1.3M/debian/changelog	2007-01-20 08:42:39.000000000 -0200
@@ -0,0 +1,5 @@
+copyfs (1.3M) unstable; urgency=low
+
+  * Initial release.
+
+ -- Jeronimo Pellegrini <j_p@aleph0.info>  Sat, 20 Jan 2007 08:02:12 -0200
diff -Nur copyfs-1.3M-original/debian/compat copyfs-1.3M/debian/compat
--- copyfs-1.3M-original/debian/compat	1969-12-31 21:00:00.000000000 -0300
+++ copyfs-1.3M/debian/compat	2007-01-20 07:59:12.000000000 -0200
@@ -0,0 +1 @@
+4
diff -Nur copyfs-1.3M-original/debian/control copyfs-1.3M/debian/control
--- copyfs-1.3M-original/debian/control	1969-12-31 21:00:00.000000000 -0300
+++ copyfs-1.3M/debian/control	2007-01-20 08:01:29.000000000 -0200
@@ -0,0 +1,15 @@
+Source: copyfs
+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: copyfs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Versioning filesystem for FUSE
+ CopyFS keeps versioned copies of all the changes done to file under its
+ control. It can be useful for a directory where configuration files
+ are stored, for example.
diff -Nur copyfs-1.3M-original/debian/copyright copyfs-1.3M/debian/copyright
--- copyfs-1.3M-original/debian/copyright	1969-12-31 21:00:00.000000000 -0300
+++ copyfs-1.3M/debian/copyright	2007-01-20 08:42:34.000000000 -0200
@@ -0,0 +1,30 @@
+copyfs was packaged by Jeronimo Pellegrini <j_p@aleph0.info> on
+Sat Jan 20 08:04:21 BRST 2007
+
+It was downloaded from http://mattwork.potsdam.edu/projects/wiki/index.php/CopyFS
+
+CopyFS was written by Nicolas Vigier and Thomas Joubert, and extended by
+Matthew Keller
+
+     Copyright (C) 2005,2006,2007 Nicolas Vigier
+     Copyright (C) 2005,2006,2007 Thomas Joubert
+     Copyright (C) 2005,2006,2007 Matthew Keller
+
+     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 copyfs-1.3M-original/debian/rules copyfs-1.3M/debian/rules
--- copyfs-1.3M-original/debian/rules	1969-12-31 21:00:00.000000000 -0300
+++ copyfs-1.3M/debian/rules	2007-01-20 08:43:41.000000000 -0200
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+include /usr/share/cdbs/1/class/autotools.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
+
+configure/copyfs::
+	mkdir -p $(CURDIR)/debian/copyfs/usr/bin
+	./configure prefix=$(CURDIR)/debian/copyfs/usr
+
diff -Nur copyfs-1.3M-original/Makefile.in copyfs-1.3M/Makefile.in
--- copyfs-1.3M-original/Makefile.in	2006-02-14 14:15:29.000000000 -0200
+++ copyfs-1.3M/Makefile.in	2007-01-20 08:42:18.000000000 -0200
@@ -23,12 +23,13 @@
 CC	= gcc
 CFLAGS	= -Wall -ansi -W -std=c99 -g -ggdb -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
 LIBS	= -lfuse
+PREFIX = @prefix@
 
 all: $(TARGET)
 
 install: $(TARGET) $(SCRIPTS)
-	install -o root -g root -m 755 $(TARGET) /usr/local/bin
-	install -o root -g root -m 755 $(SCRIPTS) /usr/local/bin
+	install -o root -g root -m 755 $(TARGET) $(PREFIX)/bin
+	install -o root -g root -m 755 $(SCRIPTS) $(PREFIX)/bin
 
 clean:
 	rm -f *~ $(OBJ) \#*\#

Reply to: