fi
;;
+ *-*-*-android*)
-+ alpine_SSLDIR="/data/data/com.termux/files/usr/etc/tls"
++ alpine_SSLDIR="@TERMUX_PREFIX@/etc/tls"
+ alpine_SSLCERTS="$alpine_SSLDIR/certs"
+ alpine_SSLKEYS="$alpine_SSLDIR/private"
-+ alpine_SSLINCLUDE="/data/data/com.termux/files/usr/include/openssl"
-+ alpine_SSLLIB="/data/data/com.termux/files/usr/lib"
++ alpine_SSLINCLUDE="@TERMUX_PREFIX@/include/openssl"
++ alpine_SSLLIB="@TERMUX_PREFIX@/lib"
+ alpine_path_delim="/"
+ ;;
*-apple-darwin*)
##
#
-#visualizer_fifo_path = /tmp/mpd.fifo
-+visualizer_fifo_path = "/data/data/com.termux/files/usr/tmp/mpd.fifo"
++visualizer_fifo_path = "@TERMUX_PREFIX@/tmp/mpd.fifo"
+visualizer_output_name = "my_fifo"
+visualizer_sync_interval = "30"
+visualizer_in_stereo = "yes"
#define DEFAULTHISTHEIGHT 100
#if defined(NAME_MAX) && NAME_MAX < 16
-# define DEFAULT_BUFFERFILE "/tmp/screen-xchg"
-+# define DEFAULT_BUFFERFILE "/data/data/com.termux/files/usr/tmp/screen-xchg"
++# define DEFAULT_BUFFERFILE "@TERMUX_PREFIX@/tmp/screen-xchg"
#else
-# define DEFAULT_BUFFERFILE "/tmp/screen-exchange"
-+# define DEFAULT_BUFFERFILE "/data/data/com.termux/files/usr/tmp/screen-exchange"
++# define DEFAULT_BUFFERFILE "@TERMUX_PREFIX@/tmp/screen-exchange"
#endif
#ifndef _WIN32
if (!conf_fname)
- conf_fname = "/etc/resolv.conf";
-+ conf_fname = "/data/data/com.termux/files/usr/etc/resolv.conf";
++ conf_fname = "@TERMUX_PREFIX@/etc/resolv.conf";
#endif
flags = DNS_OPTIONS_ALL;
OPEN("/dev/urandom");
OPEN("/dev/random");
- OPEN("/etc/hosts");
-+ OPEN("/data/data/com.termux/files/usr/etc/hosts");
++ OPEN("@TERMUX_PREFIX@/etc/hosts");
OPEN("/proc/meminfo");
if (options->BridgeAuthoritativeDir)
tor_strdup(options->ServerDNSResolvConfFile));
else
- sandbox_cfg_allow_open_filename(&cfg, tor_strdup("/etc/resolv.conf"));
-+ sandbox_cfg_allow_open_filename(&cfg, tor_strdup("/data/data/com.termux/files/usr/etc/resolv.conf"));
++ sandbox_cfg_allow_open_filename(&cfg, tor_strdup("@TERMUX_PREFIX@/etc/resolv.conf"));
for (i = 0; i < 2; ++i) {
if (get_torrc_fname(i)) {
OPEN_DATADIR_SUFFIX("router-stability", ".tmp");
- OPEN("/etc/resolv.conf");
-+ OPEN("/data/data/com.termux/files/usr/etc/resolv.conf");
++ OPEN("@TERMUX_PREFIX@/etc/resolv.conf");
RENAME_SUFFIX("fingerprint", ".tmp");
RENAME_SUFFIX2("keys", "secret_onion_key_ntor", ".tmp");