diff options
Diffstat (limited to 'net-p2p/verlihub/files/patch-prefix-conf-dir')
-rw-r--r-- | net-p2p/verlihub/files/patch-prefix-conf-dir | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/net-p2p/verlihub/files/patch-prefix-conf-dir b/net-p2p/verlihub/files/patch-prefix-conf-dir new file mode 100644 index 000000000000..c935a86f12cb --- /dev/null +++ b/net-p2p/verlihub/files/patch-prefix-conf-dir @@ -0,0 +1,24 @@ +Index: src/verlihub.cpp +=================================================================== +RCS file: /cvsroot/verlihub/verlihub/src/verlihub.cpp,v +retrieving revision 1.14 +diff -u -r1.14 verlihub.cpp +--- src/verlihub.cpp 24 Apr 2005 19:35:30 -0000 1.14 ++++ src/verlihub.cpp 8 Dec 2006 21:08:11 -0000 +@@ -25,6 +25,7 @@ + #include <sstream> + #include <signal.h> + #include <dirent.h> ++#include <dirsettings.h> + #include "script_api.h" + + using namespace std; +@@ -81,6 +82,8 @@ + const char *DirName = NULL; + char *HomeDir = getenv("HOME"); + string tmp; ++ DirName = PREFIXDIR "/etc/verlihub"; ++ if ((DirName != NULL) && DirExists(DirName)) ConfigBase = DirName; + if (HomeDir) + { + tmp = HomeDir; |