]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
transmission: add menuentry to transmission webgui
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 11 Feb 2024 12:33:39 +0000 (13:33 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 11 Feb 2024 12:33:39 +0000 (13:33 +0100)
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
config/menu/EX-transmission.menu [new file with mode: 0644]
config/rootfiles/common/configroot
config/rootfiles/common/web-user-interface
config/rootfiles/packages/transmission
html/cgi-bin/transmission.cgi [new file with mode: 0644]
lfs/transmission

diff --git a/config/menu/EX-transmission.menu b/config/menu/EX-transmission.menu
new file mode 100644 (file)
index 0000000..5199f6c
--- /dev/null
@@ -0,0 +1,5 @@
+    $subipfire->{'42.transmission'} = {'caption' => TransmissionBT,
+                                 'uri' => '/cgi-bin/transmission.cgi',
+                                 'title' => TransmissionBT,
+                                 'enabled' => 1,
+                                 };
index 64c88f9330abd217cf243856a28fbbcb6aa20e52..a286a15383393aa753b359fc9477c324e01bb977 100644 (file)
@@ -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
index 882f1397ef653b7a48605ce28d89a48df662f570..d2ef6ab103aa3c460eb79eb85a5e45beec43aea3 100644 (file)
@@ -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
index 827205a11e1b816c199e86007b562ff598d8f7d4..66b832e3c99a7ac242b06c912a8a500b8303cc0d 100644 (file)
@@ -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 (file)
index 0000000..8fdcc5c
--- /dev/null
@@ -0,0 +1,25 @@
+#!/usr/bin/perl
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2024  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# 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 <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+print "Status: 302 Moved Temporarily\n";
+print "Location: http://$ENV{SERVER_ADDR}:9091\n\n";
+
+exit (0);
index 3b77a85e011b50486dba0398af17341078524cd8..298c2a0e9f5032e2a1de71f649005f32972360dd 100644 (file)
@@ -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       =