[packages] ddns-scripts: add dnsexit.com (#10425)
[packages.git] / net / axel / Makefile
1 #
2 # Copyright (C) 2010 Gianluigi Tiesi <sherpya@netfarm.it>
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=axel
11 PKG_VERSION:=2.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://alioth.debian.org/frs/download.php/3015
16 PKG_MD5SUM:=a2a762fce0c96781965c8f9786a3d09d
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/axel
23   SECTION:=net
24   CATEGORY:=Network
25   SUBMENU:=File Transfer
26   TITLE:=Axel Download Accelerator
27   DEPENDS:=+libpthread
28   URL:=http://axel.alioth.debian.org/
29   MAINTAINER:=Gianluigi Tiesi <sherpya@netfarm.it>
30 endef
31
32 define Package/axel/description
33   Axel tries to accelerate HTTP/FTP downloading process by using multiple connections for one file.
34   It can use multiple mirrors for a download. Axel has no dependencies and is lightweight,
35   so it might be useful as a wget clone on byte-critical systems.
36 endef
37
38 # notes:
39 #  - I'm using = and not += because it is not a standard configure script
40 #  - I ask not to strip, because it should be handled by the toolchain
41 CONFIGURE_ARGS =        \
42         --prefix=/usr   \
43         --etcdir=/etc   \
44         --debug=0               \
45         --i18n=0                \
46         --strip=0
47
48 define Package/axel/install
49         $(INSTALL_DIR) $(1)/usr/bin
50         $(INSTALL_BIN) $(PKG_BUILD_DIR)/axel $(1)/usr/bin/
51         $(INSTALL_DIR) $(1)/etc
52         $(INSTALL_DATA) $(PKG_BUILD_DIR)/axelrc.example $(1)/etc/axelrc
53         echo "alternate_output = 1" >> $(1)/etc/axelrc
54 endef
55
56 $(eval $(call BuildPackage,axel))