mirror of
https://github.com/coolsnowwolf/packages
synced 2025-01-08 11:17:36 +08:00
aria2: bump to 1.34
This commit is contained in:
parent
ee49d80825
commit
6c579fe621
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2012-2017 OpenWrt.org
|
||||
# Copyright (C) 2012-2018 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
@ -7,13 +7,14 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=aria2
|
||||
PKG_VERSION:=1.33.0
|
||||
PKG_VERSION:=1.34.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||
PKG_SOURCE_URL:=https://github.com/aria2/aria2/releases/download/release-$(PKG_VERSION)/
|
||||
PKG_HASH:=996e3fc2fd07ce2dd517e20a1f79b8b3dbaa5c7e27953b5fc19dae38f3874b8c
|
||||
PKG_HASH:=3a44a802631606e138a9e172a3e9f5bcbaac43ce2895c1d8e2b46f30487e77a3
|
||||
PKG_INSTALL:=1
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
|
||||
PKG_MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>, \
|
||||
Hsing-Wang Liao <kuoruan@gmail.com>
|
||||
@ -80,6 +81,9 @@ CONFIGURE_ARGS += \
|
||||
--without-libuv \
|
||||
--with-libz
|
||||
|
||||
TARGET_CXXFLAGS += -ffunction-sections -fdata-sections -flto
|
||||
TARGET_LDFLAGS += -Wl,--gc-sections -flto
|
||||
|
||||
define Package/aria2/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aria2c $(1)/usr/bin
|
||||
|
@ -224,7 +224,7 @@ aria2_start() {
|
||||
append_setting "rpc-secret=${rpc_secret}"
|
||||
elif [ -n "$rpc_user" ]; then
|
||||
append_setting "rpc-user=${rpc_user}"
|
||||
append_setting "rcp-passwd=${rcp-passwd}"
|
||||
append_setting "rpc-passwd=${rpc_passwd}"
|
||||
else
|
||||
_info "It is recommand to set RPC secret."
|
||||
fi
|
||||
@ -235,9 +235,9 @@ aria2_start() {
|
||||
unset_auth_method
|
||||
fi
|
||||
elif [ "$rpc_auth_method" = "user_pass" ]; then
|
||||
if [ -n "$rcp_user" ]; then
|
||||
if [ -n "$rpc_user" ]; then
|
||||
append_setting "rpc-user=${rpc_user}"
|
||||
append_setting "rcp-passwd=${rcp-passwd}"
|
||||
append_setting "rpc-passwd=${rpc_passwd}"
|
||||
else
|
||||
_info "Please set RPC user."
|
||||
unset_auth_method
|
||||
@ -252,6 +252,8 @@ aria2_start() {
|
||||
if [ ."$check_certificate" = ."true" ]; then
|
||||
append_setting "check-certificate=true"
|
||||
append_options "ca_certificate"
|
||||
elif [ ."$check_certificate" = ."false" ]; then
|
||||
append_setting "check-certificate=false"
|
||||
fi
|
||||
|
||||
if [ ."$enable_dht" = ."true" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user