pkgng local repositories

Matthew Seaman matthew at FreeBSD.org
Wed Nov 26 07:33:57 UTC 2014


On 26/11/2014 07:18, Gerhard Schmidt wrote:
> I'm trying to setup a repository for some internal packages.
> 
> i've done the packages with pkg create and run pkg repo on the
> directory with the packages and setup an nginx to server this directory.
> 
> The problem starts wwith the client side.
> 
> I created the following file in /etc/pkg
> 
> WOS: {
>   url: "pkg+http://build.intern/packages",
>   mirror_type: "srv",
>   signature_type: "fingerprints",
>   fingerprints: "/usr/local/etc/pkg/fingerprints",
>   enabled: yes
> }
> 
> and put a file with the signature ob the used signing key in
> /usr/local/etc/pkg/fingerprints
> 
> function: sha256
> fingerprint:
> bfb36c02ecff31b573a9837c73dd978ca6d79dc1fc2451334c4cad003bded43f
> 
> When i run pkg update on the client i get the following output
> 
> Updating FreeBSD repository catalogue...
> FreeBSD repository is up-to-date.
> Updating WOS repository catalogue...
> Fetching meta.txz: 100%   560 B   0.6k/s    00:01
> pkg: No signature found
> pkg: repository WOS has no meta file, using default settings
> Fetching digests.txz: 100%    6 KB   5.9k/s    00:01
> pkg: No signature found
> pkg: Unable to update repository WOS
> 
> both file are found and downloaded and both files contain a file named
> signature.
> 
> What am I doing wrong.

Using the wrong mirror type.  Try:

  url: "http://build.intern/packages",
  mirror_type: NONE,

This is the appropriate setting if you have a single repository site, as
most private build systems will.  pkg+http:// and SRV is appropriate if
you have a global network of mirrored package repositories (as the
FreeBSD project does) -- so don't copy the standard FreeBSD pkg.conf too
slavishly.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 971 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20141126/8606a1c3/attachment.sig>


More information about the freebsd-questions mailing list