Update: latex2html

2021-03-23 Thread David
Sorry to bother you. On OpenBSD 6.8 any attempt, for me at least, to use 
latex2html terminates immediately with:

Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in 
m/((^|[\s,=])')\\\W{ <-- HERE (\w)}/ at /usr/local/bin/latex2html line 6481.

The attached diff updates to latex2html 2021 which seems to work for me on 
amd64 CURRENT. Also, there was a typo in the post-install bit.

However, this is my first time working with ports, so watch out for foolish 
mistakes on my part, please.

--
David



latex2html.diff
Description: Binary data


Re: Interest check: gh (github's cli)

2021-03-23 Thread Mikolaj Kucharski
On Tue, Mar 23, 2021 at 10:18:07PM +, Stuart Henderson wrote:
> 
> OK sthen with these added
> 
> BROKEN-aarch64=   old kr/pty doesn't support OpenBSD arm arches; needs 
> creack/pty@v1.1.11
> BROKEN-armv7= old kr/pty doesn't support OpenBSD arm arches; needs 
> creack/pty@v1.1.11
> 

Port updated with broken markers for aarch64 and armv7 added.

-- 
Regards,
 Mikolaj


github-cli-1.7.0.port-v2.tgz
Description: application/tar-gz


Re: NEW: security/py-hvac 0.10.6

2021-03-23 Thread Mikolaj Kucharski
On Tue, Mar 23, 2021 at 10:25:13PM +, Stuart Henderson wrote:
> 
> There don't seem to be any tests in the distribution, so TEST_DEPENDS
> doesn't make much sense?
> 
> Port looks good to me but I have no way to test it.
> 

Dropped TEST_DEPENDS. I've used it with Ansible:

  bindpw: "{{ lookup('hashi_vault', 'secret=secret/... }}"

to fetch secrets from Vault.

-- 
Regards,
 Mikolaj


py-hvac-0.10.8.port-v2.tgz
Description: application/tar-gz


Re: NEW: security/py-hvac 0.10.6

2021-03-23 Thread Stuart Henderson
On 2021/03/23 22:06, Mikolaj Kucharski wrote:
> Kind reminder.
> 
> On Tue, Mar 09, 2021 at 09:23:02PM +, Mikolaj Kucharski wrote:
> > Updated the port to 0.10.8
> > 
> > On Sun, Jan 24, 2021 at 12:54:17PM +, Mikolaj Kucharski wrote:
> > > Hi,
> > > 
> > > Kind reminder. Port reattached for convenience.
> > > 
> > > On Fri, Jan 01, 2021 at 05:08:59PM +, Mikolaj Kucharski wrote:
> > > > 
> > > > I'm using py3-hvac Python module to fetch Vault secrets from Ansible via
> > > > its hashi_vault lookup plugin.
> > > > 
> > > > > Comment:
> > > > > Python client library for Hashicorp Vault
> > > > >
> > > > > Description:
> > > > > HVAC allows accessing secrets stored in a Vault directly from
> > > > > Python code.
> > > > >
> > > > > An access token must be created first, using a separate tool
> > > > > like vault or vault-client.
> > > > 
> > > > I've made it Python3-only port. Comments?
> > > > 
> 
> -- 
> Regards,
>  Mikolaj

There don't seem to be any tests in the distribution, so TEST_DEPENDS
doesn't make much sense?

Port looks good to me but I have no way to test it.




Re: sysutils/u-boot: Ship assorted README files

2021-03-23 Thread Klemens Nanni
On Tue, Mar 23, 2021 at 09:10:22PM +0100, Klemens Nanni wrote:
> One thing I'd like to have around is documentation on how certain
> u-boot commands/subsystems work and/or what needs to be done on
> certain specific boards.
> 
> I'm on a Pinebook Pro here and ${WRKSRC}/doc/README.rockchip
> (thanks abieber!) for example has the relevant dd(1) commands to flash
> the various blobs -- with that I don't need to try my luck or search
> online get a firmware update going and/or prep an SD card.
> 
> I know that those README.* files generally also explain how to configure
> and build stuff from source and we are not interested in those bits, but
> shipping them unmodified is still of value, especially because I can
> now work on those boxes while mostly offline.
> 
> Besides board specific docs there is general information available
> regarding serial console and video output, GPT partitioning from within
> u-boot, etc. so I added a few assorted READMEs as well.
> 
> Since those ought be shipped regardless of the flavour but and we must
> not install the same files via multiple packages I've used PKGSTEM
> (contains FLAVOR) as part of the file path such that each FLAVOR may
> ship the same docs but under their own unique path.
> 
> I have other improvemens in mind but want to take care of them one by
> one.
New diff using PKGSTEM in PFRAG.* and BOARD_READMES not ARCH_READMES.

Feedback? OK?


Index: Makefile
===
RCS file: /cvs/ports/sysutils/u-boot/Makefile,v
retrieving revision 1.80
diff -u -p -r1.80 Makefile
--- Makefile23 Feb 2021 22:04:35 -  1.80
+++ Makefile23 Mar 2021 19:58:27 -
@@ -8,7 +8,7 @@ FLAVOR?=arm
 
 COMMENT=   U-Boot firmware
 VERSION=   2021.01
-REVISION=  0
+REVISION=  1
 DISTNAME=  u-boot-${VERSION}
 PKGNAME=   u-boot-${FLAVOR}-${VERSION:S/-//}
 FULLPKGNAME=   ${PKGNAME}
@@ -82,6 +82,8 @@ BOARDS=\
rockpro64-rk3399 \
rpi_3 \
rpi_4
+BOARD_READMES=\
+   rockchip
 .elif "${FLAVOR}" == "arm"
 OMAP=\
omap4_panda \
@@ -140,6 +142,7 @@ BOARDS=\
tinker-rk3288 \
turris_omnia \
vexpress_ca15_tc2
+BOARD_READMES=
 .endif
 
 FILES=\
@@ -156,7 +159,15 @@ FILES=\
u-boot.itb \
u-boot-rockchip.bin \
idbloader.img \
-   spl/sunxi-spl.bin \
+   spl/sunxi-spl.bin
+
+CMD_READMES+=\
+   console \
+   gpt \
+   nvme \
+   pxe \
+   usb \
+   video
 
 do-build:
 .for BOARD in ${BOARDS}
@@ -210,6 +221,11 @@ do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/u-boot/${BOARD}
-cd ${WRKSRC}/build/${BOARD} && \
cp ${FILES} ${PREFIX}/share/u-boot/${BOARD}/
+.endfor
+   ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${PKGSTEM}
+.for README in ${BOARD_READMES} ${CMD_READMES}
+   ${INSTALL_DATA} ${WRKSRC}/doc/README.${README} \
+   ${PREFIX}/share/doc/${PKGSTEM}/
 .endfor
 
 .include 
Index: pkg/PFRAG.aarch64
===
RCS file: /cvs/ports/sysutils/u-boot/pkg/PFRAG.aarch64,v
retrieving revision 1.22
diff -u -p -r1.22 PFRAG.aarch64
--- pkg/PFRAG.aarch64   15 Jan 2021 00:01:16 -  1.22
+++ pkg/PFRAG.aarch64   23 Mar 2021 19:59:37 -
@@ -1,5 +1,13 @@
 @comment $OpenBSD: PFRAG.aarch64,v 1.22 2021/01/15 00:01:16 kurt Exp $
 @pkgpath sysutils/u-boot-pinebook
+share/doc/${PKGSTEM}/
+share/doc/${PKGSTEM}/README.console
+share/doc/${PKGSTEM}/README.gpt
+share/doc/${PKGSTEM}/README.nvme
+share/doc/${PKGSTEM}/README.pxe
+share/doc/${PKGSTEM}/README.rockchip
+share/doc/${PKGSTEM}/README.usb
+share/doc/${PKGSTEM}/README.video
 share/u-boot/
 share/u-boot/a64-olinuxino/
 share/u-boot/a64-olinuxino/sunxi-spl.bin
Index: pkg/PFRAG.arm
===
RCS file: /cvs/ports/sysutils/u-boot/pkg/PFRAG.arm,v
retrieving revision 1.24
diff -u -p -r1.24 PFRAG.arm
--- pkg/PFRAG.arm   14 Jan 2021 00:56:54 -  1.24
+++ pkg/PFRAG.arm   23 Mar 2021 19:48:37 -
@@ -1,5 +1,12 @@
 @comment $OpenBSD: PFRAG.arm,v 1.24 2021/01/14 00:56:54 jsg Exp $
 @pkgpath sysutils/u-boot,
+share/doc/${PKGSTEM}/
+share/doc/${PKGSTEM}/README.console
+share/doc/${PKGSTEM}/README.gpt
+share/doc/${PKGSTEM}/README.nvme
+share/doc/${PKGSTEM}/README.pxe
+share/doc/${PKGSTEM}/README.usb
+share/doc/${PKGSTEM}/README.video
 share/u-boot/
 share/u-boot/A10-OLinuXino-Lime/
 share/u-boot/A10-OLinuXino-Lime/sunxi-spl.bin



Re: Interest check: gh (github's cli)

2021-03-23 Thread Stuart Henderson
On 2021/03/23 22:11, Mikolaj Kucharski wrote:
> On Wed, Mar 10, 2021 at 07:31:50PM +, Mikolaj Kucharski wrote:
> > On Sun, Jan 24, 2021 at 02:25:14PM +, Mikolaj Kucharski wrote:
> > > 
> > > See new port version attached. It contains 1.5.0, which I didn't had a
> > > chance to properly test, as I've updated the port today.
> > > 
> > > From port perspective comparing to github-cli,2.tgz from Stuart
> > > Henderson, I've:
> > > 
> > > - updated $V to 1.5.0
> > > - make makesum
> > > - ran make modgo-gen-modules
> > > - update Makefile with new MODGO_MODULES and MODGO_MODFILES
> > > - make makesum again
> > > - updated plist
> > > - added MODGO_LDFLAGS so gh version prints proper version
> > > - make package
> > > - gh version works as expected, and prints 1.5.0 instead of DEV
> > > 
> > 
> > Updated port to 1.7.0 version attached.
> > 
> 
> Tested lightly, but regularly, as I don't use a lot of API codepaths.
> Create or list issues, create pull requests. Works for me.
> 
> -- 
> Regards,
>  Mikolaj

OK sthen with these added

BROKEN-aarch64= old kr/pty doesn't support OpenBSD arm arches; needs 
creack/pty@v1.1.11
BROKEN-armv7=   old kr/pty doesn't support OpenBSD arm arches; needs 
creack/pty@v1.1.11




go.port.mk help wanted; can we use a newer go dep? [Re: aarch64 bulk build report]

2021-03-23 Thread Stuart Henderson
On 2021/03/23 15:47, phess...@openbsd.org wrote:
> build failures: 17
> http://build-failures.rhaalovely.net/aarch64/2021-03-21/net/termshark.log
> http://build-failures.rhaalovely.net/aarch64/2021-03-21/sysutils/nomad.log
> http://build-failures.rhaalovely.net/aarch64/2021-03-21/sysutils/terragrunt.log

These are because they use an old version of a module (github.com/kr/pty)

# github.com/kr/pty
../../../../go/pkg/mod/github.com/kr/pty@v1.1.4/pty_openbsd.go:24:10: 
undefined: ptmget
../../../../go/pkg/mod/github.com/kr/pty@v1.1.4/pty_openbsd.go:25:34: 
undefined: ioctl_PTMGET

This was fixed upstream in v1.1.11 (module is now at creack/pty,
kr/pty now has a shim to point users at the new repo).

Is there any way to have go.port.mk use the newer version (like
MODCARGO_CRATES_UPDATE with cargo/rust) or do we just need to wait for
the various upstreams to change?



Re: Interest check: gh (github's cli)

2021-03-23 Thread Mikolaj Kucharski
On Wed, Mar 10, 2021 at 07:31:50PM +, Mikolaj Kucharski wrote:
> On Sun, Jan 24, 2021 at 02:25:14PM +, Mikolaj Kucharski wrote:
> > 
> > See new port version attached. It contains 1.5.0, which I didn't had a
> > chance to properly test, as I've updated the port today.
> > 
> > From port perspective comparing to github-cli,2.tgz from Stuart
> > Henderson, I've:
> > 
> > - updated $V to 1.5.0
> > - make makesum
> > - ran make modgo-gen-modules
> > - update Makefile with new MODGO_MODULES and MODGO_MODFILES
> > - make makesum again
> > - updated plist
> > - added MODGO_LDFLAGS so gh version prints proper version
> > - make package
> > - gh version works as expected, and prints 1.5.0 instead of DEV
> > 
> 
> Updated port to 1.7.0 version attached.
> 

Tested lightly, but regularly, as I don't use a lot of API codepaths.
Create or list issues, create pull requests. Works for me.

-- 
Regards,
 Mikolaj


github-cli-1.7.0.port.tgz
Description: application/tar-gz


Re: NEW: graphics/promplot

2021-03-23 Thread Mikolaj Kucharski
Kind reminder.

On Mon, Jan 25, 2021 at 03:51:16PM +, Mikolaj Kucharski wrote:
> Hi,
> 
> I was looking for a tool which can easily generate a screenshot
> from Prometheus metrics and I found:
> 
>   https://github.com/qvl/promplot
> 
> > Comment:
> > create plots from Prometheus metrics
> >
> > Description:
> > promplot is an opinionated tool to create plots from Prometheus
> > metrics and automatically sends them to Slack or saves the image
> > to a file or stdout.
> 
> With help from Aaron Bieber I've created attached port. It compiles and
> I can generate PNG files with Prometheus metrics via the tool.
> 

-- 
Regards,
 Mikolaj


promplot-0.17.0-port.tgz
Description: application/tar-gz


Re: NEW: security/py-hvac 0.10.6

2021-03-23 Thread Mikolaj Kucharski
Kind reminder.

On Tue, Mar 09, 2021 at 09:23:02PM +, Mikolaj Kucharski wrote:
> Updated the port to 0.10.8
> 
> On Sun, Jan 24, 2021 at 12:54:17PM +, Mikolaj Kucharski wrote:
> > Hi,
> > 
> > Kind reminder. Port reattached for convenience.
> > 
> > On Fri, Jan 01, 2021 at 05:08:59PM +, Mikolaj Kucharski wrote:
> > > 
> > > I'm using py3-hvac Python module to fetch Vault secrets from Ansible via
> > > its hashi_vault lookup plugin.
> > > 
> > > > Comment:
> > > > Python client library for Hashicorp Vault
> > > >
> > > > Description:
> > > > HVAC allows accessing secrets stored in a Vault directly from
> > > > Python code.
> > > >
> > > > An access token must be created first, using a separate tool
> > > > like vault or vault-client.
> > > 
> > > I've made it Python3-only port. Comments?
> > > 

-- 
Regards,
 Mikolaj


py-hvac-0.10.8.port.tgz
Description: application/tar-gz


aarch64 bulk build report

2021-03-23 Thread phessler
bulk build on arm64.ports.openbsd.org
started on  Sun Mar 21 03:36:10 MDT 2021
finished at Tue Mar 23 15:47:20 MDT 2021
lasted 2D12h11m
done with kern.version=OpenBSD 6.9-beta (GENERIC.MP) #1085: Sat Mar 20 22:02:07 
MDT 2021

built packages:11054
Mar 21:3787
Mar 22:1922
Mar 23:5344


critical path missing pkgs:  
http://build-failures.rhaalovely.net/aarch64/2021-03-21/summary.log

build failures: 17
http://build-failures.rhaalovely.net/aarch64/2021-03-21/audio/audacious/plugins,qt5.log
http://build-failures.rhaalovely.net/aarch64/2021-03-21/comms/gnuradio.log
http://build-failures.rhaalovely.net/aarch64/2021-03-21/converters/wv2.log
http://build-failures.rhaalovely.net/aarch64/2021-03-21/editors/calligra.log
http://build-failures.rhaalovely.net/aarch64/2021-03-21/editors/micro.log
http://build-failures.rhaalovely.net/aarch64/2021-03-21/editors/xwpe.log
http://build-failures.rhaalovely.net/aarch64/2021-03-21/emulators/vice.log
http://build-failures.rhaalovely.net/aarch64/2021-03-21/games/lwjgl3.log
http://build-failures.rhaalovely.net/aarch64/2021-03-21/games/shockolate.log
http://build-failures.rhaalovely.net/aarch64/2021-03-21/lang/zig.log
http://build-failures.rhaalovely.net/aarch64/2021-03-21/mail/evolution-rss.log
http://build-failures.rhaalovely.net/aarch64/2021-03-21/net/termshark.log
http://build-failures.rhaalovely.net/aarch64/2021-03-21/shells/nsh,static.log
http://build-failures.rhaalovely.net/aarch64/2021-03-21/sysutils/nomad.log
http://build-failures.rhaalovely.net/aarch64/2021-03-21/sysutils/telegraf.log
http://build-failures.rhaalovely.net/aarch64/2021-03-21/sysutils/terragrunt.log
http://build-failures.rhaalovely.net/aarch64/2021-03-21/www/seamonkey,-lightning.log

recurrent failures
 failures/audio/audacious/plugins,qt5.log
 failures/comms/gnuradio.log
 failures/converters/wv2.log
 failures/editors/calligra.log
 failures/editors/micro.log
 failures/games/lwjgl3.log
 failures/games/shockolate.log
 failures/lang/zig.log
 failures/net/termshark.log
 failures/shells/nsh,static.log
 failures/sysutils/nomad.log
 failures/sysutils/telegraf.log
 failures/sysutils/terragrunt.log
 failures/www/seamonkey,-lightning.log
new failures
+++ ls-failures Tue Mar 23 15:47:30 2021
+failures/mail/evolution-rss.log
resolved failures
--- ../old/aarch64/last//ls-failuresFri Mar 19 13:46:24 2021
-failures/audio/clementine.log
-failures/comms/hylafax.log
-failures/x11/lightly.log



Re: Update: latex2html

2021-03-23 Thread Stuart Henderson
On 2021/03/23 20:53, David wrote:
> Sorry to bother you. On OpenBSD 6.8 any attempt, for me at least, to use 
> latex2html terminates immediately with:
> 
> Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in 
> m/((^|[\s,=])')\\\W{ <-- HERE (\w)}/ at /usr/local/bin/latex2html line 6481.
> 
> The attached diff updates to latex2html 2021 which seems to work for me on 
> amd64 CURRENT. Also, there was a typo in the post-install bit.
> 
> However, this is my first time working with ports, so watch out for foolish 
> mistakes on my part, please.
> 
> --
> David
> 

Thanks, committed with small tweaks: I have moved GH_* up where DISTNAME
was, and reinstated the @tag line in pkg/PLIST (which triggers running
"mktexlsr" at pkg_add time).



Re: NEW: security/py-fickling

2021-03-23 Thread Stuart Henderson
On 2021/03/23 22:31, Sebastian Reitenbach wrote:
> Hi,
> 
> attached a port of fickling.
> 
> cat pkg/DESCR:
> Fickling is a decompiler, static analyzer, and bytecode rewriter for
> Python pickle object serializations.
> 
> Pickled Python objects are in fact bytecode that is interpreted by a
> stack-based virtual machine built into Python called the "Pickle
> Machine". Fickling can take pickled data streams and decompile them into
> human-readable Python code that, when executed, will deserialize to the
> original serialized object.
> 
> this needs the just sent devel/py-astunparse as dependency.
> 
> comments, feedback, or even OK welcome.
> 
> 
> cheers,
> Sebastian


Please replace NO_TEST=Yes with MODPY_PYTEST=Yes, otherwise ok



Re: NEW: devel/py-astunparse

2021-03-23 Thread Stuart Henderson
On 2021/03/23 21:36, Stuart Henderson wrote:
> On 2021/03/23 22:29, Sebastian Reitenbach wrote:
> > Hi,
> > 
> > attached a port for astunparse.
> > 
> > cat pkg/DESCR
> > An AST unparser for Python.
> > 
> > This is a factored out version of unparse found in the Python source
> > distribution; under Demo/parser in Python 2 and under Tools/parser in
> > Python 3.
> > 
> > With python3.9 this is part of python itself, it's needed as a dependency 
> > of fickling.
> > 
> > comments, feedback or even OK welcome.
> > 
> > cheers,
> > Sebastian
> 
> nitpicking, there's a mix of "=" and " =" in Makefile
> 
> could you add this to remove the "WARNING: Testing via this command is
> deprecated and will be removed in a future version" warning please?
> 
> MODPY_PYTEST= Yes
> TEST_ENV= PYTHONPATH="${WRKSRC}/lib"
> 
> OK
> 

Oh, and please add a comment "in python core in 3.9" or similar



Re: NEW: devel/py-astunparse

2021-03-23 Thread Stuart Henderson
On 2021/03/23 22:29, Sebastian Reitenbach wrote:
> Hi,
> 
> attached a port for astunparse.
> 
> cat pkg/DESCR
> An AST unparser for Python.
> 
> This is a factored out version of unparse found in the Python source
> distribution; under Demo/parser in Python 2 and under Tools/parser in
> Python 3.
> 
> With python3.9 this is part of python itself, it's needed as a dependency of 
> fickling.
> 
> comments, feedback or even OK welcome.
> 
> cheers,
> Sebastian

nitpicking, there's a mix of "=" and " =" in Makefile

could you add this to remove the "WARNING: Testing via this command is
deprecated and will be removed in a future version" warning please?

MODPY_PYTEST=   Yes
TEST_ENV=   PYTHONPATH="${WRKSRC}/lib"

OK



NEW: security/py-fickling

2021-03-23 Thread Sebastian Reitenbach
Hi,

attached a port of fickling.

cat pkg/DESCR:
Fickling is a decompiler, static analyzer, and bytecode rewriter for
Python pickle object serializations.

Pickled Python objects are in fact bytecode that is interpreted by a
stack-based virtual machine built into Python called the "Pickle
Machine". Fickling can take pickled data streams and decompile them into
human-readable Python code that, when executed, will deserialize to the
original serialized object.

this needs the just sent devel/py-astunparse as dependency.

comments, feedback, or even OK welcome.


cheers,
Sebastian


py-fickling.tar.gz
Description: application/gzip


NEW: devel/py-astunparse

2021-03-23 Thread Sebastian Reitenbach
Hi,

attached a port for astunparse.

cat pkg/DESCR
An AST unparser for Python.

This is a factored out version of unparse found in the Python source
distribution; under Demo/parser in Python 2 and under Tools/parser in
Python 3.

With python3.9 this is part of python itself, it's needed as a dependency of 
fickling.

comments, feedback or even OK welcome.

cheers,
Sebastian


py-astunparse.tar.gz
Description: application/gzip


sysutils/u-boot: Ship assorted README files

2021-03-23 Thread Klemens Nanni
One thing I'd like to have around is documentation on how certain
u-boot commands/subsystems work and/or what needs to be done on
certain specific boards.

I'm on a Pinebook Pro here and ${WRKSRC}/doc/README.rockchip
(thanks abieber!) for example has the relevant dd(1) commands to flash
the various blobs -- with that I don't need to try my luck or search
online get a firmware update going and/or prep an SD card.

I know that those README.* files generally also explain how to configure
and build stuff from source and we are not interested in those bits, but
shipping them unmodified is still of value, especially because I can
now work on those boxes while mostly offline.

Besides board specific docs there is general information available
regarding serial console and video output, GPT partitioning from within
u-boot, etc. so I added a few assorted READMEs as well.

Since those ought be shipped regardless of the flavour but and we must
not install the same files via multiple packages I've used PKGSTEM
(contains FLAVOR) as part of the file path such that each FLAVOR may
ship the same docs but under their own unique path.

I have other improvemens in mind but want to take care of them one by
one.

Feedback? OK?


Index: Makefile
===
RCS file: /cvs/ports/sysutils/u-boot/Makefile,v
retrieving revision 1.80
diff -u -p -r1.80 Makefile
--- Makefile23 Feb 2021 22:04:35 -  1.80
+++ Makefile23 Mar 2021 19:58:27 -
@@ -8,7 +8,7 @@ FLAVOR?=arm
 
 COMMENT=   U-Boot firmware
 VERSION=   2021.01
-REVISION=  0
+REVISION=  1
 DISTNAME=  u-boot-${VERSION}
 PKGNAME=   u-boot-${FLAVOR}-${VERSION:S/-//}
 FULLPKGNAME=   ${PKGNAME}
@@ -82,6 +82,8 @@ BOARDS=\
rockpro64-rk3399 \
rpi_3 \
rpi_4
+ARCH_READMES=\
+   rockchip
 .elif "${FLAVOR}" == "arm"
 OMAP=\
omap4_panda \
@@ -140,6 +142,7 @@ BOARDS=\
tinker-rk3288 \
turris_omnia \
vexpress_ca15_tc2
+ARCH_READMES=
 .endif
 
 FILES=\
@@ -156,7 +159,15 @@ FILES=\
u-boot.itb \
u-boot-rockchip.bin \
idbloader.img \
-   spl/sunxi-spl.bin \
+   spl/sunxi-spl.bin
+
+CMD_READMES+=\
+   console \
+   gpt \
+   nvme \
+   pxe \
+   usb \
+   video
 
 do-build:
 .for BOARD in ${BOARDS}
@@ -210,6 +221,11 @@ do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/u-boot/${BOARD}
-cd ${WRKSRC}/build/${BOARD} && \
cp ${FILES} ${PREFIX}/share/u-boot/${BOARD}/
+.endfor
+   ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${PKGSTEM}
+.for README in ${ARCH_READMES} ${CMD_READMES}
+   ${INSTALL_DATA} ${WRKSRC}/doc/README.${README} \
+   ${PREFIX}/share/doc/${PKGSTEM}/
 .endfor
 
 .include 
Index: pkg/PFRAG.aarch64
===
RCS file: /cvs/ports/sysutils/u-boot/pkg/PFRAG.aarch64,v
retrieving revision 1.22
diff -u -p -r1.22 PFRAG.aarch64
--- pkg/PFRAG.aarch64   15 Jan 2021 00:01:16 -  1.22
+++ pkg/PFRAG.aarch64   23 Mar 2021 19:59:37 -
@@ -1,5 +1,13 @@
 @comment $OpenBSD: PFRAG.aarch64,v 1.22 2021/01/15 00:01:16 kurt Exp $
 @pkgpath sysutils/u-boot-pinebook
+share/doc/u-boot-aarch64/
+share/doc/u-boot-aarch64/README.console
+share/doc/u-boot-aarch64/README.gpt
+share/doc/u-boot-aarch64/README.nvme
+share/doc/u-boot-aarch64/README.pxe
+share/doc/u-boot-aarch64/README.rockchip
+share/doc/u-boot-aarch64/README.usb
+share/doc/u-boot-aarch64/README.video
 share/u-boot/
 share/u-boot/a64-olinuxino/
 share/u-boot/a64-olinuxino/sunxi-spl.bin
Index: pkg/PFRAG.arm
===
RCS file: /cvs/ports/sysutils/u-boot/pkg/PFRAG.arm,v
retrieving revision 1.24
diff -u -p -r1.24 PFRAG.arm
--- pkg/PFRAG.arm   14 Jan 2021 00:56:54 -  1.24
+++ pkg/PFRAG.arm   23 Mar 2021 19:48:37 -
@@ -1,5 +1,12 @@
 @comment $OpenBSD: PFRAG.arm,v 1.24 2021/01/14 00:56:54 jsg Exp $
 @pkgpath sysutils/u-boot,
+share/doc/u-boot-arm/
+share/doc/u-boot-arm/README.console
+share/doc/u-boot-arm/README.gpt
+share/doc/u-boot-arm/README.nvme
+share/doc/u-boot-arm/README.pxe
+share/doc/u-boot-arm/README.usb
+share/doc/u-boot-arm/README.video
 share/u-boot/
 share/u-boot/A10-OLinuXino-Lime/
 share/u-boot/A10-OLinuXino-Lime/sunxi-spl.bin



Re: [MAINTAINER UPDATE] www/qutebrowser -> 2.1.0

2021-03-23 Thread Dimitri Karamazov
Ping

On Mon, Mar 15, 2021 at 03:31:18AM +, Dimitri Karamazov wrote:
> Simple update for qutebrowser to 2.1.0
> 
> Changelog:https://github.com/qutebrowser/qutebrowser/releases
> 
> Build & Run tested on amd64
> 
> regards,
>   Dimitri
> 

Index: Makefile
===
RCS file: /cvs/ports/www/qutebrowser/Makefile,v
retrieving revision 1.26
diff -u -p -r1.26 Makefile
--- Makefile24 Feb 2021 11:17:31 -  1.26
+++ Makefile15 Mar 2021 03:26:21 -
@@ -2,7 +2,7 @@
 
 COMMENT =  keyboard-focused browser with a minimal GUI
 
-MODPY_EGG_VERSION =2.0.2
+MODPY_EGG_VERSION =2.1.0
 DISTNAME = qutebrowser-${MODPY_EGG_VERSION}
 
 HOMEPAGE = https://www.qutebrowser.org/
Index: distinfo
===
RCS file: /cvs/ports/www/qutebrowser/distinfo,v
retrieving revision 1.15
diff -u -p -r1.15 distinfo
--- distinfo24 Feb 2021 11:17:31 -  1.15
+++ distinfo15 Mar 2021 03:26:21 -
@@ -1,2 +1,2 @@
-SHA256 (qutebrowser-2.0.2.tar.gz) = 
SKh+RTuJMuJZt7PKvYvFAGBoUvYi0SM4j7NOT/5Xszs=
-SIZE (qutebrowser-2.0.2.tar.gz) = 6190348
+SHA256 (qutebrowser-2.1.0.tar.gz) = 
Hd03Ok8x8WuoCYcHeZGKiSCxPcuTby1B/0snz9TK5js=
+SIZE (qutebrowser-2.1.0.tar.gz) = 6246732
Index: pkg/PLIST
===
RCS file: /cvs/ports/www/qutebrowser/pkg/PLIST,v
retrieving revision 1.13
diff -u -p -r1.13 PLIST
--- pkg/PLIST   20 Feb 2021 14:22:33 -  1.13
+++ pkg/PLIST   15 Mar 2021 03:26:22 -
@@ -383,6 +383,7 @@ lib/python${MODPY_VERSION}/site-packages
 
lib/python${MODPY_VERSION}/site-packages/qutebrowser/misc/${MODPY_PYCACHE}debugcachestats.${MODPY_PYC_MAGIC_TAG}pyc
 
lib/python${MODPY_VERSION}/site-packages/qutebrowser/misc/${MODPY_PYCACHE}earlyinit.${MODPY_PYC_MAGIC_TAG}pyc
 
lib/python${MODPY_VERSION}/site-packages/qutebrowser/misc/${MODPY_PYCACHE}editor.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/qutebrowser/misc/${MODPY_PYCACHE}elf.${MODPY_PYC_MAGIC_TAG}pyc
 
lib/python${MODPY_VERSION}/site-packages/qutebrowser/misc/${MODPY_PYCACHE}guiprocess.${MODPY_PYC_MAGIC_TAG}pyc
 
lib/python${MODPY_VERSION}/site-packages/qutebrowser/misc/${MODPY_PYCACHE}httpclient.${MODPY_PYC_MAGIC_TAG}pyc
 
lib/python${MODPY_VERSION}/site-packages/qutebrowser/misc/${MODPY_PYCACHE}ipc.${MODPY_PYC_MAGIC_TAG}pyc
@@ -409,6 +410,7 @@ lib/python${MODPY_VERSION}/site-packages
 lib/python${MODPY_VERSION}/site-packages/qutebrowser/misc/debugcachestats.py
 lib/python${MODPY_VERSION}/site-packages/qutebrowser/misc/earlyinit.py
 lib/python${MODPY_VERSION}/site-packages/qutebrowser/misc/editor.py
+lib/python${MODPY_VERSION}/site-packages/qutebrowser/misc/elf.py
 lib/python${MODPY_VERSION}/site-packages/qutebrowser/misc/guiprocess.py
 lib/python${MODPY_VERSION}/site-packages/qutebrowser/misc/httpclient.py
 lib/python${MODPY_VERSION}/site-packages/qutebrowser/misc/ipc.py
@@ -441,6 +443,7 @@ lib/python${MODPY_VERSION}/site-packages
 
lib/python${MODPY_VERSION}/site-packages/qutebrowser/utils/${MODPY_PYCACHE}message.${MODPY_PYC_MAGIC_TAG}pyc
 
lib/python${MODPY_VERSION}/site-packages/qutebrowser/utils/${MODPY_PYCACHE}objreg.${MODPY_PYC_MAGIC_TAG}pyc
 
lib/python${MODPY_VERSION}/site-packages/qutebrowser/utils/${MODPY_PYCACHE}qtutils.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/qutebrowser/utils/${MODPY_PYCACHE}resources.${MODPY_PYC_MAGIC_TAG}pyc
 
lib/python${MODPY_VERSION}/site-packages/qutebrowser/utils/${MODPY_PYCACHE}standarddir.${MODPY_PYC_MAGIC_TAG}pyc
 
lib/python${MODPY_VERSION}/site-packages/qutebrowser/utils/${MODPY_PYCACHE}urlmatch.${MODPY_PYC_MAGIC_TAG}pyc
 
lib/python${MODPY_VERSION}/site-packages/qutebrowser/utils/${MODPY_PYCACHE}urlutils.${MODPY_PYC_MAGIC_TAG}pyc
@@ -456,6 +459,7 @@ lib/python${MODPY_VERSION}/site-packages
 lib/python${MODPY_VERSION}/site-packages/qutebrowser/utils/message.py
 lib/python${MODPY_VERSION}/site-packages/qutebrowser/utils/objreg.py
 lib/python${MODPY_VERSION}/site-packages/qutebrowser/utils/qtutils.py
+lib/python${MODPY_VERSION}/site-packages/qutebrowser/utils/resources.py
 lib/python${MODPY_VERSION}/site-packages/qutebrowser/utils/standarddir.py
 lib/python${MODPY_VERSION}/site-packages/qutebrowser/utils/testfile
 lib/python${MODPY_VERSION}/site-packages/qutebrowser/utils/urlmatch.py



Re: [patch] xsel: fix segfault when running on empty input file.

2021-03-23 Thread Stuart Henderson
It should use a version based on the date of last commit, rather than 'now'.
Also please use "make update-patches" to prepare files in the patches/
directory (which includes a header line, after which it's often useful to
include a short comment about the patch).

Will fix + commit.

On 2021/03/23 10:35, Brennan Vincent wrote:
> Can this be landed, or are more changes needed?
> 
> On 3/21/21 12:26 PM, Brennan Vincent wrote:
> > Changed the "before" file from configure.ac.bak to configure.ac.orig.
> > Sorry for the spam.
> > 
> > On 3/21/21 12:18 PM, Brennan Vincent wrote:
> > > Thanks for the feedback. I had not realized that some systems are
> > > still on GCC 3.x. I've patched that flag out in configure.ac.
> > > 
> > > New patch attached.
> > > 
> > > On 3/21/21 11:56 AM, Klemens Nanni wrote:
> > > > On Sun, Mar 21, 2021 at 11:01:54AM -0400, Brennan Vincent wrote:
> > > > > Attaching a patch that follows these suggestions.
> > > > > 
> > > > > My ports tree is a checkout of the
> > > > > https://github.com/openbsd/ports mirror,
> > > > > so I've used git format-patch to create the patch. I'm a
> > > > > porting beginner so
> > > > > please let me know if there's a better way to send patches.
> > > > The Makefile looks all good, thank you.
> > > > Just indent with tabs not spaces like the rest of the file, please.
> > > > 
> > > > 
> > > > > diff --git a/x11/xsel/patches/patch-configure
> > > > > b/x11/xsel/patches/patch-configure
> > > > > deleted file mode 100644
> > > > > index 7ee76777a43..000
> > > > > --- a/x11/xsel/patches/patch-configure
> > > > > +++ /dev/null
> > > > > @@ -1,15 +0,0 @@
> > > > > -$OpenBSD: patch-configure,v 1.2 2014/07/07 08:22:52 sthen Exp $
> > > > > -
> > > > > --Wdeclaration-after-statement is gcc 4-only.
> > > > > -
> > > > >  configure.orig    Mon Mar 24 15:27:33 2008
> > > > > -+++ configure    Mon Jul  7 09:22:18 2014
> > > > > -@@ -5880,7 +5880,7 @@ fi
> > > > > -
> > > > > - # Error out on compile warnings
> > > > > - if test "x$ac_cv_c_compiler_gnu" = xyes ; then
> > > > > --  CFLAGS="$CFLAGS -fno-strict-aliasing -Wall -Werror -g
> > > > > -std=gnu99 -Wdeclaration-after-statement -Wno-unused"
> > > > > -+  CFLAGS="$CFLAGS -fno-strict-aliasing -Wall -Werror -g
> > > > > -std=gnu99 -Wno-unused"
> > > > These flags are still used.
> > > > 
> > > > Were they removed to support building on GCC 3.x platforms?
> > > > If so -and I think there are some- you'd have to still remove
> > > > them, I guess.
> > > > 
> > > > > - fi
> > > > > -
> > > > > - # Checks for header files.
> 
> 



Re: [patch] xsel: fix segfault when running on empty input file.

2021-03-23 Thread Brennan Vincent

Can this be landed, or are more changes needed?

On 3/21/21 12:26 PM, Brennan Vincent wrote:
Changed the "before" file from configure.ac.bak to configure.ac.orig. 
Sorry for the spam.


On 3/21/21 12:18 PM, Brennan Vincent wrote:
Thanks for the feedback. I had not realized that some systems are 
still on GCC 3.x. I've patched that flag out in configure.ac.


New patch attached.

On 3/21/21 11:56 AM, Klemens Nanni wrote:

On Sun, Mar 21, 2021 at 11:01:54AM -0400, Brennan Vincent wrote:

Attaching a patch that follows these suggestions.

My ports tree is a checkout of the https://github.com/openbsd/ports 
mirror,
so I've used git format-patch to create the patch. I'm a porting 
beginner so

please let me know if there's a better way to send patches.

The Makefile looks all good, thank you.
Just indent with tabs not spaces like the rest of the file, please.


diff --git a/x11/xsel/patches/patch-configure 
b/x11/xsel/patches/patch-configure

deleted file mode 100644
index 7ee76777a43..000
--- a/x11/xsel/patches/patch-configure
+++ /dev/null
@@ -1,15 +0,0 @@
-$OpenBSD: patch-configure,v 1.2 2014/07/07 08:22:52 sthen Exp $
-
--Wdeclaration-after-statement is gcc 4-only.
-
 configure.orig    Mon Mar 24 15:27:33 2008
-+++ configure    Mon Jul  7 09:22:18 2014
-@@ -5880,7 +5880,7 @@ fi
-
- # Error out on compile warnings
- if test "x$ac_cv_c_compiler_gnu" = xyes ; then
--  CFLAGS="$CFLAGS -fno-strict-aliasing -Wall -Werror -g -std=gnu99 
-Wdeclaration-after-statement -Wno-unused"
-+  CFLAGS="$CFLAGS -fno-strict-aliasing -Wall -Werror -g -std=gnu99 
-Wno-unused"

These flags are still used.

Were they removed to support building on GCC 3.x platforms?
If so -and I think there are some- you'd have to still remove them, I 
guess.



- fi
-
- # Checks for header files.





Tiny fix to security/sshguard to allow use of daemon_flags

2021-03-23 Thread Andreas Kusalananda Kähäri
A user contacted me about the security/sshguard port.  They wanted to
use daemon_flags with the port, which means this needs to be added to
the pexp expression in the rc.d file.

The attached patch does this in the similar manner as is done for e.g.
sshd and unbound.


Regards,
Andreas (port maintainer)

-- 
Andreas (Kusalananda) Kähäri
SciLifeLab, NBIS, ICM
Uppsala University, Sweden

.
Index: Makefile
===
RCS file: /cvs/ports/security/sshguard/Makefile,v
retrieving revision 1.16
diff -u -p -r1.16 Makefile
--- Makefile18 Aug 2020 05:06:29 -  1.16
+++ Makefile23 Mar 2021 11:07:18 -
@@ -5,6 +5,8 @@ COMMENT=protect against brute force att
 DISTNAME=  sshguard-2.4.1
 CATEGORIES=security
 
+REVISION=  1
+
 HOMEPAGE=  https://www.sshguard.net/
 
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=sshguard/}
Index: pkg/sshguard.rc
===
RCS file: /cvs/ports/security/sshguard/pkg/sshguard.rc,v
retrieving revision 1.6
diff -u -p -r1.6 sshguard.rc
--- pkg/sshguard.rc 18 Aug 2020 05:06:29 -  1.6
+++ pkg/sshguard.rc 23 Mar 2021 11:07:18 -
@@ -6,7 +6,7 @@ daemon="${TRUEPREFIX}/sbin/sshguard"
 
 . /etc/rc.d/rc.subr
 
-pexp="/bin/sh $daemon"
+pexp="/bin/sh $daemon${daemon_flags:+ $daemon_flags}"
 
 rc_bg=YES
 rc_reload=NO


Re: NEW: security/evil-winrm

2021-03-23 Thread Sebastian Reitenbach
Am Donnerstag, März 18, 2021 22:52 CET, schrieb "Sebastian Reitenbach" 
:

> Hi,
>
> Am Dienstag, März 16, 2021 22:33 CET, schrieb "Sebastian Reitenbach" 
> :
>
> > Hi,
> >
> > cat DESCR:
> > WinRM (Windows Remote Management) is the Microsoft implementation of
> > WS-Management Protocol. A standard SOAP based protocol that allows
> > hardware and operating systems from different vendors to interoperate.
> > Microsoft included it in their Operating Systems in order to make life
> > easier to system administrators.
> >
> > This program can be used on any Microsoft Windows Servers with this
> > feature enabled (usually at port 5985), of course only if you have
> > credentials and permissions to use it. So we can say that it could be> used 
> > in a post-exploitation hacking/pentesting phase. The purpose of
> > this program is to provide nice and easy-to-use features for hacking. It
> > can be used with legitimate purposes by system administrators as well> but 
> > the most of its features are focused on hacking/pentesting stuff.>
> > this needs all the other gems just sent as dependency.
>
> as jeremy@ pointed out, stringio is in Ruby itself, and indeed not needed.
> Updated package without stringio dependency attached.
>
this time really attached.

> >
> > OK to import?
> this question still holds.
>
> cheers,
> Sebastian
>


evil-winrm.tar.gz
Description: application/gzip


UPDATE: Ziproxy-3.3.2

2021-03-23 Thread Gonzalo L. Rodriguez
Hello,

Update for Ziproxy to 3.3.2, with almost all our patches included.

OK? Comments?

Cheers.-

-- 

 %gonzalo
Index: Makefile
===
RCS file: /cvs/ports/net/ziproxy/Makefile,v
retrieving revision 1.16
diff -u -p -r1.16 Makefile
--- Makefile2 Feb 2021 14:49:53 -   1.16
+++ Makefile22 Mar 2021 11:38:28 -
@@ -2,9 +2,8 @@
 
 COMMENT =  compressing non-caching HTTP proxy
 
-DISTNAME = ziproxy-3.3.1
+DISTNAME = ziproxy-3.3.2
 EXTRACT_SUFX = .tar.bz2
-REVISION = 1
 
 CATEGORIES =   net www
 
Index: distinfo
===
RCS file: /cvs/ports/net/ziproxy/distinfo,v
retrieving revision 1.4
diff -u -p -r1.4 distinfo
--- distinfo5 Dec 2014 16:07:56 -   1.4
+++ distinfo22 Mar 2021 11:38:28 -
@@ -1,2 +1,2 @@
-SHA256 (ziproxy-3.3.1.tar.bz2) = w5xhSIQM2qhn1N061B05vjRUlLIEi4bsiZ0MB15Wh00=
-SIZE (ziproxy-3.3.1.tar.bz2) = 275342
+SHA256 (ziproxy-3.3.2.tar.bz2) = dqH8Ysdt+hqNB4QZOrogqW4hTdYVt5J7SXzu5QWWmfE=
+SIZE (ziproxy-3.3.2.tar.bz2) = 251995
Index: patches/patch-src_cfgfile_c
===
RCS file: patches/patch-src_cfgfile_c
diff -N patches/patch-src_cfgfile_c
--- patches/patch-src_cfgfile_c 2 Feb 2021 14:49:53 -   1.1
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,29 +0,0 @@
-$OpenBSD: patch-src_cfgfile_c,v 1.1 2021/02/02 14:49:53 gonzalo Exp $
-
-Index: src/cfgfile.c
 src/cfgfile.c.orig
-+++ src/cfgfile.c
-@@ -111,11 +111,11 @@ in_addr_t *BindOutgoingExAddr;
- in_addr_t *BindOutgoing;
- int BindOutgoing_entries;
- 
--int TOSFlagsDefault;
--int TOSFlagsDiff;
-+extern int TOSFlagsDefault;
-+extern int TOSFlagsDiff;
- char *TOSMarkAsDiffURL;
- char *TOSMarkAsDiffCT;
--int TOSMarkAsDiffSizeBT;
-+extern int TOSMarkAsDiffSizeBT;
- 
- int MaxActiveUserConnections;
- 
-@@ -159,7 +159,7 @@ int check_int_ranges (const char *conf_key, const int 
- int check_int_minimum (const char *conf_key, const int inval, const int vlow);
- int check_directory (const char *conf_key, const char *dirname);
- 
--const t_ut_urltable *tos_markasdiff_url;
-+const t_ut_urltable *Tos_markasdiff_url;
- const t_ct_cttable *tos_maskasdiff_ct;
- 
- const t_ut_urltable *urltable_noprocessing;
Index: patches/patch-src_image_c
===
RCS file: patches/patch-src_image_c
diff -N patches/patch-src_image_c
--- patches/patch-src_image_c   28 Mar 2015 16:06:48 -  1.4
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,33 +0,0 @@
-$OpenBSD: patch-src_image_c,v 1.4 2015/03/28 16:06:48 sthen Exp $
-
-Fix build with giflib-5.1
-
 src/image.c.orig   Wed Dec  3 11:58:33 2014
-+++ src/image.cSat Mar 28 16:03:38 2015
-@@ -905,7 +905,7 @@ int gif2bitmap(char *inbuf, int insize, raw_bitmap **o
-   desc.size=insize;
-   desc.x.pos=0;
- 
--  if ((GifFile = DGifOpen((void*)&desc, &gif_mem_input)) == NULL) 
-+  if ((GifFile = DGifOpen((void*)&desc, &gif_mem_input, NULL)) == NULL) 
-   return( IMG_RET_ERR_UNKNOWN + IMG_RET_FLG_WHILE_DECOMP);//more 
possible reasons
- 
-   bmp = new_raw_bitmap();
-@@ -1083,7 +1083,7 @@ int gif2bitmap(char *inbuf, int insize, raw_bitmap **o
-   }
-   bmp->pal_bpp = bmp->bpp;
-   
--  DGifCloseFile(GifFile);
-+  DGifCloseFile(GifFile, NULL);
-   return IMG_RET_OK;
- }
- 
-@@ -1738,7 +1738,7 @@ static int bitmap2jp2 (raw_bitmap *bmp, float rate, ch
-   cmptparm->width = cwidth [cmptno];
-   cmptparm->height = cheight [cmptno];
-   cmptparm->prec = cbitlen [cmptno];
--  cmptparm->sgnd = false; // we only generate unsigned components
-+  cmptparm->sgnd = 0; // we only generate unsigned components
- 
-   cshiftR [cmptno] = 8 - cbitlen [cmptno]; // calculate the 
resampling shift for this component
-   }
Index: patches/patch-src_tosmarking_c
===
RCS file: patches/patch-src_tosmarking_c
diff -N patches/patch-src_tosmarking_c
--- patches/patch-src_tosmarking_c  2 Feb 2021 14:49:53 -   1.1
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,14 +0,0 @@
-$OpenBSD: patch-src_tosmarking_c,v 1.1 2021/02/02 14:49:53 gonzalo Exp $
-
-Index: src/tosmarking.c
 src/tosmarking.c.orig
-+++ src/tosmarking.c
-@@ -39,7 +39,7 @@ SOCKET sock_child_out;
- int TOSFlagsDefault;
- int TOSFlagsDiff;
- const t_ut_urltable *tos_markasdiff_url;
--const t_ct_cttable *tos_maskasdiff_ct;
-+extern const t_ct_cttable *tos_maskasdiff_ct;
- ZP_DATASIZE_TYPE TOSMarkAsDiffSizeBT;
- 
- int current_tos;
Index: pkg/PLIST
===
RCS file: /cvs/ports/net/ziproxy/pkg/PLIST,v
retrieving revision 1.4
diff -u -p -r1.4 PLIST
--- pkg/PLIST   2 Feb 2021