[packages] transmission: update to 2.50, drop open_file_limit - has been removed a few month ago
git-svn-id: svn://svn.openwrt.org/openwrt/packages@30585 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
6db2ea57e2
commit
bb0ab8fa68
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2009-2011 OpenWrt.org
|
||||
# Copyright (C) 2009-2012 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
@ -8,12 +8,12 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=transmission
|
||||
PKG_VERSION:=2.42
|
||||
PKG_RELEASE:=4
|
||||
PKG_VERSION:=2.50
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||
PKG_SOURCE_URL:=http://mirrors.m0k.org/transmission/files
|
||||
PKG_MD5SUM:=2ade0818d465779bd956b8b72ea56b02
|
||||
PKG_MD5SUM:=c3611108e34fe6ebdcf93da5beb89045
|
||||
|
||||
PKG_FIXUP:=libtool
|
||||
PKG_INSTALL:=1
|
||||
|
@ -26,7 +26,6 @@ config transmission
|
||||
option lazy_bitfield_enabled true
|
||||
option lpd_enabled false
|
||||
option message_level 1
|
||||
option open_file_limit 32
|
||||
option peer_congestion_algorithm ''
|
||||
option peer_limit_global 240
|
||||
option peer_limit_per_torrent 60
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2010-2011 OpenWrt.org
|
||||
# Copyright (C) 2010-2012 OpenWrt.org
|
||||
|
||||
START=99
|
||||
|
||||
@ -43,8 +43,6 @@ section_enabled() {
|
||||
start_instance() {
|
||||
local s="$1"
|
||||
local user
|
||||
local open_file_limit=0
|
||||
local ulimit_files=$(ulimit -n)
|
||||
|
||||
section_enabled "$section" || return 1
|
||||
|
||||
@ -66,7 +64,7 @@ start_instance() {
|
||||
cache_size_mb download_queue_enabled download_queue_size \
|
||||
dht_enabled encryption idle_seeding_limit idle_seeding_limit_enabled \
|
||||
incomplete_dir_enabled lazy_bitfield_enabled lpd_enabled message_level \
|
||||
open_file_limit peer_limit_global peer_limit_per_torrent peer_port \
|
||||
peer_limit_global peer_limit_per_torrent peer_port \
|
||||
peer_port_random_high peer_port_random_low peer_port_random_on_start \
|
||||
pex_enabled port_forwarding_enabled preallocation prefetch_enabled \
|
||||
ratio_limit ratio_limit_enabled rename_partial_files rpc_authentication_required \
|
||||
@ -86,13 +84,6 @@ start_instance() {
|
||||
echo "\""invalid-key"\": false" >> $config_file
|
||||
echo "}" >> $config_file
|
||||
|
||||
config_get open_file_limit "$s" 'open_file_limit' 32
|
||||
open_limit_files=$(($open_file_limit + 8))
|
||||
|
||||
if [ ${open_file_limit} -gt ${ulimit_files} ]; then
|
||||
ulimit -n $open_limit_files
|
||||
fi
|
||||
|
||||
SERVICE_UID="$user" \
|
||||
service_start /usr/bin/transmission-daemon -g $config_dir
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user