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:=9b7c729d71d6c400ffec48a969e95525
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
69 LIBEVENT_LIBS="$(STAGING_DIR)/usr/lib/libevent.so"
76 CFLAGS="$(TARGET_CFLAGS)"
78 define Package/transmission-daemon/install
79 $(INSTALL_DIR) $(1)/usr/bin
80 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-daemon $(1)/usr/bin/
81 $(INSTALL_DIR) $(1)/etc/init.d/
82 $(INSTALL_BIN) files/transmission.init $(1)/etc/init.d/transmission
83 $(INSTALL_DIR) $(1)/etc/config
84 $(INSTALL_CONF) files/transmission.config $(1)/etc/config/transmission
87 define Package/transmission-cli/install
88 $(INSTALL_DIR) $(1)/usr/bin
89 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmissioncli $(1)/usr/bin/
90 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-remote $(1)/usr/bin/
93 define Package/transmission-web/install
94 $(INSTALL_DIR) $(1)/usr/share/transmission
95 $(CP) $(PKG_INSTALL_DIR)/usr/share/transmission/web $(1)/usr/share/transmission/
98 $(eval $(call BuildPackage,transmission-daemon))
99 $(eval $(call BuildPackage,transmission-cli))
100 $(eval $(call BuildPackage,transmission-web))