|
@ -1,5 +1,5 @@ |
|
|
#
|
|
|
#
|
|
|
# Copyright (C) 2012-2014 OpenWrt.org
|
|
|
|
|
|
|
|
|
# Copyright (C) 2012-2016 OpenWrt.org
|
|
|
#
|
|
|
#
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
# See /LICENSE for more information.
|
|
|
# See /LICENSE for more information.
|
|
@ -7,15 +7,15 @@ |
|
|
include $(TOPDIR)/rules.mk |
|
|
include $(TOPDIR)/rules.mk |
|
|
|
|
|
|
|
|
PKG_NAME:=aria2 |
|
|
PKG_NAME:=aria2 |
|
|
PKG_VERSION:=1.18.7 |
|
|
|
|
|
|
|
|
PKG_VERSION:=1.23.0 |
|
|
PKG_RELEASE:=1 |
|
|
PKG_RELEASE:=1 |
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 |
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 |
|
|
PKG_SOURCE_URL:=@SF/aria2 |
|
|
|
|
|
PKG_MD5SUM:=36e92af92b4370817c577ed802546842 |
|
|
|
|
|
|
|
|
PKG_SOURCE_URL:=https://github.com/aria2/aria2/releases/download/release-$(PKG_VERSION)/ |
|
|
|
|
|
PKG_MD5SUM:=bc41d919e7d89835ee01c1175300eddc |
|
|
PKG_INSTALL:=1 |
|
|
PKG_INSTALL:=1 |
|
|
|
|
|
|
|
|
PKG_MAINTAINER:=Imre Kaloz <kaloz@openwrt.org> |
|
|
|
|
|
|
|
|
PKG_MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>, Hsing-Wang Liao <kuoruan@gmail.com> |
|
|
PKG_LICENSE:=GPLv2 |
|
|
PKG_LICENSE:=GPLv2 |
|
|
PKG_LICENSE_FILES:=COPYING |
|
|
PKG_LICENSE_FILES:=COPYING |
|
|
|
|
|
|
|
@ -24,7 +24,9 @@ PKG_CONFIG_DEPENDS := \ |
|
|
ARIA2_OPENSSL \
|
|
|
ARIA2_OPENSSL \
|
|
|
ARIA2_GNUTLS \
|
|
|
ARIA2_GNUTLS \
|
|
|
ARIA2_BITTORRENT \
|
|
|
ARIA2_BITTORRENT \
|
|
|
ARIA2_METALINK |
|
|
|
|
|
|
|
|
ARIA2_METALINK \
|
|
|
|
|
|
ARIA2_EXPAT \
|
|
|
|
|
|
ARIA2_LIBXML2 |
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk |
|
|
include $(INCLUDE_DIR)/package.mk |
|
|
|
|
|
|
|
@ -38,7 +40,7 @@ define Package/aria2 |
|
|
SUBMENU:=File Transfer |
|
|
SUBMENU:=File Transfer |
|
|
TITLE:=lightweight download utility |
|
|
TITLE:=lightweight download utility |
|
|
URL:=http://aria2.sourceforge.net/ |
|
|
URL:=http://aria2.sourceforge.net/ |
|
|
DEPENDS:=+zlib +ARIA2_METALINK:libxml2 +libstdcpp +ARIA2_OPENSSL:libopenssl +ARIA2_GNUTLS:libgnutls |
|
|
|
|
|
|
|
|
DEPENDS:=+zlib +ARIA2_LIBXML2:libxml2 +ARIA2_EXPAT:libexpat +libstdcpp +ARIA2_OPENSSL:libopenssl +ARIA2_GNUTLS:libgnutls |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
define Package/aria2/description |
|
|
define Package/aria2/description |
|
@ -53,11 +55,11 @@ CONFIGURE_ARGS += \ |
|
|
$(if $(CONFIG_ARIA2_GNUTLS),--with,--without)-gnutls \
|
|
|
$(if $(CONFIG_ARIA2_GNUTLS),--with,--without)-gnutls \
|
|
|
$(if $(CONFIG_ARIA2_BITTORRENT),--enable,--disable)-bittorrent \
|
|
|
$(if $(CONFIG_ARIA2_BITTORRENT),--enable,--disable)-bittorrent \
|
|
|
$(if $(CONFIG_ARIA2_METALINK),--enable,--disable)-metalink \
|
|
|
$(if $(CONFIG_ARIA2_METALINK),--enable,--disable)-metalink \
|
|
|
$(if $(CONFIG_ARIA2_METALINK),--with,--without)-libxml2 \
|
|
|
|
|
|
|
|
|
$(if $(CONFIG_ARIA2_LIBXML2),--with,--without)-libxml2 \
|
|
|
|
|
|
$(if $(CONFIG_ARIA2_EXPAT),--with,--without)-libexpat \
|
|
|
--without-libnettle \
|
|
|
--without-libnettle \
|
|
|
--without-libgmp \
|
|
|
--without-libgmp \
|
|
|
--without-libgcrypt \
|
|
|
--without-libgcrypt \
|
|
|
--without-libexpat \
|
|
|
|
|
|
--without-libcares \
|
|
|
--without-libcares \
|
|
|
--without-sqlite3 \
|
|
|
--without-sqlite3 \
|
|
|
--with-libz |
|
|
--with-libz |
|
@ -65,6 +67,12 @@ CONFIGURE_ARGS += \ |
|
|
define Package/aria2/install |
|
|
define Package/aria2/install |
|
|
$(INSTALL_DIR) $(1)/usr/bin |
|
|
$(INSTALL_DIR) $(1)/usr/bin |
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aria2c $(1)/usr/bin |
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aria2c $(1)/usr/bin |
|
|
|
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d |
|
|
|
|
|
$(INSTALL_BIN) ./files/aria2.init $(1)/etc/init.d/aria2 |
|
|
|
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config |
|
|
|
|
|
$(INSTALL_CONF) ./files/aria2.conf $(1)/etc/config/aria2 |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,aria2)) |
|
|
$(eval $(call BuildPackage,aria2)) |