]> git.proxmox.com Git - mirror_zfs-debian.git/blobdiff - debian/rules
Pedantic format change
[mirror_zfs-debian.git] / debian / rules
index 9029b63d72e71d1e49cdb2f10d96bccf0a4d728d..003b9950d0d03771f1a731580f8ce5313380aeb5 100755 (executable)
@@ -8,8 +8,6 @@ VERSION := $(shell dpkg-parsechangelog \
 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
@@ -87,7 +85,7 @@ override_dh_auto_install:
 
        @# 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
@@ -102,20 +100,20 @@ override_dh_dkms:
 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