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