Date: Wed, 19 Dec 2007 19:17:20 +0000 (UTC) From: Philippe Audeoud <jadawin@tuxaco.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: flz@FreeBSD.org Subject: ports/118866: [new port] net-p2p/rtgui - a web interface to rtorrent Message-ID: <20071219191720.29436845A6@ilove.tuxaco.net> Resent-Message-ID: <200712191920.lBJJK1uK086565@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 118866 >Category: ports >Synopsis: [new port] net-p2p/rtgui - a web interface to rtorrent >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Dec 19 19:20:01 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Philippe Audeoud >Release: FreeBSD 7.0-BETA1 i386 >Organization: >Environment: System: FreeBSD athines 7.0-BETA1 FreeBSD 7.0-BETA1 #0: Wed Oct 31 19:32:18 CET 2007 root@glenrothes:/usr/obj/usr/src/sys/GENERIC i386 >Description: Here is the shar to add net-p2p/rtgui to port tree. rtgui is a web based front end for rTorrent. >How-To-Repeat: >Fix: --- shar-rtgui.1 begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # net-p2p/rtgui/ # net-p2p/rtgui/Makefile # net-p2p/rtgui/distinfo # net-p2p/rtgui/pkg-descr # net-p2p/rtgui/pkg-plist # net-p2p/rtgui/files # net-p2p/rtgui/files/pkg-message.in # echo c - net-p2p/rtgui/ mkdir -p net-p2p/rtgui/ > /dev/null 2>&1 echo x - net-p2p/rtgui/Makefile sed 's/^X//' >net-p2p/rtgui/Makefile << 'END-of-net-p2p/rtgui/Makefile' X# New ports collection makefile for: rtgui X# Date created: 14 December 2008 X# Whom: Philippe Audeoud <jadawin@tuxaco.net> X# X# $FreeBSD$ X# X XPORTNAME= rtgui XPORTVERSION= 0.2.2 XCATEGORIES= net-p2p www XMASTER_SITES= http://rtgui.googlecode.com/files/ XEXTRACT_SUFX= .tgz X XMAINTAINER= jadawin@tuxaco.net XCOMMENT= A web based front end for rTorrent X XOPTIONS= APACHE "Use Apache for web interface" On \ X LIGHTTPD "Use LightHTTPD for web interface" Off X XBUILD_DEPENDS+= libtorrent=0.11.9:${PORTSDIR}/net-p2p/libtorrent \ X xmlrpc-c-config:${PORTSDIR}/net/xmlrpc-c XRUN_DEPENDS+= rtorrent:${PORTSDIR}/net-p2p/rtorrent X X.if !defined(WITHOUT_APACHE) XUSE_APACHE= 1.3+ XBUILD_DEPENDS+= ${LOCALBASE}/${APACHEMODDIR}/mod_scgi.so:${PORTSDIR}/www/mod_scgi X.elif defined(WITH_LIGHTTPD) XRUN_DEPENDS+= lighttpd:${PORTSDIR}/www/lighttpd X.endif X XUSE_PHP= xmlrpc XWANT_PHP_WEB= yes X XNO_BUILD= yes XWRKSRC= ${WRKDIR}/${PORTNAME} X XPKGMESSAGE= ${WRKDIR}/pkg-message XSUB_FILES= pkg-message XSUB_LIST= WWWDIR=${WWWDIR} \ X PORTNAME=${PORTNAME} X Xdo-install: X ${MKDIR} ${WWWDIR} X ${CP} -r ${WRKSRC}/* ${WWWDIR} X ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR} X Xpost-install: X @${CAT} ${PKGMESSAGE} X X.include <bsd.port.mk> END-of-net-p2p/rtgui/Makefile echo x - net-p2p/rtgui/distinfo sed 's/^X//' >net-p2p/rtgui/distinfo << 'END-of-net-p2p/rtgui/distinfo' XMD5 (rtgui-0.2.2.tgz) = abed2d291cc1a20f3ef6c6770512fd61 XSHA256 (rtgui-0.2.2.tgz) = e4fdebdcfffd375fd23ea40199c3771eb0b4941d4a5cf0f18714843b20800d55 XSIZE (rtgui-0.2.2.tgz) = 17722 END-of-net-p2p/rtgui/distinfo echo x - net-p2p/rtgui/pkg-descr sed 's/^X//' >net-p2p/rtgui/pkg-descr << 'END-of-net-p2p/rtgui/pkg-descr' XrtGui is a web based front end for rTorrent - the Linux command line XBitTorrent client. It's written in PHP and uses XML-RPC to communicate Xwith the rTorrent client. XFeatures X X * List all torrent downloads or by X * started/stopped/complete/incomplete/seeding status. X * Sort view by any of the displayed columns. X * View detailed torrent information. X * Stop/start/hash-check torrent. X * Set upload/download speed cap. X * Add torrents by URL. X * Does not require mySQL or any other database. X * Set priority per torrent or file. X XWWW: http://code.google.com/p/rtgui/ END-of-net-p2p/rtgui/pkg-descr echo x - net-p2p/rtgui/pkg-plist sed 's/^X//' >net-p2p/rtgui/pkg-plist << 'END-of-net-p2p/rtgui/pkg-plist' X%%WWWDIR%%/config.php X%%WWWDIR%%/control.php X%%WWWDIR%%/favicon.ico X%%WWWDIR%%/functions.php X%%WWWDIR%%/images/completeactive.gif X%%WWWDIR%%/images/completeinactive.gif X%%WWWDIR%%/images/delete.gif X%%WWWDIR%%/images/downarrow.gif X%%WWWDIR%%/images/hashcheck.gif X%%WWWDIR%%/images/incompleteactive.gif X%%WWWDIR%%/images/incompleteinactive.gif X%%WWWDIR%%/images/percentbar.gif X%%WWWDIR%%/images/refresh.gif X%%WWWDIR%%/images/start.gif X%%WWWDIR%%/images/stop.gif X%%WWWDIR%%/images/uparrow.gif X%%WWWDIR%%/images/view.gif X%%WWWDIR%%/index.php X%%WWWDIR%%/readme.txt X%%WWWDIR%%/style.css X%%WWWDIR%%/submodal/CHANGELOG X%%WWWDIR%%/submodal/close.gif X%%WWWDIR%%/submodal/common.js X%%WWWDIR%%/submodal/index.html X%%WWWDIR%%/submodal/loading.html X%%WWWDIR%%/submodal/maskBG.png X%%WWWDIR%%/submodal/modalContent.html X%%WWWDIR%%/submodal/style.css X%%WWWDIR%%/submodal/subModal.css X%%WWWDIR%%/submodal/subModal.js X%%WWWDIR%%/view.php X@dirrm %%WWWDIR%%/submodal X@dirrm %%WWWDIR%%/images X@dirrm %%WWWDIR%% END-of-net-p2p/rtgui/pkg-plist echo c - net-p2p/rtgui/files mkdir -p net-p2p/rtgui/files > /dev/null 2>&1 echo x - net-p2p/rtgui/files/pkg-message.in sed 's/^X//' >net-p2p/rtgui/files/pkg-message.in << 'END-of-net-p2p/rtgui/files/pkg-message.in' X--------------------------------------------------------------------------- X XBrowse http://your.host.tld/%%PORTNAME%%/ X X--------------------------------------------------------------------------- XTo make rtgui available through your web site, I suggest Xthat you add something like the following to httpd.conf: X XSCGIMount /RPC2 127.0.0.1:5000 X X Alias /rtgui/ "%%WWWDIR%%/" X X <Directory "%%WWWDIR%%/"> X Options none X AllowOverride Limit X Order Deny,Allow X Allow from all X </Directory> X Xwith in .rtorrent.rc: Xscgi_port = localhost:5000 X Xor in your lighttpd: Xscgi.server = ( X "/RPC2" => X ( "127.0.0.1" => X ( X "socket" => "/home/user/rtorrent/rpc.socket", X "check-local" => "disable", X "disable-time" => 0, # don't disable scgi if connection fails X ) X ) X ) Xwith .rtorrent.rc: Xscgi_local = /home/user/rtorrent/rpc.socket X X X--------------------------------------------------------------------------- X XSecurity considerations X X--------------------------------------------------------------------------- X XAbsolutely no thought whatsoever has been given to security in rtGui - Xdo not run this on a publicly available website. rtGui is intended for X'home' use where users can be considered as trusted. A basic Xauthentication mechanism is planned for future releases. At the very Xleast, you should password protect your webserver using .htaccess or Xsimilar (see http://en.wikipedia.org/wiki/Htaccess for more info). END-of-net-p2p/rtgui/files/pkg-message.in exit --- shar-rtgui.1 ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071219191720.29436845A6>