From owner-freebsd-ports@FreeBSD.ORG Wed Oct 1 13:24:17 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 65CB110656A3 for ; Wed, 1 Oct 2008 13:24:17 +0000 (UTC) (envelope-from dnaeon@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by mx1.freebsd.org (Postfix) with ESMTP id E89A18FC1B for ; Wed, 1 Oct 2008 13:24:16 +0000 (UTC) (envelope-from dnaeon@gmail.com) Received: by nf-out-0910.google.com with SMTP id h3so225248nfh.33 for ; Wed, 01 Oct 2008 06:24:15 -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=4PG1eNR/RHoTpSc/QHSJd+Y6NaoekklCpdlrukG/Cp0=; b=n55qYDmKhXTIM4cxZbVe8CImdVcgqvdMiBDO/VbB30Y0+onGYFOf0Vx5VgXuwoUZs+ df1sDMx6QNMLnksLZ1g+Mqf71NQxaHCZuLeR32NxKMTPyT/QsCEX96qA5gM8auZ1HTfQ l/3s41eFgArbYEf7MHOZ3pXolBkt0h+76KWUM= 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=RWUV9g2FhzMz2RI4nsxS1bO0Frp0Bg4i2dTHcHlujuhIyZidQCU2IjKvs+Wpv++F+3 j9D7x9RCNCEieTKw5k6aitFieBSsHFhTArz8ZKzE2oRrf9TrNVi13+m/Z8CzeRNV9XcP gxBJcSrGt1A+PPKfK90nAXxS3ckoInKgfTaDU= Received: by 10.86.30.9 with SMTP id d9mr247508fgd.22.1222867455289; Wed, 01 Oct 2008 06:24:15 -0700 (PDT) Received: from tsunami.bsdworld ([78.90.73.88]) by mx.google.com with ESMTPS id 3sm5854596fge.3.2008.10.01.06.24.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 01 Oct 2008 06:24:14 -0700 (PDT) Message-ID: <48E37A48.8030103@gmail.com> Date: Wed, 01 Oct 2008 16:25:28 +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: My interactive version of pkg_add - finished! 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: Wed, 01 Oct 2008 13:24:17 -0000 Hi, again! :) I've finished the new version of the program. I decided to name it `sit' - Simple Interactive Tool `sit' now supports the following: -- improved code for dynamic memory allocation -- local package pattern search -- remote (ftp) package pattern search -- command line arguments to specify a local or remote installation -- uses some env variables like PACKAGEROOT, OSRELEASE and MACHTYPE to determite which package and from where to be installed The remote/ftp package pattern search is done by searching the INDEX file for a pattern and extracting the needed information from it. The program uses a default values for these environment variables if they have not been set: -- PACKAGEROOT = ftp://ftp.freebsd.org/ -- MACHTYPE = i386 -- OSRELEASE = 8-current It doesn't have any requirements, so it should build and run on any system that has fetch and pkg_add support. Screenshots of various usage of the program can be found in here: http://unix-heaven.org/doc/sit/screenshots/ And the code is here: http://unix-heaven.org/doc/sit/sit-0.2.5.tar.gz Well, I hope someone finds it useful :) P.S: If someone have any suggestions on how to improve it more - let me know :) Cheers! -- Marin Atanasov dnaeon AT gmail DOT com daemon AT unix-heaven DOT org