Blame pisg-0.72-systemdirs.patch
|
|
7fa6931 |
diff -up pisg-0.72/pisg.orig pisg-0.72/pisg
|
|
|
7fa6931 |
--- pisg-0.72/pisg.orig 2008-08-08 02:18:01.000000000 +0200
|
|
|
7fa6931 |
+++ pisg-0.72/pisg 2008-08-08 02:49:52.000000000 +0200
|
|
|
7fa6931 |
@@ -29,11 +29,14 @@ sub main
|
|
|
7fa6931 |
# If the script was executed as ./pisg - then we just remove
|
|
|
7fa6931 |
# everything after the last slash, if it was executed as 'perl pisg'
|
|
|
7fa6931 |
# we assume that we are executing in the current dir.
|
|
|
7fa6931 |
- if ($script_dir =~ m/\/[^\/]*$/) {
|
|
|
7fa6931 |
- $script_dir =~ s/\/[^\/]*$//;
|
|
|
7fa6931 |
- } else {
|
|
|
7fa6931 |
- $script_dir = ".";
|
|
|
7fa6931 |
- }
|
|
|
7fa6931 |
+# if ($script_dir =~ m/\/[^\/]*$/) {
|
|
|
7fa6931 |
+# $script_dir =~ s/\/[^\/]*$//;
|
|
|
7fa6931 |
+# } else {
|
|
|
7fa6931 |
+# $script_dir = ".";
|
|
|
7fa6931 |
+# }
|
|
|
7fa6931 |
+
|
|
|
7fa6931 |
+#for Fedora, use shared datadir
|
|
|
7fa6931 |
+ $script_dir = "/usr/share/pisg/";
|
|
|
7fa6931 |
|
|
|
7fa6931 |
if (!-t STDOUT) { # we are not writing to a terminal
|
|
|
7fa6931 |
push @ARGV, "--silent";
|
|
|
7fa6931 |
@@ -79,6 +82,8 @@ sub get_cmdline_options
|
|
|
7fa6931 |
modules_dir => "$script_dir/modules/", # Module search path
|
|
|
7fa6931 |
logfile => [],
|
|
|
7fa6931 |
logdir => [],
|
|
|
7fa6931 |
+#for Fedora, used system dirs
|
|
|
7fa6931 |
+ configfile => "/etc/pisg.cfg"
|
|
|
7fa6931 |
);
|
|
|
7fa6931 |
|
|
|
7fa6931 |
# Commandline options
|