From 9fec22bd7273aa658149e8d79c92c5b00dce78b9 Mon Sep 17 00:00:00 2001 From: Mathieu Arnold Date: Tue, 27 May 2014 23:58:42 +0000 Subject: - Fix runtime when built with clang [1] [2] - Support stage [3] - Switch to options helpers - Update patches, and rename them to follow makepatch naming MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit maintainer timeout [1] [2] [3] -> take over maintainership PR: ports/184150 [1], ports/187117 [2], ports/189615 [3] Submitted by: Ryan Frederick [1], Jean-Sébastien Pédron [2], Ryan Frederick [3] Sponsored by: Absolight --- irc/unreal/files/patch-Makefile.in | 6 ++-- irc/unreal/files/patch-config.h | 40 ---------------------- irc/unreal/files/patch-configure | 20 +++++++++++ irc/unreal/files/patch-configure.ac | 20 +++++++++++ irc/unreal/files/patch-doc__example.conf | 22 ++++++++++++ irc/unreal/files/patch-example.conf | 22 ------------ irc/unreal/files/patch-include__config.h | 40 ++++++++++++++++++++++ irc/unreal/files/patch-ircd.c | 20 ----------- irc/unreal/files/patch-modules.c | 58 -------------------------------- irc/unreal/files/patch-s_conf.c | 13 ------- irc/unreal/files/patch-src__ircd.c | 17 ++++++++++ irc/unreal/files/patch-src__modules.c | 58 ++++++++++++++++++++++++++++++++ irc/unreal/files/patch-src__s_conf.c | 11 ++++++ irc/unreal/files/patch-src__url.c | 20 +++++++++++ irc/unreal/files/patch-url.c | 20 ----------- 15 files changed, 210 insertions(+), 177 deletions(-) delete mode 100644 irc/unreal/files/patch-config.h create mode 100644 irc/unreal/files/patch-configure create mode 100644 irc/unreal/files/patch-configure.ac create mode 100644 irc/unreal/files/patch-doc__example.conf delete mode 100644 irc/unreal/files/patch-example.conf create mode 100644 irc/unreal/files/patch-include__config.h delete mode 100644 irc/unreal/files/patch-ircd.c delete mode 100644 irc/unreal/files/patch-modules.c delete mode 100644 irc/unreal/files/patch-s_conf.c create mode 100644 irc/unreal/files/patch-src__ircd.c create mode 100644 irc/unreal/files/patch-src__modules.c create mode 100644 irc/unreal/files/patch-src__s_conf.c create mode 100644 irc/unreal/files/patch-src__url.c delete mode 100644 irc/unreal/files/patch-url.c (limited to 'irc/unreal/files') diff --git a/irc/unreal/files/patch-Makefile.in b/irc/unreal/files/patch-Makefile.in index deb4a9866507..e11fab6a920a 100644 --- a/irc/unreal/files/patch-Makefile.in +++ b/irc/unreal/files/patch-Makefile.in @@ -1,7 +1,5 @@ -$FreeBSD$ - ---- Makefile.in 2011-11-05 02:25:24.000000000 -0700 -+++ Makefile.in 2011-11-28 10:21:38.000000000 -0800 +--- ./Makefile.in.orig 2013-11-24 20:24:26.000000000 +0100 ++++ ./Makefile.in 2014-05-23 00:34:32.000000000 +0200 @@ -38,7 +38,7 @@ CRYPTOLIB=@CRYPTOLIB@ OPENSSLINCLUDES= diff --git a/irc/unreal/files/patch-config.h b/irc/unreal/files/patch-config.h deleted file mode 100644 index 9b3844a4668c..000000000000 --- a/irc/unreal/files/patch-config.h +++ /dev/null @@ -1,40 +0,0 @@ ---- include/config.h 2009-04-13 13:03:57.000000000 +0200 -+++ include/config.h 2009-08-18 16:16:39.000000000 +0200 -@@ -210,16 +210,16 @@ - * these are only the recommened names and paths. Change as needed. - * You must define these to something, even if you don't really want them. - */ --#define CPATH "unrealircd.conf" /* server configuration file */ --#define MPATH "ircd.motd" /* server MOTD file */ --#define SMPATH "ircd.smotd" /* short MOTD file */ --#define RPATH "ircd.rules" /* server rules file */ --#define OPATH "oper.motd" /* Operators MOTD file */ --#define LPATH "debug.log" /* Where the debug file lives, if DEBUGMODE */ --#define PPATH "ircd.pid" /* file for server pid */ --#define VPATH "ircd.svsmotd" /* Services MOTD append. */ --#define BPATH "bot.motd" /* Bot MOTD */ --#define IRCDTUNE "ircd.tune" /* tuning .. */ -+#define CPATH "%%PREFIX%%/etc/Unreal/unrealircd.conf" /* server configuration file */ -+#define MPATH "%%PREFIX%%/etc/Unreal/ircd.motd" /* server MOTD file */ -+#define SMPATH "%%PREFIX%%/etc/Unreal/ircd.smotd" /* short MOTD file */ -+#define RPATH "%%PREFIX%%/etc/Unreal/ircd.rules" /* server rules file */ -+#define OPATH "%%PREFIX%%/etc/Unreal/oper.motd" /* Operators MOTD file */ -+#define LPATH "%%LOGDIR%%/debug.log" /* Where the debug file lives, if DEBUGMODE */ -+#define PPATH "%%RUNDIR%%/ircd.pid" /* file for server pid */ -+#define VPATH "%%PREFIX%%/etc/Unreal/ircd.svsmotd" /* Services MOTD append. */ -+#define BPATH "%%PREFIX%%/etc/Unreal/bot.motd" /* Bot MOTD */ -+#define IRCDTUNE "%%RUNDIR%%/ircd.tune" /* tuning .. */ - - /* CHROOTDIR - * -@@ -245,8 +245,8 @@ - * define IRC_USER to that user name. This should only be defined if you - * are running as root and even then perhaps not. - */ --/* #define IRC_USER "" */ --/* #define IRC_GROUP "" */ -+#define IRC_USER "%%USERS%%" -+#define IRC_GROUP "%%GROUPS%%" - - - /* SHOW_INVISIBLE_LUSERS diff --git a/irc/unreal/files/patch-configure b/irc/unreal/files/patch-configure new file mode 100644 index 000000000000..380794605cc2 --- /dev/null +++ b/irc/unreal/files/patch-configure @@ -0,0 +1,20 @@ +--- configure 2014-02-27 14:03:45.132445608 +0100 ++++ configure 2014-02-27 14:03:05.502448091 +0100 +@@ -6356,7 +6356,7 @@ + + + hold_cflags=$CFLAGS +-CFLAGS="$CFLAGS -export-dynamic" ++CFLAGS="$CFLAGS -Wl,-export-dynamic" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need the -export-dynamic flag" >&5 + $as_echo_n "checking if we need the -export-dynamic flag... " >&6; } + if ${ac_cv_export_dynamic+:} false; then : +@@ -6395,7 +6395,7 @@ + else + + if test "$ac_cv_c_compiler_gnu" = "yes"; then +- ac_cv_pic="-fPIC -DPIC -shared" ++ ac_cv_pic="-std=gnu89 -fPIC -DPIC -shared" + case `uname -s` in + Darwin*) + ac_cv_pic="-bundle -flat_namespace -undefined suppress" diff --git a/irc/unreal/files/patch-configure.ac b/irc/unreal/files/patch-configure.ac new file mode 100644 index 000000000000..c7b3f44e17fb --- /dev/null +++ b/irc/unreal/files/patch-configure.ac @@ -0,0 +1,20 @@ +--- configure.ac 2013-11-24 20:24:26.000000000 +0100 ++++ configure.ac 2014-02-27 14:02:58.916469490 +0100 +@@ -107,7 +107,7 @@ + ])]) + + hold_cflags=$CFLAGS +-CFLAGS="$CFLAGS -export-dynamic" ++CFLAGS="$CFLAGS -Wl,-export-dynamic" + AC_CACHE_CHECK(if we need the -export-dynamic flag, ac_cv_export_dynamic, [ + AC_TRY_LINK(, [int i];, ac_cv_export_dynamic=yes, ac_cv_export_dynamic=no)]) + if test "$ac_cv_export_dynamic" = "no"; then +@@ -116,7 +116,7 @@ + + AC_CACHE_CHECK(for compiler option to produce PIC,ac_cv_pic,[ + if test "$ac_cv_prog_gcc" = "yes"; then +- ac_cv_pic="-fPIC -DPIC -shared" ++ ac_cv_pic="-std=gnu89 -fPIC -DPIC -shared" + case `uname -s` in + Darwin*[)] + ac_cv_pic="-bundle -flat_namespace -undefined suppress" diff --git a/irc/unreal/files/patch-doc__example.conf b/irc/unreal/files/patch-doc__example.conf new file mode 100644 index 000000000000..f4c931173b37 --- /dev/null +++ b/irc/unreal/files/patch-doc__example.conf @@ -0,0 +1,22 @@ +--- ./doc/example.conf.orig 2013-11-24 20:24:26.000000000 +0100 ++++ ./doc/example.conf 2014-05-23 00:34:32.000000000 +0200 +@@ -33,8 +33,8 @@ + */ + + /* FOR *NIX, uncomment the following 2lines: */ +-//loadmodule "src/modules/commands.so"; +-//loadmodule "src/modules/cloak.so"; ++loadmodule "%%PREFIX%%/lib/Unreal/commands.so"; ++loadmodule "%%PREFIX%%/lib/Unreal/cloak.so"; + + /* FOR Windows, uncomment the following 2 lines: */ + //loadmodule "modules/commands.dll"; +@@ -379,7 +379,7 @@ + * }; + */ + +-log "ircd.log" { ++log "%%LOGDIR%%/ircd.log" { + /* Delete the log file and start a new one when it reaches 2MB, leave this out to always use the + same log */ + maxsize 2097152; diff --git a/irc/unreal/files/patch-example.conf b/irc/unreal/files/patch-example.conf deleted file mode 100644 index cb51bcb7a2cf..000000000000 --- a/irc/unreal/files/patch-example.conf +++ /dev/null @@ -1,22 +0,0 @@ ---- doc/example.conf 2009-04-13 13:03:55.000000000 +0200 -+++ doc/example.conf 2009-08-18 16:36:29.000000000 +0200 -@@ -33,8 +33,8 @@ - */ - - /* FOR *NIX, uncomment the following 2lines: */ --//loadmodule "src/modules/commands.so"; --//loadmodule "src/modules/cloak.so"; -+//loadmodule "%%PREFIX%%/lib/Unreal/commands.so"; -+//loadmodule "%%PREFIX%%/lib/Unreal/cloak.so"; - - /* FOR Windows, uncomment the following 2 lines: */ - //loadmodule "modules/commands.dll"; -@@ -377,7 +377,7 @@ - * }; - */ - --log "ircd.log" { -+log "%%LOGDIR%%/ircd.log" { - /* Delete the log file and start a new one when it reaches 2MB, leave this out to always use the - same log */ - maxsize 2097152; diff --git a/irc/unreal/files/patch-include__config.h b/irc/unreal/files/patch-include__config.h new file mode 100644 index 000000000000..79926fbf4061 --- /dev/null +++ b/irc/unreal/files/patch-include__config.h @@ -0,0 +1,40 @@ +--- ./include/config.h.orig 2013-11-24 20:24:26.000000000 +0100 ++++ ./include/config.h 2014-05-23 00:34:32.000000000 +0200 +@@ -242,16 +242,16 @@ + * line argument. These used as the default values for options absent from the user's + * unrealircd.conf. + */ +-#define CPATH "unrealircd.conf" /* server configuration file */ +-#define MPATH "ircd.motd" /* server MOTD file */ +-#define SMPATH "ircd.smotd" /* short MOTD file */ +-#define RPATH "ircd.rules" /* server rules file */ +-#define OPATH "oper.motd" /* Operators MOTD file */ +-#define LPATH "debug.log" /* Where the debug file lives, if DEBUGMODE */ +-#define PPATH "ircd.pid" /* file for server pid */ +-#define VPATH "ircd.svsmotd" /* Services MOTD append. */ +-#define BPATH "bot.motd" /* Bot MOTD */ +-#define IRCDTUNE "ircd.tune" /* tuning .. */ ++#define CPATH "%%PREFIX%%/etc/Unreal/unrealircd.conf" /* server configuration file */ ++#define MPATH "%%PREFIX%%/etc/Unreal/ircd.motd" /* server MOTD file */ ++#define SMPATH "%%PREFIX%%/etc/Unreal/ircd.smotd" /* short MOTD file */ ++#define RPATH "%%PREFIX%%/etc/Unreal/ircd.rules" /* server rules file */ ++#define OPATH "%%PREFIX%%/etc/Unreal/oper.motd" /* Operators MOTD file */ ++#define LPATH "%%LOGDIR%%/debug.log" /* Where the debug file lives, if DEBUGMODE */ ++#define PPATH "%%RUNDIR%%/ircd.pid" /* file for server pid */ ++#define VPATH "%%PREFIX%%/etc/Unreal/ircd.svsmotd" /* Services MOTD append. */ ++#define BPATH "%%PREFIX%%/etc/Unreal/bot.motd" /* Bot MOTD */ ++#define IRCDTUNE "%%RUNDIR%%/ircd.tune" /* tuning .. */ + + /* CHROOTDIR + * +@@ -277,8 +277,8 @@ + * define IRC_USER to that user name. This should only be defined if you + * are running as root and even then perhaps not. + */ +-/* #define IRC_USER "" */ +-/* #define IRC_GROUP "" */ ++#define IRC_USER "%%USERS%%" ++#define IRC_GROUP "%%GROUPS%%" + + + /* SHOW_INVISIBLE_LUSERS diff --git a/irc/unreal/files/patch-ircd.c b/irc/unreal/files/patch-ircd.c deleted file mode 100644 index ddd388cb4068..000000000000 --- a/irc/unreal/files/patch-ircd.c +++ /dev/null @@ -1,20 +0,0 @@ -$FreeBSD$ - ---- src/ircd.c 2011-11-05 02:25:24.000000000 -0700 -+++ src/ircd.c 2011-11-28 10:21:38.000000000 -0800 -@@ -1407,12 +1407,12 @@ - } - #endif - #ifndef _WIN32 -- mkdir("tmp", S_IRUSR|S_IWUSR|S_IXUSR); /* Create the tmp dir, if it doesn't exist */ -+ mkdir("%%RUNDIR%%/tmp", S_IRUSR|S_IWUSR|S_IXUSR); /* Create the tmp dir, if it doesn't exist */ - #if defined(USE_LIBCURL) && defined(REMOTEINC_SPECIALCACHE) - mkdir("cache", S_IRUSR|S_IWUSR|S_IXUSR); /* Create the cache dir, if using curl and it doesn't exist */ - #endif - #else -- mkdir("tmp"); -+ mkdir("%%RUNDIR%%/tmp"); - #if defined(USE_LIBCURL) && defined(REMOTEINC_SPECIALCACHE) - mkdir("cache"); - #endif - diff --git a/irc/unreal/files/patch-modules.c b/irc/unreal/files/patch-modules.c deleted file mode 100644 index 23b3ac19b4b7..000000000000 --- a/irc/unreal/files/patch-modules.c +++ /dev/null @@ -1,58 +0,0 @@ ---- src/modules.c 2009-04-13 13:03:58.000000000 +0200 -+++ src/modules.c 2009-08-20 15:32:56.000000000 +0200 -@@ -177,12 +177,12 @@ - { - char tempbuf[PATH_MAX+1]; - #ifndef _WIN32 -- DIR *fd = opendir("tmp"); -+ DIR *fd = opendir("%%RUNDIR%%/tmp"); - struct dirent *dir; - - if (!fd) /* Ouch.. this is NOT good!! */ - { -- config_error("Unable to open 'tmp' directory: %s, please create one with the appropriate permissions", -+ config_error("Unable to open '%%RUNDIR%%' directory: %s, please create one with the appropriate permissions", - strerror(errno)); - if (!loop.ircd_booted) - exit(7); -@@ -193,19 +193,19 @@ - { - if (!strcmp(dir->d_name, ".") || !strcmp(dir->d_name, "..")) - continue; -- strcpy(tempbuf, "tmp/"); -+ strcpy(tempbuf, "%%RUNDIR%%/tmp/"); - strcat(tempbuf, dir->d_name); - remove(tempbuf); - } - closedir(fd); - #else - WIN32_FIND_DATA hData; -- HANDLE hFile = FindFirstFile("tmp/*", &hData); -+ HANDLE hFile = FindFirstFile("%%RUNDIR%%/tmp/*", &hData); - if (hFile != INVALID_HANDLE_VALUE) - { - if (strcmp(hData.cFileName, ".") || strcmp(hData.cFileName, "..")) - { -- strcpy(tempbuf, "tmp/"); -+ strcpy(tempbuf, "%%RUNDIR%%/tmp/"); - strcat(tempbuf, hData.cFileName); - remove(tempbuf); - } -@@ -214,7 +214,7 @@ - { - if (!strcmp(hData.cFileName, ".") || !strcmp(hData.cFileName, "..")) - continue; -- strcpy(tempbuf, "tmp/"); -+ strcpy(tempbuf, "%%RUNDIR%%/tmp/"); - strcat(tempbuf, hData.cFileName); - remove(tempbuf); - } -@@ -323,7 +323,7 @@ - path = path_; - - -- tmppath = unreal_mktemp("tmp", unreal_getfilename(path)); -+ tmppath = unreal_mktemp("%%RUNDIR%%/tmp", unreal_getfilename(path)); - if (!tmppath) - return "Unable to create temporary file!"; - #ifndef _WIN32 diff --git a/irc/unreal/files/patch-s_conf.c b/irc/unreal/files/patch-s_conf.c deleted file mode 100644 index ca09cc844035..000000000000 --- a/irc/unreal/files/patch-s_conf.c +++ /dev/null @@ -1,13 +0,0 @@ -$FreeBSD$ - ---- src/s_conf.c 2011-11-05 02:25:24.000000000 -0700 -+++ src/s_conf.c 2011-11-28 10:21:38.000000000 -0800 -@@ -9652,7 +9652,7 @@ - { - char *urlfile = url_getfilename(url); - char *file_basename = unreal_getfilename(urlfile); -- char *tmp = unreal_mktemp("tmp", file_basename); -+ char *tmp = unreal_mktemp("%%RUNDIR%%/tmp", file); - free(urlfile); - - if (cached) diff --git a/irc/unreal/files/patch-src__ircd.c b/irc/unreal/files/patch-src__ircd.c new file mode 100644 index 000000000000..8ac99ba9bfca --- /dev/null +++ b/irc/unreal/files/patch-src__ircd.c @@ -0,0 +1,17 @@ +--- ./src/ircd.c.orig 2013-11-24 20:24:26.000000000 +0100 ++++ ./src/ircd.c 2014-05-23 00:34:32.000000000 +0200 +@@ -1410,12 +1410,12 @@ + } + #endif + #ifndef _WIN32 +- mkdir("tmp", S_IRUSR|S_IWUSR|S_IXUSR); /* Create the tmp dir, if it doesn't exist */ ++ mkdir("%%RUNDIR%%/tmp", S_IRUSR|S_IWUSR|S_IXUSR); /* Create the tmp dir, if it doesn't exist */ + #if defined(USE_LIBCURL) && defined(REMOTEINC_SPECIALCACHE) + mkdir("cache", S_IRUSR|S_IWUSR|S_IXUSR); /* Create the cache dir, if using curl and it doesn't exist */ + #endif + #else +- mkdir("tmp"); ++ mkdir("%%RUNDIR%%/tmp"); + #if defined(USE_LIBCURL) && defined(REMOTEINC_SPECIALCACHE) + mkdir("cache"); + #endif diff --git a/irc/unreal/files/patch-src__modules.c b/irc/unreal/files/patch-src__modules.c new file mode 100644 index 000000000000..3d8301a14f62 --- /dev/null +++ b/irc/unreal/files/patch-src__modules.c @@ -0,0 +1,58 @@ +--- ./src/modules.c.orig 2013-11-24 20:24:26.000000000 +0100 ++++ ./src/modules.c 2014-05-23 00:34:33.000000000 +0200 +@@ -183,12 +183,12 @@ + { + char tempbuf[PATH_MAX+1]; + #ifndef _WIN32 +- DIR *fd = opendir("tmp"); ++ DIR *fd = opendir("%%RUNDIR%%/tmp"); + struct dirent *dir; + + if (!fd) /* Ouch.. this is NOT good!! */ + { +- config_error("Unable to open 'tmp' directory: %s, please create one with the appropriate permissions", ++ config_error("Unable to open '%%RUNDIR%%' directory: %s, please create one with the appropriate permissions", + strerror(errno)); + if (!loop.ircd_booted) + exit(7); +@@ -199,19 +199,19 @@ + { + if (!strcmp(dir->d_name, ".") || !strcmp(dir->d_name, "..")) + continue; +- strcpy(tempbuf, "tmp/"); ++ strcpy(tempbuf, "%%RUNDIR%%/tmp/"); + strcat(tempbuf, dir->d_name); + remove(tempbuf); + } + closedir(fd); + #else + WIN32_FIND_DATA hData; +- HANDLE hFile = FindFirstFile("tmp/*", &hData); ++ HANDLE hFile = FindFirstFile("%%RUNDIR%%/tmp/*", &hData); + if (hFile != INVALID_HANDLE_VALUE) + { + if (strcmp(hData.cFileName, ".") || strcmp(hData.cFileName, "..")) + { +- strcpy(tempbuf, "tmp/"); ++ strcpy(tempbuf, "%%RUNDIR%%/tmp/"); + strcat(tempbuf, hData.cFileName); + remove(tempbuf); + } +@@ -220,7 +220,7 @@ + { + if (!strcmp(hData.cFileName, ".") || !strcmp(hData.cFileName, "..")) + continue; +- strcpy(tempbuf, "tmp/"); ++ strcpy(tempbuf, "%%RUNDIR%%/tmp/"); + strcat(tempbuf, hData.cFileName); + remove(tempbuf); + } +@@ -329,7 +329,7 @@ + path = path_; + + +- tmppath = unreal_mktemp("tmp", unreal_getfilename(path)); ++ tmppath = unreal_mktemp("%%RUNDIR%%/tmp", unreal_getfilename(path)); + if (!tmppath) + return "Unable to create temporary file!"; + #ifndef _WIN32 diff --git a/irc/unreal/files/patch-src__s_conf.c b/irc/unreal/files/patch-src__s_conf.c new file mode 100644 index 000000000000..64ace6cb2498 --- /dev/null +++ b/irc/unreal/files/patch-src__s_conf.c @@ -0,0 +1,11 @@ +--- ./src/s_conf.c.orig 2013-11-24 20:24:26.000000000 +0100 ++++ ./src/s_conf.c 2014-05-23 00:34:33.000000000 +0200 +@@ -9832,7 +9832,7 @@ + { + char *urlfile = url_getfilename(url); + char *file_basename = unreal_getfilename(urlfile); +- char *tmp = unreal_mktemp("tmp", file_basename); ++ char *tmp = unreal_mktemp("%%RUNDIR%%/tmp", file); + free(urlfile); + + if (cached) diff --git a/irc/unreal/files/patch-src__url.c b/irc/unreal/files/patch-src__url.c new file mode 100644 index 000000000000..56860c894f88 --- /dev/null +++ b/irc/unreal/files/patch-src__url.c @@ -0,0 +1,20 @@ +--- ./src/url.c.orig 2013-11-24 20:24:26.000000000 +0100 ++++ ./src/url.c 2014-05-23 00:34:33.000000000 +0200 +@@ -174,7 +174,7 @@ + CURLcode res; + char *file = url_getfilename(url); + char *filename = unreal_getfilename(file); +- char *tmp = unreal_mktemp("tmp", filename ? filename : "download.conf"); ++ char *tmp = unreal_mktemp("%%RUNDIR%%/tmp", filename ? filename : "download.conf"); + FILE *fd; + + +@@ -359,7 +359,7 @@ + { + char *file = url_getfilename(url); + char *filename = unreal_getfilename(file); +- char *tmp = unreal_mktemp("tmp", filename ? filename : "download.conf"); ++ char *tmp = unreal_mktemp("%%RUNDIR%%/tmp", filename ? filename : "download.conf"); + FileHandle *handle = MyMallocEx(sizeof(FileHandle)); + handle->fd = fopen(tmp, "wb"); + if (!handle->fd) diff --git a/irc/unreal/files/patch-url.c b/irc/unreal/files/patch-url.c deleted file mode 100644 index dfa3a6a4ba31..000000000000 --- a/irc/unreal/files/patch-url.c +++ /dev/null @@ -1,20 +0,0 @@ ---- src/url.c 2012-12-28 08:04:54.000000000 -0800 -+++ src/url.c 2012-12-31 18:03:14.000000000 -0800 -@@ -171,7 +171,7 @@ - CURLcode res; - char *file = url_getfilename(url); - char *filename = unreal_getfilename(file); -- char *tmp = unreal_mktemp("tmp", filename ? filename : "download.conf"); -+ char *tmp = unreal_mktemp("%%RUNDIR%%/tmp", filename ? filename : "download.conf"); - FILE *fd; - - -@@ -356,7 +356,7 @@ - { - char *file = url_getfilename(url); - char *filename = unreal_getfilename(file); -- char *tmp = unreal_mktemp("tmp", filename ? filename : "download.conf"); -+ char *tmp = unreal_mktemp("%%RUNDIR%%/tmp", filename ? filename : "download.conf"); - FileHandle *handle = MyMallocEx(sizeof(FileHandle)); - handle->fd = fopen(tmp, "wb"); - if (!handle->fd) -- cgit v1.2.3