From owner-freebsd-ports@FreeBSD.ORG Fri Jun 29 19:54:20 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B0AE516A41F for ; Fri, 29 Jun 2007 19:54:20 +0000 (UTC) (envelope-from andy.kosela@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.177]) by mx1.freebsd.org (Postfix) with ESMTP id 889A713C468 for ; Fri, 29 Jun 2007 19:54:20 +0000 (UTC) (envelope-from andy.kosela@gmail.com) Received: by wa-out-1112.google.com with SMTP id j37so1324489waf for ; Fri, 29 Jun 2007 12:54:20 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ty7EdbVGYVSijSXNCY2QZtIS5y30c4VYAL1qYN87WXRVNn4FqIU8jW55A47dj921hjtlM4LLrJLhnRg8CjY741HtVwX16LKDgoNZX48XX11tLPekLXggX0GMCt4m190X+ScyZAwRKqdpU/+ik3cQkmu89KbhJPVyH+2VpGgvUSI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=o/7p+fb3XRrXaEQaWXOuOhQfuXEAbKkUZ4+XPlG0PDSzugKJExuyWxdI3mgsjg3ELwCjxhD6YUxFo7s5QW2LE1q1+3DV1AtX5jNbo1lORzrHb8WJhnm/A1ADVkVgywR+lhUdKQHsyjElq//6biQvgeZaDtGVAxSLpcPbwmrD7os= Received: by 10.114.197.1 with SMTP id u1mr2882779waf.1183145275889; Fri, 29 Jun 2007 12:27:55 -0700 (PDT) Received: by 10.114.12.19 with HTTP; Fri, 29 Jun 2007 12:27:55 -0700 (PDT) Message-ID: <3cc535c80706291227t4887f333l54e4de73e4bc2e37@mail.gmail.com> Date: Fri, 29 Jun 2007 21:27:55 +0200 From: "Andy Kosela" To: freebsd-ports@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1178963343.591874.231130@o5g2000hsb.googlegroups.com> <3cc535c80705120315j25be1113k933ec440d76a14e4@mail.gmail.com> Cc: Subject: Re: [NEW PORT] ports-mgmt/pkg - smart tool for managing FreeBSD ports 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: Fri, 29 Jun 2007 19:54:20 -0000 Hi Andrew and all After meditating upon the concept and code of the original pkg i decided finally to rewrite the whole script. The main idea remained the same - to provide one universal tool for FreeBSD package/ports management and to not depend on any third-party database/application. In the spirit of the original UNIX/BSD movement the script should be as simple as possible (the maximum usefulness, the minimum amount of code). Moved by suggestion of Andrew Pantyukhin i renamed it to bpkg to avoid confusion with other *BSD projects. Here are a few examples of the actual application: plato:~> bpkg -m iftop (displays port's Makefile using less) plato:~> bpkg -i iftop net-mgmt/iftop: iftop-0.17 *** installed *** Port: iftop-0.17 Path: /usr/ports/net-mgmt/iftop Info: Display bandwidth usage on an interface by host Maint: vd@FreeBSD.org B-deps: R-deps: WWW: http://www.ex-parrot.com/~pdw/iftop/ plato:~> bpkg -p iftop /usr/ports/net-mgmt/iftop Display bandwidth usage on an interface by host plato:/home/spear# bpkg iftop net-mgmt/iftop: iftop-0.17 *** installed *** Do you want to upgrade iftop using binary packages? [y] These are just a few examples of various flags, there are many more besides those mentioned. Basically it is possible to manage the whole FreeBSD Ports Collection infrastructure using just this one application (including building ports from the source, fetching binary packages, deleting packages and so on). The whole thing is licensed under the BSD license, of course. send-pr entry: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/114064 Hopefully it will make its way into the Ports Collection soon, right now I'm using it on all our production servers (high-end HP and Dell servers) and it works great! really simplifies ports management and displaying of useful information about packages/ports. I know you can type a very long grep|cut|sed|awk command but it's much simpler with bpkg. Send any bug reports, suggestions and improvement ideas directly to me: andy (dot) kosela (at) gmail.com I also plan to set up some web site for this application soon. best regards, Andy Kosela Pythagoras Foundation "What is that which always is and has no becoming; and what is that which is always becoming and never is?" -- Plato On 5/12/07, Andrew Pantyukhin wrote: > First of all, can you consider renaming it to something > less ambitious? A tool named pkg is already present in > some other systems (e.g. pkgjam in NetBSD). It would be > a pity to see your tool, however marvelous it is, > squatter the name just because it was the earliest one. > > That said, your tool is very welcome. > > P.S. You wanted to post your message to ports@, not > hackers@. Cc fixed. >