1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
3 Date: Wed, 12 Oct 2016 10:57:39 +0200
4 Subject: [PATCH] remove DKMS and module build
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
12 debian/control.in | 31 -------------------------
13 debian/rules | 68 +------------------------------------------------------
14 3 files changed, 1 insertion(+), 99 deletions(-)
16 diff --git a/debian/control b/debian/control
17 index 07db14a..01387e5 100644
20 @@ -8,7 +8,6 @@ Build-Depends: autogen,
24 - dkms (>> 2.2.0.2-1~),
26 Standards-Version: 4.1.2
27 Homepage: http://www.zfsonlinux.org/
28 diff --git a/debian/control.in b/debian/control.in
29 index 91242a1..5fd81aa 100644
30 --- a/debian/control.in
31 +++ b/debian/control.in
32 @@ -8,47 +8,16 @@ Build-Depends: autogen,
36 - dkms (>> 2.2.0.2-1~),
38 Standards-Version: 4.1.2
39 Homepage: http://www.zfsonlinux.org/
40 Vcs-Git: git@salsa.debian.org:zfsonlinux-team/spl.git
41 Vcs-Browser: https://salsa.debian.org/zfsonlinux-team/spl
45 -Depends: dkms (>> 2.2.1.0),
51 -Suggests: spl (>= ${source:Upstream-Version}),
53 -Conflicts: spl (<< 0.7.9~)
54 -Provides: spl-modules
55 -Description: Solaris Porting Layer kernel modules for Linux
56 - The Solaris Porting Layer (SPL) is a Linux kernel module which provides
57 - many of the Solaris kernel APIs. This shim layer makes it possible to
58 - run Solaris kernel code in the Linux kernel with relatively minimal
59 - modification. The Solaris Porting LAyer Tests (SPLAT) is a Linux kernel
60 - module which provides a testing harness for the SPL module.
62 - SPL can be particularly useful when you want to track upstream Illumos
63 - (or any other OpenSolaris fork) development closely and don't want the
64 - overhead of maintaining a large patch which converts Solaris primitives
65 - to Linux primitives.
67 - This package contains the source code for the SPL and SPLAT Linux kernel
68 - modules, which can be used with DKMS, so that local kernel modules are
69 - automatically built and installed every time the kernel packages are
73 Architecture: linux-any
74 Conflicts: spl-dev, splat
75 Depends: ${misc:Depends}, ${shlibs:Depends}
76 -Recommends: spl-modules | spl-dkms
77 Description: Solaris Porting Layer user-space utilities for Linux
78 The Solaris Porting Layer (SPL) is a Linux kernel module which provides
79 many of the Solaris kernel APIs. This shim layer makes it possible to
80 diff --git a/debian/rules b/debian/rules
81 index 3a12abc..8dca8fd 100755
84 @@ -14,12 +14,8 @@ ifndef KVERS
85 KVERS=$(shell uname -r)
88 -non_epoch_version=$(shell echo $(KVERS) | perl -pe 's/^\d+://')
90 -pmodules = $(PACKAGE)-modules-$(non_epoch_version)
93 - dh $@ --with dkms,autoreconf --parallel
94 + dh $@ --with autoreconf --parallel
96 override_dh_auto_configure:
97 sed "s/@LINUX_COMPAT@/linux-libc-dev \(<< $(shell debian/get_next.sh)\)/" debian/control.in > debian/control
98 @@ -45,69 +41,7 @@ override_dh_auto_install:
99 @# This creates the $(CURDIR)/$(NAME)-$(VERSION)/ tree.
102 - @# This shunt allows DKMS to install the Module.symvers and spl_config.h
103 - @# files to the ${dkms_tree} area through the POST_INSTALL directive.
104 - echo '#!/bin/sh' >'$(CURDIR)/$(NAME)-$(VERSION)/cp'
105 - echo 'cp "$$@"' >>'$(CURDIR)/$(NAME)-$(VERSION)/cp'
106 - chmod 755 '$(CURDIR)/$(NAME)-$(VERSION)/cp'
108 - # Install the DKMS source.
109 - mkdir -p '$(CURDIR)/debian/tmp/usr/src/'
110 - mv '$(CURDIR)/$(NAME)-$(VERSION)' '$(CURDIR)/debian/tmp/usr/src/'
113 - dh_dkms -V $(VERSION)
115 override_dh_auto_clean:
117 @if test -e META.orig; then mv META.orig META; fi
118 sed "s/@LINUX_COMPAT@/linux-libc-dev \(<< $(shell debian/get_next.sh)\)/" debian/control.in > debian/control
122 -override_dh_prep-deb-files:
123 - for templ in $(wildcard $(CURDIR)/debian/*_KVERS_*.in); do \
124 - 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' \
125 - < $$templ > `echo $$templ | sed -e 's/_KVERS_/$(KVERS)/g ; s/_ARCH_/$(DEB_HOST_ARCH)/g ; s/\.in$$//'` ; \
127 - 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' \
128 - < debian/control.modules.in > debian/control
130 -override_dh_configure_modules: override_dh_configure_modules_stamp
131 -override_dh_configure_modules_stamp:
132 - ./configure --with-config=kernel --with-linux=$(KSRC) \
133 - --with-linux-obj=$(KOBJ) \
134 - --disable-debug-kmem
135 - touch override_dh_configure_modules_stamp
137 -override_dh_binary-modules-udeb: override_dh_prep-deb-files override_dh_configure_modules
142 - $(MAKE) -C $(CURDIR)/module modules
144 - dh_installdirs -p${pmodules}-di
145 - dh_install -p${pmodules}-di
146 - dh_gencontrol -p${pmodules}-di
148 - dh_builddeb -p${pmodules}-di
150 -override_dh_binary-modules: override_dh_prep-deb-files override_dh_configure_modules
155 - $(MAKE) -C $(CURDIR)/module modules
157 - dh_installdocs -p${pmodules}
158 - dh_install -p${pmodules}
159 - dh_installchangelogs -p${pmodules}
160 - dh_compress -p${pmodules}
161 - dh_strip -p${pmodules}
162 - dh_fixperms -p${pmodules}
163 - dh_installdeb -p${pmodules}
164 - dh_gencontrol -p${pmodules}
165 - dh_md5sums -p${pmodules}
167 - dh_builddeb -p${pmodules}