1640fca208
All these packages have an upstream-provided service, but buildroot enabled manually the services in exactly the same way as the [Install] section. This is not needed anymore Signed-off-by: Jérémy Rosen <jeremy.rosen@smile.fr> [yann.morin.1998@free.fr: fix check-package errors] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
83 lines
2.1 KiB
Makefile
83 lines
2.1 KiB
Makefile
################################################################################
|
|
#
|
|
# transmission
|
|
#
|
|
################################################################################
|
|
|
|
TRANSMISSION_VERSION = 2.94
|
|
TRANSMISSION_SITE = https://github.com/transmission/transmission-releases/raw/master
|
|
TRANSMISSION_SOURCE = transmission-$(TRANSMISSION_VERSION).tar.xz
|
|
TRANSMISSION_DEPENDENCIES = \
|
|
host-pkgconf \
|
|
host-intltool \
|
|
libcurl \
|
|
libevent \
|
|
openssl \
|
|
zlib
|
|
TRANSMISSION_AUTORECONF = YES
|
|
TRANSMISSION_CONF_OPTS = \
|
|
--without-inotify \
|
|
--enable-lightweight
|
|
TRANSMISSION_LICENSE = GPL-2.0 or GPL-3.0 with OpenSSL exception
|
|
TRANSMISSION_LICENSE_FILES = COPYING
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBMINIUPNPC),y)
|
|
TRANSMISSION_DEPENDENCIES += libminiupnpc
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBNATPMP),y)
|
|
TRANSMISSION_DEPENDENCIES += libnatpmp
|
|
TRANSMISSION_CONF_OPTS += --enable-external-natpmp
|
|
else
|
|
TRANSMISSION_CONF_OPTS += --disable-external-natpmp
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_TRANSMISSION_UTP),y)
|
|
TRANSMISSION_CONF_OPTS += --enable-utp
|
|
else
|
|
TRANSMISSION_CONF_OPTS += --disable-utp
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_TRANSMISSION_CLI),y)
|
|
TRANSMISSION_CONF_OPTS += --enable-cli
|
|
else
|
|
TRANSMISSION_CONF_OPTS += --disable-cli
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_TRANSMISSION_DAEMON),y)
|
|
TRANSMISSION_CONF_OPTS += --enable-daemon
|
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
TRANSMISSION_DEPENDENCIES += systemd
|
|
TRANSMISSION_CONF_OPTS += --with-systemd
|
|
else
|
|
TRANSMISSION_CONF_OPTS += --without-systemd
|
|
endif
|
|
|
|
define TRANSMISSION_USERS
|
|
transmission -1 transmission -1 * /var/lib/transmission - transmission Transmission Daemon
|
|
endef
|
|
|
|
define TRANSMISSION_INSTALL_INIT_SYSV
|
|
$(INSTALL) -m 0755 -D package/transmission/S92transmission \
|
|
$(TARGET_DIR)/etc/init.d/S92transmission
|
|
endef
|
|
|
|
define TRANSMISSION_INSTALL_INIT_SYSTEMD
|
|
$(INSTALL) -D -m 0644 $(@D)/daemon/transmission-daemon.service \
|
|
$(TARGET_DIR)/usr/lib/systemd/system/transmission-daemon.service
|
|
endef
|
|
|
|
else
|
|
TRANSMISSION_CONF_OPTS += --disable-daemon
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_TRANSMISSION_GTK),y)
|
|
TRANSMISSION_CONF_OPTS += --with-gtk
|
|
TRANSMISSION_DEPENDENCIES += libgtk3
|
|
else
|
|
TRANSMISSION_CONF_OPTS += --without-gtk
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|