]> git.proxmox.com Git - mirror_spl-debian.git/commitdiff
Merge branch 'upstream'
authorDarik Horn <dajhorn@vanadac.com>
Tue, 11 Sep 2012 21:12:20 +0000 (16:12 -0500)
committerDarik Horn <dajhorn@vanadac.com>
Tue, 11 Sep 2012 21:12:20 +0000 (16:12 -0500)
24 files changed:
.pc/.quilt_patches [new file with mode: 0644]
.pc/.quilt_series [new file with mode: 0644]
.pc/.version [new file with mode: 0644]
INSTALL [deleted file]
README.markdown
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/debuild-ppa.sh [new file with mode: 0755]
debian/dkms [new file with mode: 0644]
debian/patches/0001-Revert-Remove-etc-hostid-missing-warning.patch [new file with mode: 0644]
debian/patches/0002-Revert-Revert-Stabilize-the-hostid-for-RPM-installations.patch [new file with mode: 0644]
debian/patches/series [new file with mode: 0644]
debian/patches/volatile-version.patch [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/source/format [new file with mode: 0644]
debian/source/options [new file with mode: 0644]
debian/spl-dkms.install [new file with mode: 0644]
debian/spl-dkms.postinst [new file with mode: 0644]
debian/spl-dkms.prerm [new file with mode: 0644]
debian/spl.install [new file with mode: 0644]
debian/spl.postinst [new file with mode: 0644]
debian/watch [new file with mode: 0644]

diff --git a/.pc/.quilt_patches b/.pc/.quilt_patches
new file mode 100644 (file)
index 0000000..6857a8d
--- /dev/null
@@ -0,0 +1 @@
+debian/patches
diff --git a/.pc/.quilt_series b/.pc/.quilt_series
new file mode 100644 (file)
index 0000000..c206706
--- /dev/null
@@ -0,0 +1 @@
+series
diff --git a/.pc/.version b/.pc/.version
new file mode 100644 (file)
index 0000000..0cfbf08
--- /dev/null
@@ -0,0 +1 @@
+2
diff --git a/INSTALL b/INSTALL
deleted file mode 100644 (file)
index 8b82ade..0000000
--- a/INSTALL
+++ /dev/null
@@ -1,291 +0,0 @@
-Installation Instructions
-*************************
-
-Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
-2006, 2007, 2008 Free Software Foundation, Inc.
-
-   This file is free documentation; the Free Software Foundation gives
-unlimited permission to copy, distribute and modify it.
-
-Basic Installation
-==================
-
-   Briefly, the shell commands `./configure; make; make install' should
-configure, build, and install this package.  The following
-more-detailed instructions are generic; see the `README' file for
-instructions specific to this package.
-
-   The `configure' shell script attempts to guess correct values for
-various system-dependent variables used during compilation.  It uses
-those values to create a `Makefile' in each directory of the package.
-It may also create one or more `.h' files containing system-dependent
-definitions.  Finally, it creates a shell script `config.status' that
-you can run in the future to recreate the current configuration, and a
-file `config.log' containing compiler output (useful mainly for
-debugging `configure').
-
-   It can also use an optional file (typically called `config.cache'
-and enabled with `--cache-file=config.cache' or simply `-C') that saves
-the results of its tests to speed up reconfiguring.  Caching is
-disabled by default to prevent problems with accidental use of stale
-cache files.
-
-   If you need to do unusual things to compile the package, please try
-to figure out how `configure' could check whether to do them, and mail
-diffs or instructions to the address given in the `README' so they can
-be considered for the next release.  If you are using the cache, and at
-some point `config.cache' contains results you don't want to keep, you
-may remove or edit it.
-
-   The file `configure.ac' (or `configure.in') is used to create
-`configure' by a program called `autoconf'.  You need `configure.ac' if
-you want to change it or regenerate `configure' using a newer version
-of `autoconf'.
-
-The simplest way to compile this package is:
-
-  1. `cd' to the directory containing the package's source code and type
-     `./configure' to configure the package for your system.
-
-     Running `configure' might take a while.  While running, it prints
-     some messages telling which features it is checking for.
-
-  2. Type `make' to compile the package.
-
-  3. Optionally, type `make check' to run any self-tests that come with
-     the package.
-
-  4. Type `make install' to install the programs and any data files and
-     documentation.
-
-  5. You can remove the program binaries and object files from the
-     source code directory by typing `make clean'.  To also remove the
-     files that `configure' created (so you can compile the package for
-     a different kind of computer), type `make distclean'.  There is
-     also a `make maintainer-clean' target, but that is intended mainly
-     for the package's developers.  If you use it, you may have to get
-     all sorts of other programs in order to regenerate files that came
-     with the distribution.
-
-  6. Often, you can also type `make uninstall' to remove the installed
-     files again.
-
-Compilers and Options
-=====================
-
-   Some systems require unusual options for compilation or linking that
-the `configure' script does not know about.  Run `./configure --help'
-for details on some of the pertinent environment variables.
-
-   You can give `configure' initial values for configuration parameters
-by setting variables in the command line or in the environment.  Here
-is an example:
-
-     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
-
-   *Note Defining Variables::, for more details.
-
-Compiling For Multiple Architectures
-====================================
-
-   You can compile the package for more than one kind of computer at the
-same time, by placing the object files for each architecture in their
-own directory.  To do this, you can use GNU `make'.  `cd' to the
-directory where you want the object files and executables to go and run
-the `configure' script.  `configure' automatically checks for the
-source code in the directory that `configure' is in and in `..'.
-
-   With a non-GNU `make', it is safer to compile the package for one
-architecture at a time in the source code directory.  After you have
-installed the package for one architecture, use `make distclean' before
-reconfiguring for another architecture.
-
-   On MacOS X 10.5 and later systems, you can create libraries and
-executables that work on multiple system types--known as "fat" or
-"universal" binaries--by specifying multiple `-arch' options to the
-compiler but only a single `-arch' option to the preprocessor.  Like
-this:
-
-     ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
-                 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
-                 CPP="gcc -E" CXXCPP="g++ -E"
-
-   This is not guaranteed to produce working output in all cases, you
-may have to build one architecture at a time and combine the results
-using the `lipo' tool if you have problems.
-
-Installation Names
-==================
-
-   By default, `make install' installs the package's commands under
-`/usr/local/bin', include files under `/usr/local/include', etc.  You
-can specify an installation prefix other than `/usr/local' by giving
-`configure' the option `--prefix=PREFIX'.
-
-   You can specify separate installation prefixes for
-architecture-specific files and architecture-independent files.  If you
-pass the option `--exec-prefix=PREFIX' to `configure', the package uses
-PREFIX as the prefix for installing programs and libraries.
-Documentation and other data files still use the regular prefix.
-
-   In addition, if you use an unusual directory layout you can give
-options like `--bindir=DIR' to specify different values for particular
-kinds of files.  Run `configure --help' for a list of the directories
-you can set and what kinds of files go in them.
-
-   If the package supports it, you can cause programs to be installed
-with an extra prefix or suffix on their names by giving `configure' the
-option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
-
-Optional Features
-=================
-
-   Some packages pay attention to `--enable-FEATURE' options to
-`configure', where FEATURE indicates an optional part of the package.
-They may also pay attention to `--with-PACKAGE' options, where PACKAGE
-is something like `gnu-as' or `x' (for the X Window System).  The
-`README' should mention any `--enable-' and `--with-' options that the
-package recognizes.
-
-   For packages that use the X Window System, `configure' can usually
-find the X include and library files automatically, but if it doesn't,
-you can use the `configure' options `--x-includes=DIR' and
-`--x-libraries=DIR' to specify their locations.
-
-Particular systems
-==================
-
-   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU
-CC is not installed, it is recommended to use the following options in
-order to use an ANSI C compiler:
-
-     ./configure CC="cc -Ae"
-
-and if that doesn't work, install pre-built binaries of GCC for HP-UX.
-
-   On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
-parse its `<wchar.h>' header file.  The option `-nodtk' can be used as
-a workaround.  If GNU CC is not installed, it is therefore recommended
-to try
-
-     ./configure CC="cc"
-
-and if that doesn't work, try
-
-     ./configure CC="cc -nodtk"
-
-Specifying the System Type
-==========================
-
-   There may be some features `configure' cannot figure out
-automatically, but needs to determine by the type of machine the package
-will run on.  Usually, assuming the package is built to be run on the
-_same_ architectures, `configure' can figure that out, but if it prints
-a message saying it cannot guess the machine type, give it the
-`--build=TYPE' option.  TYPE can either be a short name for the system
-type, such as `sun4', or a canonical name which has the form:
-
-     CPU-COMPANY-SYSTEM
-
-where SYSTEM can have one of these forms:
-
-     OS KERNEL-OS
-
-   See the file `config.sub' for the possible values of each field.  If
-`config.sub' isn't included in this package, then this package doesn't
-need to know the machine type.
-
-   If you are _building_ compiler tools for cross-compiling, you should
-use the option `--target=TYPE' to select the type of system they will
-produce code for.
-
-   If you want to _use_ a cross compiler, that generates code for a
-platform different from the build platform, you should specify the
-"host" platform (i.e., that on which the generated programs will
-eventually be run) with `--host=TYPE'.
-
-Sharing Defaults
-================
-
-   If you want to set default values for `configure' scripts to share,
-you can create a site shell script called `config.site' that gives
-default values for variables like `CC', `cache_file', and `prefix'.
-`configure' looks for `PREFIX/share/config.site' if it exists, then
-`PREFIX/etc/config.site' if it exists.  Or, you can set the
-`CONFIG_SITE' environment variable to the location of the site script.
-A warning: not all `configure' scripts look for a site script.
-
-Defining Variables
-==================
-
-   Variables not defined in a site shell script can be set in the
-environment passed to `configure'.  However, some packages may run
-configure again during the build, and the customized values of these
-variables may be lost.  In order to avoid this problem, you should set
-them in the `configure' command line, using `VAR=value'.  For example:
-
-     ./configure CC=/usr/local2/bin/gcc
-
-causes the specified `gcc' to be used as the C compiler (unless it is
-overridden in the site shell script).
-
-Unfortunately, this technique does not work for `CONFIG_SHELL' due to
-an Autoconf bug.  Until the bug is fixed you can use this workaround:
-
-     CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
-
-`configure' Invocation
-======================
-
-   `configure' recognizes the following options to control how it
-operates.
-
-`--help'
-`-h'
-     Print a summary of all of the options to `configure', and exit.
-
-`--help=short'
-`--help=recursive'
-     Print a summary of the options unique to this package's
-     `configure', and exit.  The `short' variant lists options used
-     only in the top level, while the `recursive' variant lists options
-     also present in any nested packages.
-
-`--version'
-`-V'
-     Print the version of Autoconf used to generate the `configure'
-     script, and exit.
-
-`--cache-file=FILE'
-     Enable the cache: use and save the results of the tests in FILE,
-     traditionally `config.cache'.  FILE defaults to `/dev/null' to
-     disable caching.
-
-`--config-cache'
-`-C'
-     Alias for `--cache-file=config.cache'.
-
-`--quiet'
-`--silent'
-`-q'
-     Do not print messages saying which checks are being made.  To
-     suppress all normal output, redirect it to `/dev/null' (any error
-     messages will still be shown).
-
-`--srcdir=DIR'
-     Look for the package's source code in directory DIR.  Usually
-     `configure' can determine that directory automatically.
-
-`--prefix=DIR'
-     Use DIR as the installation prefix.  *Note Installation Names::
-     for more details, including other options available for fine-tuning
-     the installation locations.
-
-`--no-create'
-`-n'
-     Run the configure checks, but stop before creating any output
-     files.
-
-`configure' also accepts some other, not widely useful, options.  Run
-`configure --help' for more details.
-
index 81535aa22b1c04d14ea91c8d50c18b54a25d8148..4a133a201d0e39b40d4f09d015133dcdeeff0621 100644 (file)
@@ -1,21 +1,7 @@
-The Solaris Porting Layer (SPL) is a Linux kernel module which provides
-many of the Solaris kernel APIs.  This shim layer makes it possible to
-run Solaris kernel code in the Linux kernel with relatively minimal
-modification.  This can be particularly useful when you want to track
-upstream Solaris development closely and don’t want the overhead of
-maintaining a large patch which converts Solaris primitives to Linux
-primitives.
+The Solaris Porting Layer (SPL) for Debian and Ubuntu. Build packages
+from this source repository by running:
 
-To build packages for your distribution:
-
-    $ ./configure
-    $ make pkg
-
-To copy the kernel code inside your kernel source tree for builtin
-compilation:
-
-    $ ./configure --enable-linux-builtin --with-linux=/usr/src/linux-...
-    $ ./copy-builtin /usr/src/linux-...
+  $ dpkg-buildpackage -us -uc
 
 Full documentation for building, configuring, and using the SPL can
 be found at: <http://zfsonlinux.org>
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..391794f
--- /dev/null
@@ -0,0 +1,805 @@
+spl-linux (0.6.0.76-0ubuntu1) unstable; urgency=low
+
+  * No changes.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Thu, 06 Sep 2012 20:04:55 -0500
+
+spl-linux (0.6.0.75-0ubuntu1) unstable; urgency=low
+
+  [ Etienne Dechamps ]
+  * Add DKIOCTRIM for TRIM support.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Wed, 05 Sep 2012 09:37:42 -0500
+
+spl-linux (0.6.0.74-0ubuntu1) unstable; urgency=low
+
+  * No changes.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Sun, 02 Sep 2012 14:31:38 -0500
+
+spl-linux (0.6.0.73-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * Remove autotools products
+  * Emergency slab objects
+  * Revert "Add TASKQ_NORECLAIM flag"
+  * Revert "Detect kernels that honor gfp flags passed to vmalloc()"
+  * Revert "Fix NULL deref in balance_pgdat()"
+  * Revert "Disable vmalloc() direct reclaim"
+  * Add PF_NOFS debugging flag
+  * Mutex ASSERT on self deadlock
+  * Switch KM_SLEEP to KM_PUSHPAGE
+  * Enhance SPLAT kmem:slab_overcommit test
+  * Suppress task_hash_table_init() large allocation warning
+
+  [ Prakash Surya ]
+  * Revert "Make CONFIG_PREEMPT Fatal"
+  * Remove SPL_LINUX_CONFIG autoconf macro
+
+ -- Darik Horn <dajhorn@vanadac.com>  Fri, 31 Aug 2012 14:36:33 -0500
+
+spl-linux (0.6.0.72-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * Add copy-builtin to EXTRA_DIST
+
+  [ Prakash Surya ]
+  * Wrap trace_set_debug_header in trace_[get|put]_tcd
+  * Avoid calling smp_processor_id in spl_magazine_age
+  * Add kpreempt_[dis|en]able macros in <sys/disp.h>
+
+  [ Richard Yao ]
+  * Remove Makefile from non-toplevel .gitignore files
+
+ -- Darik Horn <dajhorn@vanadac.com>  Sun, 26 Aug 2012 16:56:19 -0500
+
+spl-linux (0.6.0.71-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * Cleanly remove spl-modules-devel headers
+  * SPL 0.6.0-rc10
+
+  [ Darik Horn ]
+  * Refresh debian/patches after upstream merge.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Tue, 14 Aug 2012 21:32:20 -0500
+
+spl-linux (0.6.0.70-0ubuntu1) unstable; urgency=low
+
+  [ Richard Yao ]
+  * Fix incorrect type in spl_kmem_cache_set_move() parameter
+
+  [ Etienne Dechamps ]
+  * Handle any invalidate_inodes_check prototype.
+
+  [ Prakash Surya ]
+  * Support building a spl-modules-dkms sub package
+
+ -- Darik Horn <dajhorn@vanadac.com>  Fri, 10 Aug 2012 19:40:20 -0500
+
+spl-linux (0.6.0.69-0ubuntu3) unstable; urgency=low
+
+  * Update the README file for deb packages.
+  * Convert lintian-COPYING.patch to a build rule.
+  * Remove lintian-ltmain.patch
+  * Run autogen for packaged builds.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Mon, 06 Aug 2012 09:33:50 -0500
+
+spl-linux (0.6.0.68-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * 32-bit compat, hostid_read()
+
+  [ Etienne Dechamps ]
+  * Use MODULE variable in module Makefile like zfs.
+  * Don't build packages that haven't been selected.
+  * Fix undefined reference on spl_mutex_spin_max().
+  * Make configure builtin-aware.
+  * Fake modpost stage for LINUX_COMPILE.
+  * When checking for symbol exports, try compiling.
+  * Add script for builtin module building.
+  * Determine the hostid on demand.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Fri, 27 Jul 2012 14:23:37 -0500
+
+spl-linux (0.6.0.67-0ubuntu1) unstable; urgency=low
+
+  [ Richard Yao ]
+  * Constify memory management functions
+  * Detect kernels that honor gfp flags passed to vmalloc()
+
+  [ Prakash Surya ]
+  * Move spl.release generation to configure step
+
+  [ Brian Behlendorf ]
+  * Optimize spl_rwsem_is_locked()
+
+  [ Darik Horn ]
+  * Refresh debian/patches after upstream merge.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Sun, 15 Jul 2012 22:24:34 -0500
+
+spl-linux (0.6.0.66-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * PowerPC Compatibility
+  * Remove Chaos 4.x RPM support
+
+  [ Prakash Surya ]
+  * Support debug and debug-devel sub packages
+
+  [ Darik Horn ]
+  * Refresh debian/patches after upstream merge.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Tue, 03 Jul 2012 23:57:00 -0500
+
+spl-linux (0.6.0.65-0ubuntu1) unstable; urgency=low
+
+  [ Richard Yao ]
+  * Linux 3.4 compat, __clear_close_on_exec replaces FD_CLR
+
+  [ Brian Behlendorf ]
+  * Fix uninit variable in slab reclaim test
+  * SPL 0.6.0-rc9
+
+ -- Darik Horn <dajhorn@vanadac.com>  Thu, 14 Jun 2012 15:05:12 -0500
+
+spl-linux (0.6.0.64-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * Fix invalid context bug
+
+ -- Darik Horn <dajhorn@vanadac.com>  Mon, 11 Jun 2012 22:53:39 -0500
+
+spl-linux (0.6.0.63-0ubuntu1) unstable; urgency=low
+
+  [ Jorgen Lundman ]
+  * Define the needed ISA types for ARM
+  * Add missing 64-bit divide for 32-bit ARM
+  * Fix ARM 64-bit division
+
+  [ Prakash Surya ]
+  * Throttle number of freed slabs based on nr_to_scan
+  * Ignore slab cache age and delay in direct reclaim
+  * Add SPLAT test to exercise slab direct reclaim
+
+  [ Brian Behlendorf ]
+  * Ensure direct reclaim forward progress
+  * Ensure a minimum of one slab is reclaimed
+  * Remove Solaris module emulation
+
+  [ Richard Yao ]
+  * Modify KM_PUSHPAGE to use GFP_NOIO instead of GFP_NOFS
+
+  [ Darik Horn ]
+  * Disable Ubuntu 10.10 Maverick Meerkat builds.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Fri, 01 Jun 2012 19:41:50 -0500
+
+spl-linux (0.6.0.62-0ubuntu1) unstable; urgency=low
+
+  [ Prakash Surya ]
+  * Update a comment to reflect new taskq internals
+
+  [ Darik Horn ]
+  * Refresh debian/patches after upstream merge.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Tue, 01 May 2012 14:33:03 -0500
+
+spl-linux (0.6.0.61-0ubuntu1) precise; urgency=low
+
+  * No changes.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Sun, 22 Apr 2012 08:17:49 -0500
+
+spl-linux (0.6.0.60-0ubuntu1) unstable; urgency=low
+
+  * No changes.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Sun, 22 Apr 2012 08:17:37 -0500
+
+spl-linux (0.6.0.59-0ubuntu1) unstable; urgency=low
+
+  * No changes.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Fri, 13 Apr 2012 08:58:16 -0500
+
+spl-linux (0.6.0.58-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * Remove condition variable names
+
+  [ Darik Horn ]
+  * Add dkms kernel source exception for Proxmox 2.0
+
+ -- Darik Horn <dajhorn@vanadac.com>  Mon, 09 Apr 2012 09:37:49 -0500
+
+spl-linux (0.6.0.57-0ubuntu1) unstable; urgency=low
+
+  * No changes.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Fri, 30 Mar 2012 00:07:39 -0500
+
+spl-linux (0.6.0.56-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * SPL 0.6.0-rc8
+
+ -- Darik Horn <dajhorn@vanadac.com>  Mon, 26 Mar 2012 20:46:30 -0500
+
+spl-linux (0.6.0.55-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * Add SPL_META_RELEASE to module load/unload messages
+
+ -- Darik Horn <dajhorn@vanadac.com>  Fri, 23 Mar 2012 18:39:58 -0500
+
+spl-linux (0.6.0.54-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * SPL 0.6.0-rc7
+
+ -- Darik Horn <dajhorn@vanadac.com>  Fri, 16 Mar 2012 23:31:01 -0500
+
+spl-linux (0.6.0.53-0ubuntu1) unstable; urgency=low
+
+  [ Darik Horn ]
+  * Correct the debian/changelog Upstream-Name field.
+  * Improve debian/copyright syntax conformance.
+
+  [ Brian Behlendorf ]
+  * Fix distribution detection
+
+ -- Darik Horn <dajhorn@vanadac.com>  Fri, 09 Mar 2012 20:14:25 -0600
+
+spl-linux (0.6.0.52-0ubuntu2) unstable; urgency=low
+
+  * Revert "Change POST_INSTALL to POST_BUILD in dkms.conf"
+
+ -- Darik Horn <dajhorn@vanadac.com>  Mon, 27 Feb 2012 20:19:07 -0600
+
+spl-linux (0.6.0.52-0ubuntu1) unstable; urgency=low
+
+  [ Fajar A. Nugraha ]
+  * Change POST_INSTALL to POST_BUILD in dkms.conf
+
+  [ Darik Horn ]
+  * Add machine readable debian/copyright file.
+
+  [ Brian Behlendorf ]
+  * Cleanly support debug packages
+
+ -- Darik Horn <dajhorn@vanadac.com>  Mon, 27 Feb 2012 19:19:48 -0600
+
+spl-linux (0.6.0.51-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * Add missing spl_debug_* helpers
+
+ -- Darik Horn <dajhorn@vanadac.com>  Sun, 12 Feb 2012 18:58:02 -0600
+
+spl-linux (0.6.0.50-0ubuntu1) unstable; urgency=low
+
+  * No changes.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Wed, 08 Feb 2012 17:45:20 -0600
+
+spl-linux (0.6.0.49-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * Add --enable-debug-log configure option
+  * Add basic dynamic kstat support
+
+ -- Darik Horn <dajhorn@vanadac.com>  Wed, 08 Feb 2012 17:45:10 -0600
+
+spl-linux (0.6.0.48-0ubuntu1) unstable; urgency=low
+
+  [ Ned Bass ]
+  * Revert "Taskq locking optimizations"
+  * Taskq locking optimizations
+
+ -- Darik Horn <dajhorn@vanadac.com>  Thu, 19 Jan 2012 20:17:47 -0600
+
+spl-linux (0.6.0.47-0ubuntu1) unstable; urgency=low
+
+  [ Ned Bass ]
+  * Add taskq contention splat test
+  * Taskq locking optimizations
+
+  [ Brian Behlendorf ]
+  * Add the release component to headers
+  * Fix rpm dependencies
+
+ -- Darik Horn <dajhorn@vanadac.com>  Wed, 18 Jan 2012 18:21:02 -0600
+
+spl-linux (0.6.0.46-0ubuntu1) unstable; urgency=low
+
+  * Fix `make distclean` for `--with-config=user`
+  * Remove the debian/rules `make distclean` kludge.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Wed, 18 Jan 2012 11:46:09 -0600
+
+spl-linux (0.6.0.45-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * Run SPL_AC_PACMAN only if $VENDOR is "arch"
+
+  [ Darik Horn ]
+  * Wrap long lines in the dkms.conf file.
+  * FHS conformance and DKMS multiarch, SPL interface.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Sun, 15 Jan 2012 18:35:45 -0600
+
+spl-linux (0.6.0.44-0ubuntu1) unstable; urgency=low
+
+  * Linux 3.2 compat: rw_semaphore.wait_lock is raw (Closes: #76)
+
+ -- Darik Horn <dajhorn@vanadac.com>  Thu, 12 Jan 2012 19:24:51 -0600
+
+spl-linux (0.6.0.43-0ubuntu1) unstable; urgency=low
+
+  * Add precise to the PPA build list.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Sat, 07 Jan 2012 10:39:55 -0600
+
+spl-linux (0.6.0.42-0ubuntu1) unstable; urgency=low
+
+  [ Prakash Surya ]
+  * Add make rule for building Arch Linux packages (Closes: #68)
+  * Swap taskq_ent_t with taskqid_t in taskq_thread_t
+  * Store copy of tqent_flags prior to servicing task
+  * Move Arch Linux's VENDOR check above Ubuntu's
+
+  [ Brian Behlendorf ]
+  * Proxmox VE kernel compat, invalidate_inodes()
+
+  [ Darik Horn ]
+  * Refresh debian/patches after upstream merge.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Fri, 23 Dec 2011 07:20:57 -0600
+
+spl-linux (0.6.0.41-0ubuntu1) unstable; urgency=low
+
+  [ Chris Dunlop ]
+  * Allow 64-bit timestamps to be set on 64-bit kernels
+
+  [ Prakash Surya ]
+  * Fix usage of MUTEX macro in mutex_enter_nested
+  * Add SPLAT_TEST_FINI call for SPLAT_TASKQ_TEST6_ID
+  * Replace struct spl_task with struct taskq_ent
+  * Replace tq_work_list and tq_threads in taskq_t
+  * Add Test: "Single task queue, recursive dispatch"
+  * Implement taskq_dispatch_prealloc() interface
+  * Exercise new taskq interface in splat-taskq tests
+
+ -- Darik Horn <dajhorn@vanadac.com>  Thu, 15 Dec 2011 10:07:00 -0600
+
+spl-linux (0.6.0.40-0ubuntu1) unstable; urgency=low
+
+  * No changes.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Mon, 05 Dec 2011 20:05:13 -0600
+
+spl-linux (0.6.0.39-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * Prepend spl_ to all init/fini functions
+
+  [ Prakash Surya ]
+  * Fix a typo referencing an incorrect symbol
+
+ -- Darik Horn <dajhorn@vanadac.com>  Mon, 05 Dec 2011 20:05:10 -0600
+
+spl-linux (0.6.0.38-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * Linux 3.1 compat, kern_path_parent()
+  * Linux 3.1 compat, vfs_fsync()
+  * Linux 3.1 compat, shrink_*cache_memory
+  * Fix depmod warning
+
+  [ Darik Horn ]
+  * Refresh debian/patches after upstream merge.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Fri, 11 Nov 2011 08:57:13 -0600
+
+spl-linux (0.6.0.37-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * Fix NULL deref in balance_pgdat()
+
+ -- Darik Horn <dajhorn@vanadac.com>  Sat, 05 Nov 2011 10:24:06 -0500
+
+spl-linux (0.6.0.36-0ubuntu1) unstable; urgency=low
+
+  [ Gunnar Beutner ]
+  * Fix race condition in mutex_exit()
+  * Remove the spinlocks for mutex_enter()/mutex_exit()
+  * Cleaned up MUTEX() #define
+
+  [ Brian Behlendorf ]
+  * Include distribution in release
+
+  [ Darik Horn ]
+  * Minor typo correction and comment updates.
+  * Remove redundant postinst and prerm boilerplate.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Fri, 28 Oct 2011 19:32:40 -0500
+
+spl-linux (0.6.0.35-0ubuntu2) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * Fix package URLs to use the github repository
+
+  [ Gunnar Beutner ]
+  * vn_rdwr() didn't properly advance the file position
+
+ -- Darik Horn <dajhorn@vanadac.com>  Wed, 19 Oct 2011 13:27:54 -0500
+
+spl-linux (0.6.0.34-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * Revert "Stabilize the hostid for RPM installations."
+  * Remove /etc/hostid missing warning
+  * Prep spl-0.6.0-rc6 tag
+  * Fix various typos in comments
+
+  [ Gunnar Beutner ]
+  * Fixed invalid resource re-use in file_find()
+  * Properly destroy work items in spl_kmem_cache_destroy()
+  * Fixed typo in spl_slab_alloc()
+
+  [ Darik Horn ]
+  * Add the hostid-stabilize branch as DEB patches.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Tue, 11 Oct 2011 19:08:09 -0500
+
+spl-linux (0.6.0.33-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * Fix HAVE_FS_STRUCT_SPINLOCK check for gcc-4.1.2
+
+ -- Darik Horn <dajhorn@vanadac.com>  Wed, 28 Sep 2011 22:32:44 -0500
+
+spl-linux (0.6.0.32-0ubuntu1) unstable; urgency=low
+
+  * No changes.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Fri, 09 Sep 2011 20:35:00 -0500
+
+spl-linux (0.6.0.31-0ubuntu1) unstable; urgency=low
+
+  * No changes.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Fri, 19 Aug 2011 13:04:20 -0500
+
+spl-linux (0.6.0.30-0ubuntu1) unstable; urgency=low
+
+  * No changes.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Tue, 09 Aug 2011 00:44:08 -0500
+
+spl-linux (0.6.0.29-0ubuntu1) unstable; urgency=low
+
+  * No changes.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Tue, 02 Aug 2011 10:06:23 -0500
+
+spl-linux (0.6.0.28-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * Fix the configure CONFIG_* option detection
+
+ -- Darik Horn <dajhorn@vanadac.com>  Mon, 25 Jul 2011 23:00:55 -0500
+
+spl-linux (0.6.0.27-0ubuntu1) unstable; urgency=low
+
+  * No changes.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Fri, 22 Jul 2011 14:44:38 -0500
+
+spl-linux (0.6.0.26-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * Fix 'make install' overly broad 'rm'
+
+ -- Darik Horn <dajhorn@vanadac.com>  Fri, 22 Jul 2011 14:44:14 -0500
+
+spl-linux (0.6.0.25.rc5-0ubuntu1) unstable; urgency=low
+
+  * Tagged spl-0.6.0-rc5 upstream.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Tue, 12 Jul 2011 19:16:08 -0500
+
+spl-linux (0.6.0.24.rc5-0ubuntu1+oneiric1) oneiric; urgency=low
+
+  * No changes.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Tue, 12 Jul 2011 19:15:31 -0500
+
+spl-linux (0.6.0.23.rc5-0ubuntu1+oneiric1) oneiric; urgency=low
+
+  * No changes. Topic branch for Ubuntu Oneiric.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Mon, 11 Jul 2011 20:54:19 -0500
+
+spl-linux (0.6.0.22.rc5-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * Prep spl-0.6.0-rc5 tag
+
+ -- Darik Horn <dajhorn@vanadac.com>  Sun, 03 Jul 2011 12:59:29 -0500
+
+spl-linux (0.6.0.21-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * Linux 2.6.39 compat, mutex owner
+
+ -- Darik Horn <dajhorn@vanadac.com>  Fri, 01 Jul 2011 11:35:35 -0500
+
+spl-linux (0.6.0.20-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * Avoid 'rpm -q' bug for 'make pkg'
+  * Linux 3.0: Shrinker compatibility
+  * Add linux compatibility tests
+
+  [ Darik Horn ]
+  * Read the /etc/hostid file directly.
+  * Stabilize the hostid for RPM installations.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Fri, 24 Jun 2011 13:42:39 -0500
+
+spl-linux (0.6.0.19-0ubuntu1) unstable; urgency=low
+
+  * Depend on the lsb-release package.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Sun, 19 Jun 2011 12:30:39 -0500
+
+spl-linux (0.6.0.18-0ubuntu1) unstable; urgency=low
+
+  * No changes.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Thu, 16 Jun 2011 09:30:57 -0500
+
+spl-linux (0.6.0.17-0ubuntu1) unstable; urgency=low
+
+  * No changes.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Sun, 05 Jun 2011 20:27:11 -0500
+
+spl-linux (0.6.0.16-0ubuntu1) unstable; urgency=low
+
+  * No changes.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Sat, 28 May 2011 15:40:38 -0500
+
+spl-linux (0.6.0.15-0ubuntu3) unstable; urgency=low
+
+  * No changes.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Mon, 23 May 2011 09:08:56 -0500
+
+spl-linux (0.6.0.14-0ubuntu1~natty1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * Add TASKQ_NORECLAIM flag
+
+ -- Darik Horn <dajhorn@vanadac.com>  Wed, 11 May 2011 20:30:33 -0500
+
+spl-linux (0.6.0.13.rc4-0ubuntu1) unstable; urgency=low
+
+  * Use pristine-tar to import the upstream spl-0.6.0-rc4.tar.gz release.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Thu, 05 May 2011 20:33:55 -0500
+
+spl-linux (0.6.0.12.rc4-0ubuntu2) unstable; urgency=low
+
+  * Add extended package descriptions.
+  * Add debian/copyright file.
+  * Add whackbang to the ltmain.sh script.
+  * Remove COPYING file from distribution.
+  * Add -e switch to the spl.postinst whackbang.
+  * Invoke `printf` indirectly through `which`.
+  * Add the debhelper token to the spl.postinst script.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Thu, 05 May 2011 19:13:26 -0500
+
+spl-linux (0.6.0.12.rc4-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * Prep spl-0.6.0-rc4 tag
+
+ -- Darik Horn <dajhorn@vanadac.com>  Thu, 05 May 2011 10:08:46 -0500
+
+spl-linux (0.6.0.11-0ubuntu1) unstable; urgency=low
+
+  [ Gunnar Beutner ]
+  * Renamed 'struct fid' for NFS
+
+  [ Brian Behlendorf ]
+  * Correct MAXUID
+
+ -- Darik Horn <dajhorn@vanadac.com>  Mon, 02 May 2011 18:57:12 -0500
+
+spl-linux (0.6.0.10-0ubuntu1) unstable; urgency=low
+
+  * Correct typos in the spl proc handler.
+  * Use 0.6.0.10 as the unofficial version.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Wed, 27 Apr 2011 11:39:19 -0500
+
+spl-linux (0.6.0.9-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * Linux 2.6.39 compat, DEFINE_SPINLOCK()
+  * Linux 2.6.39 compat, kern_path_parent()
+  * Linux 2.6.39 compat, zlib_deflate_workspacesize()
+  * Fix 32-bit MAXOFFSET_T definition
+
+  [ Darik Horn ]
+  * Import spl_hostid as a module parameter.
+  * Remove the gawk dependency.
+  * Make the SPL kernel messages consistent with ZFS.
+  * Use 0.6.0.9 as the unofficial version.
+  * Remove gawk packaging dependency.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Sat, 23 Apr 2011 11:04:24 -0500
+
+spl-linux (0.6.0.8-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * Fix rebuildable RPMs for el6/ch5
+  * Linux 2.6.39 compat, invalidate_inodes()
+  * Fix gcc configure warnings
+  * Fix unused variable
+
+  [ Darik Horn ]
+  * Merge upstream and use 0.6.0.8 as the unofficial version number.
+  * Use git-dch to update the debian/changelog.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Wed, 20 Apr 2011 07:40:03 -0500
+
+spl-linux (0.6.0.7-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * Add .va_dentry helper
+  * Linux shrinker compat
+  * Update /proc/spl/kmem/slab output
+  * Add slab usage summeries to /proc
+  * Decrease target objects per slab
+  * Add dnlc_reduce_cache() support
+  * Prep spl-0,6,0-rc3 tag
+
+  [ Darik Horn ]
+  * Merge upstream and use 0.6.0.7 as the unofficial version number.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Thu, 07 Apr 2011 12:27:00 -0500
+
+spl-linux (0.6.0.6-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * Update CHAOS 5 Packaging
+
+  [ Darik Horn ]
+  * Merge upstream and use 0.6.0.6 as the unofficial version number.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Tue, 05 Apr 2011 22:27:50 -0500
+
+spl-linux (0.6.0.5-0ubuntu1) unstable; urgency=low
+
+  [ Brian Behlendorf ]
+  * Remove default GFP_NOFS allocations
+  * Disable vmalloc() direct reclaim
+  * Load zlib_inflate.ko
+  * Add crgetfsuid()/crgetfsgid() helpers
+
+  [ Darik Horn ]
+  * Set extend-diff-ignore='.*' in the debian/source/options file.
+  * Add the debuild-ppa.sh script for Launchpad PPA build convenience.
+  * Add a gawk dependency to the spl-dkms package.
+  * Merge upstream and tag as the unofficial spl-0.6.0.5 release.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Tue, 22 Mar 2011 22:49:23 -0500
+
+spl-linux (0.6.0.4.rc2-0ubuntu2) unstable; urgency=low
+
+  * Stabilize the hostid for the zfs-initramfs package.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Fri, 11 Mar 2011 14:51:32 -0600
+
+spl-linux (0.6.0.4.rc2-0ubuntu1) unstable; urgency=low
+
+  * Upstream spl-0.6.0-rc2 release.
+  * Remove ${shlibs:Depends} from the spl-dkms dependencies.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Thu, 10 Mar 2011 09:14:20 -0600
+
+spl-linux (0.6.0.3.git-0ubuntu1) unstable; urgency=low
+
+  * Revert the '+' in the upstream version because it is not recognized by DKMS.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Wed, 09 Mar 2011 12:18:31 -0600
+
+spl-linux (0.6.0.3+git-0ubuntu2) unstable; urgency=low
+
+  * No changes. Increment version number for a bad build.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Wed, 09 Mar 2011 10:56:01 -0600
+
+spl-linux (0.6.0.3+git-0ubuntu1) unstable; urgency=low
+
+  * Begin using the +git upstream naming convention.
+  * Merge the behlendorf/master branch.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Wed, 09 Mar 2011 09:56:58 -0600
+
+spl-linux (0.6.0.2-0ubuntu1) unstable; urgency=low
+
+  * Merge the behlendorf/xvattr branch and tag it as 0.6.0.2 upstream.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Fri, 04 Mar 2011 19:12:16 -0600
+
+spl-linux (0.6.0.1rc-1ubuntu5) unstable; urgency=low
+
+  * Check for a Debian host in PRE_BUILD and configure for split headers.
+    See https://github.com/behlendorf/spl/issues/closed/#issue/10
+
+ -- Darik Horn <dajhorn@vanadac.com>  Sun, 27 Feb 2011 17:28:07 -0600
+
+spl-linux (0.6.0.1rc-1ubuntu4) unstable; urgency=low
+
+  * Remove the build dependency on linux-headers because it is unnecessary
+    for Ubuntu and prevents building on Debian Squeeze and Debian Sid.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Sun, 27 Feb 2011 12:55:57 -0600
+
+spl-linux (0.6.0.1rc-1ubuntu3) unstable; urgency=low
+
+  * Add version numbers to the debhelper and dkms dependencies.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Sat, 26 Feb 2011 00:58:10 -0600
+
+spl-linux (0.6.0.1rc-1ubuntu2) unstable; urgency=low
+
+  * Add fix-zlib.patch.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Fri, 25 Feb 2011 20:33:36 -0600
+
+spl-linux (0.6.0.1rc-1ubuntu1) unstable; urgency=low
+
+  * Add invalidate-inodes.patch for Linux 2.6.37,
+    which superceds the use-linux-flock-struct.patch. 
+    (Commit: 5a52a782a0a04efee3846e1a8f0bb4796930e0e4)
+  * Substitute distro names in the debian/changelog 
+    such that pkg-spl can be more generic.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Wed, 23 Feb 2011 20:55:24 -0600
+
+spl-linux (0.6.0.1rc-1ubuntu1) unstable; urgency=low
+
+  * Add use-linux-flock-struct.patch for 32-bit systems.
+    (Commit: ac35ef7e3c107e972250bcd15143328e7aef5943)
+
+ -- Darik Horn <dajhorn@vanadac.com>  Mon, 21 Feb 2011 08:48:03 -0600
+
+spl-linux (0.6.0.1rc-1ubuntu1) unstable; urgency=low
+
+  * Upstream spl-0.6.0-rc1.tar.gz release.
+  * Kludge the "rc1" version for packaging convenience.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Fri, 18 Feb 2011 19:10:09 -0600
+
+spl-linux (0.5.2-1ubuntu7) unstable; urgency=low
+
+  * Add conflict for spl-dev, which is a package in universe
+    that also installs a /usr/lib/libspl.a file.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Fri, 18 Feb 2011 17:43:52 -0600
+
+spl-linux (0.5.2-1ubuntu6) unstable; urgency=low
+
+  * Initial DKMS packaging for Debian and Ubuntu.
+
+ -- Darik Horn <dajhorn@vanadac.com>  Thu, 17 Feb 2011 18:57:36 -0600
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7f8f011
--- /dev/null
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..7d457d2
--- /dev/null
@@ -0,0 +1,36 @@
+Source: spl-linux
+Section: kernel
+Priority: extra
+Maintainer: Darik Horn <dajhorn@vanadac.com>
+Build-Depends: autotools-dev,
+ autoconf,
+ autogen,
+ automake,
+ debhelper (>= 7.4),
+ dkms (>> 2.1.1.2-5ubuntu1),
+ libtool,
+Standards-Version: 3.8.4
+Homepage: http://www.zfsonlinux.org/
+Vcs-Git: git://github.com/dajhorn/pkg-spl.git
+Vcs-Browser: https://github.com/dajhorn/pkg-spl/
+
+Package: spl-dkms
+Architecture: all
+Depends: ${misc:Depends}, dkms (>> 2.1.1.2-5ubuntu1), lsb-release
+Recommends: spl
+Description: Solaris Porting Layer kernel modules for Linux
+ The Solaris Porting Layer (SPL) is a Linux kernel module which provides many of
+ the Solaris kernel APIs. This shim layer makes it possible to run Solaris
+ kernel code in the Linux kernel with relatively minimal modification.
+ .
+ The Solaris Porting LAyer Tests (SPLAT) is a Linux kernel module which provides
+ a testing harness for the SPL module.
+
+Package: spl
+Architecture: any
+Conflicts: spl-dev
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Recommends: spl-dkms
+Description: Solaris Porting Layer utilities for Linux
+ This package provides the userspace utilities for the SPL and SPLAT Linux
+ kernel modules.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..5f1e428
--- /dev/null
@@ -0,0 +1,147 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Solaris Porting Layer for Linux
+Upstream-Contact: Brian Behlendorf <behlendorf1@llnl.gov>
+Source: https://github.com/zfsonlinux/zfs/
+Disclaimer:
+ This work was produced at the Lawrence Livermore National Laboratory
+ (LLNL) under Contract No. DE-AC52-07NA27344 (Contract 44) between
+ the U.S. Department of Energy (DOE) and Lawrence Livermore National
+ Security, LLC (LLNS) for the operation of LLNL.
+ .
+ This work was prepared as an account of work sponsored by an agency of
+ the United States Government.  Neither the United States Government nor
+ Lawrence Livermore National Security, LLC nor any of their employees,
+ makes any warranty, express or implied, or assumes any liability or
+ responsibility for the accuracy, completeness, or usefulness of any
+ information, apparatus, product, or process disclosed, or represents
+ that its use would not infringe privately-owned rights.
+ .
+ Reference herein to any specific commercial products, process, or
+ services by trade name, trademark, manufacturer or otherwise does
+ not necessarily constitute or imply its endorsement, recommendation,
+ or favoring by the United States Government or Lawrence Livermore
+ National Security, LLC.  The views and opinions of authors expressed
+ herein do not necessarily state or reflect those of the Untied States
+ Government or Lawrence Livermore National Security, LLC, and shall
+ not be used for advertising or product endorsement purposes.
+Files: *
+Copyright: Lawrence Livermore National Security, LLC.
+ The Regents of the University of California
+License: GPL-2+
+
+Files: config/config.guess
+Copyright: Free Software Foundation, Inc.
+License: GPL-2+
+
+Files: config/config.sub
+Copyright: Free Software Foundation, Inc.
+License: GPL-2+
+
+Files: config/deb.am
+Copyright: Lawrence Livermore National Security, LLC.
+License: GPL-2+
+
+Files: config/depcomp
+Copyright: Free Software Foundation, Inc.
+License: GPL-2+
+
+Files: config/install-sh
+Copyright: 1994 X Consortium
+License:
+ 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
+ X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
+ TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ .
+ Except as contained in this notice, the name of the X Consortium shall not
+ be used in advertising or otherwise to promote the sale, use or other deal-
+ ings in this Software without prior written authorization from the X Consor-
+ tium.
+
+Files: config/ltmain.sh
+Copyright: Free Software Foundation, Inc.
+License: GPL-2+
+
+Files: config/missing
+Copyright: Free Software Foundation, Inc.
+License: GPL-2+
+
+Files: config/tgz.am
+Copyright: Lawrence Livermore National Security, LLC.
+License: GPL-2+
+
+Files: debian/*
+Copyright: Darik Horn <dajhorn@vanadac.com>
+Source: https://github.com/dajhorn/pkg-spl/
+License: GPL-2+
+
+Files: include/linux/zlib_compat.h
+Copyright: Lawrence Livermore National Security, LLC.
+License: GPL-2+
+
+Files: include/rpc/xdr.h
+Copyright: Sun Microsystems, Inc.
+License: GPL-2+
+
+Files: include/sys/extdirent.h
+Copyright: Lawrence Livermore National Security, LLC.
+License: GPL-2+
+
+Files: include/sys/fcntl.h
+Copyright: Lawrence Livermore National Security, LLC.
+License: GPL-2+
+
+Files: include/sys/idmap.h
+Copyright: Lawrence Livermore National Security, LLC.
+License: GPL-2+
+
+Files: include/sys/tsd.h
+Copyright: Lawrence Livermore National Security, LLC.
+License: GPL-2+
+
+Files: include/sys/zmod.h
+Copyright: Jean-loup Gailly
+ Mark Adler
+License:
+ This software is provided 'as-is', without any express or implied
+ warranty.  In no event will the authors be held liable for any damages
+ arising from the use of this software.
+ .
+ Permission is granted to anyone to use this software for any purpose,
+ including commercial applications, and to alter it and redistribute it
+ freely, subject to the following restrictions:
+ .
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ .
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ .
+ 3. This notice may not be removed or altered from any source distribution.
+
+Files: module/spl/spl-tsd.c
+Copyright: Lawrence Livermore National Security, LLC.
+License: GPL-2+
+
+Files: module/spl/spl-xdr.c
+Copyright: Sun Microsystems, Inc.
+License: GPL-2+
+
+Files: module/splat/splat-linux.c
+Copyright: Lawrence Livermore National Security, LLC.
+License: GPL-2+
diff --git a/debian/debuild-ppa.sh b/debian/debuild-ppa.sh
new file mode 100755 (executable)
index 0000000..361f073
--- /dev/null
@@ -0,0 +1,30 @@
+#!/bin/bash
+#
+# Launchpad PPA build helper.
+#
+
+PPA_USER=${PPA_USER:-$(whoami)}
+PPA_NAME='spl'
+PPA_DISTRIBUTION_LIST='lucid natty oneiric precise'
+PPA_GENCHANGES='-sa'
+
+if [ ! -d debian/ ]
+then
+       echo 'Error: The debian/ directory is not in the current working path.'
+       exit 1
+fi
+
+for ii in $PPA_DISTRIBUTION_LIST
+do
+       # Change the first line of the debian/changelog file
+       # from: MyPackage (1.2.3-4) unstable; urgency=low
+       # to: MyPackage (1.2.3-4~distname) distname; urgency=low
+       debchange --local="~$ii" --distribution="$ii" dummy
+       sed -i -e '2,8d' debian/changelog
+
+       debuild -S "$PPA_GENCHANGES"
+       git checkout debian/changelog
+
+       # Only do a full upload on the first build.
+       PPA_GENCHANGES='-sd'
+done
diff --git a/debian/dkms b/debian/dkms
new file mode 100644 (file)
index 0000000..b349ded
--- /dev/null
@@ -0,0 +1,35 @@
+AUTOINSTALL="yes"
+PACKAGE_NAME="spl"
+PACKAGE_VERSION="#MODULE_VERSION#"
+PRE_BUILD="configure
+  --prefix=/usr
+  --with-config=kernel
+  --with-linux=$(case `lsb_release -is` in
+                   (Debian)
+                     if [ -e ${kernel_source_dir/%build/source} ]
+                     then
+                       echo ${kernel_source_dir/%build/source}
+                     else
+                       # This is a kpkg exception for Proxmox 2.0
+                      echo ${kernel_source_dir}
+                     fi
+                     ;;
+                   (*)
+                     echo ${kernel_source_dir}
+                     ;;
+                 esac)
+  --with-linux-obj=${kernel_source_dir}
+"
+POST_INSTALL="cp
+  ${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build/spl_config.h
+  ${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build/module/Module.symvers
+  ${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/${kernelver}/${arch}/
+"
+REMAKE_INITRD="no"
+MAKE[0]="make"
+BUILT_MODULE_NAME[0]="spl"
+BUILT_MODULE_LOCATION[0]="module/spl/"
+DEST_MODULE_LOCATION[0]="/extra/spl/spl"
+BUILT_MODULE_NAME[1]="splat"
+BUILT_MODULE_LOCATION[1]="module/splat/"
+DEST_MODULE_LOCATION[1]="/extra/splat/splat"
diff --git a/debian/patches/0001-Revert-Remove-etc-hostid-missing-warning.patch b/debian/patches/0001-Revert-Remove-etc-hostid-missing-warning.patch
new file mode 100644 (file)
index 0000000..25a8973
--- /dev/null
@@ -0,0 +1,31 @@
+From 7559daf38acc293474d3d2a13ecf746bc7507a11 Mon Sep 17 00:00:00 2001
+From: Darik Horn <dajhorn@vanadac.com>
+Date: Tue, 11 Oct 2011 18:32:58 -0500
+Subject: [PATCH 1/2] Revert "Remove /etc/hostid missing warning"
+
+This reverts commit 6b3b569df30d13ed7bbbff877cffc71290a52f12.
+---
+ module/spl/spl-generic.c |    6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/module/spl/spl-generic.c b/module/spl/spl-generic.c
+index cc27664..c4f4f6c 100644
+--- a/module/spl/spl-generic.c
++++ b/module/spl/spl-generic.c
+@@ -470,8 +470,12 @@ hostid_read(void)
+       file = kobj_open_file(spl_hostid_path);
+-      if (file == (struct _buf *)-1)
++      if (file == (struct _buf *)-1) {
++              printk(KERN_WARNING
++                     "SPL: The %s file is not found.\n",
++                     spl_hostid_path);
+               return -1;
++      }
+       result = kobj_get_filesize(file, &size);
+-- 
+1.7.9.5
+
diff --git a/debian/patches/0002-Revert-Revert-Stabilize-the-hostid-for-RPM-installations.patch b/debian/patches/0002-Revert-Revert-Stabilize-the-hostid-for-RPM-installations.patch
new file mode 100644 (file)
index 0000000..35888d7
--- /dev/null
@@ -0,0 +1,36 @@
+From 7d05ce4fa9d49ffa3a1d0e581a431fcd25cc28f7 Mon Sep 17 00:00:00 2001
+From: Darik Horn <dajhorn@vanadac.com>
+Date: Tue, 11 Oct 2011 18:43:41 -0500
+Subject: [PATCH 2/2] Revert "Revert "Stabilize the hostid for RPM
+ installations.""
+
+This reverts commit 39a87c69211aceef23889ceb4a33291e476237b9.
+---
+ spl-modules.spec.in |   11 +++++++++++
+ 1 file changed, 11 insertions(+)
+
+diff --git a/spl-modules.spec.in b/spl-modules.spec.in
+index d1315a2..eef2dcb 100644
+--- a/spl-modules.spec.in
++++ b/spl-modules.spec.in
+@@ -500,6 +500,17 @@ rm -rf $RPM_BUILD_ROOT
+ %{_prefix}/src/*/%{kver_kern}
+ %post
++# The /sbin/genhostid utility writes a random value to the /etc/hostid
++# file, which means that using it here will break upgrades on systems
++# that already have spl installed.
++if [ ! -f /etc/hostid ]; then
++       HOSTID=$(hostid)
++       AA=$(echo $HOSTID | cut -b 1,2)
++       BB=$(echo $HOSTID | cut -b 3,4)
++       CC=$(echo $HOSTID | cut -b 5,6)
++       DD=$(echo $HOSTID | cut -b 7,8)
++       "$(which printf)" "\x$DD\x$CC\x$BB\x$AA" >"/etc/hostid"
++fi
+ if [ -f /boot/System.map-%{kver_kern} ]; then
+       /sbin/depmod -ae -F /boot/System.map-%{kver_kern} %{kver_kern} || exit 0
+ else
+-- 
+1.7.9.5
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..4bfee2f
--- /dev/null
@@ -0,0 +1,3 @@
+volatile-version.patch
+0001-Revert-Remove-etc-hostid-missing-warning.patch
+0002-Revert-Revert-Stabilize-the-hostid-for-RPM-installations.patch
diff --git a/debian/patches/volatile-version.patch b/debian/patches/volatile-version.patch
new file mode 100644 (file)
index 0000000..6561633
--- /dev/null
@@ -0,0 +1,12 @@
+Index: b/META
+===================================================================
+--- a/META
++++ b/META
+@@ -1,6 +1,6 @@
+ Meta:         1
+ Name:         spl
+ Branch:       1.0
+-Version:      0.6.0
++Version:      0.6.0.76
+ Release:      rc10
+ Release-Tags: relext
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..0769522
--- /dev/null
@@ -0,0 +1,46 @@
+#!/usr/bin/make -f
+
+NAME := $(shell awk '/^Name:/{print $$2}' META)
+VERSION := $(shell awk '/^Version:/{print $$2}' META)
+
+%:
+       dh $@
+
+override_dh_auto_configure:
+       ./autogen.sh
+
+       # Build the userland, but don't build the kernel modules.
+       ./configure --prefix=/usr --with-config=user
+       
+override_dh_auto_test:
+       # scripts/check.sh tries insmod and rmmod, so it cannot
+       # run in an unprivileged build environment.
+
+override_dh_auto_install:
+       # Install the utilities.
+       make install DESTDIR='$(CURDIR)/debian/tmp'
+
+       # Create a dummy hostid file for the zfs-initramfs package.
+       # NB: Commentary in the spl.postinst script.
+       mkdir -p '$(CURDIR)/debian/tmp/etc/'
+       /usr/bin/printf '\xFF\xFF\xFF\xFF' >'$(CURDIR)/debian/tmp/etc/hostid'
+
+       # Get a bare copy of the source code.
+       # This creates the $(CURDIR)/$(NAME)-$(VERSION)/ tree.
+       make distdir
+
+       # Delete boilerplate to satisfy the lintian extra-license-file check.
+       rm '$(CURDIR)/$(NAME)-$(VERSION)/COPYING'
+
+       # This shunt allows DKMS to install the Module.symvers and spl_config.h
+       # files to the ${dkms_tree} area through the POST_INSTALL directive.
+       echo '#!/bin/sh'  >'$(CURDIR)/$(NAME)-$(VERSION)/cp'
+       echo 'cp "$$@"'  >>'$(CURDIR)/$(NAME)-$(VERSION)/cp'
+       chmod 755 '$(CURDIR)/$(NAME)-$(VERSION)/cp'
+
+       # Install the DKMS source.
+       mkdir -p '$(CURDIR)/debian/tmp/usr/src/'
+       mv '$(CURDIR)/$(NAME)-$(VERSION)' '$(CURDIR)/debian/tmp/usr/src/'
+
+       # Install the dkms.conf file.
+       dh_dkms -V $(VERSION)
diff --git a/debian/source/format b/debian/source/format
new file mode 100644 (file)
index 0000000..163aaf8
--- /dev/null
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/options b/debian/source/options
new file mode 100644 (file)
index 0000000..707e48b
--- /dev/null
@@ -0,0 +1 @@
+extend-diff-ignore='.*'
diff --git a/debian/spl-dkms.install b/debian/spl-dkms.install
new file mode 100644 (file)
index 0000000..18576fe
--- /dev/null
@@ -0,0 +1,3 @@
+usr/src/spl-*/AUTHORS  usr/share/doc/spl-dkms/
+usr/src/spl-*/DISCLAIMER       usr/share/doc/spl-dkms/
+usr/src
diff --git a/debian/spl-dkms.postinst b/debian/spl-dkms.postinst
new file mode 100644 (file)
index 0000000..07fe0c2
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh -e
+
+#DEBHELPER#
diff --git a/debian/spl-dkms.prerm b/debian/spl-dkms.prerm
new file mode 100644 (file)
index 0000000..07fe0c2
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh -e
+
+#DEBHELPER#
diff --git a/debian/spl.install b/debian/spl.install
new file mode 100644 (file)
index 0000000..20b5b8c
--- /dev/null
@@ -0,0 +1,2 @@
+etc/hostid
+usr/sbin
diff --git a/debian/spl.postinst b/debian/spl.postinst
new file mode 100644 (file)
index 0000000..ecbc4cc
--- /dev/null
@@ -0,0 +1,59 @@
+#!/bin/sh -e
+
+# The hostname and hostid of the last system to access a ZFS pool are stored in
+# the ZFS pool itself.  A pool is foreign if, during `zpool import`, the
+# current hostname and hostid are different than the stored values thereof.
+#
+# The hostname and hostid on Solaris are intrinsic, but they are not on Linux,
+# so the spl kernel module invokes /bin/hostname and /usr/bin/hostid from the
+# userland in its initialization routine.
+#
+# However, these two indentifiers are usually undefined in the Linux initramfs
+# environment, so the /etc/hostname and /etc/hostid files must be added to the
+# initrd.  Things like a DHCP lease change can affect the hostid too.
+#
+# ZFS requires stable values for hostname and hostid, but basic Linux systems
+# do not.  The hostid is therefore stabilized by creating the /etc/hostid file
+# in the regular environment if it does not already exist.  An undefined
+# hostname is usuallly stable.
+#
+# Neither /etc/hostname nor /etc/hostid are controlled configuration files in
+# Debian distributions, but the spl package nevertheless installs a dummy
+# /etc/hostid file that contains the HW_INVALID_HOSTID sentinal value so that
+# the package manager will track it.
+
+# This result is always an eight-character hexadecimal number sans the 0x
+# prefix.  Remember that /usr/bin/hostid generates a value if the /etc/hostid
+# file doesn't exist or is malformed.
+HOSTID=$(hostid)
+
+if [ -f /etc/hostid -a "0x$HOSTID" != "0xffffffff" ]
+then
+       # This system already has a stable hostid.
+       exit 0
+fi
+
+# Truncate the dummy file and generate the actual system hostid.
+: >/etc/hostid
+HOSTID=$(hostid)
+
+# @TODO: Check whether this method is appropriate for gethostid(2) on big
+# endian systems. (Update: It isn't.)
+#
+# The /etc/hostname file on i386 and amd64 systems must be a little endian
+# integer of exacly four bytes.  Regardless, a consistent hostid is more
+# important than a correct byte order here.
+
+# Conveniences like a ${HOSTID:$ii:2} substring range or a `sed` one-liner
+# are prohibited here because this file must be dash-compatible by policy.
+AA=$(echo $HOSTID | cut -b 1,2)
+BB=$(echo $HOSTID | cut -b 3,4)
+CC=$(echo $HOSTID | cut -b 5,6)
+DD=$(echo $HOSTID | cut -b 7,8)
+
+# Invoke the external printf because the dash builtin lacks the byte format.
+"$(which printf)" "\x$DD\x$CC\x$BB\x$AA" >"/etc/hostid"
+
+# @ASSERT: [ "$HOSTID" = "$(hostid)" ]
+
+#DEBHELPER#
diff --git a/debian/watch b/debian/watch
new file mode 100644 (file)
index 0000000..b2a39f3
--- /dev/null
@@ -0,0 +1,2 @@
+version=3
+http://githubredir.debian.net/github/behlendorf/spl/([\d\.].*).tar.gz