Compare commits

..

12 Commits

Author SHA256 Message Date
Ana Guerrero
bc8b14454e Accepting request 1158903 from network:utilities
- update to 2.17.13:
  * abuf: Fix realloc usage
  * configure: Fix handling of --with-ssl
  * random: Initialize fd at startup
  * Fixed a wrong translation for Turkish
  * Implemented early redirect loop detection
  * Added LGTM.com support
  * Buildsystem improvements
  * Added wolfSSL support
  * Fixed potential int overflow
  * Simplified configuration support code
  * Early redirect loop detection improvements
  * Fixed speed-limiting sleep delay overflow
  * Removed HTTP encoding of URLs on the CLI, should be pre-
    encoded

- update to 2.17.9:

OBS-URL: https://build.opensuse.org/request/show/1158903
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/axel?expand=0&rev=13
2024-03-18 15:46:40 +00:00
Dominique Leuenberger
20b9f8d57c Accepting request 947298 from network:utilities
OBS-URL: https://build.opensuse.org/request/show/947298
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/axel?expand=0&rev=12
2022-01-18 23:35:31 +00:00
Dominique Leuenberger
bb041ed6b6 Accepting request 850116 from network:utilities
OBS-URL: https://build.opensuse.org/request/show/850116
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/axel?expand=0&rev=11
2020-12-12 19:30:20 +00:00
Dominique Leuenberger
0e66b6f48c Accepting request 828640 from network:utilities
OBS-URL: https://build.opensuse.org/request/show/828640
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/axel?expand=0&rev=10
2020-09-22 19:04:17 +00:00
Dominique Leuenberger
fa59eed761 Accepting request 810567 from network:utilities
OBS-URL: https://build.opensuse.org/request/show/810567
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/axel?expand=0&rev=9
2020-06-02 12:41:27 +00:00
Dominique Leuenberger
43aa5e539c Accepting request 791570 from network:utilities
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/791570
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/axel?expand=0&rev=8
2020-04-07 08:28:46 +00:00
Dominique Leuenberger
537b01cfc7 Accepting request 743107 from network:utilities
- update to version 2.17.6:
 - Fixed handling of non-recoverable HTTP errors
 - Cleanup of connection setup code
 - Fixed manpage reproducibility issue
 - Use tracker instead of PTS from Debian
- update to version 2.17.5:
 - Fixed progress indicator misalignment
 - Cleaned up the wget-like progress output code
 - Improved progress output flushing
- update to version 2.17.4:
 - Fixed build with bionic libc (Android)
 - TCP Fast Open support on Linux
 - TCP code cleanup
 - Removed dependency on libm
 - Data types and format strings cleanup
 - String handling cleanup
 - Format string checking GCC attributes added
 - Buildsystem fixes and improvements
 - Updates to the documentation
 - Updated all translations
 - Fixed Footnotes in documentation
 - Fixed a typo in README.md

OBS-URL: https://build.opensuse.org/request/show/743107
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/axel?expand=0&rev=7
2019-10-27 12:41:53 +00:00
Dominique Leuenberger
8d18e78bed Accepting request 710220 from network:utilities
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/710220
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/axel?expand=0&rev=6
2019-06-17 08:34:46 +00:00
Dominique Leuenberger
16011af37c Accepting request 706057 from network:utilities
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/706057
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/axel?expand=0&rev=5
2019-06-01 07:50:17 +00:00
Dominique Leuenberger
edc8885e01 Accepting request 592739 from network:utilities
- update to version 2.16.1:
 * no noteable changes

OBS-URL: https://build.opensuse.org/request/show/592739
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/axel?expand=0&rev=4
2018-03-31 13:37:37 +00:00
Dominique Leuenberger
61539adcec Accepting request 546012 from network:utilities
OBS-URL: https://build.opensuse.org/request/show/546012
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/axel?expand=0&rev=3
2017-11-27 21:18:50 +00:00
Dominique Leuenberger
ae759194cd Accepting request 540717 from network:utilities
- added more documentation files and license to package
- update to 2.15 (see ChangeLog for release notes and all changes
  since 2.4)
- switch to new github url
- run spec-cleaner
- drop all patches
  * axel-fix_buffer_overflow.patch
    + upstreamed in 425dd156b76f2377a3e386324c282bdcdac90a40
  * axel-getaddrinfo.patch
    + upstreamed in cc1142b8de01e182cbaf4cc8a606c80696d8c0b8
  * axel-fix-url-max-length.patch
    + upstreamed in ce40ee76c25a84f386128927fcd0bab4e9751268
  * axel-2.4-configure.patch
    + unneeded

OBS-URL: https://build.opensuse.org/request/show/540717
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/axel?expand=0&rev=2
2017-11-12 17:03:16 +00:00
5 changed files with 0 additions and 147 deletions

View File

@ -1,30 +0,0 @@
When called with --disable-dependency-tracking, the configure
script would exit with the usage output. This patch make the script
accept and ignore that option.
Index: configure
===================================================================
--- configure.orig 2009-04-27 15:19:03.000000000 +0100
+++ configure 2011-12-22 16:46:32.000000000 +0000
@@ -20,7 +20,7 @@ strip=1
arch=`uname -s`
while [ -n "$1" ]; do
- e="`expr "$1" : '--\(.*=.*\)'`"
+ e="`expr "$1" : '--\(.*\)'`"
if [ -z "$e" ]; then
cat<<EOF
Axel configure
@@ -44,8 +44,10 @@ EOF
keyname=$(expr "$e" : '\(.*\)=.*' | sed 's/[^a-z0-9_]/_/g')
value=$(expr "$e" : '.*=\(.*\)' | sed "s/'/_/g")
-
- eval "$keyname='$value'"
+
+ if [ -n "$value" ]; then
+ eval "$keyname='$value'"
+ fi
shift;
done

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ebc7d40e989c680d2afa632a17e5208101608924cf446da20814a6f3c3338612
size 44995

View File

@ -1,11 +0,0 @@
--- conn.c 2009-04-27 16:19:03.000000000 +0200
+++ conn.c 2017-04-12 15:58:37.838976530 +0200
@@ -326,7 +326,7 @@
break;
if( ( t = http_header( conn->http, "location:" ) ) == NULL )
return( 0 );
- sscanf( t, "%255s", s );
+ sscanf( t, "%1024", s );
if( strstr( s, "://" ) == NULL)
{
sprintf( conn->http->headers, "%s%s",

View File

@ -1,11 +0,0 @@
--- http.c.orig 2010-10-12 16:45:27.000000000 +0200
+++ http.c 2010-10-12 16:47:19.000000000 +0200
@@ -164,7 +164,7 @@
{
i ++;
}
- strncat( conn->headers, s, MAX_QUERY );
+ strncat( conn->headers, s, sizeof(conn->headers) - strlen(conn->headers) - 1 );
}
#ifdef DEBUG

View File

@ -1,92 +0,0 @@
--- tcp.c.orig 2010-10-12 16:51:18.000000000 +0200
+++ tcp.c 2010-10-12 17:23:49.000000000 +0200
@@ -25,13 +25,18 @@
#include "axel.h"
+#include <stdio.h>
+
/* Get a TCP connection */
int tcp_connect( char *hostname, int port, char *local_if )
{
- struct hostent *host = NULL;
- struct sockaddr_in addr;
+ struct addrinfo hints;
+ struct addrinfo *ai, *rp;
+ char portbuf[8];
+ snprintf(portbuf, 8, "%d", port);
+
struct sockaddr_in local;
- int fd;
+ int fd = -1;
#ifdef DEBUG
socklen_t i = sizeof( local );
@@ -39,20 +44,34 @@
fprintf( stderr, "tcp_connect( %s, %i ) = ", hostname, port );
#endif
- /* Why this loop? Because the call might return an empty record.
- At least it very rarely does, on my system... */
- for( fd = 0; fd < 5; fd ++ )
- {
- if( ( host = gethostbyname( hostname ) ) == NULL )
- return( -1 );
- if( *host->h_name ) break;
- }
- if( !host || !host->h_name || !*host->h_name )
- return( -1 );
-
- if( ( fd = socket( AF_INET, SOCK_STREAM, 0 ) ) == -1 )
- return( -1 );
-
+ {
+ memset(&hints, 0, sizeof(struct addrinfo));
+ hints.ai_family = AF_UNSPEC;
+ hints.ai_socktype = SOCK_STREAM;
+ hints.ai_flags = 0;
+ hints.ai_protocol = 0;
+ if (getaddrinfo(hostname, portbuf, &hints, &ai) != 0)
+ {
+ fd = -1;
+ } else {
+ for (rp = ai; rp != NULL; rp->ai_next)
+ {
+ fd = socket(rp->ai_family, rp->ai_socktype, rp->ai_protocol);
+ if (fd < 0) continue;
+ if (connect(fd, rp->ai_addr, rp->ai_addrlen) >= 0)
+ {
+ break;
+ }
+ close(fd);
+ }
+ }
+ freeaddrinfo(ai);
+ }
+ if (fd < 0)
+ {
+ return( -1 );
+ }
+
if( local_if && *local_if )
{
local.sin_family = AF_INET;
@@ -64,17 +83,7 @@
return( -1 );
}
}
-
- addr.sin_family = AF_INET;
- addr.sin_port = htons( port );
- addr.sin_addr = *( (struct in_addr *) host->h_addr );
-
- if( connect( fd, (struct sockaddr *) &addr, sizeof( struct sockaddr_in ) ) == -1 )
- {
- close( fd );
- return( -1 );
- }
-
+
#ifdef DEBUG
getsockname( fd, &local, &i );
fprintf( stderr, "%i\n", ntohs( local.sin_port ) );