]>
Commit | Line | Data |
---|---|---|
8b01c7a1 | 1 | Index: new/debian/control.in |
e37bd2eb | 2 | =================================================================== |
8b01c7a1 DM |
3 | --- new.orig/debian/control.in 2015-10-09 10:02:40.000000000 +0200 |
4 | +++ new/debian/control.in 2015-10-09 10:15:36.000000000 +0200 | |
5 | @@ -104,39 +104,9 @@ | |
69aebd73 DM |
6 | This package provides the source to the SPL kernel module in a form |
7 | suitable for use by module-assistant or kernel-package. | |
e37bd2eb DM |
8 | |
9 | -Package: zfs-dkms | |
10 | -Architecture: all | |
11 | -Pre-Depends: spl-dkms | |
12 | -Depends: dkms (>> 2.1.1.2-5), lsb-release, ${misc:Depends}, file | |
13 | -Recommends: zfsutils | |
8b01c7a1 | 14 | -Replaces: lzfs, lzfs-dkms, zfs-modules-source |
69aebd73 | 15 | -Provides: lustre-backend-fs, lzfs, lzfs-dkms, zfs-modules, zfs-modules-source |
8b01c7a1 | 16 | -Conflicts: lzfs, lzfs-dkms, zfs-modules-source |
e37bd2eb DM |
17 | -Description: Native ZFS filesystem kernel modules for Linux |
18 | - The Z file system is a pooled filesystem designed for maximum data | |
19 | - integrity, supporting data snapshots, multiple copies, and data | |
20 | - checksums. | |
21 | - . | |
22 | - This DKMS package includes the SPA, DMU, ZVOL, and ZPL components of ZFS. | |
23 | - | |
24 | -Package: zfs-dracut | |
25 | -Section: utils | |
26 | -Architecture: linux-any | |
69aebd73 DM |
27 | -Depends: dracut, |
28 | - zfs-modules | zfs-dkms | zfs-modules-source (>= ${source:Version}), | |
29 | - zfsutils, ${misc:Depends} | |
e37bd2eb DM |
30 | -Description: Native ZFS root filesystem capabilities for Linux |
31 | - The Z file system is a pooled filesystem designed for maximum data | |
32 | - integrity, supporting data snapshots, multiple copies, and data | |
33 | - checksums. | |
34 | - . | |
35 | - This package adds ZFS to the system initramfs with a hook | |
36 | - for the dracut infrastructure. | |
37 | - | |
38 | Package: zfs-initramfs | |
39 | Architecture: linux-any | |
69aebd73 DM |
40 | Depends: initramfs-tools, busybox, |
41 | - zfs-modules | zfs-dkms | zfs-modules-source (>= ${source:Version}), | |
42 | zfsutils, ${misc:Depends} | |
e37bd2eb DM |
43 | Description: Native ZFS root filesystem capabilities for Linux |
44 | The Z file system is a pooled filesystem designed for maximum data | |
8b01c7a1 | 45 | @@ -150,7 +120,6 @@ |
e37bd2eb DM |
46 | Section: admin |
47 | Architecture: linux-any | |
48 | Depends: initscripts, lsb-base, python, ${misc:Depends}, ${shlibs:Depends} | |
69aebd73 | 49 | -Recommends: zfs-modules | zfs-dkms | zfs-modules-source (>= ${source:Version}) |
e37bd2eb DM |
50 | Suggests: nfs-kernel-server, samba-common-bin (>= 3.0.23), zfs-initramfs |
51 | Conflicts: zfs, zfs-fuse | |
52 | Replaces: zfs | |
8b01c7a1 | 53 | Index: new/debian/rules |
e37bd2eb | 54 | =================================================================== |
8b01c7a1 DM |
55 | --- new.orig/debian/rules 2015-10-09 10:02:40.000000000 +0200 |
56 | +++ new/debian/rules 2015-10-09 10:14:14.000000000 +0200 | |
69aebd73 | 57 | @@ -25,12 +25,10 @@ |
e37bd2eb DM |
58 | endif |
59 | ||
60 | ifndef SPL | |
61 | -SPLSRC=/usr/src/spl-$(VERSION) | |
62 | +SPLSRC=../pkg-spl | |
63 | endif | |
64 | ||
69aebd73 | 65 | -CFG_OPTS=--with-linux=$(KSRC) \ |
e37bd2eb DM |
66 | - --with-linux-obj=$(KOBJ) \ |
67 | - --with-spl=$(SPLSRC) | |
69aebd73 | 68 | +CFG_OPTS=--with-spl=$(SPLSRC) |
e37bd2eb DM |
69 | |
70 | non_epoch_version=$(shell echo $(KVERS) | perl -pe 's/^\d+://') | |
71 | PACKAGE=zfs | |
69aebd73 | 72 | @@ -83,42 +81,6 @@ |
e37bd2eb DM |
73 | @# Install the utilities. |
74 | $(MAKE) install DESTDIR='$(CURDIR)/debian/tmp' | |
75 | ||
76 | - @# Get a bare copy of the source code for DKMS. | |
77 | - @# This creates the $(CURDIR)/$(NAME)-$(VERSION)/ tree, which does not | |
78 | - @# contain the userland sources. NB: Remove-userland-dist-rules.patch | |
79 | - $(MAKE) distdir | |
80 | - | |
81 | - @# Install the DKMS source. | |
82 | - @# We only want the files needed to build the modules | |
83 | - mkdir -p '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)' | |
84 | - touch '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/.nogitrelease' | |
85 | - cp '$(CURDIR)/autogen.sh' '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/' | |
86 | - ( for d in include module config; do \ | |
87 | - rm -Rf $(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/$$d; \ | |
88 | - done) | |
89 | - $(foreach file,$(DKMSFILES),mv '$(CURDIR)/$(NAME)-$(VERSION)/$(file)' '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)' || exit 1;) | |
90 | - @# Hellish awk line: | |
91 | - @# * Deletes from configure.ac the parts not needed for building the kernel module | |
92 | - @# * It deletes from inside AC_CONFIG_FILES([]) everything except: | |
93 | - @# (Makefile$|include/|module/|*.release$) | |
94 | - @# * Takes care of spaces and tabs | |
95 | - awk '/^AC_CONFIG_FILES\(\[/,/^\]\)/ { if ($$0 !~ /^(AC_CONFIG_FILES\(\[([ \t]+)?$$|\]\)([ \t]+)?$$|([ \t]+)?(include\/|module\/|Makefile([ \t]+)?$$|zfs\.release([ \t]+)?$$))/){next} } {print}' \ | |
96 | - '$(CURDIR)/$(NAME)-$(VERSION)/configure.ac' > '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/configure.ac' | |
97 | - @# Set "SUBDIRS = module include" for CONFIG_KERNEL and remove SUBDIRS for all other configs. | |
98 | - sed '1,/CONFIG_KERNEL/s/SUBDIRS.*=.*//g;s/SUBDIRS.*=.*/SUBDIRS = module include/g;' \ | |
99 | - '$(CURDIR)/$(NAME)-$(VERSION)/Makefile.am' > '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/Makefile.am' | |
100 | - @# Sanity test | |
101 | - grep -q 'SUBDIRS = module include' '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/Makefile.am' | |
102 | - @# Run autogen on the stripped source tree | |
103 | - cd '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)'; ./autogen.sh | |
104 | - rm -fr '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/autom4te.cache' | |
105 | - | |
106 | - @# This shunt allows DKMS to install the Module.symvers and zfs_config.h | |
107 | - @# files to the ${dkms_tree} area through the POST_INSTALL directive. | |
108 | - echo '#!/bin/sh' >'$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/cp' | |
109 | - echo 'cp "$$@"' >>'$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/cp' | |
110 | - chmod 755 '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/cp' | |
111 | - | |
112 | mkdir -p $(CURDIR)/debian/tmp/usr/lib | |
113 | for i in `ls $(CURDIR)/debian/tmp/lib/*.so`; do \ | |
114 | ln -s /lib/`readlink $${i}` $(CURDIR)/debian/tmp/usr/lib/`basename $${i}`; \ | |
69aebd73 | 115 | @@ -137,28 +99,6 @@ |
e37bd2eb DM |
116 | # Fix the includes according to https://github.com/zfsonlinux/zfs/issues/2903 |
117 | ./debian/fix_includes-libspl.sh | |
69aebd73 DM |
118 | |
119 | - @# Duplicate the dkms directory for module-assistant source package | |
120 | - install -d $(CURDIR)/debian/tmp/usr/src/modules | |
121 | - cp -r $(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION) $(CURDIR)/debian/tmp/usr/src/modules/$(PACKAGE) | |
122 | - mkdir -p $(CURDIR)/debian/tmp/usr/src/modules/$(PACKAGE)/debian | |
123 | - cp debian/copyright debian/module/* \ | |
124 | - $(CURDIR)/debian/tmp/usr/src/modules/$(PACKAGE)/debian/ | |
125 | - sed 's/^zfs-linux /zfs-modules /' debian/changelog \ | |
126 | - > $(CURDIR)/debian/tmp/usr/src/modules/$(PACKAGE)/debian/changelog | |
127 | - chmod 755 $(CURDIR)/debian/tmp/usr/src/modules/$(PACKAGE)/debian/rules | |
128 | - chown -R root.src $(CURDIR)/debian/tmp | |
129 | - find $(CURDIR)/debian/tmp/usr/src -type d | xargs chmod 755 | |
130 | - find $(CURDIR)/debian/tmp/usr/src -type f -perm -100 | xargs chmod 755 | |
131 | - find $(CURDIR)/debian/tmp/usr/src -type f -not -perm -100 | xargs chmod 644 | |
132 | - chmod 775 $(CURDIR)/debian/tmp/usr/src/modules | |
133 | - cd $(CURDIR)/debian/tmp/usr/src && tar cf $(PACKAGE).tar modules | |
134 | - rm -Rf $(CURDIR)/debian/tmp/usr/src/modules | |
135 | - bzip2 $(CURDIR)/debian/tmp/usr/src/$(PACKAGE).tar | |
136 | - chmod 644 $(CURDIR)/debian/tmp/usr/src/$(PACKAGE).tar.bz2 | |
137 | - install -d $(CURDIR)/debian/zfs-modules-source/usr/src | |
138 | - mv $(CURDIR)/debian/tmp/usr/src/$(PACKAGE).tar.bz2 $(CURDIR)/debian/zfs-modules-source/usr/src/ | |
139 | - rm -Rf $(CURDIR)/debian/zfs-modules-source/usr/src/$(NAME)-$(VERSION) | |
140 | - | |
141 | override_dh_installinit: | |
142 | @# Install systemd files | |
143 | dh_systemd_enable -pzfsutils etc/systemd/system/zfs.target |