Hi all,

Ping.

How about something like this?

Recreated verbatim from pkg.conf.5:

Index: usr.sbin/pkg_add/pkg_add.1
===================================================================
RCS file: /cvs/src/usr.sbin/pkg_add/pkg_add.1,v
retrieving revision 1.142
diff -u -p -r1.142 pkg_add.1
--- usr.sbin/pkg_add/pkg_add.1  27 Feb 2017 21:53:11 -0000      1.142
+++ usr.sbin/pkg_add/pkg_add.1  11 Mar 2017 08:37:35 -0000
@@ -225,7 +225,14 @@ All paths recognize special sequences
 .Sq %a ,
 .Sq %c ,
 .Sq %m ,
-.Sq %v .
+.Sq %v ,
+which will be expanded to
+.Sq package architecture ,
+.Sq OS version or snapshots ,
+.Sq full mirror path
+and
+.Sq OS version
+respectively.
 .Pp
 The following examples are valid:
 .Bd -literal -offset indent


On Thu, Mar 02, 2017 at 09:20:20AM GMT, Raf Czlonka wrote:
> On Wed, Mar 01, 2017 at 10:39:08PM GMT, Frederic Cambus wrote:
> > On Tue, Feb 28, 2017 at 09:14:49PM +0000, Stuart Henderson wrote:
> > > On 2017/02/28 20:28, Frederic Cambus wrote:
> > > > Hi tech@,
> > > > 
> > > > In packages.7, PKG_PATH points to a broken link. This diff fixes it.
> > > 
> > > https is going to be horrible for pkg_add -u...
> > 
> > Following tj@ and sthen@ suggestions, use %c and %a instead of
> > hardcoding strings, and switch to http instead of https.
> 
> Hi all,
> 
> There's a small issue with the special sequences %a, %c, %m and %v.
> With the removal of pkg.conf(5), these are only mentioned in
> pkg_add(1) but it is not explained what they actually mean.
> 
> They're still going to be supported in the next release I take it?
> 
> Regards,
> 
> Raf
> 
> > Index: share/man/man7/packages.7
> > ===================================================================
> > RCS file: /cvs/src/share/man/man7/packages.7,v
> > retrieving revision 1.40
> > diff -u -p -r1.40 packages.7
> > --- share/man/man7/packages.7       24 Oct 2015 08:44:49 -0000      1.40
> > +++ share/man/man7/packages.7       1 Mar 2017 14:28:07 -0000
> > @@ -240,7 +240,7 @@ are supported: pointing
> >  .Ev PKG_PATH
> >  to a distant package repository, e.g.,
> >  .Bd -literal -offset 1n
> > -# export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/5.2/packages/i386/
> > +# export PKG_PATH=http://ftp.openbsd.org/pub/OpenBSD/%c/packages/%a/
> >  .Ed
> >  .Pp
> >  will let
> > 

Reply via email to