aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Abthorpe <tabthorpe@FreeBSD.org>2007-12-20 14:17:51 +0000
committerThomas Abthorpe <tabthorpe@FreeBSD.org>2007-12-20 14:17:51 +0000
commitf6a92d0fb5424b6d8764410bad99e833fd805cf1 (patch)
tree6f954039c1a1df4bc8dcf15fec86901397854861
parent1492e1edb95300a09bab628d7019ac2f5af9ed20 (diff)
downloadports-f6a92d0fb5424b6d8764410bad99e833fd805cf1.tar.gz
ports-f6a92d0fb5424b6d8764410bad99e833fd805cf1.zip
Notes
-rw-r--r--net-p2p/Makefile1
-rw-r--r--net-p2p/rtgui/Makefile50
-rw-r--r--net-p2p/rtgui/distinfo3
-rw-r--r--net-p2p/rtgui/files/pkg-message.in49
-rw-r--r--net-p2p/rtgui/pkg-descr16
-rw-r--r--net-p2p/rtgui/pkg-plist34
6 files changed, 153 insertions, 0 deletions
diff --git a/net-p2p/Makefile b/net-p2p/Makefile
index b947709fab46..db27683b95ef 100644
--- a/net-p2p/Makefile
+++ b/net-p2p/Makefile
@@ -110,6 +110,7 @@
SUBDIR += qtorrent
SUBDIR += rblibtorrent
SUBDIR += rblibtorrent-devel
+ SUBDIR += rtgui
SUBDIR += rtorrent
SUBDIR += rtorrent-devel
SUBDIR += sharktorrent
diff --git a/net-p2p/rtgui/Makefile b/net-p2p/rtgui/Makefile
new file mode 100644
index 000000000000..e5a6b8d0248f
--- /dev/null
+++ b/net-p2p/rtgui/Makefile
@@ -0,0 +1,50 @@
+# New ports collection makefile for: rtgui
+# Date created: 14 December 2008
+# Whom: Philippe Audeoud <jadawin@tuxaco.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= rtgui
+PORTVERSION= 0.2.2
+CATEGORIES= net-p2p www
+MASTER_SITES= http://rtgui.googlecode.com/files/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= jadawin@tuxaco.net
+COMMENT= A web based front end for rTorrent
+
+OPTIONS= APACHE "Use Apache for web interface" On \
+ LIGHTTPD "Use LightHTTPD for web interface" Off
+
+BUILD_DEPENDS+= libtorrent=0.11.9:${PORTSDIR}/net-p2p/libtorrent \
+ xmlrpc-c-config:${PORTSDIR}/net/xmlrpc-c
+RUN_DEPENDS+= rtorrent:${PORTSDIR}/net-p2p/rtorrent
+
+.if !defined(WITHOUT_APACHE)
+USE_APACHE= 1.3+
+BUILD_DEPENDS+= ${LOCALBASE}/${APACHEMODDIR}/mod_scgi.so:${PORTSDIR}/www/mod_scgi
+.elif defined(WITH_LIGHTTPD)
+RUN_DEPENDS+= lighttpd:${PORTSDIR}/www/lighttpd
+.endif
+
+USE_PHP= xmlrpc
+WANT_PHP_WEB= yes
+
+NO_BUILD= yes
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+PKGMESSAGE= ${WRKDIR}/pkg-message
+SUB_FILES= pkg-message
+SUB_LIST= WWWDIR=${WWWDIR} \
+ PORTNAME=${PORTNAME}
+
+do-install:
+ ${MKDIR} ${WWWDIR}
+ ${CP} -r ${WRKSRC}/* ${WWWDIR}
+ ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/net-p2p/rtgui/distinfo b/net-p2p/rtgui/distinfo
new file mode 100644
index 000000000000..8a29abbc9cea
--- /dev/null
+++ b/net-p2p/rtgui/distinfo
@@ -0,0 +1,3 @@
+MD5 (rtgui-0.2.2.tgz) = abed2d291cc1a20f3ef6c6770512fd61
+SHA256 (rtgui-0.2.2.tgz) = e4fdebdcfffd375fd23ea40199c3771eb0b4941d4a5cf0f18714843b20800d55
+SIZE (rtgui-0.2.2.tgz) = 17722
diff --git a/net-p2p/rtgui/files/pkg-message.in b/net-p2p/rtgui/files/pkg-message.in
new file mode 100644
index 000000000000..a044e1ad21cd
--- /dev/null
+++ b/net-p2p/rtgui/files/pkg-message.in
@@ -0,0 +1,49 @@
+---------------------------------------------------------------------------
+
+Browse http://your.host.tld/%%PORTNAME%%/
+
+---------------------------------------------------------------------------
+To make rtgui available through your web site, I suggest
+that you add something like the following to httpd.conf:
+
+SCGIMount /RPC2 127.0.0.1:5000
+
+ Alias /rtgui/ "%%WWWDIR%%/"
+
+ <Directory "%%WWWDIR%%/">
+ Options none
+ AllowOverride Limit
+ Order Deny,Allow
+ Allow from all
+ </Directory>
+
+with in .rtorrent.rc:
+scgi_port = localhost:5000
+
+or in your lighttpd:
+scgi.server = (
+ "/RPC2" =>
+ ( "127.0.0.1" =>
+ (
+ "socket" => "/home/user/rtorrent/rpc.socket",
+ "check-local" => "disable",
+ "disable-time" => 0, # don't disable scgi if connection fails
+ )
+ )
+ )
+with .rtorrent.rc:
+scgi_local = /home/user/rtorrent/rpc.socket
+
+
+---------------------------------------------------------------------------
+
+Security considerations
+
+---------------------------------------------------------------------------
+
+Absolutely no thought whatsoever has been given to security in rtGui -
+do not run this on a publicly available website. rtGui is intended for
+'home' use where users can be considered as trusted. A basic
+authentication mechanism is planned for future releases. At the very
+least, you should password protect your webserver using .htaccess or
+similar (see http://en.wikipedia.org/wiki/Htaccess for more info).
diff --git a/net-p2p/rtgui/pkg-descr b/net-p2p/rtgui/pkg-descr
new file mode 100644
index 000000000000..01a0bc97ff11
--- /dev/null
+++ b/net-p2p/rtgui/pkg-descr
@@ -0,0 +1,16 @@
+rtGui is a web based front end for rTorrent - a command line
+BitTorrent client. It's written in PHP and uses XML-RPC to communicate
+with the rTorrent client.
+Features
+
+ * List all torrent downloads or by
+ * started/stopped/complete/incomplete/seeding status.
+ * Sort view by any of the displayed columns.
+ * View detailed torrent information.
+ * Stop/start/hash-check torrent.
+ * Set upload/download speed cap.
+ * Add torrents by URL.
+ * Does not require mySQL or any other database.
+ * Set priority per torrent or file.
+
+WWW: http://code.google.com/p/rtgui/
diff --git a/net-p2p/rtgui/pkg-plist b/net-p2p/rtgui/pkg-plist
new file mode 100644
index 000000000000..0bf619ce824f
--- /dev/null
+++ b/net-p2p/rtgui/pkg-plist
@@ -0,0 +1,34 @@
+%%WWWDIR%%/config.php
+%%WWWDIR%%/control.php
+%%WWWDIR%%/favicon.ico
+%%WWWDIR%%/functions.php
+%%WWWDIR%%/images/completeactive.gif
+%%WWWDIR%%/images/completeinactive.gif
+%%WWWDIR%%/images/delete.gif
+%%WWWDIR%%/images/downarrow.gif
+%%WWWDIR%%/images/hashcheck.gif
+%%WWWDIR%%/images/incompleteactive.gif
+%%WWWDIR%%/images/incompleteinactive.gif
+%%WWWDIR%%/images/percentbar.gif
+%%WWWDIR%%/images/refresh.gif
+%%WWWDIR%%/images/start.gif
+%%WWWDIR%%/images/stop.gif
+%%WWWDIR%%/images/uparrow.gif
+%%WWWDIR%%/images/view.gif
+%%WWWDIR%%/index.php
+%%WWWDIR%%/readme.txt
+%%WWWDIR%%/style.css
+%%WWWDIR%%/submodal/CHANGELOG
+%%WWWDIR%%/submodal/close.gif
+%%WWWDIR%%/submodal/common.js
+%%WWWDIR%%/submodal/index.html
+%%WWWDIR%%/submodal/loading.html
+%%WWWDIR%%/submodal/maskBG.png
+%%WWWDIR%%/submodal/modalContent.html
+%%WWWDIR%%/submodal/style.css
+%%WWWDIR%%/submodal/subModal.css
+%%WWWDIR%%/submodal/subModal.js
+%%WWWDIR%%/view.php
+@dirrm %%WWWDIR%%/submodal
+@dirrm %%WWWDIR%%/images
+@dirrm %%WWWDIR%%