Hi,
I built the new version of transmission, now is 2.21; besides the
libevent2 there a lot of other improvements; see here:
https://trac.transmissionbt.com/wiki/Changes#version-2.21
A new configure option called lightweight seems very relevant for those
resource-constrained devises such as both the fonera 2.0{g,n}.
Main changes:
% Transmission %
I removed the following two options unrecognised by now:
--disable-wx,
--with-wx-config
I added the new one:
--enable-lightweight
% Libevent %
- is now updated to the new version 2.0.10.
- the libevent.pc is copied to the pkgconfig directory
%% stop.sh and start.sh script %%
As before I put them in the old directory /bin in the torrent image
I attached the patches and will put them on the trac too.
Instructions that explain how to install are here:
http://disi.unitn.it/~valleri/fon/#transmission
paolo
Index: libevent2/Makefile
===================================================================
--- libevent2/Makefile (revision 1866)
+++ libevent2/Makefile (working copy)
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2006-2010 OpenWrt.org
+# Copyright (C) 2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@@ -7,28 +7,28 @@
include $(TOPDIR)/rules.mk
-PKG_NAME:=libevent
-PKG_VERSION:=1.4.13
-PKG_RELEASE:=2
+PKG_NAME:=libevent2
+PKG_VERSION:=2.0.10
+PKG_RELEASE:=1
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-stable
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-stable.tar.gz
+PKG_BUILD_DIR:=$(BUILD_DIR)/libevent-$(PKG_VERSION)-stable
+PKG_SOURCE:=libevent-$(PKG_VERSION)-stable.tar.gz
PKG_SOURCE_URL:=http://www.monkey.org/~provos/
-PKG_MD5SUM:=0b3ea18c634072d12b3c1ee734263664
+PKG_MD5SUM:=a37401d26cbbf28185211d582741a3d4
PKG_FIXUP:=libtool
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
-define Package/libevent
+define Package/libevent2
SECTION:=libs
CATEGORY:=Libraries
- TITLE:=Event notification library
+ TITLE:=Event notification library (version 2.0)
URL:=http://www.monkey.org/~provos/libevent/
endef
-define Package/libevent/description
+define Package/libevent2/description
The libevent API provides a mechanism to execute a callback function
when a specific event occurs on a file descriptor or after a timeout
has been reached. Furthermore, libevent also support callbacks due
@@ -46,22 +46,22 @@
CONFIGURE_ARGS += \
--enable-shared \
- --enable-static \
+ --enable-static
MAKE_FLAGS += \
- CFLAGS="$(TARGET_CFLAGS)" \
+ CFLAGS="$(TARGET_CFLAGS)"
define Build/InstallDev
- $(INSTALL_DIR) $(1)/usr/include
+ $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
- $(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent.{la,a,so} $(1)/usr/lib/
- $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent-1.4.so* $(1)/usr/lib/
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent-2.0.so* $(1)/usr/lib/
+ $(CP) $(PKG_BUILD_DIR)/libevent.pc $(1)/usr/lib/pkgconfig/
endef
-define Package/libevent/install
+define Package/libevent2/install
$(INSTALL_DIR) $(1)/usr/lib
- $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent-1.4.so.* $(1)/usr/lib/
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent-2.0.so.* $(1)/usr/lib/
endef
-$(eval $(call BuildPackage,libevent))
+$(eval $(call BuildPackage,libevent2))
Index: Makefile
===================================================================
--- Makefile (revision 1866)
+++ Makefile (working copy)
@@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=transmission
-PKG_VERSION:=2.13
+PKG_VERSION:=2.21
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://mirrors.m0k.org/transmission/files
-PKG_MD5SUM:=eb126ae88b80487f2840896939019421
+PKG_MD5SUM:=65a00e3423834121c274717bde2b4dd9
PKG_FIXUP = libtool
@@ -23,13 +23,13 @@
SUBMENU:=BitTorrent
SECTION:=net
CATEGORY:=Network
- TITLE:=A free, lightweight BitTorrent client
+ TITLE:=A free, lightweight BitTorrent client 2.21
URL:=http://www.transmissionbt.com
endef
define Package/transmission-daemon
$(call Package/transmission/template)
- DEPENDS:=+libcurl +libopenssl +libpthread +libevent
+ DEPENDS:=+libcurl +libopenssl +libpthread +libevent2
MENU:=1
endef
@@ -61,8 +61,7 @@
CONFIGURE_ARGS += \
--enable-daemon \
--disable-gtk \
- --disable-wx \
- --with-wx-config="$(STAGING_DIR)/usr/bin/" \
+ --enable-lightweight \
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
_______________________________________________
Development mailing list
[email protected]
http://fonosfera.org/mailman/listinfo/development