termux-packages/packages/radare2/paths.patch

38 lines
1.6 KiB
Diff
Raw Normal View History

2016-11-11 01:39:33 +01:00
diff -u -r ../radare2-1.0/libr/core/config.c ./libr/core/config.c
--- ../radare2-1.0/libr/core/config.c 2016-11-08 21:10:46.000000000 -0500
+++ ./libr/core/config.c 2016-11-10 07:40:51.899121470 -0500
@@ -1835,9 +1835,7 @@
2016-09-16 14:27:39 +02:00
#endif
SETCB("dir.source", "", &cb_dirsrc, "Path to find source files");
SETPREF("dir.types", "/usr/include", "Default path to look for cparse type files");
-#if __ANDROID__
2016-11-11 01:39:33 +01:00
- SETPREF("dir.projects", "/data/data/org.radare.radare2installer/radare2/projects", "Default path for projects");
2016-09-16 14:27:39 +02:00
-#elif __WINDOWS__
+#if __WINDOWS__
SETPREF("dir.projects", "~\\"R2_HOMEDIR"\\projects", "Default path for projects");
#else
SETPREF("dir.projects", "~/"R2_HOMEDIR"/projects", "Default path for projects");
2016-11-11 01:39:33 +01:00
@@ -1970,9 +1968,7 @@
2016-09-16 14:27:39 +02:00
SETI("http.maxsize", 0, "Maximum file size for upload");
SETPREF("http.bind", "localhost", "Server address");
SETPREF("http.homeroot", "~/.config/radare2/www", "http home root directory");
-#if __ANDROID__
2016-11-11 01:39:33 +01:00
- SETPREF("http.root", "/data/data/org.radare.radare2installer/www", "http root directory");
2016-09-16 14:27:39 +02:00
-#elif __WINDOWS__
+#if __WINDOWS__
SETPREF("http.root", "www", "http root directory");
#else
SETPREF("http.root", R2_WWWROOT, "http root directory");
2016-11-11 01:39:33 +01:00
diff -u -r ../radare2-1.0/libr/util/file.c ./libr/util/file.c
--- ../radare2-1.0/libr/util/file.c 2016-11-08 21:10:46.000000000 -0500
+++ ./libr/util/file.c 2016-11-10 07:42:18.409808792 -0500
@@ -808,7 +808,7 @@
path = strdup ("C:\\WINDOWS\\Temp\\");
}
2016-09-16 14:27:39 +02:00
#elif __ANDROID__
2016-11-11 01:39:33 +01:00
- char *path = strdup ("/data/data/org.radare.radare2installer/radare2/tmp");
2016-09-16 14:27:39 +02:00
+ char *path = strdup ("@TERMUX_PREFIX@/tmp");
#else
char *path = r_sys_getenv ("TMPDIR");
if (path && !*path) {