2008-05-26 20:54:21 +00:00
|
|
|
#
|
2010-01-08 00:14:12 +00:00
|
|
|
# Copyright (C) 2009-2010 OpenWrt.org
|
2008-05-26 20:54:21 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=transmission
|
2010-10-17 18:15:35 +00:00
|
|
|
PKG_VERSION:=2.11
|
2010-10-04 17:47:40 +00:00
|
|
|
PKG_RELEASE:=1
|
2008-05-26 20:54:21 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2009-05-07 20:45:12 +00:00
|
|
|
PKG_SOURCE_URL:=http://mirrors.m0k.org/transmission/files
|
2010-10-17 18:15:35 +00:00
|
|
|
PKG_MD5SUM:=ef2b40ddc2c17a57c47bfe15b1f23cc4
|
2008-05-26 20:54:21 +00:00
|
|
|
|
2010-01-08 00:14:12 +00:00
|
|
|
PKG_FIXUP:=libtool
|
|
|
|
PKG_INSTALL:=1
|
2010-09-07 10:04:42 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2008-05-26 20:54:21 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2009-03-03 15:35:36 +00:00
|
|
|
define Package/transmission/template
|
2008-05-26 20:54:21 +00:00
|
|
|
SUBMENU:=BitTorrent
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=A free, lightweight BitTorrent client
|
|
|
|
URL:=http://www.transmissionbt.com
|
2010-10-09 05:38:15 +00:00
|
|
|
MAINTAINER:=Cezary Jackiewicz <cezary@eko.one.pl>
|
2008-05-26 20:54:21 +00:00
|
|
|
endef
|
|
|
|
|
2009-03-03 15:35:36 +00:00
|
|
|
define Package/transmission-daemon
|
|
|
|
$(call Package/transmission/template)
|
2009-09-20 12:38:09 +00:00
|
|
|
DEPENDS:=+libcurl +libopenssl +libpthread +libevent
|
2009-03-03 15:35:36 +00:00
|
|
|
MENU:=1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/transmission-cli
|
|
|
|
$(call Package/transmission/template)
|
|
|
|
DEPENDS:=transmission-daemon
|
|
|
|
endef
|
|
|
|
|
2010-08-08 07:02:59 +00:00
|
|
|
define Package/transmission-remote
|
|
|
|
$(call Package/transmission/template)
|
|
|
|
endef
|
|
|
|
|
2009-03-03 15:35:36 +00:00
|
|
|
define Package/transmission-web
|
|
|
|
$(call Package/transmission/template)
|
|
|
|
DEPENDS:=transmission-daemon
|
|
|
|
endef
|
|
|
|
|
2010-03-15 20:02:22 +00:00
|
|
|
|
2009-03-03 15:35:36 +00:00
|
|
|
define Package/transmission-daemon/description
|
2008-05-26 20:54:21 +00:00
|
|
|
Transmission is a simple BitTorrent client.
|
|
|
|
It features a very simple, intuitive interface
|
|
|
|
on top on an efficient, cross-platform back-end.
|
2009-03-03 15:35:36 +00:00
|
|
|
This package contains the daemon itself.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/transmission-cli/description
|
|
|
|
CLI utilities for transmission.
|
|
|
|
endef
|
|
|
|
|
2010-08-08 07:02:59 +00:00
|
|
|
define Package/transmission-remote/description
|
|
|
|
CLI remote interface for transmission.
|
|
|
|
endef
|
|
|
|
|
2009-03-03 15:35:36 +00:00
|
|
|
define Package/transmission-web/description
|
|
|
|
Webinterface resources for transmission.
|
2008-05-26 20:54:21 +00:00
|
|
|
endef
|
|
|
|
|
2010-03-15 20:02:22 +00:00
|
|
|
define Package/transmission-daemon/conffiles
|
|
|
|
/etc/config/transmission
|
|
|
|
endef
|
|
|
|
|
2010-06-04 07:02:16 +00:00
|
|
|
CONFIGURE_VARS += \
|
|
|
|
LIBEVENT_LIBS="$(STAGING_DIR)/usr/lib/libevent.so"
|
|
|
|
|
2008-05-26 20:54:21 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-daemon \
|
2010-08-08 07:02:59 +00:00
|
|
|
--enable-cli \
|
2010-09-02 15:10:15 +00:00
|
|
|
--disable-gtk \
|
|
|
|
--enable-largefile
|
2008-05-26 20:54:21 +00:00
|
|
|
|
2010-01-08 00:14:12 +00:00
|
|
|
MAKE_FLAGS += \
|
2010-06-04 07:02:16 +00:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)"
|
2008-05-26 20:54:21 +00:00
|
|
|
|
2009-03-03 15:35:36 +00:00
|
|
|
define Package/transmission-daemon/install
|
2010-01-08 00:14:12 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-daemon $(1)/usr/bin/
|
2010-01-30 13:52:09 +00:00
|
|
|
$(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
|
2009-03-03 15:35:36 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/transmission-cli/install
|
2008-05-26 20:54:21 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2010-10-04 17:47:40 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-cli \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/bin/transmission-create \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/bin/transmission-edit \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/bin/transmission-show \
|
|
|
|
$(1)/usr/bin/
|
2010-08-08 07:02:59 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/transmission-remote/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2010-01-08 00:14:12 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-remote $(1)/usr/bin/
|
2008-05-26 20:54:21 +00:00
|
|
|
endef
|
|
|
|
|
2009-03-03 15:35:36 +00:00
|
|
|
define Package/transmission-web/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/transmission
|
2010-01-08 00:14:12 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/transmission/web $(1)/usr/share/transmission/
|
2009-03-03 15:35:36 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,transmission-daemon))
|
|
|
|
$(eval $(call BuildPackage,transmission-cli))
|
2010-08-08 07:02:59 +00:00
|
|
|
$(eval $(call BuildPackage,transmission-remote))
|
2009-03-03 15:35:36 +00:00
|
|
|
$(eval $(call BuildPackage,transmission-web))
|