www-client/prozilla: add patches

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2353 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one
2010-08-31 19:54:56 +00:00
parent 743c34942c
commit ce1defe4fb
13 changed files with 427 additions and 25 deletions

View File

@@ -0,0 +1,41 @@
--- prozilla-2.0.3/src/main.cpp.orig 2006-01-22 23:40:16.000000000 +0100
+++ prozilla-2.0.3/src/main.cpp 2006-01-22 23:48:40.000000000 +0100
@@ -216,12 +216,13 @@
{
int c;
int ret;
+ char *opt_file = NULL;
proz_init (argc, argv); //init libprozilla
set_defaults (); //set some reasonable defaults
load_prefs (); //load values from the config file
while ((c =
- getopt_long (argc, argv, "?hvrfk:1Lt:VgsP:", long_opts,
+ getopt_long (argc, argv, "?hvrfk:1Lt:VgsP:O:", long_opts,
NULL)) != EOF)
{
switch (c)
@@ -274,7 +275,12 @@
*/
rt.use_netrc = FALSE;
break;
-
+ case 'O':
+ /*
+ * Output file name
+ */
+ opt_file = kstrdup(optarg);
+ break;
case 'P':
/*
* Save the downloaded file to DIR
@@ -503,6 +509,9 @@
exit (0);
}
+ if (opt_file)
+ url_data->file=opt_file;
+
PrintMessage("Starting.....");
//In to %s\n",url_data->host);
// start the download