Use quilt to fix the path in the startup file
authorAndrew Ruthven <andrew@etc.gen.nz>
Sat, 16 Feb 2019 12:07:10 +0000 (12:07 +0000)
committerAndrew Ruthven <andrew@etc.gen.nz>
Sat, 16 Feb 2019 12:07:10 +0000 (12:07 +0000)
.pc/.quilt_patches [new file with mode: 0644]
.pc/.quilt_series [new file with mode: 0644]
.pc/.version [new file with mode: 0644]
debian/control
debian/patches/paths.diff [new file with mode: 0644]
debian/patches/series [new file with mode: 0644]

diff --git a/.pc/.quilt_patches b/.pc/.quilt_patches
new file mode 100644 (file)
index 0000000..6857a8d
--- /dev/null
@@ -0,0 +1 @@
+debian/patches
diff --git a/.pc/.quilt_series b/.pc/.quilt_series
new file mode 100644 (file)
index 0000000..c206706
--- /dev/null
@@ -0,0 +1 @@
+series
diff --git a/.pc/.version b/.pc/.version
new file mode 100644 (file)
index 0000000..0cfbf08
--- /dev/null
@@ -0,0 +1 @@
+2
index 83afb51..db42a28 100755 (executable)
@@ -2,7 +2,7 @@ Source: sapphire-remote-dkms
 Section: misc
 Priority: optional
 Maintainer: Dynamic Kernel Modules Support Team <pkg-dkms-maint@lists.alioth.debian.org>
-Build-Depends: debhelper (>= 7), dkms, gawk, dh-exec
+Build-Depends: debhelper (>= 7), dkms, gawk, dh-exec, quilt
 Standards-Version: 3.8.1
 
 Package: sapphire-remote-dkms
diff --git a/debian/patches/paths.diff b/debian/patches/paths.diff
new file mode 100644 (file)
index 0000000..35e075a
--- /dev/null
@@ -0,0 +1,10 @@
+Set the path that we're installing to.
+--- a/sapphire-remote-7.1/sapphire_startup.sh
++++ b/sapphire-remote-7.1/sapphire_startup.sh
+@@ -37,5 +37,5 @@
+               fi
+       fi
+ done
+-[ -e /etc/sapphire.keymap -a -x /usr/local/bin/sapphire_keymap.sh ] && /usr/local/bin/sapphire_keymap.sh
++[ -e /etc/sapphire.keymap -a -x /usr/lib/sapphire-remote/sapphire_keymap.sh ] && /usr/lib/sapphire-remote/sapphire_keymap.sh
+ exit 0
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..5f14c60
--- /dev/null
@@ -0,0 +1 @@
+paths.diff