Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Feb 2014 22:08:11 +0000
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: portmaster not updating ports with new pkg
Message-ID:  <5302884B.3050009@FreeBSD.org>
In-Reply-To: <CAJ5UdcM7o9w2=Ewmdhwgj1a1Rp4%2BOvELOStQ=vxX=EaEcYsqDg@mail.gmail.com>
References:  <CAJ5UdcPEC1aWJnJcDjkGxtn141TU7gbMT84dLoPGKGkiu5UhOg@mail.gmail.com> <alpine.BSF.2.00.1402171245190.40330@wonkity.com> <CAJ5UdcNLZtZfy9s47U4iTA7fMt_sQFGB0TsUy03TG-Vf8gScXg@mail.gmail.com> <alpine.BSF.2.00.1402171324470.40330@wonkity.com> <CAJ5UdcM7o9w2=Ewmdhwgj1a1Rp4%2BOvELOStQ=vxX=EaEcYsqDg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5302884B.3050009>