Skip to contentSkip to conversation

svn commit: trunk/buildroot/package: axel

Buildroot hamish at uclibc.org 3 participants 3 messages Apr 17, 2008 – Apr 18, 2008

lore
Share & tools
lore
#0 lore raw

Author: hamish
Date: 2008-04-16 21:52:57 -0700 (Wed, 16 Apr 2008) New Revision: 21752

Log:
Added package for axel download accelerator

Added:
trunk/buildroot/package/axel/
trunk/buildroot/package/axel/Config.in
trunk/buildroot/package/axel/axel.mk

Modified:
trunk/buildroot/package/Config.in

Changeset:
Modified: trunk/buildroot/package/Config.in
===================================================================

buildroot/package/Config.in +1 -0
@@ -141,6 +141,7 @@
 comment "Networking applications"
 source "package/argus/Config.in"
 source "package/avahi/Config.in"
+source "package/axel/Config.in"
 source "package/boa/Config.in"
 source "package/bind/Config.in"
 source "package/bridge-utils/Config.in"

Added: trunk/buildroot/package/axel/Config.in
===================================================================

buildroot/package/axel/Config.in +7 -0
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_AXEL
+	bool "axel"
+	default n
+	help
+	  HTTP/FTP download accelerator.
+
+	  http://axel.alioth.debian.org/

Added: trunk/buildroot/package/axel/axel.mk
===================================================================

buildroot/package/axel/axel.mk +55 -0

55 lines not on this page · raw message

#1 lore raw
Quoted 55 lines

Log:
Added package for axel download accelerator

Added: trunk/buildroot/package/axel/axel.mk
===================================================================

buildroot/package/axel/axel.mk +45 -0
@@ -0,0 +1,55 @@
+#############################################################
+#
+# axel
+#
+#############################################################
+AXEL_VERSION:=1.1
+AXEL_SOURCE:=axel-$(AXEL_VERSION).tar.gz
+AXEL_SITE:=http://alioth.debian.org/frs/download.php/2287
+AXEL_CAT:=$(ZCAT)
+AXEL_DIR:=$(BUILD_DIR)/axel-$(AXEL_VERSION)
+AXEL_BINARY:=axel
+AXEL_TARGET_BINARY:=usr/bin/axel
+
+$(DL_DIR)/$(AXEL_SOURCE):
+	 $(WGET) -P $(DL_DIR) $(AXEL_SITE)/$(AXEL_SOURCE)
+
+axel-source: $(DL_DIR)/$(AXEL_SOURCE)
+
+$(AXEL_DIR)/.unpacked: $(DL_DIR)/$(AXEL_SOURCE)
+	$(AXEL_CAT) $(DL_DIR)/$(AXEL_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+	#toolchain/patch-kernel.sh $(AXEL_DIR) package/axel axel\*.patch
+	touch $@
+
+$(AXEL_DIR)/Makefile.settings: $(AXEL_DIR)/.unpacked
+	(cd $(AXEL_DIR); \
+		./configure --enable-i18n=0 --prefix=/usr \
+	)
+	touch $@
+
+$(AXEL_DIR)/$(AXEL_BINARY): $(AXEL_DIR)/Makefile.settings
+	$(MAKE) CC="$(TARGET_CC)" STRIP="$(TARGET_STRIP)" -C $(AXEL_DIR)
+
+$(TARGET_DIR)/$(AXEL_TARGET_BINARY): $(AXEL_DIR)/$(AXEL_BINARY)
+	$(MAKE) DESTDIR=$(TARGET_DIR) -C $(AXEL_DIR) install-bin
+ifeq ($(BR2_HAVE_MANPAGES),y)
+	$(MAKE) DESTDIR=$(TARGET_DIR) -C $(AXEL_DIR) install-man
+endif
+
+axel: uclibc $(TARGET_DIR)/$(AXEL_TARGET_BINARY)
+
+axel-clean:
+	$(MAKE) DESTDIR=$(TARGET_DIR) -C $(AXEL_DIR) uninstall
+	-$(MAKE) -C $(AXEL_DIR) clean
+
+axel-dirclean:

buildroot/package/axel/axel.mk line 55

Quoted 10 lines
buildroot/package/axel/axel.mk +10 -0
+	rm -rf $(AXEL_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_AXEL)),y)
+TARGETS+=axel
+endif

Can you not use autotools?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://busybox.net/lists/buildroot/attachments/20080417/b2987528/attachment.pgp

#2 lore raw
Quoted 11 lines · Nigel Kukard

buildroot/package/axel/axel.mk line 28

Quoted 9 lines

Log:
Added package for axel download accelerator

+$(AXEL_DIR)/Makefile.settings: $(AXEL_DIR)/.unpacked

buildroot/package/axel/axel.mk +4 -0
+	(cd $(AXEL_DIR); \
+		./configure --enable-i18n=0 --prefix=/usr \
+	)
+	touch $@

Can you not use autotools?

Despite having a script called configure, the package does not use autoconf. It may still be possible to use the autotools macros though.

Hamish

Signature · 1 line
Hamish Moffatt VK3SB <[email protected]> <[email protected]>