2 # Copyright (C) 2009-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
10 PKG_NAME:=transmission
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://mirrors.m0k.org/transmission/files
16 PKG_MD5SUM:=43540a46a4eeac88e53a67573feca21a
21 include $(INCLUDE_DIR)/package.mk
23 define Package/transmission/template
27 TITLE:=A free, lightweight BitTorrent client
28 URL:=http://www.transmissionbt.com
29 MAINTAINER:=Cezary Jackiewicz <cezary@eko.one.pl>
32 define Package/transmission-daemon
33 $(call Package/transmission/template)
34 DEPENDS:=+libcurl +libopenssl +libpthread +libevent
38 define Package/transmission-cli
39 $(call Package/transmission/template)
40 DEPENDS:=transmission-daemon
43 define Package/transmission-web
44 $(call Package/transmission/template)
45 DEPENDS:=transmission-daemon
49 define Package/transmission-daemon/description
50 Transmission is a simple BitTorrent client.
51 It features a very simple, intuitive interface
52 on top on an efficient, cross-platform back-end.
53 This package contains the daemon itself.
56 define Package/transmission-cli/description
57 CLI utilities for transmission.
60 define Package/transmission-web/description
61 Webinterface resources for transmission.
64 define Package/transmission-daemon/conffiles
65 /etc/config/transmission
72 --with-wx-config="$(STAGING_DIR)/usr/bin/" \
75 CFLAGS="$(TARGET_CFLAGS)" \
77 define Package/transmission-daemon/install
78 $(INSTALL_DIR) $(1)/usr/bin
79 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-daemon $(1)/usr/bin/
80 $(INSTALL_DIR) $(1)/etc/init.d/
81 $(INSTALL_BIN) files/transmission.init $(1)/etc/init.d/transmission
82 $(INSTALL_DIR) $(1)/etc/config
83 $(INSTALL_CONF) files/transmission.config $(1)/etc/config/transmission
86 define Package/transmission-cli/install
87 $(INSTALL_DIR) $(1)/usr/bin
88 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmissioncli $(1)/usr/bin/
89 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-remote $(1)/usr/bin/
92 define Package/transmission-web/install
93 $(INSTALL_DIR) $(1)/usr/share/transmission
94 $(CP) $(PKG_INSTALL_DIR)/usr/share/transmission/web $(1)/usr/share/transmission/
97 $(eval $(call BuildPackage,transmission-daemon))
98 $(eval $(call BuildPackage,transmission-cli))
99 $(eval $(call BuildPackage,transmission-web))