diff options
author | Hamish Moffatt <hamish@cloud.net.au> | 2008-04-17 04:52:57 +0000 |
---|---|---|
committer | Hamish Moffatt <hamish@cloud.net.au> | 2008-04-17 04:52:57 +0000 |
commit | 51114afc64b3e13e7a393f9d34a607ccf699a4d0 (patch) | |
tree | 0a09570a7339d450ceaeb6ab816cf83c4e6066f0 /package | |
parent | b977f1b19d641d458e645fbc3f855c8419569afa (diff) |
Added package for axel download accelerator
Diffstat (limited to 'package')
-rw-r--r-- | package/Config.in | 1 | ||||
-rw-r--r-- | package/axel/Config.in | 7 | ||||
-rw-r--r-- | package/axel/axel.mk | 55 |
3 files changed, 63 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in index 47e224ce7..dd27e7dc1 100644 --- a/package/Config.in +++ b/package/Config.in @@ -141,6 +141,7 @@ if BR2_NETWORK_SUPPORT 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" diff --git a/package/axel/Config.in b/package/axel/Config.in new file mode 100644 index 000000000..293702290 --- /dev/null +++ b/package/axel/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_AXEL + bool "axel" + default n + help + HTTP/FTP download accelerator. + + http://axel.alioth.debian.org/ diff --git a/package/axel/axel.mk b/package/axel/axel.mk new file mode 100644 index 000000000..3a6ceb950 --- /dev/null +++ b/package/axel/axel.mk @@ -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: + rm -rf $(AXEL_DIR) + +############################################################# +# +# Toplevel Makefile options +# +############################################################# +ifeq ($(strip $(BR2_PACKAGE_AXEL)),y) +TARGETS+=axel +endif |