rc.subr(8) capabilities - echo and custom rc_${SUB}

2014-04-26 Thread Michał Lesiak
Hello, I'm converting a .rc script made by someone a coupe of years ago for the same product I'm currently working on. It's important for this tale as this may mean that this actually worked for some previous versions. I'm working on 5.2 version. 1. I have a custom "rc_register()" sub defined

Re: rc.subr(8) capabilities - echo and custom rc_${SUB}

2014-04-27 Thread Michał Lesiak
Hi Ingo, On Sun, Apr 27, 2014 at 1:30 AM, Ingo Schwarze wrote: > > > I'm working on 5.2 version. > > That's unsupported for nearly a year now. > Consider upgrading to 5.5 after May 1. I know, but I'll never know what ancient versions my users will use, so I'm using a (reasonably) old version to

Re: rc.subr(8) capabilities - echo and custom rc_${SUB}

2014-04-27 Thread Michał Lesiak
Hi Ingo, On Sun, Apr 27, 2014 at 12:33 PM, Ingo Schwarze wrote: > That's not a good plan at all. Sometimes, new binaries work on > old versions and vice versa, but in general, that's not the case. > So if you ship packages for 5.2-stable (well, actually, 5.2-obsolete), > you force your users to

Re: rc.subr(8) capabilities - echo and custom rc_${SUB}

2014-04-27 Thread Michał Lesiak
Hi Theo, On Sun, Apr 27, 2014 at 3:21 PM, Theo de Raadt wrote: > Huh? You've understood incorrectly. Each release of OpenBSD is ABI > incompatible > with the previous, or next. We make no promises about ABI. Making such > promises > would be incompatible with making progress. If you want

pkg_add http://${REDIRECT}

2014-04-28 Thread Michał Lesiak
Hello, I'm trying to invent a oneliner for installing a specific package. The problem is, the destination file is a redirect file forwarding a request to a target package. The result is: # pkg_add -v http://10bees-agent.s3-website-us-east-1.amazonaws.com/openbsd/agent.tgz parsing agent

Re: pkg_add http://${REDIRECT}

2014-04-29 Thread Michał Lesiak
On Tue, Apr 29, 2014 at 1:20 AM, Marc Espie wrote: > Expect no help from me until you actually explain what you want to do in > explicit terms. It looks like you're trying to pull a fast one on pkg_add, > and obviously pkg_add isn't duped... you tell it you want to install > something, and you

Re: pkg_add http://${REDIRECT}

2014-04-29 Thread Michał Lesiak
Hello Jérémie, On Tue, Apr 29, 2014 at 7:36 PM, Jérémie Courrèges-Anglas wrote: > > Try to deal with packages like the OpenBSD project does. > Just stuff your packages in http://foo/$release/packages/$arch/ > Tell your clients to tweak their pkg.conf and run pkg_add 10bees > That's it. That's ac