#
-# Copyright (C) 2009 OpenWrt.org
+# Copyright (C) 2009-2010 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:=1.74
-PKG_RELEASE:=2
+PKG_VERSION:=1.92
+PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://mirrors.m0k.org/transmission/files
-PKG_MD5SUM:=6b1080800c62308179cfc7a691c82d63
+PKG_MD5SUM:=561357621331f294c87f78e22783a283
-PKG_FIXUP = libtool
+PKG_FIXUP:=libtool
+PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
DEPENDS:=transmission-daemon
endef
+
define Package/transmission-daemon/description
Transmission is a simple BitTorrent client.
It features a very simple, intuitive interface
Webinterface resources for transmission.
endef
+define Package/transmission-daemon/conffiles
+/etc/config/transmission
+endef
+
CONFIGURE_ARGS += \
--enable-daemon \
--disable-gtk \
--disable-wx \
--with-wx-config="$(STAGING_DIR)/usr/bin/" \
-define Build/Compile
- $(MAKE) -C $(PKG_BUILD_DIR) \
- $(TARGET_CONFIGURE_OPTS) \
- CFLAGS="$(TARGET_CFLAGS)"
-endef
+MAKE_FLAGS += \
+ CFLAGS="$(TARGET_CFLAGS)" \
define Package/transmission-daemon/install
- $(INSTALL_DIR) $(1)/usr/sbin
- $(INSTALL_BIN) $(PKG_BUILD_DIR)/daemon/transmission-daemon $(1)/usr/sbin/
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-daemon $(1)/usr/bin/
+ $(INSTALL_DIR) $(1)/etc/init.d/
+ $(INSTALL_BIN) files/transmission.init $(1)/etc/init.d/transmission
+ $(INSTALL_DIR) $(1)/etc/config
+ $(INSTALL_CONF) files/transmission.config $(1)/etc/config/transmission
endef
define Package/transmission-cli/install
$(INSTALL_DIR) $(1)/usr/bin
- $(INSTALL_BIN) $(PKG_BUILD_DIR)/cli/transmissioncli $(1)/usr/bin/
- $(INSTALL_BIN) $(PKG_BUILD_DIR)/daemon/transmission-remote $(1)/usr/bin/
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmissioncli $(1)/usr/bin/
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-remote $(1)/usr/bin/
endef
define Package/transmission-web/install
$(INSTALL_DIR) $(1)/usr/share/transmission
- rm -rf `find $(PKG_BUILD_DIR)/web -type d -name .svn`
- cp -rf $(PKG_BUILD_DIR)/web $(1)/usr/share/transmission
+ $(CP) $(PKG_INSTALL_DIR)/usr/share/transmission/web $(1)/usr/share/transmission/
endef
$(eval $(call BuildPackage,transmission-daemon))