From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Dec 19 19:20:01 2007 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E4D3816A421 for ; Wed, 19 Dec 2007 19:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BF63A13C4D5 for ; Wed, 19 Dec 2007 19:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id lBJJK1MD086566 for ; Wed, 19 Dec 2007 19:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id lBJJK1uK086565; Wed, 19 Dec 2007 19:20:01 GMT (envelope-from gnats) Resent-Date: Wed, 19 Dec 2007 19:20:01 GMT Resent-Message-Id: <200712191920.lBJJK1uK086565@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Philippe Audeoud Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8285916A419 for ; Wed, 19 Dec 2007 19:13:33 +0000 (UTC) (envelope-from jadawin@tuxaco.net) Received: from huppa.tuxaco.net (huppa.tuxaco.net [91.121.19.193]) by mx1.freebsd.org (Postfix) with ESMTP id 0AC3F13C46B for ; Wed, 19 Dec 2007 19:13:32 +0000 (UTC) (envelope-from jadawin@tuxaco.net) Received: from localhost (unknown [127.0.0.1]) by huppa.tuxaco.net (Postfix) with ESMTP id C134D12142; Wed, 19 Dec 2007 20:17:31 +0100 (CET) Received: from huppa.tuxaco.net ([127.0.0.1]) by localhost (huppa.tuxaco.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FJzp5SFC7T2Q; Wed, 19 Dec 2007 20:17:28 +0100 (CET) Received: from ilove.tuxaco.net (cse35-1-82-236-143-160.fbx.proxad.net [82.236.143.160]) (Authenticated sender: jadawin@tuxaco.net) by huppa.tuxaco.net (Postfix) with ESMTP id 83BE711FF8; Wed, 19 Dec 2007 20:17:28 +0100 (CET) Received: by ilove.tuxaco.net (Postfix, from userid 1001) id 29436845A6; Wed, 19 Dec 2007 19:17:20 +0000 (UTC) Message-Id: <20071219191720.29436845A6@ilove.tuxaco.net> Date: Wed, 19 Dec 2007 19:17:20 +0000 (UTC) From: Philippe Audeoud To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: flz@FreeBSD.org Subject: ports/118866: [new port] net-p2p/rtgui - a web interface to rtorrent X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Philippe Audeoud List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Dec 2007 19:20:02 -0000 >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 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 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 X Options none X AllowOverride Limit X Order Deny,Allow X Allow from all X 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: