summarylogtreecommitdiffstats
path: root/res_and_conf_dirs.patch
diff options
context:
space:
mode:
authorKonstantin Shalygin2015-08-08 11:20:25 +0600
committerKonstantin Shalygin2015-08-08 11:20:25 +0600
commit33bccd5d1937c39688b404b7a4ff59a819505e5c (patch)
treefbdf321f2bb25ca38c2f5428109327b461b94156 /res_and_conf_dirs.patch
downloadaur-33bccd5d1937c39688b404b7a4ff59a819505e5c.tar.gz
Mainstream moved to github
Diffstat (limited to 'res_and_conf_dirs.patch')
-rw-r--r--res_and_conf_dirs.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/res_and_conf_dirs.patch b/res_and_conf_dirs.patch
new file mode 100644
index 000000000000..7a41da22cd29
--- /dev/null
+++ b/res_and_conf_dirs.patch
@@ -0,0 +1,36 @@
+diff -Naupr xupnpd_orig/src/main.cpp xupnpd/src/main.cpp
+--- xupnpd_orig/src/main.cpp 2015-08-01 14:24:27.000000000 +0600
++++ xupnpd/src/main.cpp 2015-08-01 14:25:51.843062978 +0600
+@@ -43,7 +43,7 @@ int main(int argc,char** argv)
+ if(fp)
+ fclose(fp);
+ else
+- rc=chdir("/usr/share/xupnpd/");
++ rc=chdir("/var/lib/xupnpd/");
+ }
+
+ lua_State* L=lua_open();
+diff -Naupr xupnpd_orig/src/xupnpd.lua xupnpd/src/xupnpd.lua
+--- xupnpd_orig/src/xupnpd.lua 2015-08-01 14:24:27.000000000 +0600
++++ xupnpd/src/xupnpd.lua 2015-08-01 14:26:57.139964797 +0600
+@@ -102,15 +102,15 @@ feeds=
+ -- log ident, pid file end www root
+ cfg.version='1.033'
+ cfg.log_ident=arg[1] or 'xupnpd'
+-cfg.pid_file='/var/run/'..cfg.log_ident..'.pid'
+-cfg.www_root='./www/'
++cfg.pid_file='/var/run/xupnpd/xupnpd.pid'
++cfg.www_root='/usr/share/xupnpd/www/'
+ cfg.tmp_path='/tmp/'
+-cfg.plugin_path='./plugins/'
++cfg.plugin_path='/usr/share/xupnpd/plugins/'
+ cfg.config_path='./config/'
+ cfg.playlists_path='./playlists/'
+ --cfg.feeds_path='/tmp/xupnpd-feeds/'
+-cfg.ui_path='./ui/'
++cfg.ui_path='/usr/share/xupnpd/ui/'
+ cfg.drive='' -- reload playlists only if drive state=active/idle, example: cfg.drive='/dev/sda'
+-cfg.profiles='./profiles/' -- device profiles feature
++cfg.profiles='/usr/share/xupnpd/profiles/' -- device profiles feature
+
+ dofile('xupnpd_main.lua')