From owner-freebsd-ports@FreeBSD.ORG Mon Sep 29 11:38:13 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 F03CB106568A for ; Mon, 29 Sep 2008 11:38:13 +0000 (UTC) (envelope-from dnaeon@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by mx1.freebsd.org (Postfix) with ESMTP id 820458FC1A for ; Mon, 29 Sep 2008 11:38:13 +0000 (UTC) (envelope-from dnaeon@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1370849fgb.35 for ; Mon, 29 Sep 2008 04:38:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=4p76oNBP7g1cOyIx5B26kafTXfuML1VSdkbvrJ8qwJM=; b=kLXjAID89GRzOG2ugGJ4Qb+dVM5leLMCCW+ygzyo9hNR78ekPZPLXuaF5iNsfBfPxO e3DmSwF3SoU6Fo3Ai+GIKoS38Z4VGkXr0JMFaZsthVyRda0zZQcc4tNfMdem+NjJ7wd0 Vvlyi3d5reW+zTxtzt1itRgHyk2XZRZeX7pbE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=umLiV/qJLwpnxCJWdSoR2O+t/GQAOZI4eFhFMVOnV2mS6hBDxQUYeSjVH+RBcKOvCT P1ofiZ2X6PcmZrCu9lw5/nnLHy43SLo45wsnvyST6kOqMq66l64nfq+jW1afBOSoEPo7 pp7H21AgvcLzgZ7vKupVHXEGC8Jybm38j1Z/I= Received: by 10.86.79.19 with SMTP id c19mr4194441fgb.5.1222688292251; Mon, 29 Sep 2008 04:38:12 -0700 (PDT) Received: from tsunami.bsdworld ([78.90.73.88]) by mx.google.com with ESMTPS id l19sm108283fgb.7.2008.09.29.04.38.11 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 29 Sep 2008 04:38:11 -0700 (PDT) Message-ID: <48E0BE6F.7000105@gmail.com> Date: Mon, 29 Sep 2008 14:39:27 +0300 From: Marin Atanasov User-Agent: Thunderbird 2.0.0.17 (X11/20080927) MIME-Version: 1.0 To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: My interactive version of pkg_add 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: Mon, 29 Sep 2008 11:38:14 -0000 Michel Talon wrote: > I can only concur with the suggestion you mention, exploring ftp sites > to discover what is available here. How to do that efficiently is > harder. Apparently "official" FreeBSD ftp sites have an INDEX of > available packages. I hope it is reliable. Then i suggest to download it > and work from that. Yes, that's the most reasonable approach. First I thought to write some functions using libcurl to fetch from and navigate the FTP server, but I think that it will be better if I stick to the main principle of developing in Unix - simple tools combined together to solve some complex task. That's why I think that if I keep the program's code as clean and simple as possible it would become a useful tool (maybe :)), so for downloading the INDEX file fetch would do the job :) After all the idea about the program was to provide some interactive interface to pkg_add, and not to rediscover the tools which are already in the base system :) Anyway tomorrow (or today perhaps) I'll have a working version of the program which searches an FTP server for a given package pattern and I'll post back the code. Cheers! -- Marin Atanasov dnaeon AT gmail DOT com daemon AT unix-heaven DOT org