--- btrfs-0.8.orig/debian/control +++ btrfs-0.8/debian/control @@ -0,0 +1,22 @@ +Source: btrfs +Section: admin +Priority: optional +Maintainer: Daniel Baumann +Build-Depends: debhelper (>= 5), bzip2 +Standards-Version: 3.7.2 + +Package: btrfs-source +Architecture: all +Depends: debhelper (>= 5), module-assistant, bzip2, make +Description: Source for the Btrfs filesystem driver + Btrfs is a new filesystem that is designed to be scalable, efficient and fast. + Notable features include very fast offline filesystem check, online filesystem + checking, checksumming of all metadata and fast, writable filesystem snapshots. + . + Homepage: + . + This package provides the source code for the btrfs kernel modules. + . + WARNING: The Btrfs disk format is not yet finalized, and it currently does not + handle disk full conditions at all. Things are under heavy development, and + Btrfs is not suitable for any uses other than benchmarking and review. --- btrfs-0.8.orig/debian/changelog +++ btrfs-0.8/debian/changelog @@ -0,0 +1,23 @@ +btrfs (0.8-1) unstable; urgency=low + + * New upstream release. + + -- Daniel Baumann Fri, 14 Sep 2007 11:06:00 +0200 + +btrfs (0.7-1) unstable; urgency=low + + * New upstream release. + + -- Daniel Baumann Tue, 14 Aug 2007 13:05:00 +0200 + +btrfs (0.6-1) unstable; urgency=low + + * New upstream release. + + -- Daniel Baumann Wed, 8 Aug 2007 20:38:00 +0200 + +btrfs (0.5-1) unstable; urgency=low + + * Initial release (Closes: #432697). + + -- Daniel Baumann Sun, 29 Jul 2007 12:19:00 +0200 --- btrfs-0.8.orig/debian/compat +++ btrfs-0.8/debian/compat @@ -0,0 +1 @@ +5 --- btrfs-0.8.orig/debian/btrfs-source.links +++ btrfs-0.8/debian/btrfs-source.links @@ -0,0 +1 @@ +/usr/share/modass/packages/default.sh /usr/share/modass/overrides/btrfs-source --- btrfs-0.8.orig/debian/rules +++ btrfs-0.8/debian/rules @@ -0,0 +1,130 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +# some default definitions, important! +# +# Name of the source package +psource:=btrfs-source + +# The short upstream name, used for the module source directory +sname:=btrfs + +### KERNEL SETUP +### Setup the stuff needed for making kernel module packages +### taken from /usr/share/kernel-package/sample.module.rules + +# prefix of the target package name +PACKAGE=btrfs-modules +# modifieable for experiments or debugging m-a +MA_DIR ?= /usr/share/modass +# load generic variable handling +-include $(MA_DIR)/include/generic.make +# load default rules, including kdist, kdist_image, ... +-include $(MA_DIR)/include/common-rules.make + +# module assistant calculates all needed things for us and sets +# following variables: +# KSRC (kernel source directory), KVERS (kernel version string), KDREV +# (revision of the Debian kernel-image package), CC (the correct +# compiler), VERSION (the final package version string), PKGNAME (full +# package name with KVERS included), DEB_DESTDIR (path to store DEBs) + +# The kdist_configure target is called by make-kpkg modules_config and +# by kdist* rules by dependency. It should configure the module so it is +# ready for compilation (mostly useful for calling configure). +# prep-deb-files from module-assistant creates the neccessary debian/ files +kdist_configure: prep-deb-files + +# the kdist_clean target is called by make-kpkg modules_clean and from +# kdist* rules. It is responsible for cleaning up any changes that have +# been made by the other kdist_commands (except for the .deb files created) +kdist_clean: clean + $(MAKE) $(MFLAGS) KERNELDIR=$(KSRC) clean +# +### end KERNEL SETUP + +# the binary-modules rule is invoked by module-assistant while processing the +# kdist* targets. It is called by module-assistant or make-kpkg and *not* +# during a normal build +binary-modules: prep-deb-files + dh_testroot + dh_clean -k + + # Build the module + $(MAKE) KERNELDIR=$(KSRC) + + # Install the module + install -D -m 0644 btrfs.ko debian/$(PACKAGE)-$(KVERS)/lib/modules/$(KVERS)/kernel/fs/btrfs/btrfs.ko + + dh_installdocs TODO + dh_installchangelogs + dh_compress + dh_fixperms + dh_installmodules + dh_installdeb + dh_gencontrol -- -v$(VERSION) + dh_md5sums + dh_builddeb --destdir=$(DEB_DESTDIR) + dh_clean -k + +build: + +clean: + dh_testdir + #dh_testroot + + # Cleaning package + -$(MAKE) clean + + dh_clean + +install: DH_OPTIONS= +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Create the directories to install the source into + dh_installdirs -p$(psource) usr/src/modules/$(sname)/debian + + # Copy only the driver source to the proper location + cp -a TODO Makefile *.c *.h debian/$(psource)/usr/src/modules/$(sname) + # Copy the needed debian/ pieces to the proper location + cp debian/*modules.in* \ + debian/$(psource)/usr/src/modules/$(sname)/debian + cp debian/control debian/rules debian/changelog debian/copyright \ + debian/compat debian/$(psource)/usr/src/modules/$(sname)/debian/ + cd debian/$(psource)/usr/src && tar c modules | bzip2 -9 > $(sname).tar.bz2 && rm -rf modules + + dh_install + +binary-arch: build install + +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs TODO + dh_install + dh_link + dh_compress + dh_fixperms + dh_installdeb + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install binary-modules kdist kdist_configure kdist_image kdist_clean --- btrfs-0.8.orig/debian/copyright +++ btrfs-0.8/debian/copyright @@ -0,0 +1,52 @@ +This package was debianized by Daniel Baumann on +Sun, 29 Jul 2007 12:19:00 +0200. + +It was downloaded from . + +Upstream Author: + + Chris Mason + +License (everything except hash.c): + + Copyright (C) 2007 Oracle + + 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. + + 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 + +On Debian systems, the complete text of the GNU General Public License +can be found in /usr/share/common-licenses/GPL-2 file. + +License (hash.c): + + Copyright (C) 2007 Oracle + Copyright (C) 2002 Theodore Ts'o + + 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. + + 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 + +On Debian systems, the complete text of the GNU General Public License +can be found in /usr/share/common-licenses/GPL-2 file. + +The Debian packaging is (C) 2007, Daniel Baumann and +is licensed under the GPL, see `/usr/share/common-licenses/GPL-2'. --- btrfs-0.8.orig/debian/watch +++ btrfs-0.8/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://oss.oracle.com/projects/btrfs/files/btrfs-(.*)\.tar\.bz2 --- btrfs-0.8.orig/debian/control.modules.in +++ btrfs-0.8/debian/control.modules.in @@ -0,0 +1,33 @@ +Source: btrfs +Section: admin +Priority: optional +Maintainer: Daniel Baumann +Build-Depends: debhelper (>= 5) +Standards-Version: 3.7.2 + +Package: btrfs-modules-_KVERS_ +Architecture: any +Depends: linux-modules-_KVERS_ | linux-image-_KVERS_ +Recommends: btrfs-tools +Provides: btrfs-modules +Description: btrfs modules for Linux (kernel _KVERS_) + Btrfs is a new filesystem that is designed to be scalable, efficient and fast. + Notable features include very fast offline filesystem check, online filesystem + checking, checksumming of all metadata and fast, writable filesystem snapshots. + . + Homepage: + . + This package contains the set of loadable kernel modules for the + Btrfs filesystem driver. + The btrfs-tools package is also required in order to make use of these modules. + . + This package contains the compiled kernel modules for _KVERS_ + . + If you have compiled your own kernel, you will most likely need to build + your own btrfs-modules. The btrfs-source package has been + provided for use with the Debian's module-assistant or kernel-package + utilities to produce a version of btrfs-modules for your kernel. + . + WARNING: The Btrfs disk format is not yet finalized, and it currently does not + handle disk full conditions at all. Things are under heavy development, and + Btrfs is not suitable for any uses other than benchmarking and review. --- btrfs-0.8.orig/debian/README.Debian +++ btrfs-0.8/debian/README.Debian @@ -0,0 +1,27 @@ +btrfs for Debian +---------------- + +Please note that btrfs is, at this point, extremely experimental and will crash +your computer and, probably, eat your disk. Also, the on-disk data format is not +stable yet and the developers do not include code in the btrfs software to +handle older filesystems. + +Summary: Do not use btrfs for real work. + +btrfs-source provides the kernel module for btrfs. You also need the btrfs-tools +package to get the necessary user-space support programs. + +The Debian btrfs-source package can be used in several ways, + + - Using module-assistant(1) commands provided by the module-assistant Debian + package: + + # module-assistant prepare btrfs + # module-assistant auto-install btrfs + + - Using the make-kpkg(1) command provided by the kernel-package Debian + package. See the "modules_image" section of the make-kpkg(1) man page. + + - Unpacking /usr/src/btrfs-*.tar.bz2 and installing the module on your own. + + -- Daniel Baumann Sun, 29 Jul 2007 12:19:00 +0200