Skip to contentSkip to conversation

axel: bump to version 2.14.1

PATCH New Ismael Luceno 2 participants 8 messages Sep 22, 2017 – Sep 25, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 axel: bump to version 2.14.1

---
 package/axel/Config.in | 14 +++++++++++++-
 package/axel/axel.hash |  3 +--
 package/axel/axel.mk   | 17 ++++++++---------
 3 files changed, 22 insertions(+), 12 deletions(-)
package/axel/Config.in +13 -1
index 6e709cfb1351..c7dcbe71c179 100644
@@ -4,7 +4,19 @@ config BR2_PACKAGE_AXEL
 	help
 	  HTTP/FTP download accelerator.
 
-	  http://axel.alioth.debian.org/
+	  https://github.com/axel-download-accelerator/
+
+if BR2_PACKAGE_AXEL
+
+config BR2_PACKAGE_AXEL_SSL
+	bool "SSL/TLS support"
+	default y
+	depends on BR2_PACKAGE_OPENSSL || BR2_PACKAGE_LIBRESSL
+
+comment "SSL/TLS support requires openssl or libressl"
+	depends on !(BR2_PACKAGE_OPENSSL || BR2_PACKAGE_LIBRESSL)
+
+endif
 
 comment "axel needs a toolchain w/ threads"
 	depends on !BR2_TOOLCHAIN_HAS_THREADS
package/axel/axel.hash +1 -2
index 895767011892..d9b610f7e3c2 100644
@@ -1,2 +1 @@
-# Locally calculated
-sha256	359a57ab4e354bcb6075430d977c59d33eb3e2f1415a811948fa8ae657ca8036  axel-2.4.tar.gz
+sha256	acf6820d98a792faf309fc9acf22f7caf4b8a4b7001072c8f546b3c4fc755e39  axel-2.14.1.tar.gz
package/axel/axel.mk +8 -9
index 60bf5e4a61df..50d87d982898 100644
@@ -4,23 +4,22 @@
 #
 ################################################################################
 
-AXEL_VERSION = 2.4
-AXEL_SITE = http://sources.buildroot.net
+AXEL_VERSION = 2.14.1
+AXEL_SITE = $(call github,axel-download-accelerator,axel,v$(AXEL_VERSION))
 AXEL_LICENSE = GPL-2.0+
 AXEL_LICENSE_FILES = COPYING
-AXEL_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
+AXEL_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES) \
+	$(if $(BR2_PACKAGE_AXEL_SSL),\
+		$(if $(BR2_PACKAGE_LIBRESSL),libressl,openssl))
 AXEL_LDFLAGS = -lpthread $(TARGET_NLS_LIBS)
 
-ifeq ($(BR2_SYSTEM_ENABLE_NLS),)
-AXEL_DISABLE_I18N = --i18n=0
-endif
-
 define AXEL_CONFIGURE_CMDS
 	(cd $(@D); \
+		./autogen.sh; \
 		./configure \
 			--prefix=/usr \
-			--debug=1 \
-			$(AXEL_DISABLE_I18N) \
+			$(if $(BR2_PACKAGE_AXEL_SSL),,--without-ssl) \
+			$(if $(BR2_SYSTEM_ENABLE_NLS),,--disable-nls) \
 	)
 endef
 
Signature · 1 line
2.13.3
#1 lore raw

PATCH 1/1 axel: bump to version 2.14.1

Hi Ismael,

Quoted 1 line · Ismael Luceno

Please make a longer commit message that explains a bit what changes you make:
- change upstream URL;
- add optional support for OpenSSL/LibreSSL;
...

Quoted 11 lines
---
 package/axel/Config.in | 14 +++++++++++++-
 package/axel/axel.hash |  3 +--
 package/axel/axel.mk   | 17 ++++++++---------
 3 files changed, 22 insertions(+), 12 deletions(-)
package/axel/Config.in +0 -0
index 6e709cfb1351..c7dcbe71c179 100644

package/axel/Config.in config BR2_PACKAGE_AXEL · line 7

Quoted 5 lines
package/axel/Config.in +1 -1
@@ -4,7 +4,19 @@ config BR2_PACKAGE_AXEL
 	help
 	  HTTP/FTP download accelerator.
 
-	  http://axel.alioth.debian.org/
+	  https://github.com/axel-download-accelerator/

Better refer to axel itself, that has a nice README.md:

https://github.com/axel-download-accelerator/axel

package/axel/Config.in config BR2_PACKAGE_AXEL · line 17

Quoted 10 lines
package/axel/Config.in +10 -0
+
+if BR2_PACKAGE_AXEL
+
+config BR2_PACKAGE_AXEL_SSL
+	bool "SSL/TLS support"
+	default y
+	depends on BR2_PACKAGE_OPENSSL || BR2_PACKAGE_LIBRESSL
+
+comment "SSL/TLS support requires openssl or libressl"
+	depends on !(BR2_PACKAGE_OPENSSL || BR2_PACKAGE_LIBRESSL)

Unless if there is a very good reason for it, we make this kind of dependency
automatic, i.e. don't add a Config.in option. Instead, add conditions to the .mk file.

[snip]

package/axel/Config.in config BR2_PACKAGE_AXEL · line 19

Quoted 5 lines
package/axel/Config.in +2 -2
-AXEL_VERSION = 2.4
-AXEL_SITE = http://sources.buildroot.net
+AXEL_VERSION = 2.14.1
+AXEL_SITE = $(call github,axel-download-accelerator,axel,v$(AXEL_VERSION))

If upstream has a v in their version, you should also have it. So

AXEL_VERSION = v2.14.1

Note that as of today, the github helper no longer requires the third argument.

package/axel/Config.in config BR2_PACKAGE_AXEL

Quoted 6 lines
package/axel/Config.in +3 -1
 AXEL_LICENSE = GPL-2.0+
 AXEL_LICENSE_FILES = COPYING
-AXEL_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
+AXEL_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES) \
+	$(if $(BR2_PACKAGE_AXEL_SSL),\
+		$(if $(BR2_PACKAGE_LIBRESSL),libressl,openssl))

Remove this part. Instead, add something like this:

ifeq ($(BR2_PACKAGE_OPENSSL),y)
AXEL_CONF_OPTS += --with-ssl
AXEL_DEPENDENCIES += openssl
else ifeq ($(BR2_PACKAGE_LIBRESSL),y)
AXEL_CONF_OPTS += --with-ssl
AXEL_DEPENDENCIES += libressl
else
AXEL_CONF_OPTS += --without-ssl
endif

It's more lines, but it is easier to understand and therefore easier to maintain.

Quoted 5 lines

AXEL_LDFLAGS = -lpthread $(TARGET_NLS_LIBS)

package/axel/Config.in +0 -3
-ifeq ($(BR2_SYSTEM_ENABLE_NLS),)
-AXEL_DISABLE_I18N = --i18n=0
-endif

package/axel/Config.in

Quoted 10 lines
package/axel/Config.in +3 -3
-
 define AXEL_CONFIGURE_CMDS
 	(cd $(@D); \
+		./autogen.sh; \
 		./configure \
 			--prefix=/usr \
-			--debug=1 \
-			$(AXEL_DISABLE_I18N) \
+			$(if $(BR2_PACKAGE_AXEL_SSL),,--without-ssl) \
+			$(if $(BR2_SYSTEM_ENABLE_NLS),,--disable-nls) \

While you're at it, perhaps you can switch to the autotools infrastructure.
You'll have to set AXEL_AUTORECONF = YES because there is no configure script included. But then the configure, build and install commands can just be removed.

Regards,
Arnout

Quoted 4 lines

)
endef

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#2 lore raw

PATCH 1/1 axel: bump to version 2.14.1

Thanks for the feedback.

On 24/Sep/2017 16:09, Arnout Vandecappelle wrote:
<...>

Quoted 6 lines

If upstream has a v in their version, you should also have it. So

AXEL_VERSION = v2.14.1

Note that as of today, the github helper no longer requires the third argument.

The "v" is not part of the version number, so I would prefer to leave it out of AXEL_VERSION...

#3 lore raw

PATCH 1/1 axel: bump to version 2.14.1

Quoted 6 lines · Ismael Luceno

Thanks for the feedback.

On 24/Sep/2017 16:09, Arnout Vandecappelle wrote:
<...>

Quoted 2 lines

If upstream has a v in their version, you should also have it. So

Quoted 7 lines
Quoted 4 lines

AXEL_VERSION = v2.14.1

Note that as of today, the github helper no longer requires the third argument.

The "v" is not part of the version number, so I would prefer to leave it out of AXEL_VERSION...

No, the v *is* part of the version number. If you use the github helper, the
_VERSION variable must be identical to the upstream tag.

And as I said, the third argument to the github helper isn't needed anymore
because is automatically uses _VERSION.

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#4 lore raw

PATCH 1/1 axel: bump to version 2.14.1

Quoted 11 lines · Arnout Vandecappelle
Quoted 8 lines · Ismael Luceno

Thanks for the feedback.

On 24/Sep/2017 16:09, Arnout Vandecappelle wrote:
<...>

Quoted 4 lines

If upstream has a v in their version, you should also have it. So

AXEL_VERSION = v2.14.1

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Note that as of today, the github helper no longer requires the third argument.

The "v" is not part of the version number, so I would prefer to leave it out of AXEL_VERSION...

No, the v *is* part of the version number. If you use the github helper, the
_VERSION variable must be identical to the upstream tag.

Well, that's a matter of interpretation, the project considers it a prefix, and Github agrees with common practice and removes the "v" prefix when building the archive...

So if using the github macro, AXEL_VERSION must be a tag or commit id?

#5 lore raw

PATCH 1/1 axel: bump to version 2.14.1

Quoted 18 lines · Ismael Luceno
Quoted 17 lines · Arnout Vandecappelle
Quoted 13 lines · Ismael Luceno

Thanks for the feedback.

On 24/Sep/2017 16:09, Arnout Vandecappelle wrote:
<...>

Quoted 6 lines

If upstream has a v in their version, you should also have it. So

AXEL_VERSION = v2.14.1

Note that as of today, the github helper no longer requires the third argument.

The "v" is not part of the version number, so I would prefer to leave it out of AXEL_VERSION...

Quoted 8 lines
Quoted 2 lines

No, the v *is* part of the version number. If you use the github helper, the
_VERSION variable must be identical to the upstream tag.

Well, that's a matter of interpretation, the project considers it a prefix, and Github agrees with common practice and removes the "v" prefix when building the archive...

So if using the github macro, AXEL_VERSION must be a tag or commit id?

Quoting [1]:

"The FOO_VERSION can either be a tag or a commit ID."

Regards,
Arnout

[1] https://buildroot.org/downloads/manual/manual.html#github-download-url

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#6 lore raw

PATCH v2 1/1 axel: bump to version 2.14.1

In reply to Arnout Vandecappelle

- Change upstream URL.
- Add optional dependency on libressl/openssl.
- Switch to autotools-package.

---
 package/axel/Config.in |  2 +-
 package/axel/axel.hash |  3 +--
 package/axel/axel.mk   | 35 +++++++++++++----------------------
 3 files changed, 15 insertions(+), 25 deletions(-)
package/axel/Config.in +1 -1
index 6e709cfb1351..4507855ff8e7 100644
@@ -4,7 +4,7 @@ config BR2_PACKAGE_AXEL
 	help
 	  HTTP/FTP download accelerator.
 
-	  http://axel.alioth.debian.org/
+	  https://github.com/axel-download-accelerator/axel/
 
 comment "axel needs a toolchain w/ threads"
 	depends on !BR2_TOOLCHAIN_HAS_THREADS
package/axel/axel.hash +1 -2
index 895767011892..d9b610f7e3c2 100644
@@ -1,2 +1 @@
-# Locally calculated
-sha256	359a57ab4e354bcb6075430d977c59d33eb3e2f1415a811948fa8ae657ca8036  axel-2.4.tar.gz
+sha256	acf6820d98a792faf309fc9acf22f7caf4b8a4b7001072c8f546b3c4fc755e39  axel-2.14.1.tar.gz
package/axel/axel.mk +13 -22
index 60bf5e4a61df..37fe022fca71 100644
@@ -4,33 +4,24 @@
 #
 ################################################################################
 
-AXEL_VERSION = 2.4
-AXEL_SITE = http://sources.buildroot.net
+AXEL_VERSION = 2.14.1
+AXEL_SITE = $(call github,axel-download-accelerator,axel,v$(AXEL_VERSION))
 AXEL_LICENSE = GPL-2.0+
 AXEL_LICENSE_FILES = COPYING
 AXEL_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
-AXEL_LDFLAGS = -lpthread $(TARGET_NLS_LIBS)
 
-ifeq ($(BR2_SYSTEM_ENABLE_NLS),)
-AXEL_DISABLE_I18N = --i18n=0
+ifeq ($(BR2_PACKAGE_LIBRESSL),y)
+AXEL_CONF_OPTS += --with-ssl
+AXEL_DEPENDENCIES += libressl
+else ifeq ($(BR2_PACKAGE_LIBRESSL),y)
+AXEL_CONF_OPTS += --with-ssl
+AXEL_DEPENDENCIES += openssl
+else
+AXEL_CONF_OPTS += --without-ssl
 endif
 
-define AXEL_CONFIGURE_CMDS
-	(cd $(@D); \
-		./configure \
-			--prefix=/usr \
-			--debug=1 \
-			$(AXEL_DISABLE_I18N) \
-	)
-endef
-
-define AXEL_BUILD_CMDS
-	$(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
-	LFLAGS="$(TARGET_LDFLAGS) $(AXEL_LDFLAGS)" -C $(@D)
-endef
+AXEL_LDFLAGS = -lpthread $(TARGET_NLS_LIBS)
 
-define AXEL_INSTALL_TARGET_CMDS
-	$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) -C $(@D) install
-endef
+AXEL_AUTORECONF = YES
 
-$(eval $(generic-package))
+$(eval $(autotools-package))
Signature · 1 line
2.13.3
#7 lore raw

PATCH v2 1/1 axel: bump to version 2.14.1

Oops, sent it accidentally, too early, I didn't meant to, there's an issue with the autoreconf step.

Quoted 85 lines · Ismael Luceno

- Change upstream URL.
- Add optional dependency on libressl/openssl.
- Switch to autotools-package.

---
 package/axel/Config.in |  2 +-
 package/axel/axel.hash |  3 +--
 package/axel/axel.mk   | 35 +++++++++++++----------------------
 3 files changed, 15 insertions(+), 25 deletions(-)
package/axel/Config.in +1 -1
index 6e709cfb1351..4507855ff8e7 100644
@@ -4,7 +4,7 @@ config BR2_PACKAGE_AXEL
 	help
 	  HTTP/FTP download accelerator.
 
-	  http://axel.alioth.debian.org/
+	  https://github.com/axel-download-accelerator/axel/
 
 comment "axel needs a toolchain w/ threads"
 	depends on !BR2_TOOLCHAIN_HAS_THREADS
package/axel/axel.hash +1 -2
index 895767011892..d9b610f7e3c2 100644
@@ -1,2 +1 @@
-# Locally calculated
-sha256	359a57ab4e354bcb6075430d977c59d33eb3e2f1415a811948fa8ae657ca8036  axel-2.4.tar.gz
+sha256	acf6820d98a792faf309fc9acf22f7caf4b8a4b7001072c8f546b3c4fc755e39  axel-2.14.1.tar.gz
package/axel/axel.mk +13 -22
index 60bf5e4a61df..37fe022fca71 100644
@@ -4,33 +4,24 @@
 #
 ################################################################################
 
-AXEL_VERSION = 2.4
-AXEL_SITE = http://sources.buildroot.net
+AXEL_VERSION = 2.14.1
+AXEL_SITE = $(call github,axel-download-accelerator,axel,v$(AXEL_VERSION))
 AXEL_LICENSE = GPL-2.0+
 AXEL_LICENSE_FILES = COPYING
 AXEL_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
-AXEL_LDFLAGS = -lpthread $(TARGET_NLS_LIBS)
 
-ifeq ($(BR2_SYSTEM_ENABLE_NLS),)
-AXEL_DISABLE_I18N = --i18n=0
+ifeq ($(BR2_PACKAGE_LIBRESSL),y)
+AXEL_CONF_OPTS += --with-ssl
+AXEL_DEPENDENCIES += libressl
+else ifeq ($(BR2_PACKAGE_LIBRESSL),y)
+AXEL_CONF_OPTS += --with-ssl
+AXEL_DEPENDENCIES += openssl
+else
+AXEL_CONF_OPTS += --without-ssl
 endif
 
-define AXEL_CONFIGURE_CMDS
-	(cd $(@D); \
-		./configure \
-			--prefix=/usr \
-			--debug=1 \
-			$(AXEL_DISABLE_I18N) \
-	)
-endef
-
-define AXEL_BUILD_CMDS
-	$(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
-	LFLAGS="$(TARGET_LDFLAGS) $(AXEL_LDFLAGS)" -C $(@D)
-endef
+AXEL_LDFLAGS = -lpthread $(TARGET_NLS_LIBS)
 
-define AXEL_INSTALL_TARGET_CMDS
-	$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) -C $(@D) install
-endef
+AXEL_AUTORECONF = YES
 
-$(eval $(generic-package))
+$(eval $(autotools-package))
Signature · 1 line
2.13.3