From: Florian Fainelli Date: Sat, 31 Jul 2010 11:39:21 +0000 (+0000) Subject: [package] add axel (#7636) X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;hb=b77d03cd9e594545ee60c5f5abad01787378970f [package] add axel (#7636) SVN-Revision: 22434 --- diff --git a/net/axel/Makefile b/net/axel/Makefile new file mode 100644 index 0000000000..246a12f24d --- /dev/null +++ b/net/axel/Makefile @@ -0,0 +1,55 @@ +# +# Copyright (C) 2010 Gianluigi Tiesi +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=axel +PKG_VERSION:=2.4 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://alioth.debian.org/frs/download.php/3015 +PKG_MD5SUM:=a2a762fce0c96781965c8f9786a3d09d + +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/axel + SECTION:=net + CATEGORY:=Network + TITLE:=Axel Download Accelerator + DEPENDS:=+libpthread + URL:=http://axel.alioth.debian.org/ + MAINTAINER:=Gianluigi Tiesi +endef + +define Package/axel/description + Axel tries to accelerate HTTP/FTP downloading process by using multiple connections for one file. + It can use multiple mirrors for a download. Axel has no dependencies and is lightweight, + so it might be useful as a wget clone on byte-critical systems. +endef + +# notes: +# - I'm using = and not += because it is not a standard configure script +# - I ask not to strip, because it should be handled by the toolchain +CONFIGURE_ARGS = \ + --prefix=/usr \ + --etcdir=/etc \ + --debug=0 \ + --i18n=0 \ + --strip=0 + +define Package/axel/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/axel $(1)/usr/bin/ + $(INSTALL_DIR) $(1)/etc + $(INSTALL_DATA) $(PKG_BUILD_DIR)/axelrc.example $(1)/etc/axelrc + echo "alternate_output = 1" >> $(1)/etc/axelrc +endef + +$(eval $(call BuildPackage,axel))