Hi,
The following patch changes debian/rules to install the modules in
/usr/lib/elfsh/ and updates the configure script and READMEs accordingly.
Basic testing looks ok (modload finds the modules without any problem).
Brice
diff -u elfsh-0.65rc1/debian/rules elfsh-0.65rc1/debian/rules
--- elfsh-0.65rc1/debian/rules
+++ elfsh-0.65rc1/debian/rules
@@ -33,7 +33,8 @@
dh_installdirs
install -g root -m 755 -o root vm/elfsh $(BUILD_DIR)/elfsh/usr/bin
- install -g root -m 755 -o root modules/*.so
$(BUILD_DIR)/elfsh/usr/share/elfsh
+ install -g root -m 755 -o root -d $(BUILD_DIR)/elfsh/usr/lib/elfsh
+ install -g root -m 755 -o root modules/*.so
$(BUILD_DIR)/elfsh/usr/lib/elfsh
install -g root -m 755 -o root vm/elfsh $(BUILD_DIR)/elfsh/usr/bin
install -g root -m 755 -o root vm/e2dbg.so
$(BUILD_DIR)/libelfsh0/usr/lib
install -g root -m 644 -o root libelfsh/libelfsh.a
$(BUILD_DIR)/libelfsh0-dev/usr/lib
diff -u elfsh-0.65rc1/debian/changelog elfsh-0.65rc1/debian/changelog
--- elfsh-0.65rc1/debian/changelog
+++ elfsh-0.65rc1/debian/changelog
@@ -1,3 +1,11 @@
+elfsh (0.65rc1-1.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Fix debian/rules to install modules in /usr/lib/elfsh, closes: #392412.
+ * Add 01_modules_in_usr_lib.dpatch to use modules installed in
/usr/lib/elfsh.
+
+ -- Brice Goglin <[EMAIL PROTECTED]> Fri, 29 Dec 2006 18:38:06 +0100
+
elfsh (0.65rc1-1) unstable; urgency=low
* New upstream version. (Closes: #326373)
diff -u elfsh-0.65rc1/debian/patches/00list elfsh-0.65rc1/debian/patches/00list
--- elfsh-0.65rc1/debian/patches/00list
+++ elfsh-0.65rc1/debian/patches/00list
@@ -3,0 +4 @@
+01_modules_in_usr_lib
only in patch2:
unchanged:
--- elfsh-0.65rc1.orig/debian/patches/01_modules_in_usr_lib.dpatch
+++ elfsh-0.65rc1/debian/patches/01_modules_in_usr_lib.dpatch
@@ -0,0 +1,54 @@
+#! /bin/sh -e
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Changed modules location
+
+if [ $# -ne 1 ]; then
+ echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
+ exit 1
+fi
+case "$1" in
+ -patch) patch -f --no-backup-if-mismatch -p1 < $0;;
+ -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
+ *)
+ echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
+ exit 1;;
+esac
+
+exit 0
+
[EMAIL PROTECTED]@
+
+--- elfsh-0.65rc1.orig/configure 2006-12-29 18:28:44.000000000 +0100
++++ elfsh-0.65rc1/configure 2006-12-29 18:28:56.000000000 +0100
+@@ -148,7 +148,7 @@
+ # Set default variables in case it was not precised
+
+ if [ "$MODPATHSET" != "1" ]; then
+- echo "#define ELFSH_MODPATH \"/usr/share/elfsh/\"" >> vars.h
++ echo "#define ELFSH_MODPATH \"/usr/lib/elfsh/\"" >> vars.h
+ fi
+
+ if [ "$SHELLSET" != "1" ]; then
+--- elfsh-0.65rc1.orig/modules/modflow/README 2006-12-29 18:29:47.000000000
+0100
++++ elfsh-0.65rc1/modules/modflow/README 2006-12-29 18:30:09.000000000
+0100
+@@ -109,7 +109,7 @@
+
+ (elfsh-0.62a) modload modflow
+
+-name : /usr/share/elfsh/modflow.so
++name : /usr/lib/elfsh/modflow.so
+ [*] ELFsh modflow(Apr 20 2005/15:06:49) fini -OK-
+
+ Added commands:
+--- elfsh-0.65rc1.orig/modules/modflow/README.flowjack 2006-12-29
18:30:13.000000000 +0100
++++ elfsh-0.65rc1/modules/modflow/README.flowjack 2006-12-29
18:30:17.000000000 +0100
+@@ -36,7 +36,7 @@
+ created IMMED with val = 0
+ (elfsh-0.62a) modload modflow
+
+-name : /usr/share/elfsh/modflow.so
++name : /usr/lib/elfsh/modflow.so
+ [*] ELFsh modflow(Apr 20 2005/17:22:12) fini -OK-
+
+ Added commands:
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]