DKMSFILES := module include config zfs.release.in autogen.sh META AUTHORS \
DISCLAIMER COPYRIGHT OPENSOLARIS.LICENSE README.markdown
-export SHLIB_MAJOR = 1
-
ifndef BUILD_UDEB
BUILD_UDEB=false
endif
@# This shunt allows DKMS to install the Module.symvers and zfs_config.h
@# files to the ${dkms_tree} area through the POST_INSTALL directive.
- printf '#!/bin/sh\ncp "$$@"\n' >'$(META_DISTDIR)/cp'
+ printf '#!/bin/sh\ncp "$$@"\n' > '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/cp'
chmod 755 '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(VERSION)/cp'
mkdir -p $(CURDIR)/debian/tmp/usr/lib
override_dh_makeshlibs:
dh_makeshlibs -a
ifeq ($(BUILD_UDEB), true)
- dh_makeshlibs -plibnvpair$(SHLIB_MAJOR)linux --add-udeb=libnvpair$(SHLIB_MAJOR)-udeb
- dh_makeshlibs -plibuutil$(SHLIB_MAJOR)linux --add-udeb=libuutil$(SHLIB_MAJOR)-udeb
- dh_makeshlibs -plibzfs$(SHLIB_MAJOR)linux --add-udeb=libzfs$(SHLIB_MAJOR)-udeb
- dh_makeshlibs -plibzpool$(SHLIB_MAJOR)linux --add-udeb=libzpool$(SHLIB_MAJOR)-udeb
+ dh_makeshlibs -plibnvpair1linux --add-udeb=libnvpair1-udeb
+ dh_makeshlibs -plibuutil1linux --add-udeb=libuutil1-udeb
+ dh_makeshlibs -plibzfs2linux --add-udeb=libzfs2-udeb
+ dh_makeshlibs -plibzpool2linux --add-udeb=libzpool2-udeb
dh_makeshlibs -pzfsutils-linux --add-udeb=zfsutils-udeb
- endif
+endif
override_dh_strip:
dh_strip --dbg-package=zfs-dbg
ifeq ($(BUILD_UDEB), true)
- dh_strip -plibnvpair$(SHLIB_MAJOR)-udeb
- dh_strip -plibuutil$(SHLIB_MAJOR)-udeb
- dh_strip -plibzfs$(SHLIB_MAJOR)-udeb
- dh_strip -plibzpool$(SHLIB_MAJOR)-udeb
+ dh_strip -plibnvpair1-udeb
+ dh_strip -plibuutil1-udeb
+ dh_strip -plibzfs2-udeb
+ dh_strip -plibzpool2-udeb
dh_strip -pzfsutils-udeb
endif