Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Mar 2002 10:22:59 -0500
From:      "Dan Langille" <dan@langille.org>
To:        Roman Neuhauser <neuhauser@mobil.cz>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: XML interface to CVS
Message-ID:  <20020326152301.38D7A3F28@bast.unixathome.org>
In-Reply-To: <20020326150121.GG389@roman.mobil.cz>
References:  <20020326111149.GA389@roman.mobil.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
On 26 Mar 2002 at 16:01, Roman Neuhauser wrote:

>     Ah, I just read the article on daemon news, and now I see you
>     actually *do* want XML... Sorry about that. 

Which article on daemon news?

>     Anyway, could you shed
>     some light on the "any source tree of any type" thing? What does
>     that mean in regard to fp2?

I'll put in a bit of background and future goals first.  Your questions 
should be answered somewhere in the next few paragraphs.  If it doesn't, 
tell me.

http://www.FreshPorts.org/ [1] has been running for about 2 years.  During 
that period I've been working [no, not full time] on the next generation 
of FP (and I've been calling that FP2).  To the end user, the differences 
between FP1 and FP2 is minimal.  There are some new features [2] and minor 
face lifts, but for the most part, it's same-old-same-old.

The basic change has been the underlying database structure.  It's now 
PostgreSQL and was mySQL.  The main reason for the change was stored 
procedures and triggers [3] which allowed for a recursive design.  This 
new structure will allow me to do for the whole source tree what FP does 
for the ports tree.  This new project is called FreshSource [4].  With FS, 
you can place any file or  directory on your watch list; in FP, you can 
only put a port on your watch list [which makes sense; it's only for the 
Ports tree].

FreshPorts was designed for the FreeBSD ports tree, but the goal is to 
allow other port trees to use it as well.  With FP2, we have moved to XML 
as the primary input.  Each cvs-all message is converted to XML and then 
processed by FP2.  This will greatly simplify the inclusion of other port 
trees.

The FP2 database was populated by migrating data from FP1.  However, the 
ideal population method would be directly from CVS, hence the query about 
an XML interface to CVS.  It would also allow FP2 to query any CVS 
repository and populate itself.  This feature would probably have a bigger 
effect on FreshSource than FreshPorts, but the capability would useful for 
both.

[1] - The basic purpose of FP is a FreshMeat for ports.  As port tree 
changes come out, FP captures the information via the cvs-all mailing 
list. and stores the details in a database. A registered user can create a 
watch list containing the ports they care about.

[2] - the biggest new feature is the ability to upload your pkg_info 
output and add that to your watch list.

[3] - some will point out that mySQL has this now.  Sorry, it didn't when 
I started FP2.

[4] - http://www.FreshSource.org/
-- 
Dan Langille
The FreeBSD Diary - http://freebsddiary.org/ - practical examples


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020326152301.38D7A3F28>