+ Also install modules to '/lib/modules/<VERSION>-<ARCH>/'.
dkms (>> 2.1.1.2-5),
libtool,
linux-headers-_KVERS_-common,
- linux-headers-_KVERS_-amd64
+ linux-headers-_KVERS_-_ARCH_
Standards-Version: 3.8.4
Homepage: http://www.zfsonlinux.org/
Vcs-Git: git://anonscm.debian.org/pkg-zfsonlinux/spl.git
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-zfsonlinux/spl.git
-Package: spl-modules-_KVERS_
-Architecture: amd64
+Package: spl-modules-_KVERS_-_ARCH_
+Architecture: _ARCH_
Provides: spl-module
Description: Solaris Porting Layer kernel modules for Linux (kernel _KVERS_)
The Solaris Porting Layer (SPL) is a Linux kernel module which provides
provided for use with the Debian kernel-package utility to produce a
version of spl-module for your kernel.
-Package: spl-modules-_KVERS_-amd64-di
+Package: spl-modules-_KVERS_-_ARCH_-di
Package-Type: udeb
-Provides: spl-modules-_KVERS_-udeb
+Provides: spl-modules-_KVERS_-_ARCH_-udeb
Section: debian-installer
-Architecture: amd64
-Depends: ${shlibs:Depends}, ${misc:Depends}, zlib-modules-_KVERS_-amd64-di
+Architecture: _ARCH_
+Depends: ${shlibs:Depends}, ${misc:Depends}, zlib-modules-_KVERS_-_ARCH_-di
Description: Solaris Porting Layer kernel modules for Linux (debian-installar version for kernel _KVERS_)
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
DKMSFILES := module include config spl.release.in autogen.sh \
META AUTHORS DISCLAIMER
+ifndef DEB_HOST_ARCH
+DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
+endif
+
non_epoch_version=$(shell echo $(KVERS) | perl -pe 's/^\d+://')
PACKAGE=spl
-pmodules = $(PACKAGE)-modules-$(non_epoch_version)
+pmodules = $(PACKAGE)-modules-$(non_epoch_version)-$(DEB_HOST_ARCH)
%:
dh $@ --with dkms
override_dh_prep-deb-files:
for templ in $(wildcard $(CURDIR)/debian/*_KVERS_*.in); do \
- sed -e 's/##KVERS##/$(KVERS)/g ; s/#KVERS#/$(KVERS)/g ; s/_KVERS_/$(KVERS)/g ; s/##KDREV##/$(KDREV)/g ; s/#KDREV#/$(KDREV)/g ; s/_KDREV_/$(KDREV)/g ' \
- < $$templ > `echo $$templ | sed -e 's/_KVERS_/$(KVERS)/g' -e 's/\.in$$//'` ; \
+ sed -e 's/##KVERS##/$(KVERS)/g ; s/#KVERS#/$(KVERS)/g ; s/_KVERS_/$(KVERS)/g ; s/##KDREV##/$(KDREV)/g ; s/#KDREV#/$(KDREV)/g ; s/_KDREV_/$(KDREV)/g ; s/_ARCH_/$(DEB_HOST_ARCH)/g' \
+ < $$templ > `echo $$templ | sed -e 's/_KVERS_/$(KVERS)/g ; s/_ARCH_/$(DEB_HOST_ARCH)/g ; s/\.in$$//'` ; \
done
- sed -e 's/##KVERS##/$(KVERS)/g ; s/#KVERS#/$(KVERS)/g ; s/_KVERS_/$(KVERS)/g ; s/##KDREV##/$(KDREV)/g ; s/#KDREV#/$(KDREV)/g ; s/_KDREV_/$(KDREV)/g ' \
+ sed -e 's/##KVERS##/$(KVERS)/g ; s/#KVERS#/$(KVERS)/g ; s/_KVERS_/$(KVERS)/g ; s/##KDREV##/$(KDREV)/g ; s/#KDREV#/$(KDREV)/g ; s/_KDREV_/$(KDREV)/g ; s/_ARCH_/$(DEB_HOST_ARCH)/g' \
< debian/control.modules.in > debian/control
override_dh_configure_modules: override_dh_configure_modules_stamp
$(MAKE) -C $(CURDIR)/module modules
- dh_installdirs -p${pmodules}-amd64-di
- dh_install -p${pmodules}-amd64-di
- dh_gencontrol -p${pmodules}-amd64-di
+ dh_installdirs -p${pmodules}-di
+ dh_install -p${pmodules}-di
+ dh_gencontrol -p${pmodules}-di
- dh_builddeb -p${pmodules}-amd64-di --destdir=$(DEB_DESTDIR)
+ dh_builddeb -p${pmodules}-di --destdir=$(DEB_DESTDIR)
override_dh_binary-modules: override_dh_prep-deb-files override_dh_configure_modules
dh_testdir
--- /dev/null
+lib/modules/_KVERS_-_ARCH_/extra/spl
+lib/modules/_KVERS_-_ARCH_/extra/splat
--- /dev/null
+module/spl/spl.ko lib/modules/_KVERS_-_ARCH_/extra/spl/
+module/splat/splat.ko lib/modules/_KVERS_-_ARCH_/extra/splat/
--- /dev/null
+lib/modules/_KVERS_-_ARCH_/extra/spl
+lib/modules/_KVERS_-_ARCH_/extra/splat
--- /dev/null
+module/spl/spl.ko lib/modules/_KVERS_-_ARCH_/extra/spl/
+module/splat/splat.ko lib/modules/_KVERS_-_ARCH_/extra/splat/
+++ /dev/null
-lib/modules/_KVERS_/extra/spl
-lib/modules/_KVERS_/extra/splat
+++ /dev/null
-module/spl/spl.ko lib/modules/_KVERS_/extra/spl/
-module/splat/splat.ko lib/modules/_KVERS_/extra/splat/
+++ /dev/null
-lib/modules/_KVERS_/extra/spl
-lib/modules/_KVERS_/extra/splat
+++ /dev/null
-module/spl/spl.ko lib/modules/_KVERS_/extra/spl/
-module/splat/splat.ko lib/modules/_KVERS_/extra/splat/