From owner-freebsd-ports@FreeBSD.ORG Tue Sep 9 17:33:59 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51E121065676 for ; Tue, 9 Sep 2008 17:33:59 +0000 (UTC) (envelope-from talon@lpthe.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.freebsd.org (Postfix) with ESMTP id DC7108FC13 for ; Tue, 9 Sep 2008 17:33:58 +0000 (UTC) (envelope-from talon@lpthe.jussieu.fr) Received: from parthe.lpthe.jussieu.fr (parthe.lpthe.jussieu.fr [134.157.10.1]) by shiva.jussieu.fr (8.14.3/jtpda-5.4) with ESMTP id m89H9BxF027898 for ; Tue, 9 Sep 2008 19:09:12 +0200 (CEST) X-Ids: 165 Received: from niobe.lpthe.jussieu.fr (niobe.lpthe.jussieu.fr [134.157.10.41]) by parthe.lpthe.jussieu.fr (Postfix) with ESMTP id 672DC89DE7 for ; Tue, 9 Sep 2008 19:09:10 +0200 (CEST) Received: by niobe.lpthe.jussieu.fr (Postfix, from userid 2005) id 7D2F239; Tue, 9 Sep 2008 19:09:16 +0200 (CEST) Date: Tue, 9 Sep 2008 19:09:16 +0200 From: Michel Talon To: freebsd-ports@freebsd.org Message-ID: <20080909170916.GA32436@lpthe.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (shiva.jussieu.fr [134.157.0.165]); Tue, 09 Sep 2008 19:09:12 +0200 (CEST) X-Virus-Scanned: ClamAV 0.93.3/8201/Tue Sep 9 15:44:30 2008 on shiva.jussieu.fr X-Virus-Status: Clean X-Miltered: at jchkmail2.jussieu.fr with ID 48C691BA.002 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 48C691BA.002/134.157.10.1/parthe.lpthe.jussieu.fr/parthe.lpthe.jussieu.fr/ X-j-chkmail-Score: MSGID : 48C691BA.002 on jchkmail2.jussieu.fr : j-chkmail score : . : R=. U=. O=. B=0.030 -> S=0.030 X-j-chkmail-Status: Ham Subject: Exploring the FreeBSD ports tree X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2008 17:33:59 -0000 Hello, while playing with fastcgi stuff, i have updated my tool to explore the FreeBSD ports tree. It is now a fastcgi responder which can answer questions behind a web server such as apache or lighttpd. It can be found here: http://www.lpthe.jussieu.fr/~talon/show_index.fcgi The needed configuration for lighttpd is explained in the comments at the beginning, this is basically the same as for Django. So one needs to run the python script show_index.fcgi as root, it creates a socket in /tmp, daemonizes, and changes its ownership to www. It then communicates with the web server through this socket. To browse the ports tree, just point the browser at /showindex/ on the given server. A reasonable number of queries per second is achievable through this setup. -- Michel TALON