Gentoo Archives: gentoo-dev

From: Troy Dack <troy@××××××.com>
To: Gentoo Dev <gentoo-dev@g.o>
Subject: Re: [gentoo-dev] Webbased Portage - WebPortage-0.1 alpha1
Date: Wed, 26 Nov 2003 06:17:38
Message-Id: 1069827446.6173.7.camel@carbon.internal.lan
In Reply to: [gentoo-dev] Webbased Portage - WebPortage-0.1 alpha1 by Benjamin Judas
1 On Wed, 2003-11-26 at 07:03, Benjamin Judas wrote:
2 > Hi folks,
3 >
4 > I withdrawed from my original idea in using Apache itself as the
5 > CGI-Platform for WebPortage and implemented a small webserver in Python.
6 > It simply does nothing as calling index.html in the actual directory and
7 > handle all traffic.
8 >
9 > I did this since:
10 >
11 > 1.
12 > The CGI'fied portage scripts have to run as a privileged user - this can
13 > be realized by making one little change to CGIHTTPServer.py (included in
14 > the Python-Distribution)
15 >
16 > 2.
17 > There would be no need to install Apache. WebPortage only needs Python
18 > which is needed by Portage and thus installed on every Gentoo-System.
19 >
20 > If you want to try it, simply decompress the .tar.bz2-File and run the
21 > server with: python server.py. The server will listen on Port 8001 (see
22 > source-code of server.py) on localhost.
23 >
24 > Remember, there's no authentification at the moment. If you start it
25 > everybody can access your lokal portage using a simple web-browser.
26 > Please be careful when trying it.
27 >
28 > In this version you can do only two things : searching for packages and
29 > syncing portage tree. The output of emerge sync still needs to be
30 > beautified and there is no output until wpsync.py (the CGI-script
31 > responsible for syncing) is completely done, so it's possible that your
32 > browser is saying "Transferring data from localhost..." for 10 Minutes
33 > ;) This will be fixed somewhere in the future.
34
35 I started something like this, but life got in the way of me learning
36 enough python and enough CGI/http to completely finish it.
37
38 My initial efforts are at http://sourceforge.net/projects/webportage.
39
40 Thoughts for the future include making a mod_python (to run under
41 apache) version as well as a standalone version.
42
43 To overcome your "Transfering data from localhost ..." problem you
44 should look at chunked encoding, form memory it's part of HTTP/1.1
45 (rather than just 1.0)
46
47 If you have the time to devote to something like this contact me off
48 list.
49
50 --
51 Troy Dack http://linux.tkdack.com
52 <troy@××××××.com> http://webportage.sf.net
53
54 Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x4D90BE3C
55 Key fingerprint = 1F3D 6C15 16AA 09D5 0C96 92E5 FD89 16F9 4D90 BE3C
56
57
58 --
59 gentoo-dev@g.o mailing list