FreshPorts API

Dan Langille dan at langille.org
Thu Sep 21 14:14:59 UTC 2017


> On Sep 21, 2017, at 4:10 PM, Torsten Zuehlsdorff <mailinglists at toco-domains.de> wrote:
> 
> 
> 
> On 21.09.2017 14:31, Dan Langille wrote:
>> FreshPorts contains more than just ports. It contains all commits to the FreeBSD repository.
>> This is all stored in a database. It can be queried. We just need an API.
>> The goal is to start gradually, based on the ideas started at https://duck.co/ideas/idea/936/grab-bsd-port-summary-from-freshports <https://duck.co/ideas/idea/936/grab-bsd-port-summary-from-freshports>
>> and later at https://github.com/FreshPorts/freshports/issues/4 <https://github.com/FreshPorts/freshports/issues/4>
>> I did start using https://github.com/marcj/php-rest-service <https://github.com/marcj/php-rest-service> (I didn't get to the
>> point of having methods invoked), I'm looking for others to help get this started.
>> The goal is a PHP-based API. Why? Existing PHP code for database access.
> 
> But what problem to you want to solve with it?
> 
> I regularly dump the ports-tree into a database for some research or hacking. But beside this very specific cases i never needed it. So what do you want to accomplish?

This API is for third party use. We can try to anticipate their use cases by providing a general API, but in general, it's unknown.

In the duck.co <http://duck.co/> link above, it shows one such use case: search.  It allows a third party to search FreshPorts. to find results.

-- 
Dan Langille - BSDCan / PGCon
dan at langille.org





More information about the freebsd-ports mailing list