From owner-freebsd-ports@freebsd.org Fri Apr 8 13:43:15 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8E19BB08553 for ; Fri, 8 Apr 2016 13:43:15 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.117.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4966410BB for ; Fri, 8 Apr 2016 13:43:15 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from ox-dell39.ox.adestra.com (unknown [85.199.232.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 43C8511094 for ; Fri, 8 Apr 2016 13:43:01 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/43C8511094; dkim=none; dkim-atps=neutral Subject: Re: Deriving base port/package names To: freebsd-ports@freebsd.org References: <51300.1460083670@server1.tristatelogic.com> From: Matthew Seaman Message-ID: <5707B557.60104@freebsd.org> Date: Fri, 8 Apr 2016 14:42:47 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: <51300.1460083670@server1.tristatelogic.com> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="KAQVapV1IJEf94eJ2bROp9t57UUH5ONvH" X-Virus-Scanned: clamav-milter 0.99.1 at smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2016 13:43:15 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --KAQVapV1IJEf94eJ2bROp9t57UUH5ONvH Content-Type: multipart/mixed; boundary="R6crquGueql6Xq9uan9W3J6DcU145UxXp" From: Matthew Seaman To: freebsd-ports@freebsd.org Message-ID: <5707B557.60104@freebsd.org> Subject: Re: Deriving base port/package names References: <51300.1460083670@server1.tristatelogic.com> In-Reply-To: <51300.1460083670@server1.tristatelogic.com> --R6crquGueql6Xq9uan9W3J6DcU145UxXp Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 04/08/16 14:29, Roger Marquis wrote: > Ronald F. Guilmette wrote: >> what would be a proper sort of sed command to extract >> _just_ the port/package names, without the version numbers attached? >=20 > This has changed in the past so may not currently be 100% correct but > these should work: >=20 > awk -F'-[0-9]' '{ print $1 }' >=20 > or: >=20 > sed 's/-[0-9].*$//' >=20 > It's a good question in any case and the answer{,s} should probably be > added to pkg(8)'s EXAMPLES. Well, assuming that you have the default FreeBSD pkg repo set up, then: pkg rquery -a %n will give you a list of all the package names in the repo, which will be pretty close to all the known ports/packages -- there's typically a few that don't build properly. Cheers, Matthew --R6crquGueql6Xq9uan9W3J6DcU145UxXp-- --KAQVapV1IJEf94eJ2bROp9t57UUH5ONvH Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJXB7VfAAoJEABRPxDgqeTn+0oP/1GR5wCP9GY0lcq3DOiY4uhv K88EE12M12hT5dUJKXQYYN5YvUJ+eGGuDVQ9x9q01NJS7VIaGzN5sSHy11Zk9QR4 xpSOlBKs28xyqDQgPKClRTQkdrcM6pM8EJfoZNivbXuacScXcXbClycYxnlgyRCd tDagGXmA8aSx9ScnwCRN+jxQAyEUiRYqswscUgJ/DMzQnO9idgfdzPF/FS22IcVK q23Cyyk8s+OVcXaekTD+ixmv91BhfuN9czaBYp/px45nxsEy3HuBA0Q57MbkXmg/ X2RxJgw5QEQ0hRQJBNTKTn6UvdKFhCZdEUK+l7fl0iXOAYZfjDFZqffpcl6RuAdb WD2Tjf2WbR90PnvyZ5yy92zsijxRlb78CcXLbHk3GED6PPvH1Tf8hIkobKw84ijG OGK4sE35wgXAIaFt4PHJ0AbFg3eFNWCKaro9OmQUXKByXI3UXQNP8B4PB+IikTZ2 chpiw6rcEgcOdIYDP21TPChuAzu4V0KEbv9QHUagxDoeUONcXXcVTT7BUuOUnyR4 5a9CYLltFpD1ZX9a9hQV12df+iKmaLUc/PDk6LW/32CyxkyoYADRJWiH6ByRS1MY r62oy52W9SaTy1KqneYYNUg9e/m2bdXUIwfLqssOadiG/dxTu30CU/QdKx68MsAH dJfM4cqEeFAJce355bZw =sncj -----END PGP SIGNATURE----- --KAQVapV1IJEf94eJ2bROp9t57UUH5ONvH--