1 Index: opkg-4561/libopkg/opkg_download.c
2 ===================================================================
3 --- opkg-4561/libopkg/opkg_download.c (revision 4480)
4 +++ opkg-4561/libopkg/opkg_download.c (working copy)
6 General Public License for more details.
10 #include <curl/curl.h>
16 setenv("no_proxy", conf->no_proxy, 1);
22 FILE * file = fopen (tmp_file_location, "w");
27 +#else /* if wget is selected */
29 + /* XXX: BUG rewrite to use execvp or else busybox's internal wget -Jamey 7/23/2002 */
30 + sprintf_alloc(&cmd, "wget --passive-ftp %s %s%s %s%s -P %s %s",
31 + (conf->http_proxy || conf->ftp_proxy) ? "--proxy=on" : "",
32 + conf->proxy_user ? "--proxy-user=" : "",
33 + conf->proxy_user ? conf->proxy_user : "",
34 + conf->proxy_passwd ? "--proxy-passwd=" : "",
35 + conf->proxy_passwd ? conf->proxy_passwd : "",
41 + opkg_message(conf,OPKG_ERROR, "%s: ERROR: Command failed with return value %d: `%s'\n",
42 + __FUNCTION__, err, cmd);
44 + unlink(tmp_file_location);
45 + free(tmp_file_location);
53 err = file_move(tmp_file_location, dest_file_name);
55 Index: opkg-4561/configure.ac
56 ===================================================================
57 --- opkg-4561/configure.ac (revision 4480)
58 +++ opkg-4561/configure.ac (working copy)
61 # Checks for libraries
64 -PKG_CHECK_MODULES(CURL, libcurl)
66 + AC_HELP_STRING([--enable-curl], [Enable use of libcurl instead of wget
68 + [want_curl="$enableval"], [want_curl="yes"])
70 +if test "x$want_curl" = "xyes"; then
72 + PKG_CHECK_MODULES(CURL, libcurl)
73 + AC_DEFINE(HAVE_CURL, 1, [Define if you want to use libcurl instead of wget])