From owner-freebsd-ports@FreeBSD.ORG Fri Oct 19 16:00:12 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0FF5F8D9; Fri, 19 Oct 2012 16:00:12 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id B5DCF8FC18; Fri, 19 Oct 2012 16:00:10 +0000 (UTC) Received: by mail-bk0-f54.google.com with SMTP id jf20so309993bkc.13 for ; Fri, 19 Oct 2012 09:00:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=jj8EhBEtCg4lER0h323yTxNHwVL/YXQTgxvolBydNUU=; b=Ns0CnjUO9KDavAtA51yRZEc5gqMpoOnE6GlnnE8s72T0RBXm8LxeNWlmQdkYa08NEh VVbl1rFbjH/fOz7o5ZZFEy/F83eW0KIklg5ipcLNcje5JgESDprvRoNYZJWSNtBrPA09 lajSdHOzpHOlApdNG3KjfPdOS/Wb71AlKIihyfJvCmfgYdoBjacWeCYHZnHJ4GD60Ptn oXX/yxtQCjhKHAFDvRb5up5IotlDSsiZdEzGcJpGFxd0wnmO0xwm+G6Aj9ao7Qedm5Od IaB8OpPPUsKN6b22DqD0TQY8gRegVcYPEF8/WkHV5paFrraNdc/delRgHP2mxi7EmR7w 3cgw== Received: by 10.204.150.213 with SMTP id z21mr628732bkv.45.1350662409844; Fri, 19 Oct 2012 09:00:09 -0700 (PDT) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.204.50.197 with HTTP; Fri, 19 Oct 2012 08:59:38 -0700 (PDT) In-Reply-To: <50816EE5.8090704@lissyara.su> References: <20121010134421.GI26497@ithaqua.etoilebsd.net> <5081661B.2090209@lissyara.su> <50816D59.1030706@unsane.co.uk> <50816EE5.8090704@lissyara.su> From: Chris Rees Date: Fri, 19 Oct 2012 16:59:38 +0100 X-Google-Sender-Auth: _9djeGIA5BckRDyjrhCotvFW7dw Message-ID: Subject: Re: [HEADSUP] current switched by default to pkgng To: Alex Keda Content-Type: text/plain; charset=ISO-8859-1 Cc: ports@freebsd.org, Baptiste Daroussin , ports-announce@freebsd.org, current@freebsd.org, Vincent Hoffman X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Oct 2012 16:00:12 -0000 On 19 October 2012 16:16, Alex Keda wrote: > On 19.10.2012 19:10, Vincent Hoffman wrote: >> On 19/10/2012 15:39, Alex Keda wrote: >>> On 10.10.2012 17:44, Baptiste Daroussin wrote: >>>> Hi all, >>>> >>>> If you are using the ports tree on a FreeBSD current setup, then you are >>>> concerned by the announce. >>>> >>>> As nvidia-drivers has been fixed and is now properly working with pkgng, the >>>> ports tree as been switch by default to use pkgng on FreeBSD Current based on >>>> version >= 1000017 which was the version when we tested the switch code. >>>> >>>> Make sure to read UPDATING (from ports) to correctly migrate your system or find >>>> instruction to make your system still running with legacy pkg_install tools. >>>> >>>> regards, >>>> Bapt >>>> >>> pkg command does not have key for list options - no autocompletions >>> >>> for example, for service command, I use >>> complete service 'n/*/`service -l`/' >>> in .cshrc >>> >>> what I can use for pkg command? >> >> horrible but working example >> pkg help 2>&1 | sed -e '1,/Commands supported:/d ; /For more information >> on the different commands/,$d; s/^ *// ; s/ .*.*$// ;/^$/d' >> >> There's bound to be better ways, I was just bored enough to knock this up. >> note s/^ *// is a tab, while s/ .*.*$// is 2 spaces >> dont think our sed has any other way to express tab other than an actual >> tab (ctrl-v then tab on the command line) > > it's crazy =) > may be add -l options? For Bourne-style shell: `pkg help 2>&1 | sed -nE 's,^ +(.*),\1,p'` For csh-style shell: `pkg help | & sed -nE 's,^ +(.*),\1,p'` where the bit between ^ and + is a tab character. You can type the tab character on a command prompt by using Ctrl+V then tab, or just type it normally in the script. Hope that helps in the meantime. Chris