[nycbug-talk] [SOLVED]: FreeBSD pkg repository question

Pete Wright pete at nomadlogic.org
Mon Dec 9 18:44:37 EST 2013



On 12/09/13 15:33, Pete Wright wrote:
> 
> 
> On 12/09/13 15:32, Scott Robbins wrote:
>> On Mon, Dec 09, 2013 at 01:28:16PM -0800, Pete Wright wrote:
>>> wanted to ping talk@ before hitting up freebsd-questions@ - i manage my
>>> own pkg repositories for my freebsd systems.  recently i've been getting
>>> this warning message when ever i update my packages (via pkg upgrade):
>>>
>>>
>>> pkg: PACKAGESITE in pkg.conf is deprecated. Please create a repository
>>> configuration file
>>> Updating repository catalogue
>>>
>>>
>>> I understand pkg has moved over to using SRV records and new
>>> configuration format for repository configurations.  what i can not
>>> figure out, or find docs on how to do this, is setting up my local
>>> repository to work with the new pkg.conf configuration syntax.
>>
>> Yeah, it's on the wiki (as opposed to the Handbook)
>>
>> https://wiki.freebsd.org/pkgng#Availability_of_binary_pkgs_for_Download
>>
>> There's a sample file.  I just copied that exactly and it worked.
>>
>>
> 
> hrm i had thought i tested that but was still running into errors.
> going to give it another shot now - thanks for the heads up!
> 

yea the directions on the wiki are correct - i had an empty newline in
my old pkg.conf config that was breaking things.  fwiw this is what my
/usr/local/etc/pkg/repos/nomadlogic.conf looks like:

nomadlogic: {
        url: "pkg+http://pkg.nomadlogic.org/92amd64-default",
        mirror_type: "srv",
        enabled: yes
}

I'm going to try to figure out what mirror_type: "srv" stands for since
I was mistakenly(?) assuming that was for SRV dns records.  i do not
have a SRV record for this host/service but things are working a-ok so far.

cheers,
-pete


-- 
Pete Wright
pete at nomadlogic.org
twitter => @nomadlogicLA




More information about the talk mailing list