You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
2.4 KiB

  1. #
  2. # Copyright (C) 2012-2017 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=aria2
  9. PKG_VERSION:=1.32.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://github.com/aria2/aria2/releases/download/release-$(PKG_VERSION)/
  13. PKG_HASH:=546e9194a9135d665fce572cb93c88f30fb5601d113bfa19951107ced682dc50
  14. PKG_INSTALL:=1
  15. PKG_MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>, Hsing-Wang Liao <kuoruan@gmail.com>
  16. PKG_LICENSE:=GPLv2
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_CONFIG_DEPENDS := \
  19. ARIA2_NOSSL \
  20. ARIA2_OPENSSL \
  21. ARIA2_GNUTLS \
  22. ARIA2_BITTORRENT \
  23. ARIA2_SFTP \
  24. ARIA2_ASYNC_DNS \
  25. ARIA2_COOKIE \
  26. ARIA2_METALINK \
  27. ARIA2_EXPAT \
  28. ARIA2_LIBXML2
  29. include $(INCLUDE_DIR)/package.mk
  30. define Package/aria2/config
  31. source "$(SOURCE)/Config.in"
  32. endef
  33. define Package/aria2
  34. SECTION:=net
  35. CATEGORY:=Network
  36. SUBMENU:=File Transfer
  37. TITLE:=lightweight download utility
  38. URL:=https://aria2.github.io/
  39. DEPENDS:=+zlib +libstdcpp +ARIA2_SFTP:libssh2 +ARIA2_ASYNC_DNS:libcares +ARIA2_COOKIE:libsqlite3 +ARIA2_LIBXML2:libxml2 +ARIA2_EXPAT:libexpat +ARIA2_OPENSSL:libopenssl +ARIA2_GNUTLS:libgnutls
  40. endef
  41. define Package/aria2/description
  42. aria2 is a lightweight multi-protocol & multi-source command-line download
  43. utility
  44. endef
  45. CONFIGURE_ARGS += \
  46. --disable-nls \
  47. $(if $(CONFIG_ARIA2_NOSSL),--disable,--enable)-ssl \
  48. $(if $(CONFIG_ARIA2_BITTORRENT),--enable,--disable)-bittorrent \
  49. $(if $(CONFIG_ARIA2_METALINK),--enable,--disable)-metalink \
  50. $(if $(CONFIG_ARIA2_OPENSSL),--with,--without)-openssl \
  51. $(if $(CONFIG_ARIA2_GNUTLS),--with,--without)-gnutls \
  52. $(if $(CONFIG_ARIA2_SFTP),--with,--without)-libssh2 \
  53. $(if $(CONFIG_ARIA2_ASYNC_DNS),--with,--without)-libcares \
  54. $(if $(CONFIG_ARIA2_COOKIE),--with,--without)-sqlite3 \
  55. $(if $(CONFIG_ARIA2_LIBXML2),--with,--without)-libxml2 \
  56. $(if $(CONFIG_ARIA2_EXPAT),--with,--without)-libexpat \
  57. --without-libnettle \
  58. --without-libgmp \
  59. --without-libgcrypt \
  60. --without-libuv \
  61. --with-libz
  62. define Package/aria2/install
  63. $(INSTALL_DIR) $(1)/usr/bin
  64. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aria2c $(1)/usr/bin
  65. $(INSTALL_DIR) $(1)/etc/init.d
  66. $(INSTALL_BIN) ./files/aria2.init $(1)/etc/init.d/aria2
  67. $(INSTALL_DIR) $(1)/etc/config
  68. $(INSTALL_CONF) ./files/aria2.conf $(1)/etc/config/aria2
  69. endef
  70. $(eval $(call BuildPackage,aria2))