]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
* Put the compiled modules into KPKG_DEST_DIR if set. This appears to
authorRuss Allbery <rra@debian.org>
Sun, 17 Apr 2005 02:44:02 +0000 (02:44 +0000)
committerRuss Allbery <rra@debian.org>
Sun, 17 Apr 2005 02:44:02 +0000 (02:44 +0000)
    be preferred over DEB_DEST by the make-kpkg documentation.  Thanks,
    Jonas Smedegaard.  (Closes: #206403)

debian/changelog
debian/rules

index 18f11e6d74ad1ee3de926a32bde23cb5bd09f0bb..0040c07e7858ba5f4a99ea3c5d8a9ec3110b8939 100644 (file)
@@ -2,6 +2,9 @@ openafs (1.3.81-4) UNRELEASED; urgency=low
 
   * make-kpkg doesn't run fakeroot for us but instead expects the module
     rules file to use $(ROOT_CMD) appropriately.  (Closes: #237861)
+  * Put the compiled modules into KPKG_DEST_DIR if set.  This appears to
+    be preferred over DEB_DEST by the make-kpkg documentation.  Thanks,
+    Jonas Smedegaard.  (Closes: #206403)
 
  --
 
index 55c733e833f64811fb9d24ac95460ce4d42f6777..91fb1711f50d86ddd3b228e349f240e7a0eb082c 100755 (executable)
@@ -24,11 +24,14 @@ modulepkg=$(shell echo openafs-modules-$(KVERS)${INT_SUBARCH})
 ifndef KSRC
 KSRC=/usr/src/linux
 endif
-MODDIR=..
-LINTIAN_PACKAGES= openafs-client openafs-fileserver
+ifndef KPKG_DEST_DIR
+KPKG_DEST_DIR=..
+endif
 export KSRC 
 export KVERS
+export KPKG_DEST_DIR
 
+LINTIAN_PACKAGES= openafs-client openafs-fileserver
 
 configure: configure-stamp
 configure-stamp:
@@ -172,14 +175,14 @@ binary:   binary-indep binary-arch
 
 ############################Module package support
 kdist_image:  build-modules
-       $(ROOT_CMD) $(MAKE) $(MFLAGS) -f debian/rules MODDIR=$(KSRC)/.. binary-modules
-       $(ROOT_CMD) $(MAKE) $(MFLAGS) -f debian/rules MODDIR=$(KSRC)/.. clean
+       $(ROOT_CMD) $(MAKE) $(MFLAGS) -f debian/rules binary-modules
+       $(ROOT_CMD) $(MAKE) $(MFLAGS) -f debian/rules clean
 
 kdist:  build-modules
-       $(ROOT_CMD) $(MAKE) $(MFLAGS) -f debian/rules MODDIR=$(KSRC)/.. KERNEL_DEPENDS=y binary-modules
+       $(ROOT_CMD) $(MAKE) $(MFLAGS) -f debian/rules KERNEL_DEPENDS=y binary-modules
        KSRC="$(KSRC)" KMAINT="$(KMAINT)" KEMAIL="$(KEMAIL)" \
                sh -v debian/genchanges.sh
-       $(ROOT_CMD) $(MAKE) $(MFLAGS) -f debian/rules MODDIR=$(KSRC)/.. clean
+       $(ROOT_CMD) $(MAKE) $(MFLAGS) -f debian/rules clean
 
 
 
@@ -271,4 +274,4 @@ endif
                -Pdebian/$(modulepkg)
        chown -R root.root debian/$(modulepkg)
        chmod -R go=rX debian/$(modulepkg)
-       dpkg --build debian/$(modulepkg) $(MODDIR)
+       dpkg --build debian/$(modulepkg) $(KPKG_DEST_DIR)