summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsL1pKn072019-02-03 01:20:19 +0100
committersL1pKn072019-02-03 01:20:19 +0100
commit2ccbf5c023120854777f5d5d69389c1f74c57ae9 (patch)
tree125d293350fb3149927ee6f0ac6934dc321b0312
parentb178be772bf071d43e51b323a703a339b98154af (diff)
downloadaur-2ccbf5c023120854777f5d5d69389c1f74c57ae9.tar.gz
upload patches instead url
-rw-r--r--.SRCINFO2
-rw-r--r--.gitignore3
-rw-r--r--adchpp-2.9.0-fix_log_path.patch11
-rw-r--r--adchpp-2.9.0-fix_store_files_in_config_dir_access.guard_plugin.patch20
4 files changed, 34 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1fcad3f08ea2..89b85dbd6bcb 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Sun Mar 4 13:29:24 UTC 2018
+# Sun Feb 3 00:20:14 UTC 2019
pkgbase = adchpp-hg
pkgdesc = ADCH++ is a hub software for the ADC network. (Mercurial Version)
pkgver = 2.12.1.725.c290861e08cd
diff --git a/.gitignore b/.gitignore
index 286dab4ababc..17ecdda0c529 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,4 +7,5 @@
!adchpp.sysuser
!adchpp.tmpfile
!adchpp.sh
-
+!adchpp-2.9.0-fix_store_files_in_config_dir_access.guard_plugin.patch
+!adchpp-2.9.0-fix_log_path.patch
diff --git a/adchpp-2.9.0-fix_log_path.patch b/adchpp-2.9.0-fix_log_path.patch
new file mode 100644
index 000000000000..81dd675d3971
--- /dev/null
+++ b/adchpp-2.9.0-fix_log_path.patch
@@ -0,0 +1,11 @@
+--- adchpp/LogManager.cpp 2013-05-21 14:12:26.028801359 +0200
++++ adchpp/LogManager.cpp-new 2013-05-21 14:55:19.793611710 +0200
+@@ -44,7 +44,7 @@
+ dcdebug("Logging: %s\n", msg.c_str());
+ signalLog_(msg);
+ if(getEnabled()) {
+- string logFile = Util::formatTime(File::makeAbsolutePath(core.getConfigPath(), getLogFile()));
++ string logFile = Util::formatTime(File::makeAbsolutePath(getLogFile()));
+ FastMutex::Lock l(mtx);
+ try {
+ File f(logFile, File::WRITE, File::OPEN | File::CREATE);
diff --git a/adchpp-2.9.0-fix_store_files_in_config_dir_access.guard_plugin.patch b/adchpp-2.9.0-fix_store_files_in_config_dir_access.guard_plugin.patch
new file mode 100644
index 000000000000..57bb2c33806c
--- /dev/null
+++ b/adchpp-2.9.0-fix_store_files_in_config_dir_access.guard_plugin.patch
@@ -0,0 +1,20 @@
+--- plugins/Script/examples/access.guard.lua 2012-10-23 18:29:12.000000000 +0200
++++ plugins/Script/examples/access.guard.lua-new 2013-05-21 13:58:43.667172013 +0200
+@@ -56,7 +56,7 @@
+ local li_settings_file = adchpp.Util_getCfgPath() .. "li_settings.txt"
+ local en_settings_file = adchpp.Util_getCfgPath() .. "en_settings.txt"
+ local fldb_folder = "FL_DataBase"
+-local script_path = base.scriptPath .. '/'
++local script_path = adchpp.Util_getCfgPath() .. '/'
+ local fldb_path = script_path .. fldb_folder .. '/'
+ local fldb_path = string.gsub(fldb_path, '\\', '/')
+ local fldb_path = string.gsub(fldb_path, '//+', '/')
+@@ -166,7 +166,7 @@
+ local file = io.open(tmpbanstats_file, "r")
+ if not file then
+ log('The folder '.. fldb_path .. ' was not found, creating it ...')
+- fldb_folder_exist = os.execute("mkdir ".. fldb_folder)
++ fldb_folder_exist = os.execute("mkdir ".. fldb_path)
+ else
+ file:close()
+ end