--- /dev/null
+spl-linux (0.6.0.1rc-1~maverick.2) maverick; 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-1~lucid.1) lucid; 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-1~lucid.7) lucid; 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-1~lucid.6) lucid; urgency=low
+
+ * Initial DKMS packaging for Debian and Ubuntu.
+
+ -- Darik Horn <dajhorn@vanadac.com> Thu, 17 Feb 2011 18:57:36 -0600
--- /dev/null
+Source: spl-linux
+Section: kernel
+Priority: extra
+Maintainer: Darik Horn <dajhorn@vanadac.com>
+Build-Depends: autotools-dev, debhelper, dkms, gawk, linux-headers-generic
+Standards-Version: 3.8.4
+Homepage: http://www.zfsonlinux.org/
+Vcs-Git: git://github.com/behlendorf/spl.git
+Vcs-Browser: https://github.com/behlendorf/spl/
+
+Package: spl-dkms
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, dkms
+Recommends: spl
+Description: Solaris Porting Layer kernel modules for Linux
+
+Package: spl
+Architecture: any
+Conflicts: spl-dev
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Recommends: spl-dkms
+Description: Solaris Porting Layer utilities for Linux
--- /dev/null
+AUTOINSTALL="yes"
+PACKAGE_NAME="spl"
+PACKAGE_VERSION="#MODULE_VERSION#"
+PRE_BUILD="configure --prefix=/usr --with-config=kernel --with-linux=${kernel_source_dir} --with-linux-obj=${kernel_source_dir}"
+POST_REMOVE="rm -r /usr/src/spl-#MODULE_VERSION#/${kernelver}"
+REMAKE_INITRD="no"
+MAKE[0]="make && make install-data-local && make -C include install"
+BUILT_MODULE_NAME[0]="spl"
+BUILT_MODULE_LOCATION[0]="module/spl/"
+DEST_MODULE_LOCATION[0]="/extra/spl/spl"
+MAKE[1]="true"
+BUILT_MODULE_NAME[1]="splat"
+BUILT_MODULE_LOCATION[1]="module/splat/"
+DEST_MODULE_LOCATION[1]="/extra/spl/splat"
--- /dev/null
+Index: spl-linux-0.6.0.1rc/META
+===================================================================
+--- spl-linux-0.6.0.1rc.orig/META 2011-02-18 19:28:53.352179001 -0600
++++ spl-linux-0.6.0.1rc/META 2011-02-18 19:29:03.202179002 -0600
+@@ -1,6 +1,6 @@
+ Meta: 1
+ Name: spl
+ Branch: 1.0
+-Version: 0.6.0
++Version: 0.6.0.1rc
+ Release: rc1
+ Release-Tags: relext
--- /dev/null
+kludge-version.patch
+use-linux-flock-struct.patch
--- /dev/null
+diff --git a/include/sys/fcntl.h b/include/sys/fcntl.h
+index c7bc02a..4e260a4 100644
+--- a/include/sys/fcntl.h
++++ b/include/sys/fcntl.h
+@@ -28,12 +28,10 @@
+
+ #define F_FREESP 11
+
+-typedef struct flock64 {
+- short l_type;
+- short l_whence;
+- loff_t l_start;
+- loff_t l_len;
+- pid_t l_pid;
+-} flock64_t;
++#ifdef CONFIG_64BIT
++typedef struct flock flock64_t;
++#else
++typedef struct flock64 flock64_t;
++#endif /* CONFIG_64BIT */
+
+ #endif /* _SPL_FCNTL_H */
--- /dev/null
+#!/usr/bin/make -f
+
+NAME := $(shell awk '/^Name:/{print $$2}' META)
+VERSION := $(shell awk '/^Version:/{print $$2}' META)
+
+%:
+ dh $@
+
+override_dh_auto_configure:
+ # 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'
+
+ # Get a bare copy of the source code. This creates the $(CURDIR)/$(NAME)-$(VERSION)/ tree.
+ make distdir
+
+ # This shunt allows DKMS to delete header files that are peculiar to each
+ # module instance through the POST_REMOVE directive in the dkms.conf file.
+ echo '#!/bin/sh' >'$(CURDIR)/$(NAME)-$(VERSION)/rm'
+ echo 'rm "$$@"' >>'$(CURDIR)/$(NAME)-$(VERSION)/rm'
+ chmod 755 '$(CURDIR)/$(NAME)-$(VERSION)/rm'
+
+ # 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)
+
+ # @FIXME: `make distclean` fails when --with-config=user is set.
+ # Kludge by creating dummy makefiles.
+ echo 'distclean:' >$(CURDIR)/include/Makefile
+ echo ' -rm -f Makefile' >>$(CURDIR)/include/Makefile
+ echo 'distclean:' >$(CURDIR)/module/Makefile
+ echo ' -rm -f Makefile' >>$(CURDIR)/module/Makefile
--- /dev/null
+3.0 (quilt)
--- /dev/null
+#!/bin/sh
+set -e
+
+NAME=spl
+PACKAGE_NAME=$NAME-dkms
+DEBVERS=$(dpkg-query -W -f='${Version}' $PACKAGE_NAME | awk -F- '{print $1}')
+VERSION=$(echo $DEBVERS |sed -e 's/[+-].*//' -e 's/~//g')
+
+ARCH=$(dpkg --print-architecture)
+case $ARCH in
+ amd64)
+ ARCH="x86_64"
+ ;;
+ i386)
+ ARCH="i686"
+ ;;
+ *)
+ echo "WARNING: unsupported arch: $ARCH"
+ ARCH="$ARCH"
+ ;;
+esac
+
+case "$1" in
+ configure)
+ /usr/lib/dkms/common.postinst $NAME $VERSION
+ exit $?
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
--- /dev/null
+#!/bin/sh
+set -e
+
+NAME=spl
+PACKAGE_NAME=$NAME-dkms
+DEBVERS=$(dpkg-query -W -f='${Version}' $PACKAGE_NAME | awk -F- '{print $1}')
+VERSION=$(echo $DEBVERS |sed -e 's/[+-].*//' -e 's/~//g')
+
+case "$1" in
+ remove|upgrade)
+ echo "Removing all DKMS Modules"
+ dkms remove -m $NAME -v $VERSION --all > /dev/null || echo "Ignoring error"
+ echo "Done."
+ ;;
+esac
+
+#DEBHELPER#
+
--- /dev/null
+version=3
+http://githubredir.debian.net/github/behlendorf/spl/([\d\.].*).tar.gz