From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 29 17:43:21 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C96B637B401; Sat, 29 Mar 2003 17:43:21 -0800 (PST) Received: from kientzle.com (h-66-166-149-50.SNVACAID.covad.net [66.166.149.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C3AF43F75; Sat, 29 Mar 2003 17:43:21 -0800 (PST) (envelope-from kientzle@acm.org) Received: from acm.org (ugly.x.kientzle.com [66.166.149.51]) by kientzle.com (8.11.3/8.11.3) with ESMTP id h2U1hIv39613; Sat, 29 Mar 2003 17:43:18 -0800 (PST) (envelope-from kientzle@acm.org) Message-ID: <3E864BDD.9040102@acm.org> Date: Sat, 29 Mar 2003 17:43:57 -0800 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.6) Gecko/20011206 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Brandon D. Valentine" References: <3E42C148.4050807@acm.org> <20030329012828.GA32891@intruder.bmah.org> <3E85418F.8010201@acm.org> <20030329072156.GO3528@geekpunk.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: "Bruce A. Mah" cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Making pkg_XXX tools smarter about file types... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: kientzle@acm.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Mar 2003 01:43:25 -0000 Brandon D. Valentine wrote: > On Fri, Mar 28, 2003 at 10:47:43PM -0800, Tim Kientzle wrote: > >>P.S. It's galled me for a while that pkg_add has to fork 'tar' to >>extract the archive. I've started piecing together a library that >>reads/writes tarfiles. > > FYI, libtar[0] is BSD-licensed and might be useful to such a project. > > [0] - http://www-dev.cites.uiuc.edu/libtar/ Thanks for the pointer. I took a look, and there are some good ideas there, although my current libtarfile work has a few features that libtar lacks. Cribbing from libtar could be useful, though. (I'm also using John Gilmore's old PD tar as a source of ideas.) Tim