+++ a/capture/ws80211_utils.c @@ -915,7 +915,7 @@ return -1; } -const char *network_manager_path = "/usr/sbin/NetworkManager"; /* Is this correct? */ +const char *network_manager_path = "@TERMUX_PREFIX@/bin/NetworkManager"; /* Is this correct? */ const char *ws80211_get_helper_path(void) { if (g_file_test(network_manager_path, G_FILE_TEST_IS_EXECUTABLE)) { return network_manager_path; +++ a/epan/dissectors/packet-snort.c @@ -115,8 +115,8 @@ /* Snort binary and config file */ #ifndef _WIN32 -static const char *pref_snort_binary_filename = "/usr/sbin/snort"; -static const char *pref_snort_config_filename = "/etc/snort/snort.conf"; +static const char *pref_snort_binary_filename = "@TERMUX_PREFIX@/sbin/snort"; +static const char *pref_snort_config_filename = "@TERMUX_PREFIX@/etc/snort/snort.conf"; #else /* Default locations from Snort Windows installer */ static const char *pref_snort_binary_filename = "C:\\Snort\\bin\\snort.exe"; +++ a/epan/maxmind_db.c @@ -86,8 +86,8 @@ { "C:\\ProgramData\\GeoIP" }, { "C:\\GeoIP" }, #else - { "/usr/share/GeoIP" }, - { "/var/lib/GeoIP" }, + { "@TERMUX_PREFIX@/share/GeoIP" }, + { "@TERMUX_PREFIX@/var/lib/GeoIP" }, #endif { NULL } }; +++ a/epan/oids.c @@ -1275,7 +1275,7 @@ g_string_append_printf(path_str, "%s", path); g_free (path); #else - g_string_append(path_str, "/usr/share/snmp/mibs"); + g_string_append(path_str, "@TERMUX_PREFIX@/share/snmp/mibs"); if (!smi_init_done) smiInit(NULL); path = smiGetPath(); +++ a/tools/lemon/lemon.c @@ -3414,7 +3414,7 @@ *cp = c; }else{ pathlist = getenv("PATH"); - if( pathlist==0 ) pathlist = ".:/bin:/usr/bin"; + if( pathlist==0 ) pathlist = ".:@TERMUX_PREFIX@/bin:@TERMUX_PREFIX@/bin/applets"; pathbuf = (char *) malloc( lemonStrlen(pathlist) + 1 ); path = (char *)malloc( lemonStrlen(pathlist)+lemonStrlen(name)+2 ); MemoryCheck(pathbuf); MemoryCheck(path); /* Fail on allocation failure. */ +++ a/wsutil/filesystem.c @@ -1138,7 +1138,7 @@ #ifdef _WIN32 return get_datafile_dir(); #else - return "/etc"; + return "@TERMUX_PREFIX@/etc"; #endif }