From owner-freebsd-ports@freebsd.org Mon Jul 17 17:39:03 2017 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 A1EB9D9B838 for ; Mon, 17 Jul 2017 17:39:03 +0000 (UTC) (envelope-from adamw@adamw.org) Received: from apnoea.adamw.org (apnoea.adamw.org [104.225.5.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "apnoea.adamw.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0B29A69257 for ; Mon, 17 Jul 2017 17:39:02 +0000 (UTC) (envelope-from adamw@adamw.org) Received: by apnoea.adamw.org (OpenSMTPD) with ESMTPSA id eecc086d TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Mon, 17 Jul 2017 11:38:55 -0600 (MDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: How to get pkg to recognize local repository? From: Adam Weinberger In-Reply-To: <1daa2d98-89d5-c9b4-fd3e-5b34c4c7d7f8@astart.com> Date: Mon, 17 Jul 2017 11:38:54 -0600 Cc: freebsd-ports@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <2DF2CE2E-5F38-41CF-92E2-6C224F7A2528@adamw.org> References: <20170717052106.GC2368@c720-r314251> <1daa2d98-89d5-c9b4-fd3e-5b34c4c7d7f8@astart.com> To: papowell@astart.com X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2017 17:39:03 -0000 > On 17 Jul, 2017, at 11:13, Patrick Powell wrote: >=20 > On 07/16/17 22:21, Matthias Apitz wrote: >> El d=C3=ADa lunes, julio 17, 2017 a las 05:10:06a. m. +0000, Thomas = Mueller escribi=C3=B3: >>=20 >>> How do I get pkg to recognize a local repository such as = /mnt/usr/packages/All, or does pkg only recognize remote repositories? >>>=20 >>> ... >> I use: >>=20 >> $ ls -l /usr/local/etc/pkg/repos/*.conf >> -rw-r--r-- 1 root wheel 35 12 mar. 11:05 = /usr/local/etc/pkg/repos/FreeBSD.conf >> -rw-r--r-- 1 root wheel 96 12 mar. 11:05 = /usr/local/etc/pkg/repos/myrepo.conf >> $ cat /usr/local/etc/pkg/repos/FreeBSD.conf >> FreeBSD: { enabled: no } >>=20 >> $ cat /usr/local/etc/pkg/repos/myrepo.conf >>=20 >> FreeBSD: { >> url: "file:///usr/local/PKGDIR.20170304", >> enabled: true, >> } >>=20 >> HIH >>=20 >> matthias >=20 > Just out of curiosity (and because I might want to do this) how can = you specify two (or more) repositories > and have them searched in some order. For example, you might have a = local respository with some > ports/packages that you are currently debugging/fixing. You want pkg = to search the local respository > first and then if it does not find the packages to use the default = (remote) repository. myfirstrepo: { url: file:///path/to/first/repo, priority: 99 }, mysecondrepo: { url: file:///path/to/second/repo, priority: 98 } # Adam --=20 Adam Weinberger adamw@adamw.org https://www.adamw.org