summaryrefslogtreecommitdiff
path: root/dh_makeshlibs
diff options
context:
space:
mode:
Diffstat (limited to 'dh_makeshlibs')
-rwxr-xr-xdh_makeshlibs7
1 files changed, 6 insertions, 1 deletions
diff --git a/dh_makeshlibs b/dh_makeshlibs
index a9770717..6c708e86 100755
--- a/dh_makeshlibs
+++ b/dh_makeshlibs
@@ -15,7 +15,12 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
open (FIND, "find $TMP -xtype f -name '*.so.*' |");
while (<FIND>) {
chomp;
- ($library, $major)=m#.*/(.*)\.so\.(\d*)\.?#;
+ # The second evil regexp is for db3, whose author should
+ # be shot.
+ if (m#.*/(.*)\.so\.(\d*)\.?# || m#.*/(.*)-(\S+)\.so$#) {
+ $library = $1;
+ $major = $2;
+ }
if (defined($dh{M_PARAMS}) && $dh{M_PARAMS} ne '') {
$major=$dh{M_PARAMS};
}