From owner-freebsd-questions@FreeBSD.ORG Mon Feb 17 22:08:29 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 94FDEEC2 for ; Mon, 17 Feb 2014 22:08:29 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 19D441668 for ; Mon, 17 Feb 2014 22:08:28 +0000 (UTC) Received: from seedling.local (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.8/8.14.8) with ESMTP id s1HM8M1I077220 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Mon, 17 Feb 2014 22:08:23 GMT (envelope-from matthew@FreeBSD.org) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk s1HM8M1I077220 Authentication-Results: smtp.infracaninophile.co.uk/s1HM8M1I077220; dkim=none reason="no signature"; dkim-adsp=none X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host seedling.black-earth.co.uk [81.2.117.99] claimed to be seedling.local Message-ID: <5302884B.3050009@FreeBSD.org> Date: Mon, 17 Feb 2014 22:08:11 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: portmaster not updating ports with new pkg References: In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6wIJs9wCB966NNIpdQdfJJ00agkjgx8nE" X-Virus-Scanned: clamav-milter 0.98.1 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Feb 2014 22:08:29 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --6wIJs9wCB966NNIpdQdfJJ00agkjgx8nE Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 17/02/2014 21:11, Antonio Olivares wrote: > cp /usr/local/etc/pkg.conf.sample /usr/local/etc/pkg.conf Tht blog is out of date. Things change fast in the exciting world of pkgng... You do not need to have a /usr/local/etc/pkg.conf file at all, although if you want to set some global options or define aliases or the like, that is the place to do it. What you do need is a /usr/local/etc/pkg/repos/mumble.conf for some value of 'mumble'. Actually, you need at least one of these: you can have several if that is your desire. Each 'mumble.conf' contains the details of how to access a package repository that pkg(8) will use. FreeBSD 10.x and above come with a default setting (actually in /etc/pkg/FreeBSD.conf) which looks like this= : # $FreeBSD$ FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest", mirror_type: "srv", signature_type: "fingerprints", fingerprints: "/usr/share/keys/pkg", enabled: yes } You can use that as-is (put it in /usr/local/etc/pkg/repos/FreeBSD.conf) on earlier versions to access the offical FreeBSD package repos. You will need to grab the repo public key hashes from: http://svnweb.freebsd.org/base/head/share/keys/pkg/ You'll need to create the directory structure like so: /usr/share/keys/pkg/trusted/pkg.freebsd.org.2013102301 where that pkg.freebsd.org.2013102301 file can be downloaded from SVN. If you want to build your own packages, you can create your own private pkg repo very easily[*], and you'll need to write yourself a mumble.conf file to get pkg(8) to access it. 'signature_type' and 'fingerprints' are optional; only if you want to sign your own packages. The URL can be plain http:// or ftp:// or ssh:// or even the very minimal file:// -- in which case 'mirror_type' can also be omitted, but you'll have to set up whatever servers you need to support the URL scheme of your choice. The 'pkg+http://' scheme used in the official FreeBSD.conf implies 'mirror_Type=3D"srv" and the use of SRV records in the DNS to locate one out of a number of possible alternate mirror sites. Probably overkill to set something like that up for a personal repo. Cheers, Matthew [*] This is where poudriere(8) generally gets mentioned. --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --6wIJs9wCB966NNIpdQdfJJ00agkjgx8nE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJTAohVXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATv0MP/AwiMqXTyFTO9nsOcI9DJMgf NAeaN6qdxv8QEFlcK3Q/0L8jyq1DykJhNphCUHQIfCD3wj2y4L+VEBGyjj5jKC1y oicwrsnAaOjwVf4ExJaLTN8Auk7wvvOE138qjm6kzziW330kfbnI3Cl+vEGnkxm4 vP4Ue1samahOfnrDLl7dQxtThGOmev27bchHTHdHpF4yT4iROuisAOknTwk6nXkX g+OGVZLQeXhrjnrMXu6XR8sBuRPDiZ0YkXnpdOSjJ47ybonF52tZPp/BaCLhBSw2 5YUYO2BI3quNVp731Wav8ow3XFrW2Z8d6GoYYzSGtKNpi6eXyV7U6k2CY0XHh3cN ZscENXmCD6jEf3m4JPxCesDJ+IPYszw/3iVVebRncpHtSKe2seXdP8dmY06cRRe7 viTB2ZRaJ5GSN43rmQj8UIZIolWokMM3obn/VTagQyvyt0jA5aI1BqeZWJxlAo5E s+2VSmoGTJ7jGtMx8Xb8kIlMtRmO9Lou19gmYNn2lLYuCfHC9nqGomnIIFmZv+ld 8+5A29T1yK9JosCBh3RJtZKAPlsWCgEVXbvs8OAqa4DFaO4ykUzgFRtqpQpos0vR tYN+9HT93J2bZvWzEHF+E0csCjfN6m2TjULja03eLLWWhQfTA00mAseXRbkPrlPR SxJ28gN/iobb/hcSkyG4 =1uES -----END PGP SIGNATURE----- --6wIJs9wCB966NNIpdQdfJJ00agkjgx8nE--