From owner-freebsd-current@FreeBSD.ORG Fri Aug 31 16:15:17 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D0E49106564A for ; Fri, 31 Aug 2012 16:15:17 +0000 (UTC) (envelope-from bryan@shatow.net) Received: from secure.xzibition.com (secure.xzibition.com [173.160.118.92]) by mx1.freebsd.org (Postfix) with ESMTP id 711558FC0C for ; Fri, 31 Aug 2012 16:15:17 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=shatow.net; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sweb; b=OeO3/P fQMSkVc8Zwv3GY/XmdNgm9f3DAOiNy7zUZTInElqMOTCwlp3AjWI1BPD0XHRl3Va MmWf8frBWoc9+HKVaZnwhjbGKPWXgYiV3dyU4hv41i3oYmTL9gi9QeQhk9PgskCq nENd/JLInvuwUihigCu4hBEmYnmGCw5BrTi5I= DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=shatow.net; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sweb; bh=2s44avIdRxsY 6r+z0X3O/oMrK4F+tKbYaxHahW+i/io=; b=RonYvtLAhzOqA+QqelT/xnjJ327I Ni/jSOZMj6B10nmfixDzJ2uspRUkoNwWqZK/2g9h5WZYj7WZriCrvv5Nl0sESeoj JkeWtr1Mnh0/DI0t07gDYqpwlEJ4fF/Bv/9nM0cHVkiVggNZEvAyOzO9nBHGZp9w U+6JhA/5DIIaSPU= Received: (qmail 81086 invoked from network); 31 Aug 2012 11:15:08 -0500 Received: from unknown (HELO ?192.168.0.74?) (bryan@shatow.net@74.94.87.209) by sweb.xzibition.com with ESMTPA; 31 Aug 2012 11:15:08 -0500 Message-ID: <5040E31D.8060301@shatow.net> Date: Fri, 31 Aug 2012 11:15:25 -0500 From: Bryan Drewery User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120824 Thunderbird/15.0 MIME-Version: 1.0 To: Vitaly Magerya References: <20120831153659.GD1523@glenbarber.us> In-Reply-To: X-Enigmail-Version: 1.4.4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Glen Barber , Marin Atanasov Nikolov , current@freebsd.org, freebsd-ports@freebsd.org Subject: Re: Plugins support in pkgng X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Aug 2012 16:15:17 -0000 On 8/31/2012 11:03 AM, Vitaly Magerya wrote: > Glen Barber wrote: >>> How about the ability to add new commands to "pkg"? >>> For example something like "pkg cutleaves" via plugins would be cool. >> >> I think 'pkg autoremove' already does this. > > Does autoremove show you all the leaves and ask which ones you want > removed? I honestly don't know (and can't test at the moment); I > assumed it only removed the ones with "auto" flag on. In any case, > what I actually want is a pkg_cleanup alternative (i.e. cutleaves with > a dialog(1)-like interface). No, because it already knows which you installed and which were pulled in as dependencies. There's a recent thread on ports@ regarding pkg2ng and marking your imported packages as automatic or not. See "Script to set/unset "automatic" status in PKGNG database" > > There are other utilities that could benefit from being a plugin too. > For example "suggest" plugin could use hooks on the build server to > construct a database of "binary name->package" mapping, and add "pkg > suggest" command on the client to query that database (e.g. "pkg > suggest ogg123" would suggest you to install "audio/vorbis-tools", > which is an idea that has been floating around). Bryan