summaryrefslogtreecommitdiff
path: root/net-p2p/verlihub/files/patch-prefix-conf-dir
diff options
context:
space:
mode:
authorGabor Kovesdan <gabor@FreeBSD.org>2006-12-10 21:18:10 +0000
committerGabor Kovesdan <gabor@FreeBSD.org>2006-12-10 21:18:10 +0000
commit87f8d0699e6d2a975be721199ecab929481f12c2 (patch)
tree82af496897dc9c0f58cfbfada7ff6faffb6b563d /net-p2p/verlihub/files/patch-prefix-conf-dir
parentUpgrade to version 0.96.0626 and unbreak. (diff)
- Add rc(8) script
- Fix plugin support - Fix dependencies - Modify doc-set - Add database support for non-English hubs - Installation fixes - portlint(1) PR: ports/102406 Submitted by: Pankov Pavel <pankov_p@mail.ru> Approved by: erwin (mentor), maintainer timeout
Diffstat (limited to 'net-p2p/verlihub/files/patch-prefix-conf-dir')
-rw-r--r--net-p2p/verlihub/files/patch-prefix-conf-dir24
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;