summaryrefslogtreecommitdiff
path: root/packages/debian/patches
diff options
context:
space:
mode:
Diffstat (limited to 'packages/debian/patches')
-rw-r--r--packages/debian/patches/00list5
-rw-r--r--packages/debian/patches/01-set_usr_lib.dpatch26
-rw-r--r--packages/debian/patches/02gzip-manpage.dpatch19
-rw-r--r--packages/debian/patches/03_change_default_browser.dpatch19
-rw-r--r--packages/debian/patches/04-install-set_usr_lib.dpatch21
-rw-r--r--packages/debian/patches/07_fix_manpath.dpatch19
6 files changed, 109 insertions, 0 deletions
diff --git a/packages/debian/patches/00list b/packages/debian/patches/00list
new file mode 100644
index 0000000..f67ce62
--- /dev/null
+++ b/packages/debian/patches/00list
@@ -0,0 +1,5 @@
+01-set_usr_lib.dpatch
+02gzip-manpage.dpatch
+03_change_default_browser.dpatch
+04-install-set_usr_lib
+07_fix_manpath.dpatch
diff --git a/packages/debian/patches/01-set_usr_lib.dpatch b/packages/debian/patches/01-set_usr_lib.dpatch
new file mode 100644
index 0000000..8fd45ca
--- /dev/null
+++ b/packages/debian/patches/01-set_usr_lib.dpatch
@@ -0,0 +1,26 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## test.dpatch by <nyall@crackfox>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad gcstarzombiepig-1.6~/bin/gcstar gcstarzombiepig-1.6/bin/gcstar
+--- gcstarzombiepig-1.6~/bin/gcstar 2009-09-20 17:12:25.000000000 -0300
++++ gcstarzombiepig-1.6/bin/gcstar 2009-09-20 17:29:43.000000000 -0300
+@@ -44,12 +44,12 @@
+ use POSIX qw(locale_h);
+
+ $ENV{GCS_BIN_DIR} = $RealBin;
+-($ENV{GCS_LIB_DIR} = $ENV{GCS_BIN_DIR}) =~ s/bin\/?$/lib\/gcstar/;
++($ENV{GCS_LIB_DIR} = $ENV{GCS_BIN_DIR}) =~ s/bin\/?$/share\/gcstar\/lib/;
+ ($ENV{GCS_SHARE_DIR} = $ENV{GCS_BIN_DIR}) =~ s/bin\/?$/share\/gcstar/;
+-use lib File::Spec->canonpath("$RealBin/../lib/gcstar");
++use lib File::Spec->canonpath("$RealBin/../share/gcstar/lib");
+ if (exists $ENV{PAR_TEMP})
+ {
+- unshift @INC, "$RealBin/../lib/gcstar";
++ unshift @INC, "$RealBin/../share/gcstar/lib";
+ }
+
+ # For win32, redirect all the output to files
diff --git a/packages/debian/patches/02gzip-manpage.dpatch b/packages/debian/patches/02gzip-manpage.dpatch
new file mode 100644
index 0000000..6829218
--- /dev/null
+++ b/packages/debian/patches/02gzip-manpage.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02gzip-manpage.dpatch by Alexander Wirt <formorer@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad gcstar-0.4.1~/install gcstar-0.4.1/install
+--- gcstar-0.4.1~/install 2006-10-14 09:25:28.000000000 +0200
++++ gcstar-0.4.1/install 2006-10-14 09:25:36.000000000 +0200
+@@ -145,7 +145,7 @@
+ mkpath $baseDir.'/man/man1';
+ my $manPage = "$baseDir/man/man1/$binName.1";
+ copy 'man/gcstar.1', $manPage;
+- `gzip -f $manPage 2>&1 >/dev/null`;
++ `gzip -f -9 $manPage 2>&1 >/dev/null`;
+
+ chmod 0755, $baseDir.'/bin/'.$binName;
+
diff --git a/packages/debian/patches/03_change_default_browser.dpatch b/packages/debian/patches/03_change_default_browser.dpatch
new file mode 100644
index 0000000..fbc093b
--- /dev/null
+++ b/packages/debian/patches/03_change_default_browser.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 03_change_default_browser.dpatch by Alexander Wirt <formorer@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad gcstar-1.2.0~/lib/gcstar/GCOptions.pm gcstar-1.2.0/lib/gcstar/GCOptions.pm
+--- gcstar-1.2.0~/lib/gcstar/GCOptions.pm 2007-08-18 14:41:14.000000000 +0200
++++ gcstar-1.2.0/lib/gcstar/GCOptions.pm 2007-09-08 22:33:51.000000000 +0200
+@@ -122,7 +122,7 @@
+ autosave => 1,
+ noautoload => 0,
+ programs => "system",
+- browser => "firefox",
++ browser => "x-www-browser",
+ player => "mplayer",
+ audio => "xmms",
+ file => "",
diff --git a/packages/debian/patches/04-install-set_usr_lib.dpatch b/packages/debian/patches/04-install-set_usr_lib.dpatch
new file mode 100644
index 0000000..0a8dc3a
--- /dev/null
+++ b/packages/debian/patches/04-install-set_usr_lib.dpatch
@@ -0,0 +1,21 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## test.dpatch by <nyall@crackfox>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad gcstar~/install gcstar/install
+--- gcstar~/install 2009-09-20 20:49:02.000000000 -0300
++++ gcstar/install 2009-09-20 20:50:50.000000000 -0300
+@@ -196,8 +196,8 @@
+ chmod 0755, $baseDir.'/bin/'.$binName;
+
+ #Copying lib
+- verbosePrint $lang{InstallCopyDirectory}, $baseDir.'/lib/gcstar';
+- recursiveCopy('lib/gcstar', $baseDir.'/lib/gcstar');
++ verbosePrint $lang{InstallCopyDirectory}, $baseDir.'/share/gcstar/lib';
++ recursiveCopy('lib/gcstar', $baseDir.'/share/gcstar/lib');
+
+ #Copying share
+ verbosePrint $lang{InstallCopyDirectory}, $baseDir.'/share/gcstar';
diff --git a/packages/debian/patches/07_fix_manpath.dpatch b/packages/debian/patches/07_fix_manpath.dpatch
new file mode 100644
index 0000000..53fb281
--- /dev/null
+++ b/packages/debian/patches/07_fix_manpath.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## test.dpatch by <nyall@crackfox>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad gcstarzombiepig-1.6~/install gcstarzombiepig-1.6/install
+--- gcstarzombiepig-1.6~/install 2009-09-20 17:32:03.000000000 -0300
++++ gcstarzombiepig-1.6/install 2009-09-20 17:33:56.000000000 -0300
+@@ -107,7 +107,7 @@
+ }
+
+ unlink $baseDir.'/bin/'.$binName;
+- unlink $baseDir.'/man/man1/'.$binName.'.1.gz';
++ unlink $baseDir.'/share/man/man1/'.$binName.'.1.gz';
+
+ # remove menu and mime items
+