From: Arne Fitzenreiter Date: Sun, 11 Feb 2024 12:33:39 +0000 (+0100) Subject: transmission: add menuentry to transmission webgui X-Git-Tag: v2.29-core185~178^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a4f29a53477951513a7621f52c313541e87bf735;p=ipfire-2.x.git transmission: add menuentry to transmission webgui Signed-off-by: Arne Fitzenreiter --- diff --git a/config/menu/EX-transmission.menu b/config/menu/EX-transmission.menu new file mode 100644 index 000000000..5199f6c99 --- /dev/null +++ b/config/menu/EX-transmission.menu @@ -0,0 +1,5 @@ + $subipfire->{'42.transmission'} = {'caption' => TransmissionBT, + 'uri' => '/cgi-bin/transmission.cgi', + 'title' => TransmissionBT, + 'enabled' => 1, + }; diff --git a/config/rootfiles/common/configroot b/config/rootfiles/common/configroot index 64c88f933..a286a1538 100644 --- a/config/rootfiles/common/configroot +++ b/config/rootfiles/common/configroot @@ -123,6 +123,7 @@ var/ipfire/menu.d/70-log.menu #var/ipfire/menu.d/EX-mympd.menu #var/ipfire/menu.d/EX-samba.menu #var/ipfire/menu.d/EX-tor.menu +#var/ipfire/menu.d/EX-transmission.menu #var/ipfire/menu.d/EX-vdr.menu #var/ipfire/menu.d/EX-wio.menu #var/ipfire/menu.d/EX-wlanap.menu diff --git a/config/rootfiles/common/web-user-interface b/config/rootfiles/common/web-user-interface index 882f1397e..d2ef6ab10 100644 --- a/config/rootfiles/common/web-user-interface +++ b/config/rootfiles/common/web-user-interface @@ -79,6 +79,7 @@ srv/web/ipfire/cgi-bin/system.cgi srv/web/ipfire/cgi-bin/time.cgi #srv/web/ipfire/cgi-bin/tor.cgi srv/web/ipfire/cgi-bin/traffic.cgi +#srv/web/ipfire/cgi-bin/transmission.cgi srv/web/ipfire/cgi-bin/updatexlrator.cgi srv/web/ipfire/cgi-bin/urlfilter.cgi #srv/web/ipfire/cgi-bin/vdr.cgi diff --git a/config/rootfiles/packages/transmission b/config/rootfiles/packages/transmission index 827205a11..66b832e3c 100644 --- a/config/rootfiles/packages/transmission +++ b/config/rootfiles/packages/transmission @@ -17,3 +17,5 @@ usr/share/transmission #usr/share/transmission/public_html/transmission-app.js #usr/share/transmission/public_html/transmission-app.js.LEGAL.txt var/ipfire/backup/addons/includes/transmission +srv/web/ipfire/cgi-bin/transmission.cgi +var/ipfire/menu.d/EX-transmission.menu diff --git a/html/cgi-bin/transmission.cgi b/html/cgi-bin/transmission.cgi new file mode 100644 index 000000000..8fdcc5cd0 --- /dev/null +++ b/html/cgi-bin/transmission.cgi @@ -0,0 +1,25 @@ +#!/usr/bin/perl +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007-2024 IPFire Team # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +print "Status: 302 Moved Temporarily\n"; +print "Location: http://$ENV{SERVER_ADDR}:9091\n\n"; + +exit (0); diff --git a/lfs/transmission b/lfs/transmission index 3b77a85e0..298c2a0e9 100644 --- a/lfs/transmission +++ b/lfs/transmission @@ -34,7 +34,7 @@ DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) PROG = transmission -PAK_VER = 21 +PAK_VER = 22 DEPS =