#
-# 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.
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
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
#!/bin/sh /etc/rc.common
-# Copyright (C) 2010-2011 OpenWrt.org
+# Copyright (C) 2010-2012 OpenWrt.org
START=99
start_instance() {
local s="$1"
local user
- local open_file_limit=0
- local ulimit_files=$(ulimit -n)
section_enabled "$section" || return 1
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 \
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
}