]> oss.titaniummirror.com Git - cp210x.git/commitdiff
Fix source version as seen by DKMS.
authorR. Steve McKown <rsmckown@gmail.com>
Tue, 8 Dec 2009 20:10:04 +0000 (13:10 -0700)
committerR. Steve McKown <rsmckown@gmail.com>
Tue, 8 Dec 2009 20:10:04 +0000 (13:10 -0700)
The DKMS scripts assume that a package update will install software to build
at /usr/src but in a different directory.  So, an update to a package that
is just a change in the debian build stuff but not the source proper will
cause a problem, since DKMS will remove the old source dir after the new
source dir is already unpacked.  If they are the same, it breaks.  We fix this
problem by simply informing DKMS that the source version include the debian
version info as well.  So for example, instead of 0.11.2, DKMS would see
0.11.2-5.2tmi.

debian.in/postinst
debian.in/postrm
debian.in/prerm
debian.in/rules

index accd6fcfd09b3bc4201d7a2a577a5ea9c72e13cf..38105b49c8f9d88af9679ba40ba1ed3b30e42059 100755 (executable)
@@ -3,7 +3,7 @@
 set -e
 
 NAME=xxPACKAGExx
-VERSION=xxPKGVERxx
+VERSION=xxDEBVERxx
 
 case "$1" in
     configure)
index 9bf77b537947070fe2a117b70c5e964420741ed4..30f451d8534f5e630645e504a85375ad05a18a19 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 NAME=xxPACKAGExx
-VERSION=xxPKGVERxx
+VERSION=xxDEBVERxx
 
 set -e
 
index e7a02eca309effe5dfda2ca8d56004df45f338bf..9985327477610495c5e7ba89041fe3a5600ed89a 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 NAME=xxPACKAGExx
-VERSION=xxPKGVERxx
+VERSION=xxDEBVERxx
 
 set -e
 
index 4f324b6f2ac2e0699292ce0232ca4d274ed52c1e..719bceb549709cd7d619877b5ca5c2e23d7f1150 100755 (executable)
@@ -10,7 +10,7 @@
 # This file may have to be extensively modified
 
 package = xxPACKAGExx
-inst_dir = debian/tmp/usr/src/xxPACKAGExx-xxPKGVERxx
+inst_dir = debian/tmp/usr/src/xxPACKAGExx-xxDEBVERxx
 
 install_dir    = install -d -m 755
 install_file   = install -m 644