2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-10-12 17:22:11 +02:00
|
|
|
#
|
|
|
|
# transmission
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2014-07-17 01:15:37 +02:00
|
|
|
TRANSMISSION_VERSION = 2.84
|
2014-07-31 10:46:58 +02:00
|
|
|
TRANSMISSION_SITE = http://download.transmissionbt.com/files
|
2013-09-06 08:14:15 +02:00
|
|
|
TRANSMISSION_SOURCE = transmission-$(TRANSMISSION_VERSION).tar.xz
|
2011-10-12 17:22:11 +02:00
|
|
|
TRANSMISSION_DEPENDENCIES = \
|
2012-10-22 17:47:52 +02:00
|
|
|
host-pkgconf \
|
2012-03-19 16:40:05 +01:00
|
|
|
host-intltool \
|
2011-10-12 17:22:11 +02:00
|
|
|
libcurl \
|
|
|
|
libevent \
|
|
|
|
openssl \
|
|
|
|
zlib
|
2014-02-18 15:16:30 +01:00
|
|
|
TRANSMISSION_AUTORECONF = YES
|
2014-09-27 21:32:44 +02:00
|
|
|
TRANSMISSION_CONF_OPTS = \
|
2011-10-12 17:22:11 +02:00
|
|
|
--disable-libnotify \
|
|
|
|
--enable-lightweight
|
2014-06-24 20:55:48 +02:00
|
|
|
TRANSMISSION_LICENSE = GPLv2 or GPLv3 with OpenSSL exception
|
|
|
|
TRANSMISSION_LICENSE_FILES = COPYING
|
2011-10-12 17:22:11 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_TRANSMISSION_UTP),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
TRANSMISSION_CONF_OPTS += --enable-utp
|
2011-10-12 17:22:11 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
TRANSMISSION_CONF_OPTS += --disable-utp
|
2011-10-12 17:22:11 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_TRANSMISSION_CLI),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
TRANSMISSION_CONF_OPTS += --enable-cli
|
2011-10-12 17:22:11 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
TRANSMISSION_CONF_OPTS += --disable-cli
|
2011-10-12 17:22:11 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_TRANSMISSION_DAEMON),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
TRANSMISSION_CONF_OPTS += --enable-daemon
|
2014-01-18 20:23:40 +01:00
|
|
|
|
2015-07-20 00:18:01 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
|
|
TRANSMISSION_DEPENDENCIES += systemd
|
|
|
|
TRANSMISSION_CONF_OPTS += --with-systemd-daemon
|
|
|
|
else
|
|
|
|
TRANSMISSION_CONF_OPTS += --without-systemd-daemon
|
|
|
|
endif
|
|
|
|
|
|
|
|
define TRANSMISSION_USERS
|
|
|
|
transmission -1 transmission -1 * /var/lib/transmission - transmission Transmission Daemon
|
|
|
|
endef
|
|
|
|
|
2014-01-18 20:23:40 +01:00
|
|
|
define TRANSMISSION_INSTALL_INIT_SYSV
|
2014-11-30 15:18:47 +01:00
|
|
|
$(INSTALL) -m 0755 -D package/transmission/S92transmission \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S92transmission
|
2014-01-18 20:23:40 +01:00
|
|
|
endef
|
|
|
|
|
2015-07-20 00:18:01 +02:00
|
|
|
define TRANSMISSION_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/daemon/transmission-daemon.service \
|
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/transmission-daemon.service
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
|
ln -fs ../../../../usr/lib/systemd/system/transmission-daemon.service \
|
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/transmission-daemon.service
|
|
|
|
endef
|
|
|
|
|
2011-10-12 17:22:11 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
TRANSMISSION_CONF_OPTS += --disable-daemon
|
2011-10-12 17:22:11 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_TRANSMISSION_REMOTE),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
TRANSMISSION_CONF_OPTS += --enable-remote
|
2011-10-12 17:22:11 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
TRANSMISSION_CONF_OPTS += --disable-remote
|
2011-10-12 17:22:11 +02:00
|
|
|
endif
|
|
|
|
|
2011-11-17 20:57:23 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_TRANSMISSION_GTK),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
TRANSMISSION_CONF_OPTS += --enable-gtk
|
|
|
|
TRANSMISSION_DEPENDENCIES += libgtk2
|
2011-11-17 20:57:23 +01:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
TRANSMISSION_CONF_OPTS += --disable-gtk
|
2011-11-17 20:57:23 +01:00
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|