Re: resize /usr

2018-09-02 Thread Ingo Schwarze
Hi Ken,

Ken M wrote on Sun, Sep 02, 2018 at 03:47:05PM -0400:

> 16 partitions:
> #size   offset  fstype [fsize bsize   cpg]
>   a:  2097152   64  4.2BSD   2048 16384 12958 # /
>   b:  8241536  2097216swap# none
>   c:2500696800  unused
>   d:  8388608 10338752  4.2BSD   2048 16384 12958 # /tmp
>   e: 23823104 18727360  4.2BSD   2048 16384 12958 # /var
>   f: 31460960 42550464  4.2BSD   2048 16384 12958 # /usr
>   g: 41929664 74011424  4.2BSD   2048 16384 12958 # /usr/ports
>   h:134126688115941088  4.2BSD   2048 16384 12958 # /home
> 
> Frankly what probably makes the most sense is remounting /usr/ports to
> be /usr/local.  That probably makes the most sense.  Frankly first doing
> this I am sure I did not make the best decisions as I am still on the new
> side of using OpenBSD.

How exactly to distribute space among partitions really depends on what
you want to use the machine for.  The disk you are showing above can be
called terribly small nowadays (though i admit that i used disks in
production with OpenBSD 2.7 17 years ago that were more than 1000 
times smaller), so small that you are likely to run out of space
sooner or later even if you don't let waste data lying around.

Yes, you always want /usr/local/, except maybe on a pure firewall router
where you are not planning to install any ports whatsoever except rsync.

I see you do not have /usr/src/, /usr/obj/, /usr/xenocara/,
and /usr/xobj/, so you are obviously not planning to work on patches
to the base system or to X11.  Nothing is wrong with that.  If you ever
start doing such work on that machine, you will have to bite off the
required partitions from home, though.  It would have been smarter if
you had left at least 10G at the end of the disk unallocated; if you
ever needed some partition like that, you could create it without a fuss;
if /home/ ever got full, you could move some stuff there.

I see you do have /usr/ports/, so obviously, you are planning to do
some work on ports.  I only work on ports *occasionally*, i'm not a
real porter, yet i currently have the following amounts of space *in
use* for work on ports:

 - /usr/local/--   9 GB (separate partition)
 - /usr/ports/pobj/   --  18 GB (separate partition)
 - /usr/ports/distfiles/  --   9 GB (partition /usr/ports/)
 - /usr/ports/packages/   --   8 GB 
 - /usr/ports/--  650 MB (rest of the partition)

In addition to that, i have about 115 checkouts of source trees
of various software that i occasionally work on or look at on
another partition, which takes up another 21 GB (but that's more
for base that for ports work).

Yours,
  Ingo



Re: Cloud-Storage & OpenBSD

2018-09-02 Thread Daniel Jakots
On Sun, 02 Sep 2018 15:38:40 -0400, Predrag Punosevac
 wrote:

> Dain Bentley wrote:
> 
> > Rclone and a storage provider of choice  
> 
> I don't see it in ports. 
> 
> https://rclone.org/downloads/
> 
> seems to be the link to binary blob. Could you give me the link to
> source code?

It's available on current and will be in 6.4+

https://github.com/openbsd/ports/commit/450fdb4b62b110c027a53143523e13baf7caabc3

Cheers,
Daniel



Re: Cloud-Storage & OpenBSD

2018-09-02 Thread - -
File backup: I really like Tarsnap and/or BorgBackup to Rsync.net (both
encrypted, incremental)
File sync between computers: Syncthing

Similar to Dropbox: Nextcloud



  On September 2, 2018 at 10:43 AM Kurtis  wrote:


  Hey all,

  I'm just wondering if anyone has any suggestions with any Online File
  Backup / Synchronization services?

  I used Dropbox for a long time but decided to drop it in favor of
  pCloud. It's about time to do another annual subscription so I'm
  looking at options.

  I use the same service for backing up photos from my phone, backing
  up documents from computers, and syncing files between multiple
  machines (Mac, Windows, and Linux, Android).

  Specifically, I'm looking for a service that is compatible with the
  major operating systems but also has a good client for OpenBSD.

  Bonus feature would be the ability to share the service with my
  family using different accounts.

  The ability to generate credentials that can only access certain
  folders would be _really_ cool. For example, my machines could
  generate reports and store them in my sync'd service so I could
  simplify viewing them from any machine.

  Thanks!


Re: Cloud-Storage & OpenBSD

2018-09-02 Thread Thuban
* Predrag Punosevac  le [02-09-2018 15:38:40 -0400]:
> > On Sep 2, 2018, at 10:43 AM, Kurtis  wrote:
> > 
> > Hey all,
> > 
> > I'm just wondering if anyone has any suggestions with any Online File
> > Backup Synchronization services?
> > 
> > I used Dropbox for a long time but decided to drop it in favor of
> > pCloud. It's about time to do another annual subscription so I'm
> > looking at options.
> > 
> > I use the same service for backing up photos from my phone, backing up
> > documents from computers, and syncing files between multiple machines
> > (Mac, Windows, and Linux, Android).
> > 
> > Specifically, I'm looking for a service that is compatible with the
> > major operating systems but also has a good client for OpenBSD.
> > 
> > Bonus feature would be the ability to share the service with my family
> > using different accounts.
> > 
> > The ability to generate credentials that can only access certain folders
> > would be  _really_ cool. For example, my machines could generate
> > reports and store them in my sync'd service so I could simplify
> > viewing them from any machine.
> > 
> > Thanks!


net/syncthing

-- 
thuban



Re: resize /usr

2018-09-02 Thread Ken M
On Sun, Sep 02, 2018 at 10:53:36AM -0700, Chris Bennett wrote:
> On Sun, Sep 02, 2018 at 04:16:57PM +, Ken M wrote:
> 
> You can only do this if /usr/ports is directly after /usr.
> Use disklabel sd0 to get the positions.
> 
> However, if /usr/ports is big enough and it's in the wrong spot, you can
> play games with switching them. I do this occasionally.
> If you can pull this off, use the n command in disklabel to rename /usr
> to something like /usr2 and /usr/ports as /usr/ports2, fiddle things
> around and then turn /usr2 into /usr/ports and /usr/ports2 into /usr.
> 
> What I don't see is /usr/local and that makes things much harder unless
> you can pkg_delete everything and then re-install.
> You might find it much easier to ditch /usr/ports, add /usr/local to
> disklabel and another for /usr/ports that is much smaller.
> 
> But we need to see your disklabel or any advice is hard to give.
> Also, by not having a /usr/local partition, your security is worse since
> that is the only partition that should use wxallowed in /etc/fstab.
> 
> Basically, this is going to be really easy or really challenging.
> growfs works well. There is no such command as shrinkfs, but it can be
> done if well planned, usually. Or maybe not.
> 
> Others may have different advice, but put up your disklabel sd0 here
> for sure.
> Just be glad you don't need to move /var. I've done it but ugh!
> 
> Chris Bennett
> 
> 

Here is the output from disklabel

# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: SAMSUNG MZ7TE128
duid: ea188d6164482e5c
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 15566
total sectors: 250069680
boundstart: 64
boundend: 250067790
drivedata: 0

16 partitions:
#size   offset  fstype [fsize bsize   cpg]
  a:  2097152   64  4.2BSD   2048 16384 12958 # /
  b:  8241536  2097216swap# none
  c:2500696800  unused
  d:  8388608 10338752  4.2BSD   2048 16384 12958 # /tmp
  e: 23823104 18727360  4.2BSD   2048 16384 12958 # /var
  f: 31460960 42550464  4.2BSD   2048 16384 12958 # /usr
  g: 41929664 74011424  4.2BSD   2048 16384 12958 # /usr/ports
  h:134126688115941088  4.2BSD   2048 16384 12958 # /home

Frankly what probably makes the most sense is remounting /usr/ports to be
/usr/local.  That probably makes the most sense. Frankly first doing this I am
sure I did not make the best decisions as I am still on the new side of using
OpenBSD.

Ken



Re: Cloud-Storage & OpenBSD

2018-09-02 Thread Predrag Punosevac
> On Sep 2, 2018, at 10:43 AM, Kurtis  wrote:
> 
> Hey all,
> 
> I'm just wondering if anyone has any suggestions with any Online File
> Backup Synchronization services?
> 
> I used Dropbox for a long time but decided to drop it in favor of
> pCloud. It's about time to do another annual subscription so I'm
> looking at options.
> 
> I use the same service for backing up photos from my phone, backing up
> documents from computers, and syncing files between multiple machines
> (Mac, Windows, and Linux, Android).
> 
> Specifically, I'm looking for a service that is compatible with the
> major operating systems but also has a good client for OpenBSD.
> 
> Bonus feature would be the ability to share the service with my family
> using different accounts.
> 
> The ability to generate credentials that can only access certain folders
> would be  _really_ cool. For example, my machines could generate
> reports and store them in my sync'd service so I could simplify
> viewing them from any machine.
> 
> Thanks!

sysutils/tarsnap
sysutils/borgbackup
sysutils/duplicity 


Maybe also 

www/nextcloud
www/owncloud


Dain Bentley wrote:

> Rclone and a storage provider of choice

I don't see it in ports. 

https://rclone.org/downloads/

seems to be the link to binary blob. Could you give me the link to
source code?


Cheers,
Predrag



Re: resize /usr

2018-09-02 Thread Chris Bennett
On Sun, Sep 02, 2018 at 04:16:57PM +, Ken M wrote:
> OK so now that I have been saved from my stupidity, let's try to prevent more
> stupidity.
> 
> $ df -h
> Filesystem SizeUsed   Avail Capacity  Mounted on
> /dev/sd0a 1005M245M710M26%/
> /dev/sd0h 62.9G   21.7G   38.1G36%/home
> /dev/sd0d  3.9G302K3.7G 0%/tmp
> /dev/sd0f 14.8G   11.6G2.5G82%/usr
> /dev/sd0g 19.7G1.1G   17.6G 6%/usr/ports
> /dev/sd0e 11.2G   56.1M   10.6G 1%/var
> 
> Above is my current disk setup, what I would like to do is shrink /usr/ports 
> to
> grow /usr.  
> 
> So from what I get growfs will work if I have space after /usr. So can I 
> shrink
> /usr/ports and move it back so there is space after /usr or do I need to
> completely drop and recreate /usr/ports?
> 

You can only do this if /usr/ports is directly after /usr.
Use disklabel sd0 to get the positions.

However, if /usr/ports is big enough and it's in the wrong spot, you can
play games with switching them. I do this occasionally.
If you can pull this off, use the n command in disklabel to rename /usr
to something like /usr2 and /usr/ports as /usr/ports2, fiddle things
around and then turn /usr2 into /usr/ports and /usr/ports2 into /usr.

What I don't see is /usr/local and that makes things much harder unless
you can pkg_delete everything and then re-install.
You might find it much easier to ditch /usr/ports, add /usr/local to
disklabel and another for /usr/ports that is much smaller.

But we need to see your disklabel or any advice is hard to give.
Also, by not having a /usr/local partition, your security is worse since
that is the only partition that should use wxallowed in /etc/fstab.

Basically, this is going to be really easy or really challenging.
growfs works well. There is no such command as shrinkfs, but it can be
done if well planned, usually. Or maybe not.

Others may have different advice, but put up your disklabel sd0 here
for sure.
Just be glad you don't need to move /var. I've done it but ugh!

Chris Bennett




Re: Cloud-Storage & OpenBSD

2018-09-02 Thread Dain Bentley
Rclone and a storage provider of choice

Get Outlook for iOS


From: 32071115340n behalf of
Sent: Sunday, September 2, 2018 12:37 PM
To: Kurtis
Cc: misc@openbsd.org
Subject: Re: Cloud-Storage & OpenBSD

Tarsnap?

Sent from my iPhone

> On Sep 2, 2018, at 10:43 AM, Kurtis  wrote:
>
> Hey all,
>
> I'm just wondering if anyone has any suggestions with any Online File Backup 
> / Synchronization services?
>
> I used Dropbox for a long time but decided to drop it in favor of pCloud. 
> It's about time to do another annual subscription so I'm looking at options.
>
> I use the same service for backing up photos from my phone, backing up 
> documents from computers, and syncing files between multiple machines (Mac, 
> Windows, and Linux, Android).
>
> Specifically, I'm looking for a service that is compatible with the major 
> operating systems but also has a good client for OpenBSD.
>
> Bonus feature would be the ability to share the service with my family using 
> different accounts.
>
> The ability to generate credentials that can only access certain folders 
> would be _really_ cool. For example, my machines could generate reports and 
> store them in my sync'd service so I could simplify viewing them from any 
> machine.
>
> Thanks!
>
>
>



Re: Cloud-Storage & OpenBSD

2018-09-02 Thread Bryan Harris
Tarsnap?

Sent from my iPhone

> On Sep 2, 2018, at 10:43 AM, Kurtis  wrote:
> 
> Hey all,
> 
> I'm just wondering if anyone has any suggestions with any Online File Backup 
> / Synchronization services?
> 
> I used Dropbox for a long time but decided to drop it in favor of pCloud. 
> It's about time to do another annual subscription so I'm looking at options.
> 
> I use the same service for backing up photos from my phone, backing up 
> documents from computers, and syncing files between multiple machines (Mac, 
> Windows, and Linux, Android).
> 
> Specifically, I'm looking for a service that is compatible with the major 
> operating systems but also has a good client for OpenBSD.
> 
> Bonus feature would be the ability to share the service with my family using 
> different accounts.
> 
> The ability to generate credentials that can only access certain folders 
> would be _really_ cool. For example, my machines could generate reports and 
> store them in my sync'd service so I could simplify viewing them from any 
> machine.
> 
> Thanks!
> 
> 
> 



resize /usr

2018-09-02 Thread Ken M
OK so now that I have been saved from my stupidity, let's try to prevent more
stupidity.

$ df -h
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/sd0a 1005M245M710M26%/
/dev/sd0h 62.9G   21.7G   38.1G36%/home
/dev/sd0d  3.9G302K3.7G 0%/tmp
/dev/sd0f 14.8G   11.6G2.5G82%/usr
/dev/sd0g 19.7G1.1G   17.6G 6%/usr/ports
/dev/sd0e 11.2G   56.1M   10.6G 1%/var

Above is my current disk setup, what I would like to do is shrink /usr/ports to
grow /usr.  

So from what I get growfs will work if I have space after /usr. So can I shrink
/usr/ports and move it back so there is space after /usr or do I need to
completely drop and recreate /usr/ports?

Ken



Re: Some information needed, HELP!

2018-09-02 Thread Ken M
On Sun, Sep 02, 2018 at 10:46:44AM -0500, ed...@pettijohn-web.com wrote:
> 
> On Sep 2, 2018 9:55 AM, Ken M  wrote:
> >
> > I am backing up my config info right now and then will try that route, 
> > thank you
> >
> > Sent from my iPad
> >
> > > On Sep 2, 2018, at 10:52 AM, Sol??ne Rapenne  wrote:
> > > 
> > > Le 2018-09-02 16:21, Ken M a ??crit :
> > >> So I did something careless and stupid. Don't get me started but I 
> > >> really messed
> > >> up the group ownership of /usr by carelessly running a command not paying
> > >> attention. Yes I know, my stupidity.
> > >> Can anyone shoot me a quick list of what group should own what under 
> > >> /usr.
> > >> Sorry and thank you.
> > >> If it matters I am running current.
> > >> Ken
> > > 
> > > As you run current, boot bsd.rd and reinstall the sets
> > > for /usr/local one quick way is to save the package list installed 
> > > manually
> > > (pkg_info -lz I think, look at the man page) and reinstal them.
> >
> 
> I've done similar bad things and the bsd.rd route always worked for me.
> 

Reloading the sets saved my bacon. And frankly it was awesome how it just
worked. Dare I confess I debated if I was going to reinstall I was about to
throw fedora on there...

Forgive me puffy I have sinned...

Ken



Re: Some information needed, HELP!

2018-09-02 Thread edgar


On Sep 2, 2018 9:55 AM, Ken M  wrote:
>
> I am backing up my config info right now and then will try that route, thank 
> you
>
> Sent from my iPad
>
> > On Sep 2, 2018, at 10:52 AM, Solène Rapenne  wrote:
> > 
> > Le 2018-09-02 16:21, Ken M a écrit :
> >> So I did something careless and stupid. Don't get me started but I really 
> >> messed
> >> up the group ownership of /usr by carelessly running a command not paying
> >> attention. Yes I know, my stupidity.
> >> Can anyone shoot me a quick list of what group should own what under /usr.
> >> Sorry and thank you.
> >> If it matters I am running current.
> >> Ken
> > 
> > As you run current, boot bsd.rd and reinstall the sets
> > for /usr/local one quick way is to save the package list installed manually
> > (pkg_info -lz I think, look at the man page) and reinstal them.
>

I've done similar bad things and the bsd.rd route always worked for me.



Re: Some information needed, HELP!

2018-09-02 Thread Marcus MERIGHI
k...@mack-z.com (Ken M), 2018.09.02 (Sun) 16:21 (CEST):
> So I did something careless and stupid. Don't get me started but I
> really messed up the group ownership of /usr by carelessly running a
> command not paying attention. Yes I know, my stupidity.
> 
> Can anyone shoot me a quick list of what group should own what under
> /usr.

see /etc/mtree/special !

$ ls -la /usr
drwxr-xr-x   7 root   wheel   512 Aug 24 09:19 X11R6
drwxr-xr-x   2 root   wheel  5632 Aug 24 16:04 bin
drwxr-xr-x   2 root   wheel  1024 Aug 24 16:04 games
drwxr-xr-x  29 root   bin3072 Aug 24 16:04 include
drwxr-xr-x   7 root   wheel  3584 Aug 24 16:06 lib
drwxr-xr-x   5 root   wheel   512 Aug 24 08:39 libdata
drwxr-xr-x   6 root   wheel  1024 Aug 24 16:06 libexec
drwxr-xr-x  15 root   wheel   512 Aug 24 09:18 local
drwxr-xr-x   2 root   wheel   512 Aug 24 08:40 mdec
drwxrwx---   2 build  wobj512 Jan 20  2017 obj
drwxr-xr-x   1 root   wheel25 Mar  6  2017 ports
drwxr-xr-x   2 root   wheel  4096 Aug 25 11:49 sbin
drwxr-xr-x  17 root   wheel   512 Aug 24 08:40 share
drwxrwxr-x   2 root   wsrc512 Jan 20  2017 src
drwxrwx---   2 build  wobj512 Jan 20  2017 xobj

Marcus



Re: Some information needed, HELP!

2018-09-02 Thread Ken M
I am backing up my config info right now and then will try that route, thank you

Sent from my iPad

> On Sep 2, 2018, at 10:52 AM, Solène Rapenne  wrote:
> 
> Le 2018-09-02 16:21, Ken M a écrit :
>> So I did something careless and stupid. Don't get me started but I really 
>> messed
>> up the group ownership of /usr by carelessly running a command not paying
>> attention. Yes I know, my stupidity.
>> Can anyone shoot me a quick list of what group should own what under /usr.
>> Sorry and thank you.
>> If it matters I am running current.
>> Ken
> 
> As you run current, boot bsd.rd and reinstall the sets
> for /usr/local one quick way is to save the package list installed manually
> (pkg_info -lz I think, look at the man page) and reinstal them.



Cloud-Storage & OpenBSD

2018-09-02 Thread Kurtis
Hey all,

I'm just wondering if anyone has any suggestions with any Online File Backup / 
Synchronization services?

I used Dropbox for a long time but decided to drop it in favor of pCloud. It's 
about time to do another annual subscription so I'm looking at options.

I use the same service for backing up photos from my phone, backing up 
documents from computers, and syncing files between multiple machines (Mac, 
Windows, and Linux, Android).

Specifically, I'm looking for a service that is compatible with the major 
operating systems but also has a good client for OpenBSD.

Bonus feature would be the ability to share the service with my family using 
different accounts.

The ability to generate credentials that can only access certain folders would 
be _really_ cool. For example, my machines could generate reports and store 
them in my sync'd service so I could simplify viewing them from any machine.

Thanks!





Some information needed, HELP!

2018-09-02 Thread Ken M
So I did something careless and stupid. Don't get me started but I really messed
up the group ownership of /usr by carelessly running a command not paying
attention. Yes I know, my stupidity.

Can anyone shoot me a quick list of what group should own what under /usr.

Sorry and thank you.

If it matters I am running current.

Ken



Re: acme-client agreement url in 6.3

2018-09-02 Thread flipchan
Awesome thanks

On September 2, 2018 9:57:48 AM UTC, Stuart Henderson  
wrote:
>On 2018-09-02, flipc...@riseup.net  wrote:
>> Hey all, 
>>
>> i cant be able to get acme-client to work in 6.3 .
>>
>> i get the same error with  agreement url as
>> "https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf;
>and
>> "https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf;
>>
>> their is a error on his site,
>> https://github.com/kristapsdz/acme-client-portable/issues/51
>> Does anyone know what agreement url is offically supported/works with
>> openbsd 6.3?
>>
>> server# acme-client -vv mail.example.com   
>> acme-client: "agreement url" is deprecated.
>> acme-client: "agreement url" is deprecated.
>
>Just remove "agreement url", it's no longer used in 6.3.
>
>> acme-client: acme-client: acme-client:
>> /etc/ssl/private/mail.example.com.key: loaded RSA domain
>> key/etc/acme/letsencrypt-privkey.pem: loaded RSA account
>> key/etc/ssl/mail.example.com.crt: certificate valid: 120 days left
>
>This looks like it's worked.

-- 
Take Care Sincerely flipchan layerprox dev


Re: Issue with OpenSMTPD, procmail and comsat

2018-09-02 Thread Gilles Chehade
You forgot to mention what version of OpenBSD you are using ?

On Sun, Sep 02, 2018 at 01:03:48PM +0200, d.rausch...@gmail.com wrote:
> Hi,
> 
> I figured out an issue with opensmtpd, procmail, and comsat.
> The .forward for procamil must be
> 
> "|exec /usr/local/bin/procmail -f - || exit 75"
> 
> The -f - option makes procmail to include a dummy mail-from header
> line. But this line is corrupt. comsat(8) does not like this:
> 
> Sep  1 19:10:41 ws comsat[11416]: ':/var/mail/dra' is invalid
> 
> in /var/log/messages. But mutt can read this mail.
> 
> Without the -f - option in the .forward file my mailspool is corrupted
> because of the missin first line (mail-from header). The currect
> solution is: I have turned off comsat in inetd.conf. But i am
> unsatisfied with this. It would be better if opensmtpd would include
> the mail-from header if processinf the .forward to procmail.
> 

I don't like the idea that because procmail produces a corrupt line that
comsat doesn't understand, smtpd should have a special case and parse an
aliases mapping or forward files looking for the string "procmail".

If you're running current, you might want to try:

   "|exec /usr/local/bin/procmail -f %{mbox.from} || exit 75"

in case it helps procmail produce a correct sender.

Can you provide me with the corrupt line procmail includes so I can
check if it is invalid indeed ?

-- 
Gilles Chehade

https://www.poolp.org  @poolpOrg



Issue with OpenSMTPD, procmail and comsat

2018-09-02 Thread d . rauschenb
Hi,

I figured out an issue with opensmtpd, procmail, and comsat.
The .forward for procamil must be

"|exec /usr/local/bin/procmail -f - || exit 75"

The -f - option makes procmail to include a dummy mail-from header
line. But this line is corrupt. comsat(8) does not like this:

Sep  1 19:10:41 ws comsat[11416]: ':/var/mail/dra' is invalid

in /var/log/messages. But mutt can read this mail.

Without the -f - option in the .forward file my mailspool is corrupted
because of the missin first line (mail-from header). The currect
solution is: I have turned off comsat in inetd.conf. But i am
unsatisfied with this. It would be better if opensmtpd would include
the mail-from header if processinf the .forward to procmail.

-dra



Re: acme-client agreement url in 6.3

2018-09-02 Thread Stuart Henderson
On 2018-09-02, flipc...@riseup.net  wrote:
> Hey all, 
>
> i cant be able to get acme-client to work in 6.3 .
>
> i get the same error with  agreement url as
> "https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf; and
> "https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf;
>
> their is a error on his site,
> https://github.com/kristapsdz/acme-client-portable/issues/51
> Does anyone know what agreement url is offically supported/works with
> openbsd 6.3?
>
> server# acme-client -vv mail.example.com   
> acme-client: "agreement url" is deprecated.
> acme-client: "agreement url" is deprecated.

Just remove "agreement url", it's no longer used in 6.3.

> acme-client: acme-client: acme-client:
> /etc/ssl/private/mail.example.com.key: loaded RSA domain
> key/etc/acme/letsencrypt-privkey.pem: loaded RSA account
> key/etc/ssl/mail.example.com.crt: certificate valid: 120 days left

This looks like it's worked.




Re: make(1) and multiple outputs

2018-09-02 Thread gwes




On 08/31/18 03:23, Kristaps Dzonsons wrote:

Short: is there a way to manage multiple outputs from a single command
with OpenBSD's make(1)?

Longer story.  I have a site that generates a few hundred articles using
sblg(1).  Each output article is indexNNN.html, which depends upon every
input indexNNN.xml.  So a change to any indexNNN.xml must result in
rebuilding all indexNNN.html using a single command.

In GNU make, I can use the pattern substring match to effect this:

all: index001.html index002.html

index001%html index002%html: index001.xml index002.xml
sblg -L index001.xml index002.xml

But obviously that's GNU-only.  It is, as a fallback, possible to have
sblg(1) create one output per input and play nice with make(1):

index001.html: index001.xml index002.xml
sblg -C index001.xml index001.xml index002.xml

But with hundreds of articles (each of which depends upon parsing
hundreds of articles), those are a lot of wasted cycles.

I currently just use the GNU make, but I'd rather use only stock
components on the server.  Any thoughts?


Your example and request aren't clear to me.

Do you mean you have index000.xml, index001.xml, ... index999.xml
  and you want index000.html, index001.html, ... index999.html
such that if you touch *any* .xml you want to compile *all* the xml
to produce *all* the html?

You can introduce a set of proxy files to represent the dates
of the xml files.

.suffixes .xml .dummy

.xml.dummy:
         *.xml
        touch $@

Once you have the dummy files to represent individual dates,
you can use various make variables ($<, etc), pattern matching
and substitution functions to produce filenames.

If this isn't what you want I can't understand your question.
The gnu-style makefile doesn't make sense to me and I've used
the % feature in gmake.

If I were doing your project I would work *very* hard
to work around the many-to-many dependency.

Geoff Steckel