mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
net-p2p/transmission-components: Get transmission-web back
After the reorganization of the port in ac3e39992e
the web interface was only available if the daemon component was selected.
This is not right since the gtk version of transmission needs those files too,
otherwise the setup is broken.
Bring transmission-web option back.
PR: 279214
Reported by: fernape@FreeBSD.org
This commit is contained in:
parent
b7a05632d1
commit
bd0b0eec12
7
UPDATING
7
UPDATING
@ -5,6 +5,13 @@ they are unavoidable.
|
||||
You should get into the habit of checking this file for changes each time
|
||||
you update your ports collection, before attempting any port upgrades.
|
||||
|
||||
20240522:
|
||||
AFFECTS: net-p2p/transmission-daemon
|
||||
|
||||
The web interface has been separated from the daemon port into its own port.
|
||||
This allows users of transmission-gtk and transmission-qt to install the web
|
||||
interface.
|
||||
|
||||
20240521:
|
||||
AFFECTS: www/gitlab
|
||||
AUTHOR: mfechner@FreeBSD.org
|
||||
|
@ -1,6 +1,6 @@
|
||||
PORTNAME= transmission
|
||||
DISTVERSION= 4.0.5
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= net-p2p
|
||||
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${DISTVERSION}/
|
||||
|
||||
@ -25,7 +25,7 @@ LIB_DEPENDS= libb64.so:converters/libb64 \
|
||||
libpsl.so:dns/libpsl \
|
||||
libutp.so:net-p2p/libutp
|
||||
|
||||
FLAVORS= cli docs daemon gtk qt utils
|
||||
FLAVORS= cli docs daemon gtk qt utils web
|
||||
FLAVOR?= ${FLAVORS:[1]}
|
||||
.for flavor in ${FLAVORS}
|
||||
${flavor}_PKGNAMESUFFIX= -${flavor}
|
||||
@ -77,6 +77,13 @@ USE_RC_SUBR= transmission
|
||||
USES= cpe tar:xz
|
||||
.endif
|
||||
|
||||
.if ${FLAVOR} == web
|
||||
USES= cpe tar:xz
|
||||
NO_ARCH= yes
|
||||
NO_BUILD= yes
|
||||
#PORTDATA= public_html
|
||||
.endif
|
||||
|
||||
CMAKE_ON= USE_SYSTEM_B64 USE_SYSTEM_DEFLATE USE_SYSTEM_DHT \
|
||||
USE_SYSTEM_EVENT2 USE_SYSTEM_MINIUPNPC USE_SYSTEM_NATPMP \
|
||||
USE_SYSTEM_PSL USE_SYSTEM_UTP
|
||||
@ -96,7 +103,7 @@ CMAKE_OFF+= ENABLE_DAEMON ENABLE_GTK ENABLE_QT ENABLE_UTILS INSTALL_WEB
|
||||
|
||||
.if ${FLAVOR} == daemon
|
||||
CMAKE_ON+= ENABLE_DAEMON
|
||||
CMAKE_OFF+= ENABLE_CLI ENABLE_GTK ENABLE_QT ENABLE_UTILS
|
||||
CMAKE_OFF+= ENABLE_CLI ENABLE_GTK ENABLE_QT ENABLE_UTILS INSTALL_WEB
|
||||
.endif
|
||||
|
||||
.if ${FLAVOR} == gtk
|
||||
@ -120,8 +127,8 @@ CMAKE_OFF+= ENABLE_CLI ENABLE_DAEMON ENABLE_GTK ENABLE_QT ENABLE_TESTS \
|
||||
OPTIONS_FILE= ${PORT_DBDIR}/${OPTIONS_NAME}/${FLAVOR}-options
|
||||
|
||||
.if ${FLAVOR:Mdaemon}
|
||||
OPTIONS_DEFINE= NLS TESTS WEB
|
||||
OPTIONS_DEFAULT= NLS WEB
|
||||
OPTIONS_DEFINE= NLS TESTS
|
||||
OPTIONS_DEFAULT= NLS
|
||||
.endif
|
||||
|
||||
.if ${FLAVOR:Mdocs}
|
||||
@ -142,7 +149,7 @@ qt_DESC= Build QT client
|
||||
TESTS_DESC= Build & run unit tests
|
||||
utils_DESC= Build utilities (create, edit, remote, show)
|
||||
cli_DESC= Build command-line client (deprecated)
|
||||
WEB_DESC= Install web client (implies daemon)
|
||||
#web_DESC= Install web interface
|
||||
|
||||
NLS_USES= gettext-runtime:lib
|
||||
NLS_CMAKE_BOOL= ENABLE_NLS
|
||||
@ -181,6 +188,11 @@ post-install:
|
||||
${MKDIR} ${STAGEDIR}${ETCDIR}/home
|
||||
.endif
|
||||
|
||||
.if ${FLAVOR} == web
|
||||
do-install:
|
||||
( cd ${WRKSRC}/web && ${COPYTREE_SHARE} public_html ${STAGEDIR}${DATADIR} )
|
||||
.endif
|
||||
|
||||
post-install-TESTS-on:
|
||||
@${ECHO_MSG} "Running tests..."
|
||||
@cd ${BUILD_WRKSRC}/tests/libtransmission/ && \
|
||||
|
@ -1,9 +1,4 @@
|
||||
The transmission-daemon is a daemon-based Transmission session that can be
|
||||
controlled via RPC by transmission-remote (see transmission-utils) and
|
||||
other Transmission BiTtorrent client such as GTK+ and CLI interface.
|
||||
|
||||
Transmission Web Interface (Clutch) is a WebUI for the Transmission BitTorrent
|
||||
client. It allows you to manage your torrents from anywhere you can access the
|
||||
internet, and runs on OS X and various flavors of *nix. It provides most of
|
||||
the basic features of the desktop client, including torrent upload, torrent
|
||||
start/stop, file path selection, speed limiting etc.
|
||||
The daemon may also be controlled by installing the web interface.
|
||||
|
@ -1 +1,3 @@
|
||||
Transmission-gtk provides a native Transmission client for the GNOME desktop environment.
|
||||
Transmission-gtk provides a native Transmission client for the GNOME desktop
|
||||
environment. The gtk client may also be controlled by installing the web
|
||||
interface.
|
||||
|
@ -1 +1,3 @@
|
||||
Transmission-qt provides a native Transmission client for the KDE and GNOME desktop environments.
|
||||
Transmission-qt provides a native Transmission client for the KDE and GNOME
|
||||
desktop environments. The daemon may also be controlled by installing the web
|
||||
interface.
|
||||
|
8
net-p2p/transmission-components/pkg-descr.web
Normal file
8
net-p2p/transmission-components/pkg-descr.web
Normal file
@ -0,0 +1,8 @@
|
||||
Transmission Web Interface (Clutch) is a WebUI for the Transmission BitTorrent
|
||||
client. It allows you to manage your torrents from anywhere you can access the
|
||||
internet, and runs on OS X and various flavors of *nix. It provides most of
|
||||
the basic features of the desktop client, including torrent upload, torrent
|
||||
start/stop, file path selection, speed limiting etc.
|
||||
|
||||
Use of the Transmission Web Interface requires installation of
|
||||
transmission-daemon, transmisssion-gtk, or transmission-qt.
|
@ -1,10 +1,3 @@
|
||||
bin/transmission-daemon
|
||||
@dir %%ETCDIR%%/home
|
||||
share/man/man1/transmission-daemon.1.gz
|
||||
%%WEB%%%%DATADIR%%/public_html/images/favicon.ico
|
||||
%%WEB%%%%DATADIR%%/public_html/images/favicon.png
|
||||
%%WEB%%%%DATADIR%%/public_html/images/webclip-icon.png
|
||||
%%WEB%%%%DATADIR%%/public_html/index.html
|
||||
%%WEB%%%%DATADIR%%/public_html/transmission-app.css
|
||||
%%WEB%%%%DATADIR%%/public_html/transmission-app.js
|
||||
%%WEB%%%%DATADIR%%/public_html/transmission-app.js.LEGAL.txt
|
||||
|
7
net-p2p/transmission-components/pkg-plist.web
Normal file
7
net-p2p/transmission-components/pkg-plist.web
Normal file
@ -0,0 +1,7 @@
|
||||
%%DATADIR%%/public_html/images/favicon.ico
|
||||
%%DATADIR%%/public_html/images/favicon.png
|
||||
%%DATADIR%%/public_html/images/webclip-icon.png
|
||||
%%DATADIR%%/public_html/index.html
|
||||
%%DATADIR%%/public_html/transmission-app.css
|
||||
%%DATADIR%%/public_html/transmission-app.js
|
||||
%%DATADIR%%/public_html/transmission-app.js.LEGAL.txt
|
@ -1,5 +1,6 @@
|
||||
PORTNAME= transmission
|
||||
DISTVERSION= 4.0.5
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net-p2p
|
||||
|
||||
MAINTAINER= mondo.debater_0q@icloud.com
|
||||
@ -10,8 +11,8 @@ LICENSE= GPLv3+
|
||||
|
||||
USES= metaport
|
||||
|
||||
OPTIONS_DEFINE= CLI DAEMON DOCS GTK QT UTILS
|
||||
OPTIONS_DEFAULT= CLI DAEMON GTK QT UTILS
|
||||
OPTIONS_DEFINE= CLI DAEMON DOCS GTK QT UTILS WEB
|
||||
OPTIONS_DEFAULT= CLI DAEMON GTK QT UTILS WEB
|
||||
|
||||
CLI_DESC= Build command-line client (deprecated)
|
||||
DAEMON_DESC= Build daemon
|
||||
@ -19,6 +20,7 @@ DOCS_DESC= Install documentation
|
||||
GTK_DESC= Build GTK+ client
|
||||
QT_DESC= Build QT client
|
||||
UTILS_DESC= Build utilities (create, edit, remote, show)
|
||||
WEB_DESC= Install web interface
|
||||
|
||||
CLI_RUN_DEPENDS= transmission-cli:net-p2p/transmission-components@cli
|
||||
DAEMON_RUN_DEPENDS= transmission-daemon:net-p2p/transmission-components@daemon
|
||||
@ -26,5 +28,6 @@ DOCS_RUN_DEPENDS= ${DOCSDIR}/README.md:net-p2p/transmission-components@docs
|
||||
GTK_RUN_DEPENDS= transmission-gtk:net-p2p/transmission-components@gtk
|
||||
QT_RUN_DEPENDS= transmission-qt:net-p2p/transmission-components@qt
|
||||
UTILS_RUN_DEPENDS= transmission-create:net-p2p/transmission-components@utils
|
||||
WEB_RUN_DEPENDS= ${DATADIR}/public_html/index.html:net-p2p/transmission-components@web
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user